repeat wait() until game:IsLoaded()
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local replicatedStorage = game:GetService("ReplicatedStorage")
local partToTeleportTo = workspace:FindFirstChild("__MAP"):FindFirstChild("Areas").Ocean.Win.Win
local function invokeEvent()
local args = {
[1] = "S_Slide_Mount",
[2] = {
[1] = "Rainbow"
}
}
replicatedStorage:WaitForChild("Common"):WaitForChild("Library"):WaitForChild("Network"):WaitForChild("RemoteFunction"):InvokeServer(unpack(args))
end
if partToTeleportTo then
local humanoidRootPart = character:WaitForChild("HumanoidRootPart")
while true do
invokeEvent()
humanoidRootPart.CFrame = partToTeleportTo.CFrame
wait(0.1)
end
else
warn("Target part not found!")
end
Comments
No comments yet
Be the first to share your thoughts!