--Uploaded On https://youtube.com/AhmedMode
--Published on https://ahmedmode.com
--Credits goes to the devs!
--Scripts Below:
--Script
local player = game.Players.LocalPlayer
-- Function to handle teleporting
local function teleportToObjective()
local character = player.Character or player.CharacterAdded:Wait()
local hrp = character:WaitForChild("HumanoidRootPart")
-- Loop to teleport every 0.5 seconds
while character and character.Parent do
local target = workspace:WaitForChild("Debris"):WaitForChild("CoinsObjectiveVisual")
local targetCFrame
if target:IsA("Model") then
if not target.PrimaryPart then
target.PrimaryPart = target:FindFirstChildWhichIsA("BasePart")
end
targetCFrame = target.PrimaryPart and target.PrimaryPart.CFrame
elseif target:IsA("BasePart") then
targetCFrame = target.CFrame
end
if targetCFrame then
hrp.CFrame = targetCFrame
end
task.wait(0.5)
end
end
-- Listen for respawns (CharacterAdded) and restart teleportation
player.CharacterAdded:Connect(function()
teleportToObjective()
end)
-- Initial teleportation for when the player first joins
teleportToObjective()
Views: 1
