How To Teleport Players In Roblox Studio

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 พ.ย. 2024

ความคิดเห็น • 45

  • @DriedLivers
    @DriedLivers ปีที่แล้ว +6

    Please make more tutorials!! You make them so simple and easy to follow!!

  • @Mirhan_2016
    @Mirhan_2016 5 หลายเดือนก่อน +2

    -- Replace these values with the position where you want to teleport the player
    local destinationPosition = Vector3.new(10, 5, 20)
    -- Function to teleport the player to the destination position
    local function teleportPlayer(player)
    if player.Character then
    player.Character:MoveTo(destinationPosition)
    end
    end
    -- Replace 'ScriptParent' with the object that contains this script
    script.Parent.Touched:Connect(function(hit)
    local player = game.Players:GetPlayerFromCharacter(hit.Parent)
    if player then
    teleportPlayer(player)
    end
    end)

    • @bryantsalo9650
      @bryantsalo9650 4 หลายเดือนก่อน

      bro thank u the other script wasnt working

  • @dswqsa895
    @dswqsa895 11 หลายเดือนก่อน +5

    inside of studio instead of teleporting you get HTTP Error 403, so you have to rename it to either
    "How to teleport players in Roblox"
    or
    "How to get HTTP Error 403 in Roblox Studio"

    • @Lxmitless7
      @Lxmitless7 10 หลายเดือนก่อน +2

      you cant script then

  • @meonpvp8772
    @meonpvp8772 ปีที่แล้ว +4

    Yay! A Pluto upload, btw could you maybe make another video like making a realistic horror game. It was very fun to watch and it got a lot of attention.

    • @PlutoIsAway
      @PlutoIsAway  ปีที่แล้ว +1

      i'll think about it...

    • @bleedNLTC
      @bleedNLTC ปีที่แล้ว

      you should open-source that game, it can be expanded by anyone further, also yes your horror game videos are fun to watch.@@PlutoIsAway

    • @StupidMiners
      @StupidMiners 6 หลายเดือนก่อน

      @@PlutoIsAway I love you.

    • @Noobz224
      @Noobz224 5 หลายเดือนก่อน

      AND PLUTO MADE THE HORROR GAME🎉

  • @CalebMohr
    @CalebMohr ปีที่แล้ว +1

    Yay he is back!

  • @BlockyUserMan
    @BlockyUserMan ปีที่แล้ว +2

    and i love your videos

  • @icebergman2008
    @icebergman2008 10 หลายเดือนก่อน +2

    I am seeing a lot of people having errors in this comment section, that's why I will leave this other script that might help someone, instead of using the ":MoveTo()" function, we are going to use ":SetPrimaryPartCFrame()" instead.
    Lets imagine that we have a BasePart somewhere around the map, and that our character haves a Primary Part (if its the player normal roblox avatar then the primary part is the head, if its a custom character of your game then you need to set the primary part of the model to the head for this script to work). Lets also pretend that your character will teleport if he clicks either a TextButton or an ImageButton of any ScreenGui
    This is how the script would look:
    local player = game.Players.LocalPlayer.Character
    local button = game.Players.LocalPlayer.PlayerGui.ScreenGui.TextButton
    local teleportbrick = game.Workspace.Part
    button.MouseButton1Click:Connect(function()
    player:SetPrimaryPartCFrame(teleportbrick)
    end)
    I hope this comment will help people in their projects ^^

    • @edittcr
      @edittcr 5 หลายเดือนก่อน +1

      thanks mate

  • @BlockyUserMan
    @BlockyUserMan ปีที่แล้ว +2

    thank you

  • @hampuhunter_offical
    @hampuhunter_offical ปีที่แล้ว

    Pls answer me! HI i watched ur viewmodel tutorial and i am making a hunting game how do i make animations for it? Btw i need the gun in the animation

  • @findrandomshithere
    @findrandomshithere ปีที่แล้ว +1

    Quick question, Why not Character:SetPrimaryPartCFrame(cframe)?

    • @B0unty0
      @B0unty0 11 หลายเดือนก่อน +1

      because :MoveTo() is faster, you can also do Hit.Parent.HumanoidRootPart.Position = vector3.new(0,0,0)

    • @icebergman2008
      @icebergman2008 10 หลายเดือนก่อน

      ​@@B0unty0What do you mean by faster? I don't see a difference between SetPrimaryPartCFrame(cframe) and :MoveTo() really, do you mean the amount of time it takes to the player to teleport or what?

  • @FAZEKIAY
    @FAZEKIAY ปีที่แล้ว

    Hello Bro can you make a gas if you go to a gas you will like -10 - 10 but if you go with mask tool it will be good pls?

  • @zeezaa
    @zeezaa 2 หลายเดือนก่อน

    for some reason the game wasn't able to get Player.Character with any other code but this works... 5/5 tutorial i guess xd

  • @Voicelezz
    @Voicelezz 11 หลายเดือนก่อน +1

    How do you find coords in studio? like I know how to teleport people now but how do I find the coords that I need to teleport them to?

    • @icebergman2008
      @icebergman2008 10 หลายเดือนก่อน

      Place any part where you want the players to teleport to, go to the properties of the part and copy the coordinates of the part origin, you can delete the part later if needed

    • @Vickxss
      @Vickxss 9 หลายเดือนก่อน

      can u help me scripting how to teleport players if u toutch a part? because mine didn't works...

  • @noobtrollinvietnam
    @noobtrollinvietnam 10 หลายเดือนก่อน

    TYSM I NEED IT

  • @JovenGalleno
    @JovenGalleno 2 วันที่ผ่านมา

    Unfortunately, this will not work for Front View / Laser tag template. Since it's not a third person view.

  • @LennyFace987
    @LennyFace987 ปีที่แล้ว +1

    It gave a bug on the first part of your video: Workspace.Ignore:5: attempt to index nil with 'Character' and i am going insane over it

    • @Rain-me8ms
      @Rain-me8ms 2 หลายเดือนก่อน

      Same!

  • @Giyu123
    @Giyu123 9 หลายเดือนก่อน

    Thank you

  • @Eden03012
    @Eden03012 9 หลายเดือนก่อน +3

    How do you find coords in roblox studio?

    • @ThatBannanaGuy69420
      @ThatBannanaGuy69420 2 หลายเดือนก่อน +3

      To find coords in roblox studio do this:
      Insert a part on where u want the player to be teleported
      Add a script to the part then write this
      Local part = script.Parent
      Print(part.Position)
      Run the game and in the output it will show u the position of the part
      Copy the position and add it to the local script in the video
      Ur welcome;)

    • @kecoatumis
      @kecoatumis หลายเดือนก่อน

      Thank you so much 🫶​@@ThatBannanaGuy69420

  • @Stevealot
    @Stevealot 10 หลายเดือนก่อน

    TYSM

  • @Sub2Neo5380
    @Sub2Neo5380 4 หลายเดือนก่อน

    bruh, got into the wrong vid, i dont wanted some where INSIDE the game, i was meant to go to some where OUTSIDE the game 🤣😂😂😂😂😂😂

  • @SuryaGulimi
    @SuryaGulimi ปีที่แล้ว

    dude i am a 12 year old
    and i love ur videos pls send more videos i really want to be like pro developer like u

    • @findrandomshithere
      @findrandomshithere ปีที่แล้ว

      if want to be pro dev
      don't follow tutorials unless ur stuck on something, even then try to use the tutorial as a guide as much as possible

  • @iropthegamer726
    @iropthegamer726 10 หลายเดือนก่อน +1

    this doesn't work you can't put LocalPlayer after Players

    • @Jxhsxn
      @Jxhsxn 5 หลายเดือนก่อน +1

      you can but not in a server sided script

    • @iropthegamer726
      @iropthegamer726 5 หลายเดือนก่อน

      @@Jxhsxn yeah pretty sure that's what I meant

    • @jaivierbirring9757
      @jaivierbirring9757 3 หลายเดือนก่อน

      A local script runs off the client meaning, it can easily get the player instance however the server needs a remote event to get that same player instance. Use a local script in starter gui.

    • @iropthegamer726
      @iropthegamer726 3 หลายเดือนก่อน

      @@jaivierbirring9757 k

  • @am10395
    @am10395 4 หลายเดือนก่อน

    Free script
    Workspace add part:
    script.Parent.Touched:Connect(function(Hit)
    if Hit and Hit.Parent:WaitForChild("Humanoid") then
    local Player = game.Player:GetPlayerFromCharacter(Hit.Parent Player )
    Player.Character:MoveTo(Vector3).new(0,0,0))
    end
    end)
    StarterGui add localplayer:
    local Player = game.Player.LocalPlayer.Character
    Player:MoveTo(Vector3).new(0,0,0))