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
6 years ago
Edited 6 years ago
01local model = game.Workspace.Part
02 
03game.Players.PlayerAdded:connect(function(plr)
04 
05model.Touched:Connect(function(hit)
06    if plr:GetRankInGroup(3611738) == 10 then
07        while wait(5) do
08            plr.leaderstats["Points"].Value = plr.leaderstats["Points"].Value + 1
09        end
10end
11end)
12end)

Answer this question