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

How can i make a teleporting block where you click on it, it then teleports you to another block ?

Well the title says it all

1 answer

You can either use ClickDetectors which is the easy way or create a script that checks if the player has clicked on the block, which is a bit more complicated.

Please keep in mind that this isn't a request site, I'm not going to script it for you but I'll explain how you can create this.

First off, you should read up on how ClickDetectors work here and you can understand how you can utilize it to make the script.

To create this, just group two parts (I prefer grouping since it's more organized) and then add a script to the group and when the player clicks the part, move their character to the position of the second part.

This can be done like so: (I typed this out on here, but I'm certain it should work)

local Block1 = script.Parent['Block1']
local Block2 = script.Parent['Block2']

Block1.ClickDetector.MouseClick:Connect(function(player)
	player.Character:MoveTo(Block2.Position)
end)

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