good day ,
I was trying to make a game in roblox but every youtube channel or site has a different way and i am getting crazy . please help here is the problem.
i am trying to make a game that when u click on a Rock i get rocks to sell them in the store but for some reason i cant get it to give me any rocks here is the script i am using
local part = game.Workspace.giveRock
local click = part.ClickDetector
click.MouseClick:Connect(function()
game.Players.LocalPlayer.leaderstats.Rocks.Value = game.Players.LocalPlayer.leaderstats.Rocks.Value + 2
end)
thank you in advanced 