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

The script wont work but theres no problems in the output?!?!?

game.StarterGui.Menu.MainMenu.Credits.MouseButton1Click:Connect(function() game.StarterGui.Menu.MainMenu.CreditsFrame.Visible = true end)

I honestly don't know whats wrong with the script?!?!

1 comment

0

accept the answerr

1 answer

✓ Accepted answer

well here is a thing is thing is, all GUIs that are in the StarterGui are cloned into the an individual players PlayerGui. Therefore, to access a gui you'd have to do player.PlayerGui..

so you could rewrite your code like this in a localscript:

local Player = game.Players.LocalPlayer
player.PlayerGui.Menu.MainMenu.Credits.MouseButton1Click:Connect(function() player.PlayerGui.Menu.MainMenu.CreditsFrame.Visible = true end)

or you could just parent the localscript to the Gui and use script.Parent

2 comments

0

thank you

0

accept the answerr

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