|
| 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 |
|
|
|
| 19 Sep 2017 08:27 PM |
script.Parent.MouseButton1Down:connect(function() LocalPlayer.leaderstats.Cookies.Value = LocalPlayer.leaderstats.Cookies.Value + 1 end)
|
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 19 Sep 2017 08:28 PM |
Are you identifying the player?
|
|
|
| Report Abuse |
|
|
|
| 19 Sep 2017 08:28 PM |
actually thats the one i need help on!
|
|
|
| Report Abuse |
|
|
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
|
  |
| Joined: 20 Apr 2012 |
| Total Posts: 366 |
|
|
| 19 Sep 2017 09:38 PM |
local LocalPlayer = game.Players.LocalPlayer
|
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|