Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

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

Asked by
2_MMZ 1059 Moderation Voter
3 years ago

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

Log in to vote
1
Answered by 3 years ago

Give it some time, you might not be seeing it happen in time, due to the 7 second delay.

Ad
Log in to vote
0
Answered by 3 years ago

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.

0
This was disabled from the start 2_MMZ 1059 — 3y

Answer this question