How To Make A Teleporter In Roblox

Поделиться
HTML-код
  • Опубликовано: 22 дек 2024

Комментарии • 673

  • @lgoldblox4983
    @lgoldblox4983 2 года назад +551

    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)

    • @epikpolar
      @epikpolar 2 года назад +20

      omg i thought i was going to type the whole thing out tysm

    • @barbells8496
      @barbells8496 2 года назад +39

      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

    • @lgoldblox4983
      @lgoldblox4983 2 года назад +4

      @@barbells8496 thanks

    • @DarrelTheDumb
      @DarrelTheDumb 2 года назад +6

      this guy is a legend he gave us the code with no context

    • @beckett8400
      @beckett8400 2 года назад

      thx

  • @tristan_davies10
    @tristan_davies10 Год назад +64

    -- 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

  • @Shantaigh
    @Shantaigh 2 года назад +7

    How do I make it so when you stand on the pad you can teleport on different pads randomly

    • @VidaIndustries
      @VidaIndustries Год назад

      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)

  • @just_a_clown790
    @just_a_clown790 Год назад +3

    thank you for helping me this works perfectly and you just earned a sub

  • @PandasPlayPlace
    @PandasPlayPlace Год назад +2

    I remember me watching this video for my first ever game😢I could not find you for 1 year😢😢

  • @Sillycheeser
    @Sillycheeser 2 года назад +5

    For some reason the output keeps saying
    Touched is not a valid member of Model “Workspace.teleport1”. Any idea how to fix this?

    • @ben252
      @ben252 2 года назад +2

      can you send what you wrote so i can see what you did wrong

    • @LuvVaughn
      @LuvVaughn 2 года назад +1

      same for me

  • @keremcinarrinyedekgi
    @keremcinarrinyedekgi Год назад +1

    I have never saw a better dev teacher than you

  • @Roxy0.1
    @Roxy0.1 2 месяца назад +1

    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

  • @gamingarc1067
    @gamingarc1067 2 года назад +20

    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

  • @Matthew-nd8uo
    @Matthew-nd8uo 2 года назад +3

    I'm really new to this, how do u get the little dots in-between local and pad?

    • @ecliiipsssse
      @ecliiipsssse 2 года назад

      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

    • @EDGEWORTH-reel
      @EDGEWORTH-reel 2 года назад

      Mine didn't work lol

  • @aphoroplayer
    @aphoroplayer Год назад +2

    Thank you sooo much, later, my game will be famous because you!!!!

  • @akiprox7
    @akiprox7 2 года назад +1

    Tysm! 593th like and a new sub!

  • @lekopoy
    @lekopoy Год назад +1

    why don't you link Alvinblox's channel in the description??

  • @alexjbgaming
    @alexjbgaming Год назад

    finishing later i stopped at 5:06 also very good video!

  • @realpatrick
    @realpatrick Год назад

    i subbed this was more helpful than other 9 yr olds videos

  • @plasmi8034
    @plasmi8034 2 года назад +5

    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)"?

    • @gl.spotss
      @gl.spotss 5 месяцев назад

      nah see i did all the steps and it didn't work for me either

    • @MoreBobTheSecond
      @MoreBobTheSecond 2 месяца назад +1

      Same

  • @Spudlord-u6i
    @Spudlord-u6i День назад

    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

  • @meothe
    @meothe 3 года назад +4

    *Tech insider is so informative :)*

    • @positroniic
      @positroniic 2 года назад

      idk if you being sarcastic or not but its alvinblox

    • @InkiiTDEnjoyer
      @InkiiTDEnjoyer 15 дней назад

      ​@@positroniicidk if you being sarcastic but thats insider tech

    • @positroniic
      @positroniic 14 дней назад

      @@InkiiTDEnjoyer kek

  • @thefunnyman3625
    @thefunnyman3625 2 года назад +1

    mine doesnt work and just says Player is not a valid memberof DataModel "Game"

  • @bencamp735
    @bencamp735 Год назад

    Finally one that works! Thankks!

  • @blobsyxd
    @blobsyxd 27 дней назад

    tysm! this helped alot in the new game I am working on!

  • @Robert5185
    @Robert5185 Год назад

    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

  • @insidious_indigo
    @insidious_indigo 3 года назад +39

    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 🙏🏽

    • @gone6442
      @gone6442 3 года назад +2

      I love how tech insider makes these videos

    • @CasperTheRamKnight
      @CasperTheRamKnight 2 года назад

      i love ur profile picture

    • @jacksondrabble9369
      @jacksondrabble9369 Год назад

      @@gone6442 they didn’t, they stole it from AlvinBlox

  • @kirpich13
    @kirpich13 2 года назад +1

    Thank you very much, the best tutorial ive ever seen!

  • @yrburd
    @yrburd 2 года назад +1

    How to do this but instead of touching a pad, you click a part?

  • @legityt4110
    @legityt4110 Год назад +1

    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

  • @DannyBonk
    @DannyBonk 2 года назад +3

    I liked that outro It was very good “now our pads are working” fade to black with music in the background epic

  • @Just_Rosario
    @Just_Rosario Год назад

    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

  • @YourName_Playz
    @YourName_Playz Год назад

    btw this worked so well u just gained a sub

  • @ibeatles232
    @ibeatles232 2 года назад +1

    british people saying brackets is so satisfying to me

  • @february4206
    @february4206 2 года назад

    "Oh wow this is actually really helpful! I wonder who made it- TECH INSIDER?"
    Seriously though, this is really helpful for new devs. Thanks!

  • @fabioballotta9553
    @fabioballotta9553 Год назад +1

    Ty bro it works

  • @M6DUDE69
    @M6DUDE69 Год назад

    This guy taught me how to use output so I can finally script without failing, thanks alot

    • @Dhaby.
      @Dhaby. 10 месяцев назад

      hey uh what did he type after he typed the first ''local'' i dont see it

  • @Foxified24
    @Foxified24 6 месяцев назад

    Oddly enough, this helped me create hitboxes for my fight mechanics, thanks!

  • @Gameboy_X3
    @Gameboy_X3 8 месяцев назад

    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.

  • @cybersworld
    @cybersworld 3 года назад +9

    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. :)

    • @JChillPlays
      @JChillPlays 10 месяцев назад

      Bro this is the hardest and longest thing to do bro I spent my hole day doing that:(

  • @YourName_Playz
    @YourName_Playz Год назад

    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?

  • @abdlididzchannel3461
    @abdlididzchannel3461 Год назад +1

    "HumanoidRootPart is not a valid member of Player" can anyone help me why is this appearing in my output?

  • @karfunkl.
    @karfunkl. 2 года назад

    i didnt expect alvinblox in tech insider

  • @babul9089
    @babul9089 2 года назад

    My guy got invited to Tech Insider. It shows how good he is in scripting.

  • @TTT0ASTTT
    @TTT0ASTTT Год назад +1

    It worked! But if your making a game where you morph into something, wouldn't reccomend. Teloports dont work with morphs on

  • @KadeMccarroll
    @KadeMccarroll 11 месяцев назад

    Thank you, this really helped me.

  • @KrytheOT
    @KrytheOT 2 года назад +1

    Bro, Your so cool, i did it!

  • @FE4RAMZ
    @FE4RAMZ 2 года назад +1

    these teleport are better than making a map voter IM using em in my game tysm

  • @HayleeMurdoch
    @HayleeMurdoch 5 месяцев назад

    Quick question how do i debounce i am teleporting through my map 😢

  • @deemamd6991
    @deemamd6991 Год назад

    It’s says pad2 is not a valid number of workspaces what should I do help 🆘🆘

  • @TheCrankSpiderNinja
    @TheCrankSpiderNinja Год назад

    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

  • @danzgamz5903
    @danzgamz5903 Год назад

    TYSM I needed this to make my game :)

  • @pinkishhaa
    @pinkishhaa 3 месяца назад

    You can also add more, do the same but name the extra Pad3 and Pad4 etc.

  • @xeno8630
    @xeno8630 2 года назад +1

    thanks for the help, but how would i be able to have multiple pads, it wouldnt work if all the pads are in workspace

    • @Idontknowwhattoputmynameas
      @Idontknowwhattoputmynameas 2 года назад

      rename them then change the scripts to the name that you named them

    • @Idontknowwhattoputmynameas
      @Idontknowwhattoputmynameas 2 года назад

      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)

    • @ihaventforgotten.3332
      @ihaventforgotten.3332 2 года назад

      @@Idontknowwhattoputmynameas he meant how to have one pad connect to multiple

  • @Sgamer1Yt
    @Sgamer1Yt 8 месяцев назад

    Yo Tysm It Worked :)

  • @Magicvr77
    @Magicvr77 Год назад

    tysm man this ls going to be so good for my game!!

  • @DilexDotCom
    @DilexDotCom Месяц назад

    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

  • @lorena1329
    @lorena1329 11 месяцев назад

    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

  • @Jul-Plays
    @Jul-Plays 8 месяцев назад

    Helped Much thanks!

  • @GGtowel
    @GGtowel 2 года назад

    I haven't seen you active for a long time

  • @weepingghoul6155
    @weepingghoul6155 2 года назад

    A very underrated video!

  • @coffeetea786
    @coffeetea786 Год назад +1

    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?

    • @Inagalaxyfarfaraway.-er7xk
      @Inagalaxyfarfaraway.-er7xk Год назад

      maybe the morphs have different parts than the character so it might mess up the code

    • @coffeetea786
      @coffeetea786 Год назад

      @@Inagalaxyfarfaraway.-er7xk I put all my morphs into the UpperTorso part, other than that everything is the same

  • @PinapplCharlie
    @PinapplCharlie Год назад

    When I put in the HumanoidRootPart it gave me a red line.Tell me whats wrong pls

  • @pixiied
    @pixiied 2 года назад

    how did u put the arrow thing at the fourth one

  • @Sidhant_Gamer71
    @Sidhant_Gamer71 Год назад +1

    Hello Alvin !

  • @ivanopalify
    @ivanopalify 2 года назад +1

    OMG THANK YOU SO MUCH YOU ARE THE BEST!!!!!!!!!!!!!!!!

  • @TheManIGuess
    @TheManIGuess Год назад

    in my game it wont let me insert a boolvalue into startercharacterscripts, not sure why.

  • @kyo-saku
    @kyo-saku 2 года назад

    it comes up in the error players is not a valid member of datamodel "game"

  • @Fraz3r_
    @Fraz3r_ Год назад

    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

  • @INeedSleep...39
    @INeedSleep...39 6 месяцев назад

    My guy is a legend

  • @oskar000
    @oskar000 2 года назад

    AMAZING, I am starting to make a Backrooms Roleplay game and it works, thank you sooo much!

  • @akiprox7
    @akiprox7 2 года назад +4

    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

  • @alanalhrashi
    @alanalhrashi 2 года назад

    it works but everytime my character teleports i fall to the ground, how do i fix this?

  • @raye6624
    @raye6624 Год назад

    How do i add the little dots u did in the code? The black ones.

  • @Whatswrongwithmybrain
    @Whatswrongwithmybrain 10 месяцев назад

    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?

  • @salinithomas4867
    @salinithomas4867 2 месяца назад

    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

  • @thespacenerd432
    @thespacenerd432 8 месяцев назад

    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

  • @3azi0
    @3azi0 3 года назад +1

    How do I select them in the explorer?

  • @littlefoot5013
    @littlefoot5013 4 месяца назад

    I'm having an issue where sometimes it will trigger the teleporter even though I'm not standing on it. Why is this happening?

  • @namitadash7850
    @namitadash7850 Год назад +2

    Dude its not working even after i fixed the error

  • @WizardOfPoon
    @WizardOfPoon Год назад

    it says 'players is not a valid member of DataModel "game"'. i followed all the instructions so whats wrong?

  • @CreaturesCanada
    @CreaturesCanada Год назад +1

    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.

  • @eliitz
    @eliitz 2 года назад

    Tysm!! It Worked!!! :D

  • @iquit527
    @iquit527 2 года назад +2

    Pov: your looking in the comments to find the script

  • @goodusername3359
    @goodusername3359 2 года назад

    what If I want to tp a single player inside of the main place without any bricks, just by code.

  • @Latepoo
    @Latepoo 2 года назад

    damn alvin got hired by tech insider

  • @NolanJailBreak
    @NolanJailBreak Год назад

    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

  • @gooper5263
    @gooper5263 Год назад

    It wont let me add BoolValue to starter character scripts... any ideas why?

  • @TheManInGreenRBX
    @TheManInGreenRBX 2 года назад

    TYSM U EARNED A SUB

  • @littlefoot5013
    @littlefoot5013 4 месяца назад

    Does their size matter, because I may have made them different sizes.

  • @nianlim5104
    @nianlim5104 2 месяца назад

    Thanks dude!

  • @Gameboiyyy455
    @Gameboiyyy455 2 месяца назад

    hey its says that the function command colum is to close or something can someone help

  • @Shifty_fl
    @Shifty_fl Год назад

    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

  • @The_Suby
    @The_Suby Год назад

    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

  • @HayleeMurdoch
    @HayleeMurdoch 5 месяцев назад

    What are Baseplates For?

  • @doge2131
    @doge2131 2 года назад

    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.

  • @dzamadzama_llama4536
    @dzamadzama_llama4536 Год назад +86

    Jesus loves y'all

    • @luver4u
      @luver4u 8 месяцев назад +12

      stop forcing your beliefs on others.

    • @Bijimix
      @Bijimix 8 месяцев назад +2

      🙏🏻

    • @botwithapot
      @botwithapot 7 месяцев назад +3

      Hedoesn't if you don't believe him

    • @wMelted_che3se
      @wMelted_che3se 7 месяцев назад +5

      ​​@@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.)

    • @wMelted_che3se
      @wMelted_che3se 7 месяцев назад +2

      ​@@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.)

  • @thatidiotoverthere6311
    @thatidiotoverthere6311 2 года назад

    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?

  • @cornyholer
    @cornyholer Год назад +1

    It says it’s not a valid member of bool value

  • @MoonHusk700
    @MoonHusk700 8 месяцев назад

    Worked OK thanks dude

  • @megannii_
    @megannii_ 2 года назад

    tysm this will help me alot building things

  • @ostuffOfficial
    @ostuffOfficial 2 месяца назад

    How could I do it if they are in a vehicle?

  • @shallow6542
    @shallow6542 2 года назад

    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"

    • @guan-aoma4902
      @guan-aoma4902 2 года назад

      make sure its 'game' instead of 'Game', the first letter of game needs to be lowercase.

  • @callmehalyvia335
    @callmehalyvia335 2 года назад

    For me it says that the part is not a valid member part of workspace.s so how do I fix that?