Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

[Solved] How to fix player teleport on ceiling instead of inside?

I have 2 parts that teleport the player to other parts, i have this script in both of the tp parts,

local Teleport = "roomEntrance" -- Part where the player teleports to, CanCollide is off
function Touch(hit)
	if script.Parent.Locked == false and script.Parent.Parent:findFirstChild(Teleport).Locked == false then script.Parent.Locked = true script.Parent.Parent:findFirstChild(Teleport).Locked = true
	local Pos = script.Parent.Parent:findFirstChild(Teleport) --Gets the Part to teleport to.
		hit.Parent:moveTo(Pos.Position) wait(1) script.Parent.Locked = false script.Parent.Parent:findFirstChild(Teleport).Locked = false end end --Takes you there and Ends the Function.
script.Parent.Touched:connect(Touch)

Theres a problem where when the player teleports, it teleports above the ceiling instead of inside the room. Help is appreciated!

1 comment

0

use code blocks plesae

1 answer

✓ Accepted answer

Maybe try either:

1. Disabling CanCollide on the ceiling, either permanently, or temporarily using scripts, or...

2. Raising the roof.

The last resort would be removing the roof altogether, permanently OR temporarily.

Hope this helped!

-Maxis_s

1 comment

0

Thank you!

This discussion is preserved as it was. New answers, comments, and votes are closed.