A Play Button Script

Heres The Script But It Does Not Work
–variables–

local playButton = script.Parent.PlayButton

local quitGameButton = script.Parent.QuitGameButton

local mainFrame = script.Parent

–variables–

local playButton = script.Parent.PlayButton

local quitGameButton = script.Parent.QuitGameButton

local mainFrame = script.Parent

What’s the issue here, if I might ask?

1 Like

I am slightly confused, you’ve given no explanation.

You just posted a script with no question…

I think he wants us to make a script for him? No idea, but that’s probably it. If so, we’re not a spoonfeeding community

Please find the answer browsing the forums, we are not going to spoonfeed you code.

1 Like

sorry i forgot to put the text

Is this what you need?

–variables–

local playButton = script.Parent.PlayButton

local quitGameButton = script.Parent.QuitGameButton

local mainFrame = script.Parent

playButton.MouseButton1Down:Connect(function()
   mainFrame.Visible = false
end)

quitGameButton.MouseButton1Down:Connect(function()
   --Kick the player? Not sure what you are doing here
end)

thank you so much (30 characters)

Why are you giving code away like that? This is become a known problem that people use the Scripting Support category for free code essentially. He should at least learn it.

Mmm, I feel like you shouldn’t have spoonfed him, that’s not a healthy practice.

Uh, my choice if I want to help someone out. You didn’t want to but I was fine with doing very simple code. Nothing against providing code to help people since he did after all provide his effort to this code.

Actually, this post is against the DevForum rules

oh rlly im sorry i will take it down

The issue is, you really aren’t helping him out. He can just ctrl c + ctrl v the code into his script, not caring what is even done in the code.

That’s why we’re criticizing you for it.

You should let him learn this stuff before doing it. Most likely this may happen again as he did not learn the proper technique.

That is true although sometimes showing someone the code gives them a better idea of how to do it and sometimes learn unless this guy has no idea about scripting or just wants a code, Not sure this might even sound dumb.

2 Likes

Yes, but these are very simple properties, and it is very easy to just look through the documentation instead of making a new thread.

Honestly, I think the Scripting Support category should be moderated for this type of stuff.
Its being abused. (My opinion)

i wanted someone to explain to me what i did wrong with the script