Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How come my leaderstats wont chage? (read description)

Asked by 5 years ago

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) 
0
You are changing the leaderstats on the client side which will not replicate. Use remote events / functions. User#5423 17 — 5y

Answer this question