Hey! I have am making an obby game and basically when u beat a certain amount of stages you can go to the medium difficulty door and it should teleport you to the stage you were on.
The issue is: When you go through the door you end up back on the first stage. Yes I know you can reset to get back to your stage but I do not want my players to have to do that and it is kind of unnecessary. Here is a video:
robloxapp-20220904-1431163.wmv (3.4 MB)
I have tried to look for tutorials on something that has to do with this or similar to this but I have had no luck. I am not the most experienced scripter as you can see, bc I am having trouble with a small script like this one.
Here is the script if anyone feels that they need to take a look at it:
script.Parent.Touched:Connect(function(huj)
local human = huj.Parent:FindFirstChild("Humanoid")
if human ~= nil then
local plr = game.Players:GetPlayerFromCharacter(huj.Parent)
local stg = game.Workspace.Stages
if plr.leaderstats.Stage.Value >= 20 then
huj.Parent:MoveTo(workspace.Orange.Position)
script.Parent.Parent.Tele1.Script.Disabled = true
wait(2)
script.Parent.Parent.Tele1.Script.Disabled = false
end
end
end)
I dont really know if it is that hard or not because like I said I’m not the most experienced so I wouldn’t be able to tell.
Thanks to anyone who offers some suggestions/help.