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

Unable to cast value to Object?

Asked by 4 years ago
Clock = 15
while true do
    wait(1)
    if Clock > 0 then
    Clock = Clock -1
    script.Parent.Time.Value = Clock
    elseif Clock < 1 then
    Clock = 15
    script.Parent.Time.Value = Clock
for i,v in pairs(script.Parent.PlayerHandle:GetChildren()) do
game:GetService("TeleportService"):Teleport(3480059687,game.Players:GetChildren(v.Name))
print("Teleported")
end
end end

welp

0
at line 11 dark_nineret -25 — 4y
0
On Line 11, you should use ~~~~~~~~~~~~~~~~~ game.Players:FindFirstChild('v.Name') ~~~~~~~~~~~~~~~~~ BuDeep 214 — 4y

Answer this question