I would like to create an obby and I have a script for the block that when you touch it your leaderstat increases whenever the player touches the brick! It is not working here's the script!
Part = script.Parent
name = script.Parent.Name
debounce = false
plr = game:WaitForChild('Players')
ok = plr.LocalPlayer
ls = ok.leaderstats.Stage
Part.Touched:Connect(function(Hit)
if Hit.Parent:FindFirstChild("Humanoid") and game:GetService("Players")[Hit.Parent.Name] then
debounce = true
ls.Value = ls.Value +1
end
end)

3 comments
server script? or local?
@incapaz, this must be a normal script but must be a LocalScript at the same time... lets consider its a Normal Script
@incapaz, this must be a normal script but must be a LocalScript at the same time... lets consider its a Normal Script