![]() ![]() Wait what? Do you want to make a part that teleport only the players with a certain level? Nothing simpler! Game:GetService("Players"):GetPlayerFromCharacter(hit.Parent).Character:WaitForChild("HumanoidRootPart").CFrame = TeleportPosition.CFrame -if the player touching the part is in the server we will set his HumanoidRootPart's CFrame as the teleport position part's CFrame If game:GetService("Players"):FindFirstChild() then -here we check if the player touching the part is in the server If hit.Parent:FindFirstChild("Humanoid") then -here we check if the thing that touch the part is a player checking if it has an Humanoid into it because the players' characters have always an Humanoid :Connect(function(hit) -here we create a function hit when the part is touched Open the Script we’ve made in the grey part and write this: local TeleportPosition = -here we create the variable of the teleport position, change "TeleportPosition" with the name of your teleport position part The red part is my teleport position and the grey part is the part that when touched will teleport the player, now let’s script! ![]() Lift it off the ground so that when the player is teleported they won’t bugger themselves into it. Insert another part that will be the teleport position and set its CanCollide to true, Anchored to true and Transparency to 1 if you want.create a part in the workspace and insert a Script into it.Methods: teleport part, level required teleport part, teleport button. Hello developers! Today in this my second tutorial I will show you how to teleport the players! ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |