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

Not Teleporting when time waited?

Asked by 5 years ago

So in a nutshell the code that warps all players isn't working when the timers done. here is the error script part:

if a >= 30 then
            a = 0
            Timer.Text = "Start!"
            Playing = true
            for i, player in ipairs(game.Players:GetChildren()) do
                player.Character.HumanoidRootPart.CFrame = target
                GunClone.Parent = player.BackPack

            end
        end

and the error message says: ServerScriptService.Teleport:19: bad argument #3 to 'CFrame' (CFrame expected, got Object)

0
Wait I may have some solutions with trial and error MarkHasReset 77 — 5y
0
If your problem was solved then update your title to contain "[SOLVED]". It marks the question as answered and will let others know you are no longer in need of assistance. User#19524 175 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

Nevermind I figured it out target needed to be target.Cframe THANKS MYSELF!

0
xd User#23365 30 — 5y
Ad

Answer this question