can you try deleting local from function :
function onClick()
can you try deleting local from function :
function onClick()
ok will do now
now it just doesnt work at all lol
Line 14 was erroring because the first âParentâ was misspelled as âParnetâ. It was the same when you were trying to print it.
so urm what should i do now?
Change Parnet to Parent
oke done that should that work now?
it needs to work if it doesnât works idk anything more
ohhhhhhhhhhhhhhhhhhh it removed the thing but to fast
just add wait() to fix this âŚ
now it doesnât work welp
local function onClick()
local players = game:GetService("Players")
local player = players.LocalPlayer
for i = 1, 0, -0.1 do
script.Parent.Parent.Parent.Music.Volume = i
wait(0.07)
end
script.Parent.Parent.Parent.Music:Stop()
player.Character.Humanoid.Health = 0
wait(5)
script.Parent.Parent.Parent.Enabled = false
end
script.Parent.PlayButton.MouseButton1Click:Connect(onClick)
here
YESSSSSSSSSSSSSSSSS thank you
No problem i just confused when it doesnât work I am gonna check my scripts spelling next time
thats ok just 1 more thing the menu icon disappears when the 5 seconds is over
it is because you are closing all the guis in the MenuGui you can try closing frame guis with visible like :
script.Parent.Parent.Parent.MainMenu.Visible = false
if it is closing icon too this means menu icon is in frame then you can try closing other guis with visible instead of icon
ah right because oh there is a frame for main menu
here any way to close that one?
which one? is icon in the frame?