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 » Scripters
Home Search
 

Re: Roblox Studio Cant Get Code To Work

Previous Thread :: Next Thread 
WelshRoxy is not online. WelshRoxy
Joined: 28 Jul 2016
Total Posts: 8
15 Dec 2016 08:26 PM
Heya, I'm making a twitter promo code for my game but when I click the Submit Code button the button doesn't work this is my script

----------------------------------------------------------------------------------------


local gear = game.ReplicatedStorage:WaitForChild('GravityCoil')
script.Parent.MouseButton1Click:connect(function()
if script.Parent.Parent.Input.Text == 'Welcome To Fish Tycoon' then
gear:Clone().Parent = game.Players.LocalPlayer.Backpack
gear:Clone().Parent = game.Players.LocalPlayer.StarterGear
script.Parent.Parent.Input.Text = ''
script.Parent.Parent.Text = 'Success!'
wait (1)
script.Parent.Text = 'Submit'
else
script.Parent.Parent.Input.Text = ''
script.Parent.Parent.Text = 'Invalid Code'
wait (1)
script.Parent.Text = 'Submit'
end

end)

----------------------------------------------------------------------------------------

Is there anything obvious i'm doing wrong?
Report Abuse
fireflame09225 is not online. fireflame09225
Joined: 04 Jan 2010
Total Posts: 1818
15 Dec 2016 08:37 PM
Is there anything in the output?

And what specific part doesn't work? The entire script?
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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