![]() I tried to explain it the best I can with a quick summary. I would be surprised if you do, teleporting is pretty advanced. Part.Touched:connect(bob) - connects the function with the Touched event of the part, so whenever the part is touched, the function named bob runs. = CFrame.new(whatever brick you want to teleport to.Position+Vector3.new(0,2,0) - Teleports player to whatever brick you want plus 2 studs to make it so that the player goes on top of that part If h then - Checks to verify if the part being touched is part of a real user or not How to Remove or Customize Input Type Date Calendar Icon. ![]() Local h = hit.Parent:findFirstChild("Humanoid") - Find a Humanoid object in the parent of the part that touched it to verify that it is a real user Roblox Teleportation How To Teleport A Player To A Specific Part Using Localscript Latest posts. Local part = script.Parent - The part that is being touchedįunction bob(hit) - Run a function named bob when it is touched. Doing so, here is the code (I will explain it as I go along, put this inside of the part): First, write the teleport script, then add the math.random and the check.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |