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 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 Tags: roblox scripts, The Survival Game script Functions: speed modifier, infinite stamina, auto pickup, teleports - The Survival Game script pastebin. This separation creates the best player experience as you’ll soon learn. You can create a massive world by separating them into separate places. Local part = script.Parent - The part that is being touchedįunction bob(hit) - Run a function named bob when it is touched. Posted on NovemPosted in roblox Learning how to teleport in Roblox scripting is great for those with large game worlds. 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 |