How to do this tp but istead of teleporting by hiting other block using a command

local Pad2 = game.Workspace.Pad1

script.Parent.Touched:Connect(function(touchPart)
	if touchPart and touchPart.Parent and touchPart.Parent.Humanoid and touchPart.Parent.currentlyTeleporting.Value == false then
		local Character = touchPart.Parent
		local teleportLocation = CFrame.new(Pad2.CFrame.X, Pad2.CFrame.Y + 5, Pad2.CFrame.Z)
		Character:SetPrimaryPartCFrame(teleportLocation)

		local teleportingValue = Character.currentlyTeleporting
		teleportingValue.Value = true
		wait(3)
		teleportingValue.Value = false
	end
end)

Hmmm… maybe shorten the title and expand the description, I’m not sure what you mean by this.

2 Likes

Also…

If you’re referring to Pad1 as Pad2, it might be easier to just call it Pad1.

Alright. I think I have something.

Change this to:

local Command = “/tp”
1 Like

@peter
Don’t forget the “”s! So, do local Command = “/tp”

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.