nikolaaa4Join Date: 2012-04-20 Post Count: 298 |
I heard that some people liked the old forcefield more than the new one.
Well heres a tut how to make the old forcefield back!
Make a script called Old forcefield
Open roblox stu
Paste text:
-- Old ForceField script --
-- By Nikolaaa4 --
ffTime = 10 -- how long it lasts in seconds
function PlayerSpawned(player, character)
local c = character
f1 = Instance.new("SelectionBox", c.Head)
f1.Adornee = c.Head
f1f = script.Flash:Clone()
f1f.Parent = f1
f2 = Instance.new("SelectionBox", c.Torso)
f2.Adornee = c.Torso
f2f = script.Flash:Clone()
f2f.Parent = f2
f3 = Instance.new("SelectionBox", c["Left Arm"])
f3.Adornee = c["Left Arm"]
f3f = script.Flash:Clone()
f3f.Parent = f3
f4 = Instance.new("SelectionBox", c["Right Arm"])
f4.Adornee = c["Right Arm"]
f4f = script.Flash:Clone()
f4f.Parent = f4
f5 = Instance.new("SelectionBox", c["Left Leg"])
f5.Adornee = c["Left Leg"]
f5f = script.Flash:Clone()
f5f.Parent = f5
f6 = Instance.new("SelectionBox", c["Right Leg"])
f6.Adornee = c["Right Leg"]
f6f = script.Flash:Clone()
f6f.Parent = f6
wait(ffTime)
f1:Remove()
f2:Remove()
f3:Remove()
f4:Remove()
f5:Remove()
f6:Remove()
end
game.Players.PlayerAdded:connect(function(p)
p.CharacterAdded:connect(function(c) PlayerSpawned(p,c) end)
end)
There, we have just finished our connect to the player script.
After doing that, make another script, IN THE FIRST SCRIPT.
Paste text in it:
while true do
script.Parent.Color = BrickColor.new("Really red")
wait(0.25)
script.Parent.Color = BrickColor.new("Bright red")
wait(0.25)
script.Parent.Color = BrickColor.new("Really blue")
wait(0.25)
script.Parent.Color = BrickColor.new("Bright blue")
wait(0.25)
script.Parent.Color = BrickColor.new("Royal purple")
wait(0.25)
script.Parent.Color = BrickColor.new("Alder")
wait(0.25)
end
And there we go! Colors :3.
You could also change the 0.25 to the time it wants to change.
Hope this helps. |
|
celestalaJoin Date: 2013-05-22 Post Count: 7061 |
[ Content Deleted ] |
|
|
^ I just got a warning for telling him to leave.
EOS db 0x00 ;End of String Marker |
|
nikolaaa4Join Date: 2012-04-20 Post Count: 298 |
I'm sorry, but the category is called Scripting, wich means it's about scripts. |
|
celestalaJoin Date: 2013-05-22 Post Count: 7061 |
[ Content Deleted ] |
|
|
This is also for advanced scripting discussion, not basic. |
|
EverestyJoin Date: 2009-10-08 Post Count: 6156 |
No, this isn't called "scripting," it's called "Scripters."
And it is not for scripts, but instead for advanced discussion about them. |
|
|
Oh boy, now we get to pick and choose what "advanced" scripting is. As if thats a term with solid definition. |
|
J_JJoin Date: 2009-11-18 Post Count: 2417 |
^
I think we can all agree the script he posted doesn't fall under "advanced" scripting.
~ Trust me, I'm a doctor (@RBX_Dev) ~ |
|
cntkillmeJoin Date: 2008-04-07 Post Count: 49450 |
Advanced or not, if there is no discussion, it's OT |
|
VakythJoin Date: 2011-04-23 Post Count: 8325 |
[ Content Deleted ] |
|
|
I'm not defending this guy, believe me. No discussion to be had here, as Cnt said. But the issue of what and isnt't advanced scripting is an issue on this forum in general. |
|
nikolaaa4Join Date: 2012-04-20 Post Count: 298 |
For the last time, i am sorry for posting in bad section.
This script is very simple, but it helps some players understand more LUA.
Nothing has to be PRO.
If you dont like this script, or you think it's spam, all you can do is LEAVE. |
|
|
"it helps some players understand more LUA."
What`s that stand for?
This is a place for advanced discussion, Why would anyone looking at this post need basic help? |
|
|
-- I threw up when I read the previous script, so here:
-- Old (but improved) ForceField script
-- By random kid number one
ffTime = 10 -- how long it lasts in seconds
function PlayerSpawned(character)
for _,v in pairs(character:GetChildren() do
if v.ClassName == "Part" then
local l = Instance.new("SelectionBox", v);l.Adornee = v
flash(l)
end
wait(ffTime)
for _,v in pairs(character:GetChildren()) do
if v.ClassName == "Part" then
v.SelectionBox.Parent = nil
end
end
colors = {"Really red", "Bright red", "Really blue", Bright blue", "Royal purple", "Alder"}
game.Players.PlayerAdded:connect(function(p)
p.CharacterAdded:connect(PlayerSpawned)
end)
:
flash = coroutine.wrap(function(box)
repeat
for i = 1,6 do
wait()
box.Color = BrickColor.new(colors[i])
end
until box == nil
end) |
|
|
if v.ClassName == "Part" then
How about...
if v:IsA("BasePart") then |
|
|
I thought that method got discontinued? Let me recheck the wiki. |
|
|
|
I haven't heard anything of it being discontinued. I may have been away for a long time, but it still works in my code. |
|
LacrymaJoin Date: 2010-02-15 Post Count: 22696 |
We all know this, isn't this a free model? |
|
|
"""
No, this isn't called "scripting," it's called "Scripters."
And it is not for scripts, but instead for advanced discussion about them.
"""
Then shouldn't this be called "Script Meta", or something of the sort? [Script(ers) Meta(data)]. It would make more sense, then.
Scripters means that it pertains to all Scripters, no matter how advanced or primitive. :/ |
|
MettaurSpJoin Date: 2010-03-20 Post Count: 3179 |
Regardless of the name, is still a rule posted in the sticky. |
|
nikolaaa4Join Date: 2012-04-20 Post Count: 298 |
For the last time, i apologize for posting in the wrong section!
Would anyone else want to tell me that this is the wrong section?!?
Gawd, people learn to read. |
|
|
This forum is for 'advanced_scripting_discussion'. If you can't handle others' reactions, you should stop posting here.
END THREAD |
|
|
^ Fluff, no offense, but you didn't even read his reactions(reply) in which he admitted he did wrong.
EOS db 0x00 ;End of String Marker |
|