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

Why doesn't the part trigger when player has touched it?

Asked by
hopup 15
5 years ago
Edited 5 years ago
local model = game.Workspace.Part

game.Players.PlayerAdded:connect(function(plr)

model.Touched:Connect(function(hit)
    if plr:GetRankInGroup(3611738) == 10 then
        while wait(5) do
            plr.leaderstats["Points"].Value = plr.leaderstats["Points"].Value + 1
        end
end
end)
end)

Answer this question