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
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.
Oh sorry but can you possibly give me some ideas for the script?
I don’t know what you want to do, if you elaborate I can help.
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
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
hopefully this will help you understand
or if thats to complex do you mind making a script for me please?
No, I think you misunderstood, start with this,
What is a stage teleporter? Do you mean like a checkpoint system?
no so a script where you can tp to your current stage
Ok, and what is your stage? Your progress or something?
yes on the tp button when i press it i want it to tp me to my progress/ my current stage
what exactly is a stage
and how are you trying to get the player’s current stage
it is a checkpoint basictually im making an obby
so do you get what i mean now?