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

Teleporting brick keeps teleporting me on The roof?

I made a teleport brick that is suppost to teleport you into a room but instead it teleports you onto the roof. here's the script:

local Teleport = "teleporter2"
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)
	hit.parent:moveTo(Pos.Position) 
wait(1)
script.Parent.Locked = false script.Parent.Parent:FindFirstChild(Teleport).Locked = false
	    end
	       end
	script.Parent.Touched:connect(Touch)

1 answer

✓ Accepted answer

i think its because you have way too little space to teleport you in. im the the best at scripting so if that doesnt help use one from the free roblox libary and they should work fine

1 comment

0

that worked, thanks for helping me.

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