Hey, I'm making a game. A character selection basically, you can use the morphs options menu, with remove morph, and change morph. Let's focus on change morph. When I press it, it teleports the player to the kill part normally. It waits 7 seconds. After 7 seconds, it does absolutely nothing.
No errors in the output, it won't even print out the print("idk..")
I have in the script. Here it is.
local char = script.Parent.Parent.Parent.Parent.Parent.Character script.Parent.MouseButton1Click:Connect(function() print("idk") char.HumanoidRootPart.CFrame = game.Workspace.killplayerpart.CFrame wait(7) script.Parent.Parent.Parent.Parent.ScreenGui.select.Visible = true print("idk..") end)
Any working answer is appreciated! (It's a localscript)
Give it some time, you might not be seeing it happen in time, due to the 7 second delay.
My guess is in the properties of the screengui it resets on spawn and stopping the script from finishing. Go to the properties in the screengui and disable ResetOnSpawn.