Ad
Log in to vote
0

Help with teleport torso to part?

Asked by
FiredDusk 1426
1 year ago

Right when I touch the part to get tp'ed it waits like 2 secs to tp me.. I want it right away.

Admins = {
"Player1",
}

script.Parent.Touched:connect(function(hit)
    for i,v in pairs(Admins) do
        if hit.Parent.Name == v then
            hit.Parent:WaitForChild("Torso").CFrame = script.Parent.Parent.TpedTo.CFrame * CFrame.new(0,5,0)
        end
    end
end)


0
add a wait() ? StoIid 354 — 1y

Hi.

Looks like you're using an ad blocker.

That's fine...

No, it really is.

Just, I mean, we put a lot of work into this site, you know?

It would be really really appreciated if you would turn off your ad blocker for our website...

We tried really hard to make our ads as unobtrusive as possible.

If you really hate ads, would you consider a $2 donation via Patreon?

Here's the link.

We love you. We hope you love us too.

.

..

...

Now back to your regularly scheduled Scripting Helpers....

...

..

.

1 answer

Log in to vote
2
Answered by
StoIid 354
1 year ago

Try adding a wait() right under for i,v in pairs(Admins) do

for i,v in pairs(Admins) do
wait()
0
+2 rep :) FiredDusk 1426 — 1y
Ad

Answer this question



Ad