#can someone fix this?

9 messages · Page 1 of 1 (latest)

junior dove
#

local player = game.Players.LocalPlayer
local rcg = math.random(1,100)

script.Parent.ClickDetector.MouseButton1Click:Connect(function()
player.leaderstats.pees.Value = player.leaderstats.pees.Value + rcg

end)

deep furnace
#

is this in a local script

#

cus localplayer only works there

#

also with that script the rcg will always be the same everytime you click

junior dove
timber oyster
#

Also you should be using a server script to change leaderstats

#

Click detectors should return the player that clicked it

junior dove
#

idk what to do...