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: Run script on Click

Previous Thread :: Next Thread 
ThisUserSecret is not online. ThisUserSecret
Joined: 29 Sep 2012
Total Posts: 1094
16 Oct 2013 03:50 PM
Does anyone know how to make a script so when you click on something it runs a CERTAIN script? say I wanted the Scythe script, when someone clicked on a lets say an orb it gives them the scythe and the tool.
Report Abuse
talk2me2 is not online. talk2me2
Joined: 25 Mar 2011
Total Posts: 1051
16 Oct 2013 03:51 PM
I do.
Report Abuse
flatline115 is not online. flatline115
Joined: 29 Jul 2013
Total Posts: 7826
16 Oct 2013 03:53 PM
local mouse = game.Players.LocalPlayer
function func()
-- your code
end
mouse.Button1Down:connect(function()
func()
end)
Report Abuse
talk2me2 is not online. talk2me2
Joined: 25 Mar 2011
Total Posts: 1051
16 Oct 2013 03:54 PM
If you use flat's script, you will need to use a local script.

Just sayin'

-Talk,

"If noting goes right, go left."
Report Abuse
ThisUserSecret is not online. ThisUserSecret
Joined: 29 Sep 2012
Total Posts: 1094
16 Oct 2013 07:14 PM
Well can someone give it to me in a model? I mean Flats was awesome but the script isn't local.
Report Abuse
flatline115 is not online. flatline115
Joined: 29 Jul 2013
Total Posts: 7826
16 Oct 2013 07:16 PM
Then how are you using it in a hopper bin or?
Report Abuse
ThisUserSecret is not online. ThisUserSecret
Joined: 29 Sep 2012
Total Posts: 1094
16 Oct 2013 07:25 PM
Ok I want to make a gui that when you click on it, it gives you the scythe like in script builder my friend did it but he wont tell me how.
Report Abuse
ThisUserSecret is not online. ThisUserSecret
Joined: 29 Sep 2012
Total Posts: 1094
17 Oct 2013 06:21 AM
Bump
Report Abuse
zars15 is not online. zars15
Joined: 10 Nov 2008
Total Posts: 9999
17 Oct 2013 06:29 AM
Make TextButton gui, and then have event like:

TextButton.MouseButton1Down:connect(function()
--scythe script or whatever
end)

Report Abuse
papermaster111 is not online. papermaster111
Joined: 14 Jun 2011
Total Posts: 585
17 Oct 2013 06:58 AM
Nobody will make it for you in a model.
Report Abuse
ThisUserSecret is not online. ThisUserSecret
Joined: 29 Sep 2012
Total Posts: 1094
18 Oct 2013 05:25 PM
Bump None of these work :'(
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