Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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

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

1 comment

0

i cant chnage learestats in a local script tho and remote events fire to the server so it gives everyone stats.

This discussion is preserved as it was. New answers, comments, and votes are closed.