local Pad = game.Workspace.Pad2 script.Parent.Touched:Connect(function(hit) local Player = game.Players:GetPlayerFromCharacter(hit.Parent) if Player then local CurrentlyTeleporting = Player.Character:FindFirstChild("CurrentlyTeleporting") if not CurrentlyTeleporting then return end
if not CurrentlyTeleporting.Value then CurrentlyTeleporting.Value = true Player.Character.HumanoidRootPart.CFrame = Pad.CFrame + Vector3.new(0,5,0) wait(3) CurrentlyTeleporting.Value = false end end end)
he made a mistake in line 11 - Player.Character.HumanRootPart.CFrame = Pad.CFrame + Vector3.new(0,5,0), its suppose to be HumanoidRootPart not HumanRootPart
-- make two parts name one of them Pad1 and name the other Pad2 local Pad = game.Workspace.Pad2 script.Parent.Touched:Connect(function(hit) local Player = game.Players:GetPlayerFromCharacter(hit.Parent) if Player then local CurrentlyTeleporting = Player.Character:FindFirstChild("CurrentlyTeleporting") if not CurrentlyTeleporting then return end -- make a boolvalue and name it CurrentlyTeleporting if not CurrentlyTeleporting.Value then CurrentlyTeleporting.Value = true Player.Character.HumanoidRootPart.CFrame = Pad.CFrame + Vector3.new(0,5,0) wait(3) CurrentlyTeleporting.Value = false end end end) -- yes I liked my own comment because everyone does that
Make ur teleporters as a model then copy the model and put the pad u want to teleport u to different pads then move the second pan somewhere else, (If pad 1 is supposed to teleport u to pad 2 put multiple pad ones in the exact same place and pad twos in the random places, idk if it works btw)
How do i make a teleporter hitbox? I want it so whenever i press c it spawns a hitbox in front of me and teleports whoever touches it ChatGPT can't seem to do it
Thank you this was VERY helpful as I needed a teleported, and in case anyone wants to know for some reason if you stop after testing the red (first teleporter) it makes a good one way teleporter
I think it's just part of his setup for roblox studio, as I don't have those either but the teleporter works for me, so yours should work without the dots
Thank you for this, I’m making a game rn and everything just seems so confusing even some of the free assets. The way you explain this video makes it easy to follow and learn from it thank you 🙏🏽
Does it work if i have a custom character as in i custom rigged the player with a humanoid because im making a trollge game with a custom character and its not teleporting it. also the console says "Unable to assign property CFrame. CoordinateFrame expected got Vector 3." I'm stuck
Do you know how to fix this one glitch? Im making a roleplay game and when someone becomes a morph and touches the teleporter, the legs would disappear and wont teleport the player
To be completely honest I had a feeling that I would have a bug and it would take hours to fix, but somehow that didn't happen. That's some pretty good code, although you would have to change the script every new teleporter, its better than what other tutorials would give out.
Thanks! This helped a TON! Ive watched a bunch of videos with scripts that didnt function at all and this is the first time ive been successful with coding. Im glad the video is easy to follow too. :)
im making a clicking simulator with worlds and i designed a portal with alot of parts in them. would i put in the script in the part where the player touched the portal to be teleported?
for instance local Pad = game.Workspace.namehere script.Parent.Touched:Connect(function(hit) local Player = game.Players:GetPlayerFromCharacter(hit.Parent) if Player then local CurrentlyTeleporting = Player.Character:FindFirstChild("CurrentlyTeleporting") if not CurrentlyTeleporting then return end
if not CurrentlyTeleporting.Value then CurrentlyTeleporting.Value = true Player.Character.HumanoidRootPart.CFrame = Pad.CFrame + Vector3.new(0,5,0) wait(3) CurrentlyTeleporting.Value = false end end end)
Thank you for the tutorial, it's really helpful. I just have one problem though... My teleporters don't work with morphs. My teleporter pads have text on them - not decals, like SurfaceGUI - and all my morphs are in a ball shape. Have I done anything wrong?
script.Parent:Touched(Connect(function(hit) if hit.Parent:FindFirstChild("Humanoid") then local character = hit.Parent local HRP = character:WaitForChild("HumanoidRootPart") HRP.CFrame = [your other teleporter].CFrame end) end ebd
I need some help. So i had a mistake in the coding and i fixed it. But when i tried testing after it got stuck on a white screen. Do you know how to fix this?
you can actually make another one with a short script and with proximity prompt, heres the script: script.Parent.ProximityPrompt.Triggered:Connect(function(plr) plr.Character:SetPrimaryPartCFrame(game.Workspace.'your parts name'" end) if this helped out idk
I had made this in another game and it worked great! When I wanted the same thing in another game, I saved the group to roblox, then imported it to my other game, and it did not work. I tried rewriting the script, and no matter what I do, there are no error messages and I am not getting teleported.
@@luver4uhe's not forcing his belief onto others, he's just saying it to bring comfort (especially to Christians, since it brings comfort, if you have faith or believe.)
@@botwithapotJesus loves everyone, being a believer of Christ simply means you love and AGREE to Him being your God. And you are also going to trust Him and follow Him all your life. (but still, if you are a Christian you have to still have faith and repent for your sins.)
Please can you help me with something, after I copied the script into Pad2 and did what you said they both then started teleporting to themselves instead of each other. I tried changing the ‘local Pad = game.Workspace.Pad(number)’ but they still both teleported me to themselves. What do I do?
i have tried this and idk if they updated studio so it doesnt work anymore but in output it keeps saying players is not a valid member of DataModel "Game"
local Pad = game.Workspace.Pad2
script.Parent.Touched:Connect(function(hit)
local Player = game.Players:GetPlayerFromCharacter(hit.Parent)
if Player then
local CurrentlyTeleporting = Player.Character:FindFirstChild("CurrentlyTeleporting")
if not CurrentlyTeleporting then return end
if not CurrentlyTeleporting.Value then
CurrentlyTeleporting.Value = true
Player.Character.HumanoidRootPart.CFrame = Pad.CFrame + Vector3.new(0,5,0)
wait(3)
CurrentlyTeleporting.Value = false
end
end
end)
omg i thought i was going to type the whole thing out tysm
he made a mistake in line 11 - Player.Character.HumanRootPart.CFrame = Pad.CFrame + Vector3.new(0,5,0), its suppose to be HumanoidRootPart not HumanRootPart
@@barbells8496 thanks
this guy is a legend he gave us the code with no context
thx
-- make two parts name one of them Pad1 and name the other Pad2
local Pad = game.Workspace.Pad2
script.Parent.Touched:Connect(function(hit)
local Player = game.Players:GetPlayerFromCharacter(hit.Parent)
if Player then
local CurrentlyTeleporting = Player.Character:FindFirstChild("CurrentlyTeleporting")
if not CurrentlyTeleporting then return end
-- make a boolvalue and name it CurrentlyTeleporting
if not CurrentlyTeleporting.Value then
CurrentlyTeleporting.Value = true
Player.Character.HumanoidRootPart.CFrame = Pad.CFrame + Vector3.new(0,5,0)
wait(3)
CurrentlyTeleporting.Value = false
end
end
end)
-- yes I liked my own comment because everyone does that
thank u so much
thanks a lot
w thnks
How do I make it so when you stand on the pad you can teleport on different pads randomly
Make ur teleporters as a model then copy the model and put the pad u want to teleport u to different pads then move the second pan somewhere else, (If pad 1 is supposed to teleport u to pad 2 put multiple pad ones in the exact same place and pad twos in the random places, idk if it works btw)
thank you for helping me this works perfectly and you just earned a sub
I remember me watching this video for my first ever game😢I could not find you for 1 year😢😢
For some reason the output keeps saying
Touched is not a valid member of Model “Workspace.teleport1”. Any idea how to fix this?
can you send what you wrote so i can see what you did wrong
same for me
I have never saw a better dev teacher than you
How do i make a teleporter hitbox? I want it so whenever i press c it spawns a hitbox in front of me and teleports whoever touches it ChatGPT can't seem to do it
Thank you this was VERY helpful as I needed a teleported, and in case anyone wants to know for some reason if you stop after testing the red (first teleporter) it makes a good one way teleporter
I'm really new to this, how do u get the little dots in-between local and pad?
I think it's just part of his setup for roblox studio, as I don't have those either but the teleporter works for me, so yours should work without the dots
Mine didn't work lol
Thank you sooo much, later, my game will be famous because you!!!!
did it end up going famous
Tysm! 593th like and a new sub!
why don't you link Alvinblox's channel in the description??
finishing later i stopped at 5:06 also very good video!
i subbed this was more helpful than other 9 yr olds videos
i did the exact same script but for some reason my teleporter didnt work, is it because i didnt set it as "(4, 1, 4)"?
nah see i did all the steps and it didn't work for me either
Same
thank you for the help me and my friend are making a game and have no idea how to code so this was a big help
*Tech insider is so informative :)*
idk if you being sarcastic or not but its alvinblox
@@positroniicidk if you being sarcastic but thats insider tech
@@InkiiTDEnjoyer kek
mine doesnt work and just says Player is not a valid memberof DataModel "Game"
Finally one that works! Thankks!
tysm! this helped alot in the new game I am working on!
i GET THIS error IN output: 14:43:52.280 Character is not a valid member of Model "Workspace.Furnished Mansion.Helipack" - Server - Script:1
Thank you for this, I’m making a game rn and everything just seems so confusing even some of the free assets. The way you explain this video makes it easy to follow and learn from it thank you 🙏🏽
I love how tech insider makes these videos
i love ur profile picture
@@gone6442 they didn’t, they stole it from AlvinBlox
Thank you very much, the best tutorial ive ever seen!
How to do this but instead of touching a pad, you click a part?
Does it work if i have a custom character as in i custom rigged the player with a humanoid because im making a trollge game with a custom character and its not teleporting it. also the console says "Unable to assign property CFrame. CoordinateFrame expected got Vector 3." I'm stuck
I liked that outro It was very good “now our pads are working” fade to black with music in the background epic
Do you know how to fix this one glitch? Im making a roleplay game and when someone becomes a morph and touches the teleporter, the legs would disappear and wont teleport the player
btw this worked so well u just gained a sub
british people saying brackets is so satisfying to me
"Oh wow this is actually really helpful! I wonder who made it- TECH INSIDER?"
Seriously though, this is really helpful for new devs. Thanks!
Ty bro it works
This guy taught me how to use output so I can finally script without failing, thanks alot
hey uh what did he type after he typed the first ''local'' i dont see it
Oddly enough, this helped me create hitboxes for my fight mechanics, thanks!
To be completely honest I had a feeling that I would have a bug and it would take hours to fix, but somehow that didn't happen. That's some pretty good code, although you would have to change the script every new teleporter, its better than what other tutorials would give out.
Thanks! This helped a TON! Ive watched a bunch of videos with scripts that didnt function at all and this is the first time ive been successful with coding. Im glad the video is easy to follow too. :)
Bro this is the hardest and longest thing to do bro I spent my hole day doing that:(
im making a clicking simulator with worlds and i designed a portal with alot of parts in them. would i put in the script in the part where the player touched the portal to be teleported?
"HumanoidRootPart is not a valid member of Player" can anyone help me why is this appearing in my output?
i didnt expect alvinblox in tech insider
My guy got invited to Tech Insider. It shows how good he is in scripting.
It worked! But if your making a game where you morph into something, wouldn't reccomend. Teloports dont work with morphs on
Thank you, this really helped me.
Bro, Your so cool, i did it!
these teleport are better than making a map voter IM using em in my game tysm
Quick question how do i debounce i am teleporting through my map 😢
It’s says pad2 is not a valid number of workspaces what should I do help 🆘🆘
please explain what these things do, it feels like I'm mindlessly following along because I don't know what these things do or are for
TYSM I needed this to make my game :)
You can also add more, do the same but name the extra Pad3 and Pad4 etc.
thanks for the help, but how would i be able to have multiple pads, it wouldnt work if all the pads are in workspace
rename them then change the scripts to the name that you named them
for instance
local Pad = game.Workspace.namehere
script.Parent.Touched:Connect(function(hit)
local Player = game.Players:GetPlayerFromCharacter(hit.Parent)
if Player then
local CurrentlyTeleporting = Player.Character:FindFirstChild("CurrentlyTeleporting")
if not CurrentlyTeleporting then return end
if not CurrentlyTeleporting.Value then
CurrentlyTeleporting.Value = true
Player.Character.HumanoidRootPart.CFrame = Pad.CFrame + Vector3.new(0,5,0)
wait(3)
CurrentlyTeleporting.Value = false
end
end
end)
@@Idontknowwhattoputmynameas he meant how to have one pad connect to multiple
Yo Tysm It Worked :)
tysm man this ls going to be so good for my game!!
guys help it says 09:54:40.074 Attempt to set Workspace.Model.UH-1 Huey.Bodykit.AircraftSeat as its own parent - Server - ToolScript:43
this was really helpful but how do i make it so that the player will respawn on the start spawn location and not on the teleport pad
Helped Much thanks!
I haven't seen you active for a long time
A very underrated video!
Thank you for the tutorial, it's really helpful. I just have one problem though... My teleporters don't work with morphs. My teleporter pads have text on them - not decals, like SurfaceGUI - and all my morphs are in a ball shape. Have I done anything wrong?
maybe the morphs have different parts than the character so it might mess up the code
@@Inagalaxyfarfaraway.-er7xk I put all my morphs into the UpperTorso part, other than that everything is the same
When I put in the HumanoidRootPart it gave me a red line.Tell me whats wrong pls
how did u put the arrow thing at the fourth one
Hello Alvin !
OMG THANK YOU SO MUCH YOU ARE THE BEST!!!!!!!!!!!!!!!!
in my game it wont let me insert a boolvalue into startercharacterscripts, not sure why.
it comes up in the error players is not a valid member of datamodel "game"
The text on my script never looks like this or like bold or anything and it doesn’t work it never changed colour either idk how to fix it
My guy is a legend
AMAZING, I am starting to make a Backrooms Roleplay game and it works, thank you sooo much!
script.Parent:Touched(Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
local character = hit.Parent
local HRP = character:WaitForChild("HumanoidRootPart")
HRP.CFrame = [your other teleporter].CFrame
end)
end
ebd
Bro Thanks it finally worked
*end
W thanks
it works but everytime my character teleports i fall to the ground, how do i fix this?
How do i add the little dots u did in the code? The black ones.
I need some help. So i had a mistake in the coding and i fixed it. But when i tried testing after it got stuck on a white screen. Do you know how to fix this?
I am going to make a game so i need a 5 chair when 5 player seat on it they should telepote what is the scritp
you can actually make another one with a short script and with proximity prompt, heres the script:
script.Parent.ProximityPrompt.Triggered:Connect(function(plr)
plr.Character:SetPrimaryPartCFrame(game.Workspace.'your parts name'"
end)
if this helped out idk
How do I select them in the explorer?
I'm having an issue where sometimes it will trigger the teleporter even though I'm not standing on it. Why is this happening?
Dude its not working even after i fixed the error
it says 'players is not a valid member of DataModel "game"'. i followed all the instructions so whats wrong?
I had made this in another game and it worked great! When I wanted the same thing in another game, I saved the group to roblox, then imported it to my other game, and it did not work. I tried rewriting the script, and no matter what I do, there are no error messages and I am not getting teleported.
don't forget about the boolvalue!
it doesnt enter in
@@acrodoesntexist
Tysm!! It Worked!!! :D
Pov: your looking in the comments to find the script
what If I want to tp a single player inside of the main place without any bricks, just by code.
damn alvin got hired by tech insider
thanks this helped and also the fact that you didnt just give us code to copy and paste and acually had us do it and type it
It wont let me add BoolValue to starter character scripts... any ideas why?
TYSM U EARNED A SUB
Does their size matter, because I may have made them different sizes.
Thanks dude!
hey its says that the function command colum is to close or something can someone help
i didnt not understand the script like can you explain each words one by one because i want to know how to works and use it in other thing
502: API Services rejected request with error. Error code: 7 Reason: Studio access to APIs is not allowed. it says that error idk how to fix it
What are Baseplates For?
hello! can you please make a roblox car teleporter, im trying to make a game and your teleporter just teleports the body but not me and the wheels.
Jesus loves y'all
stop forcing your beliefs on others.
🙏🏻
Hedoesn't if you don't believe him
@@luver4uhe's not forcing his belief onto others, he's just saying it to bring comfort (especially to Christians, since it brings comfort, if you have faith or believe.)
@@botwithapotJesus loves everyone, being a believer of Christ simply means you love and AGREE to Him being your God. And you are also going to trust Him and follow Him all your life. (but still, if you are a Christian you have to still have faith and repent for your sins.)
Please can you help me with something, after I copied the script into Pad2 and did what you said they both then started teleporting to themselves instead of each other. I tried changing the ‘local Pad = game.Workspace.Pad(number)’ but they still both teleported me to themselves. What do I do?
It says it’s not a valid member of bool value
Worked OK thanks dude
tysm this will help me alot building things
How could I do it if they are in a vehicle?
i have tried this and idk if they updated studio so it doesnt work anymore but in output it keeps saying
players is not a valid member of DataModel "Game"
make sure its 'game' instead of 'Game', the first letter of game needs to be lowercase.
For me it says that the part is not a valid member part of workspace.s so how do I fix that?