|
| 10 Jul 2011 12:34 PM |
cheat1 = "burnthehousedown" cheat2 = "bomberman" cheat3 = "dropdeaddiva"
cheatchecker = script.Parent.Cheat entercheat = script.Parent.EnterCheat player = script.Parent.Parent.Parent.Parent
function cheat(Click) if cheatchecker.Text == cheat1 or cheatchecker.Text == cheat2 or cheatchecker.Text == cheat3 then if cheatchecker.Text == cheat1 then bob = game.Lighting:findFirstChild("Flamethrower Mk. 2"):Clone() bob.Parent = player.Backpack bobbackup = bob:Clone() bobbackup.Parent = player.StarterGear end if cheatchecker.Text == cheat2 then lol = game.Lighting:findFirstChild("Explosive Launcher"):Clone() lol.Parent = player.Backpack lolbackup = lol:Clone() lolbackup.Parent = player.StarterGear if cheatchecker.Text == cheat3 then guy = game.Lighting:findFirstChild("Nilifier"):Clone() guy.Parent = player.Backpack guybackup = guy:Clone() guybackup.Parent = player.StarterGear end end end end
entercheat.MouseButton1Down:connect(cheat)
This is my cheat code script. I'm sure there's a way to do it more easily, but anyways, codes 1 and two work just fine when I put them in. But code 3 ("dropdeaddiva") doesn't. I made sure to spell it right when putting the code in, and that didn't work. Also, there's no output. Halp? |
|
|
| Report Abuse |
|
|
| 10 Jul 2011 12:36 PM |
cheat1 = "burnthehousedown" cheat2 = "bomberman" cheat3 = "dropdeaddiva"
cheatchecker = script.Parent.Cheat entercheat = script.Parent.EnterCheat player = script.Parent.Parent.Parent.Parent
entercheat.MouseButton1Down:connect(function() if cheatchecker.Text == cheat1 or cheatchecker.Text == cheat2 or cheatchecker.Text == cheat3 then if cheatchecker.Text == cheat1 then bob = game.Lighting:findFirstChild("Flamethrower Mk. 2"):Clone() bob.Parent = player.Backpack bobbackup = bob:Clone() bobbackup.Parent = player.StarterGear elseif cheatchecker.Text == cheat2 then lol = game.Lighting:findFirstChild("Explosive Launcher"):Clone() lol.Parent = player.Backpack lolbackup = lol:Clone() lolbackup.Parent = player.StarterGear elseif cheatchecker.Text == cheat3 then guy = game.Lighting:findFirstChild("Nilifier"):Clone() guy.Parent = player.Backpack guybackup = guy:Clone() guybackup.Parent = player.StarterGear end end end)
There. |
|
|
| Report Abuse |
|
| |