Stage teleporter

So does anyone actually know how to do this? If you do, what code should i do to make it teleport to the stage that you are currently on

2 Likes

Please elaborate on what you want to do, the information you gave us is not enough for anyone to know what you are trying to do.

1 Like

Oh sorry but can you possibly give me some ideas for the script?

1 Like

I don’t know what you want to do, if you elaborate I can help.

1 Like

ok script:
local replicatedStorage = game:GetService(“ReplicatedStorage”)

replicatedStorage.Teleport.OnServerInvoke = function(player, area)
local charcter = player.Character or player.CharacterAdded:Wait()

if charcter == nil or not workspace.TeleportPoints:FindFirstChild(area) then
	return
end

if charcter:FindFirstChild("Humanoid") and charcter.Humanoid.Health > 0 then
	charcter.HumanoidRootPart.CFrame = workspace.TeleportPoints[area].CFrame
	return true
end

end

1 Like

then there is a local script along with it:
task.wait(3)

local replicatedStorage = game:GetService(“ReplicatedStorage”)
local tweenService = game:GetService(“TweenService”)

local teleportFrame = script.Parent:WaitForChild(“TeleportFrame”)
local scrollingFrame = teleportFrame:WaitForChild(“ScrollingFrame”)
local transition = script.Parent:WaitForChild(“Transition”)

local debounce = false

local function Teleport(button)
if debounce then
return
end

debounce = true

transition.Visible = true
transition.BackgroundTransparency = 1
tweenService:Create(transition, TweenInfo.new(0.8), {BackgroundTransparency = 0}):Play()

task.wait(0.9)

local result = replicatedStorage.Teleport:InvokeServer(button.Name)

task.wait(2)
tweenService:Create(transition, TweenInfo.new(0.8), {BackgroundTransparency = 1}):Play()

if result == true then
	print("true")
else
	print("false")
end


task.wait(0.8)

transition.Visible = false

debounce = false

end

for _, v in scrollingFrame:GetChildren() do
if not v:IsA(“Frame”) then continue end

v.TextButton.MouseButton1Click:Connect(function()
	Teleport(v)
end)

end

2 Likes

hopefully this will help you understand

2 Likes

or if thats to complex do you mind making a script for me please?

2 Likes

No, I think you misunderstood, start with this,
What is a stage teleporter? Do you mean like a checkpoint system?

2 Likes

no so a script where you can tp to your current stage

2 Likes

Ok, and what is your stage? Your progress or something?

1 Like

yes on the tp button when i press it i want it to tp me to my progress/ my current stage

1 Like

what exactly is a stage
and how are you trying to get the player’s current stage

1 Like

it is a checkpoint basictually im making an obby

1 Like

so do you get what i mean now?