-- im trying to make a system s the player gains time 1 by 1 but it adds alot on
-- 1 second
heres my script :
script.Parent.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("ForceField") then
hit.Parent.ForceField:Destroy()
end
-- this is on the floor where your supposed to get time
while true do
wait(1)
local plr = game.Players:GetPlayerFromCharacter(hit.Parent)
plr.leaderstats.Time.Value = plr.leaderstats.Time.Value +1
break
end
end)
COMMUNITY QUESTION
Help on adding time to the player?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
if anyone can help me, please do. Im trying to make my game like the system in steal time from others & be the best
Is there a certain error this is sending the Character or Forcefield could be nil?
i dont know.