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: script help!

Previous Thread :: Next Thread 
Bylocks is online. Bylocks
Joined: 27 Mar 2012
Total Posts: 773
17 Aug 2016 02:41 PM
---THIS IS MY SCRIPT

local start = os.time()
local first = true

function onClicked(playerWhoClicked)
local currenttime = os.time()
if currenttime - start >= 180 or first then
first = false
playerWhoClicked.PlayerGui.Pokestops.Main.Visible = true
local cashmoney = game.ServerStorage.MoneyStorage:FindFirstChild(playerWhoClicked.Name)
cashmoney.Value = cashmoney.Value + 1000
start = os.time()
end
end

script.Parent.Parent.ClickDetector.MouseClick:connect(onClicked)

i want it to do what it says. but i want it so its only for the player not server so when you click the brick everyone doesn't have to wait 3 minutes to click again just the player.
Report Abuse
Monadic is not online. Monadic
Joined: 03 Aug 2016
Total Posts: 731
17 Aug 2016 02:41 PM
Air Head
Report Abuse
Bylocks is online. Bylocks
Joined: 27 Mar 2012
Total Posts: 773
17 Aug 2016 02:43 PM
?
Report Abuse
Bylocks is online. Bylocks
Joined: 27 Mar 2012
Total Posts: 773
17 Aug 2016 03:00 PM
bump
Report Abuse
Dralian is not online. Dralian
Joined: 21 Mar 2013
Total Posts: 7624
17 Aug 2016 03:33 PM
he said 'air head' b/c the stupid big head or w/e.
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