I want my leaderstats that is a string value to go from "lobby" to "1", but it wont work, i have no errors please help!

local player = game.Players.LocalPlayer
script.Parent.Touched:connect(function(hit) 
 if hit.Parent:FindFirstChild('Humanoid') then 
  hit.Parent.Head.CFrame = CFrame.new(122, 245.603, -230)
	player.leaderstats.level.Value = "1"
	
 end
end) 

1 comment

0

You are changing the leaderstats on the client side which will not replicate. Use remote events / functions.