Advertisement
ProScripter29

Position Teller

May 4th, 2023 (edited)
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.90 KB | None | 0 0
  1. local Player = game.Players.LocalPlayer
  2.  
  3. local Deaths = 0
  4.  
  5. local CanEarnDeaths = true
  6.  
  7. task.spawn(function()
  8.     wait(180)
  9.     local TeleportService = game:GetService("TeleportService")
  10.     TeleportService:Teleport(game.PlaceId, Player)
  11. end)
  12.  
  13. task.spawn(function()
  14.     while task.wait() do
  15.         while task.wait() and Player.Character and Player.Character:FindFirstChild("Humanoid") do
  16.             if Player.Character and Player.Character:FindFirstChild("HumanoidRootPart") then
  17.                 Player.Character.HumanoidRootPart.CFrame = game.Players["HappyH0lidays2021"].Character.HumanoidRootPart.CFrame + Vector3.new(5, 0, 0)
  18.             end
  19.             if Player.Character:FindFirstChild("Humanoid") and Player.Character.Humanoid.Health < Player.Character.Humanoid.MaxHealth then
  20.                 while task.wait() do
  21.                     if Player.Character:FindFirstChild("HumanoidRootPart") then
  22.                         Player.Character.HumanoidRootPart.CFrame = CFrame.new(-35, 5, 0)
  23.                     end
  24.                 end
  25.             end
  26.         end
  27.     end
  28. end)
  29.  
  30. task.spawn(function()
  31.     local Gui = Instance.new("ScreenGui", Player.PlayerGui)
  32.     Gui.ZIndexBehavior = Enum.ZIndexBehavior.Global
  33.     Gui.ResetOnSpawn = false
  34.     Gui.Enabled = true
  35.     local Button = Instance.new("TextButton", Gui)
  36.     Button.BackgroundColor3 = Color3.new(1, 0, 0)
  37.     Button.BorderColor3 = Color3.fromRGB(170, 0, 0)
  38.     Button.Position = UDim2.new(0.422, 0, 0.69, 0)
  39.     Button.Size = UDim2.new(0, 200, 0, 50)
  40.     Button.ZIndex = 999999
  41.     Button.Text = "Rejoin"
  42.     Button.Font = Enum.Font.GothamBold
  43.     Button.TextScaled = true
  44.     Button.TextColor3 = Color3.new(1, 1, 1)
  45.     Button.MouseButton1Down:Connect(function()
  46.         local TeleportService = game:GetService("TeleportService")
  47.         TeleportService:Teleport(game.PlaceId, Player)
  48.     end)
  49. end)
  50. task.spawn(function()
  51.     for _, PlayerC in pairs(game.Players:GetPlayers()) do
  52.         PlayerC.Chatted:Connect(function(message)
  53.             game.ReplicatedStorage.DefaultChatSystemChatEvents.SayMessageRequest:FireServer(message, "All")
  54.         end)
  55.     end
  56. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement