Advertisement
3DCreator

StageGui ServerScript

Mar 13th, 2021
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.33 KB | None | 0 0
  1. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  2. local Teleport = ReplicatedStorage:WaitForChild("Teleport")
  3.  
  4. Teleport.OnServerEvent:Connect(function(player, checkpoint)
  5.     local Character = player.Character
  6.     if Character then
  7.         Character.HumanoidRootPart.CFrame = checkpoint.CFrame + Vector3.new(0,8,0)
  8.     end
  9. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement