Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local targetGameId = 14758335190 -- Replace this with your target game ID
- -- Function to check if player is in the specified game
- local function checkGameId()
- local currentGameId = game.PlaceId
- if currentGameId == targetGameId then
- wait(3)
- game.StarterGui:SetCore("SendNotification", {
- Title = "NOTICE";
- Text = "LOADED!";
- Duration = 5;
- })
- wait("1")
- -- Services
- local Players = game:GetService("Players")
- -- Get the local player and character
- local player = Players.LocalPlayer
- local character = player.Character or player.CharacterAdded:Wait()
- local humanoidRootPart = character:WaitForChild("HumanoidRootPart")
- -- Define the target coordinates
- local targetPosition = Vector3.new(1010.50, 112.05, -1084.13) -- Replace with desired coordinates
- -- Function to teleport the player
- local function teleportPlayer(position)
- if humanoidRootPart then
- humanoidRootPart.CFrame = CFrame.new(position)
- end
- end
- -- Teleport the player
- teleportPlayer(targetPosition)
- print("done!")
- wait("4.5")
- game.StarterGui:SetCore("SendNotification", {
- Title = "NOTICE";
- Text = "Waiting for Timer to end...";
- Duration = 5;
- })
- wait("5.5")
- -- Services
- local Players = game:GetService("Players")
- -- Get the local player and character
- local player = Players.LocalPlayer
- local character = player.Character or player.CharacterAdded:Wait()
- local humanoidRootPart = character:WaitForChild("HumanoidRootPart")
- -- Define the target coordinates
- local targetPosition = Vector3.new(1710.47, 112.28, -1265.20) -- Replace with desired coordinates
- -- Function to teleport the player
- local function teleportPlayer(position)
- if humanoidRootPart then
- humanoidRootPart.CFrame = CFrame.new(position)
- end
- end
- -- Teleport the player
- teleportPlayer(targetPosition)
- else
- wait(0.2)
- game.StarterGui:SetCore("SendNotification", {
- Title = "NOTICE";
- Text = "EXECUTE AGAIN AFTER TELEPORTING!";
- Duration = 5;
- })
- wait("3")
- -- This Script was Generated by Wyborn (skidded by KW) Script
- game:GetService('TeleportService'):Teleport(14758335190, LocalPlayer)
- end
- end
- -- Run the function
- checkGameId()
Add Comment
Please, Sign In to add comment