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: Click GUI (Help)

Previous Thread :: Next Thread 
sparklyemeralds is online. sparklyemeralds
Joined: 16 Nov 2015
Total Posts: 61
19 Sep 2017 08:26 PM
I help with a script here it is what i have

script.Parent.MouseButton1Down:connect(function()
LocalPlayer.leaderstats.Cookies.Value = LocalPlayer.leaderstats.Cash.Value + 1
end)

i need help fixing it so when you click the text button it gives one "Cookies"



Report Abuse
sparklyemeralds is online. sparklyemeralds
Joined: 16 Nov 2015
Total Posts: 61
19 Sep 2017 08:27 PM


script.Parent.MouseButton1Down:connect(function()
LocalPlayer.leaderstats.Cookies.Value = LocalPlayer.leaderstats.Cookies.Value + 1
end)





Report Abuse
ISeeYourPost is not online. ISeeYourPost
Joined: 10 Jun 2013
Total Posts: 1815
19 Sep 2017 08:28 PM
why did you repost when we told you what to do
its in line 2, you put Cash.value instead of Cookies.Value
Report Abuse
ExplodeLikeAVolcano is not online. ExplodeLikeAVolcano
Joined: 02 Nov 2013
Total Posts: 12146
19 Sep 2017 08:28 PM
Are you identifying the player?


Report Abuse
sparklyemeralds is online. sparklyemeralds
Joined: 16 Nov 2015
Total Posts: 61
19 Sep 2017 08:28 PM
actually thats the one i need help on!


Report Abuse
twinqle is online. twinqle
Joined: 23 Nov 2016
Total Posts: 1613
19 Sep 2017 08:32 PM
if you never defined localplayer then eh

make an argument in the function as LocalPlayer then try


you've been twinqled
Report Abuse
Antheer is not online. Antheer
Joined: 20 Apr 2012
Total Posts: 366
19 Sep 2017 09:38 PM
local LocalPlayer = game.Players.LocalPlayer


Report Abuse
EagleFireClaw is not online. EagleFireClaw
Joined: 27 Dec 2014
Total Posts: 498
19 Sep 2017 09:39 PM
script.Parent.MouseButton1Down:Connect(function()
game.Players.LocalPlayer.leaderstats.Cookies.Value = game.Players.LocalPlayer.leaderstats.Cookies.Value + 1
end)


roblox.Forum["Let's Make A Deal"]:ClearAllChildren()
Report Abuse
Lua_Stellar is online. Lua_Stellar
Joined: 18 Feb 2017
Total Posts: 4
19 Sep 2017 09:41 PM
You need to identify the player such as

local player = game.Players.LocalPlayer

Or you can do

script.Parent.MouseButton1Down:connect(function()
game.PlayersLocalPlayer.leaderstats.Cookies.Value = game.PlayersLocalPlayer.leaderstats.Cash.Value + 1
end)
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