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: What?

Previous Thread :: Next Thread 
Dodeca is not online. Dodeca
Joined: 11 Sep 2011
Total Posts: 13649
17 Jun 2014 06:42 PM
I'm making a TextButton where if you click it, a script inside of it is disabled

But it's not working..

local char = script.Parent.Parent.Parent.Parent.Parent.Parent.Character
local sparkles = char.Torso:FindFirstChild("Sparkles")

script.Parent.MouseButton1Click:connect(function()
script.Parent.RB.Disabled = true
end)
Report Abuse
Tynexx is not online. Tynexx
Joined: 11 Jul 2012
Total Posts: 1559
17 Jun 2014 06:44 PM
local char = script.Parent.Parent.Parent.Parent.Parent.Parent.Character
local sparkles = char.Torso:FindFirstChild("Sparkles")

script.Parent.MouseButton1Down:connect(function()
script.Parent.RB.Disabled = true
end)
Report Abuse
Dodeca is not online. Dodeca
Joined: 11 Sep 2011
Total Posts: 13649
17 Jun 2014 06:46 PM
What's the difference between MouseButton1Down and MouseButton1Click??

BTW it did work when I changed it to MouseButton1Down
Report Abuse
expressmyself is not online. expressmyself
Joined: 19 Apr 2011
Total Posts: 1768
17 Jun 2014 06:52 PM
THey do the same thing
Report Abuse
Legoman654 is not online. Legoman654
Joined: 05 Jun 2008
Total Posts: 534
17 Jun 2014 06:54 PM
MouseButton1Click initiates when the GUI object is clicked and the pointer is released. MouseButton1Down triggers right when you press the mouse button down rather than after its release.
Report Abuse
expressmyself is not online. expressmyself
Joined: 19 Apr 2011
Total Posts: 1768
17 Jun 2014 06:55 PM
This doesn't seem like the entire script, also what are the errors?
Report Abuse
Dodeca is not online. Dodeca
Joined: 11 Sep 2011
Total Posts: 13649
17 Jun 2014 06:58 PM
There was no errors
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