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

i want to make a part local make it change a players leaderstats locally and disappear locally. How?

Asked by 3 years ago

this is in a normal script

local part = Instance.new("Part")
part.Parent = workspace

part.Touched:Connect(function(hit)
if hit:FindFirstChild("Humanoid") then
part:Destroy()
hit:FindFirstChild("leaderstats").Stars.Value = hit:FindFirstChild("leaderstats").Stars.Value+1
end)

it destroys globally..

1 answer

Log in to vote
1
Answered by 3 years ago

To make changes locally simply put that code into a local script

0
i cant chnage learestats in a local script tho and remote events fire to the server so it gives everyone stats. peytonallen920 66 — 3y
Ad

Answer this question