Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I fix this script?

Asked by 10 years ago
c = game.Players.NiceGah
c.Chatted:connect(function(msg)

if msg == "FF me."
then
Instance.new("ForceField", game.Workspace.NiceGah)

elseif msg == "Speed."
then
game.Workspace.NiceGah.Humanoid.WalkSpeed = 150

elseif msg == "No teams."
then
game.Lighting:ClearAllChildren()

elseif msg == "God me."
then
game.Workspace.NiceGah.Humanoid.MaxHealth = math.huge

elseif msg == "Respawn me."
then
c:LoadCharacter()

elseif msg == "What's my age?"
then
g = Instance.new("Hint", game.Workspace)
g.Text = "NiceGah's account age is ".. game.Players.NiceGah.AccountAge .." days."
wait(5)
g:Destroy()

end
end)

It has worked before but for some reason all of a sudden none of it works. Is there some sort of replacement code for each of those to fix it?

4 answers

Log in to vote
0
Answered by 10 years ago

Uhhhh. I'm pretty bad at scripting, but... I THINK that elseif should be else if...? I dunno. I'm a terrible scripter. Heh.

0
No, its elseif. As I said, it's worked fine before, but now all of a sudden not a single command works. TheBenSquare 47 — 10y
Ad
Log in to vote
0
Answered by
istiyak 13
10 years ago

I think it's the update with lua

Log in to vote
0
Answered by 10 years ago

Chat Service

Log in to vote
-1
Answered by
Reverge -1
10 years ago

Are you actually saying "FF me." with the period? Because that makes a big difference. OR if it worked before.. ROBLOX broke it. They recently patched noclip, speed, and gravity. It broke lots of game scripts..

0
Yeah, with the period. Would there be some sort of way to "replicate" the methods I use with new methods that work? I'm at a script builder currently and no scripts at all are working for me. TheBenSquare 47 — 10y
0
So that means that it's ROBLOX Reverge -1 — 10y

Answer this question