Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do you make a Teleporter Pad from one place in another in the same game?

Asked by 8 years ago

I want to try and make an Orbital Elevator from Halo, so I wanted to use Teleporter Pads to teleport you from the planet's surface to a space station. So I looked up a tutorial made about a week ago, so it's recent, and I did what it said, and copied the script and everything, but it didn't work. I tried again with something smaller in mind, still no sucess. Then I found this group, so I thought, "Maybe these guys can help me." So, mind helping out a fellow player and builder?

0
Also, I'm a noob to scripting and building... john1179876 0 — 8y
0
I could make a youtube tut about it. Check these tuts: https://www.youtube.com/channel/UCd6NwFz8dX8mXihBXsrpRAQ FiredDusk 1466 — 8y

1 answer

Log in to vote
0
Answered by 8 years ago

To teleport a player, you'll need to change a players position a player was linked by weld, so if u simply change a players; position, you may kill him to solve this method, it is better to change a players' CFrame

so when should a player teleported? it is recommended to ask a player to touch a part to teleport. so the concept is like: after a player touch a teleporter,he will be teleported to that position. here is the script:

function OnTouched(hit)
    if hit.Parent:FindFirstChild("Humanoid") then -- check whether the object has humanoid ,i.e. a "living thing"
        hit.Parent.Torso.CFrame=CFrame.new(--[[input the position x,y and z]])
    end
end

script.Parent.Touched:connect(OnTouched)--fire the function if the parent of the script is touched
Ad

Answer this question