Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

GUI won't go visible, won't even print out an error, or "idk.."?

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)

2 answers

✓ Accepted answer

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.

1 comment

0

This was disabled from the start

This discussion is preserved as it was. New answers, comments, and votes are closed.