Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I fix this script?

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

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

1 comment

0

No, its elseif. As I said, it's worked fine before, but now all of a sudden not a single command works.

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..

2 comments

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.

0

So that means that it's ROBLOX

This discussion is preserved as it was. New answers, comments, and votes are closed.