Blxxe

TEA TIME (BEAR*) GUI

Jan 31st, 2025
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.09 KB | None | 0 0
  1.  
  2.  local targetGameId = 14758335190 -- Replace this with your target game ID
  3.  
  4. -- Function to check if player is in the specified game
  5. local function checkGameId()
  6. local currentGameId = game.PlaceId
  7.  
  8. if currentGameId == targetGameId then
  9.  
  10. wait(3)
  11. game.StarterGui:SetCore("SendNotification", {
  12. Title = "NOTICE";
  13. Text = "LOADED!";
  14. Duration = 5;
  15. })
  16.  
  17. wait("1")
  18. -- Services
  19. local Players = game:GetService("Players")
  20.  
  21. -- Get the local player and character
  22. local player = Players.LocalPlayer
  23. local character = player.Character or player.CharacterAdded:Wait()
  24. local humanoidRootPart = character:WaitForChild("HumanoidRootPart")
  25.  
  26. -- Define the target coordinates
  27. local targetPosition = Vector3.new(1010.50, 112.05, -1084.13) -- Replace with desired coordinates
  28.  
  29. -- Function to teleport the player
  30. local function teleportPlayer(position)
  31. if humanoidRootPart then
  32. humanoidRootPart.CFrame = CFrame.new(position)
  33. end
  34. end
  35.  
  36. -- Teleport the player
  37. teleportPlayer(targetPosition)
  38.  
  39. print("done!")
  40. wait("4.5")
  41. game.StarterGui:SetCore("SendNotification", {
  42. Title = "NOTICE";
  43. Text = "Waiting for Timer to end...";
  44. Duration = 5;
  45. })
  46.  
  47. wait("5.5")
  48. -- Services
  49. local Players = game:GetService("Players")
  50.  
  51. -- Get the local player and character
  52. local player = Players.LocalPlayer
  53. local character = player.Character or player.CharacterAdded:Wait()
  54. local humanoidRootPart = character:WaitForChild("HumanoidRootPart")
  55.  
  56. -- Define the target coordinates
  57. local targetPosition = Vector3.new(1710.47, 112.28, -1265.20) -- Replace with desired coordinates
  58.  
  59. -- Function to teleport the player
  60. local function teleportPlayer(position)
  61. if humanoidRootPart then
  62. humanoidRootPart.CFrame = CFrame.new(position)
  63. end
  64. end
  65.  
  66. -- Teleport the player
  67. teleportPlayer(targetPosition)
  68.  
  69. else
  70. wait(0.2)
  71. game.StarterGui:SetCore("SendNotification", {
  72. Title = "NOTICE";
  73. Text = "EXECUTE AGAIN AFTER TELEPORTING!";
  74. Duration = 5;
  75. })
  76.  
  77. wait("3")
  78. -- This Script was Generated by Wyborn (skidded by KW) Script
  79.  game:GetService('TeleportService'):Teleport(14758335190, LocalPlayer)
  80. end
  81. end
  82.  
  83. -- Run the function
  84. checkGameId()
  85.  
Tags: Script
Add Comment
Please, Sign In to add comment