Roblox Scripting Tutorial: Teleporters

Channel:
Subscribers:
2,110
Published on ● Video Link: https://www.youtube.com/watch?v=V9kg5cDDEGM



Category:
Tutorial
Duration: 12:51
2,559 views
24


In this video, we will obviously be learning how to make teleporters.

Script:
local tele = script.Parent
local des = script.Parent.Parent.Tele2 OR Tele1
local e = script.Parent.Enabled
local e2 = des.Enabled

function onTouched(p)
if e.Value == true then
e.Value = false
e2.Value = false
if p.Parent:findFirstChild("Humanoid") ~= nil then
local player = game.Players:findFirstChild(p.Parent.Name)
player.Character:MoveTo(des.Position)
end
wait(1)
e.Value = true
e2.Value = true
end
end

tele.Touched:connect(onTouched)

Be sure to follow Laura and I on Twitter after rating, commenting, and subscribing!
Me :https://twitter.com/Rrrrry2468
Laura: https://twitter.com/lauraperry123







Tags:
Rrrrry123
Rrrrry2468
Twitter
Laura
Ryan
Block
Brick
Roblox
Scripting
Script
Lua
Tutorial
Help
How
To
Teleport
Teleporters
Teles
Tele
MoveTo
Parent