Hi! I'm trying to make an Obstacle course and when you complete a stage/floor and you step on the checkpoint, in an open/close GUI, a TextButton appears saying Floor1, Floor2, etc and when clicked on, it will teleport you to the desired stage that you have completed already. I have used the script below but the TextButton (Floor1 etc) isn't appearing when the checkpoint(part) is touched. Please help. If you need more information, reply to this question.
script.Parent.Touched:connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
game.Players.LocalPlayer.PlayerGui.LvlMenu.Frame.Floor1.Visible = true
end
end)
I've also tried this:
script.Parent.Touched:connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
game.StarterGui.LvlMenu.Frame.Floor1.Visible = true
end
end)

1 comment
I'll see what I can do, Thanks. Also i did use :connect. The GUI is in the right place.