Im Having trouble with the way it highlights code. So instead im going to link my description of my problem:
https://docs.google.com/document/d/1ajzc8M4CDA6IMNvO0GX_Q2uIusjU8u0dtFr-kX39zs8/edit?usp=sharing
Thanks in advance.
Im Having trouble with the way it highlights code. So instead im going to link my description of my problem:
https://docs.google.com/document/d/1ajzc8M4CDA6IMNvO0GX_Q2uIusjU8u0dtFr-kX39zs8/edit?usp=sharing
Thanks in advance.
OP, I think the problem you have is the unnessacary use of "local"
Try this in the first script:
script.Parent.ClickDetector.MouseClick:Connect(function(player)
local PlayerBPs = player.leaderstats.BP
script.Parent.Text = (PlayerBPs.Value + 1)
end)
I removed the unneeded Locals
Basically, only use Local if you are initiating a varible or function
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
thanks, welp that fixed it!