generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Code 3 Won't Work

Previous Thread :: Next Thread 
SpongebobAndMario is not online. SpongebobAndMario
Joined: 12 Mar 2009
Total Posts: 2564
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
darkkiller5555 is not online. darkkiller5555
Joined: 22 Nov 2009
Total Posts: 6359
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
SpongebobAndMario is not online. SpongebobAndMario
Joined: 12 Mar 2009
Total Posts: 2564
10 Jul 2011 02:51 PM
Thanks.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image