[Help] Main Menu - Press any key to continue screen

Hi guys! I made a “Press any key” frame to my game. Because I’m new to scripting I dont know how to script it.

Here is the structure of the ScreenGUI:

image

local Frame = script.Parent.FRAME_pressAnyKey

game:GetService("UserInputService").InputBegan:Connect(function(Input, Processed)
	if (Input.UserInputType == Enum.UserInputType.Keyboard) and (not Processed) then 
		game:GetService("TweenService"):Create(Frame, TweenInfo.new(1), {BackgroundTransparency = 1}):Play()
		task.wait(1)
		Frame:Destroy()
	end
end)

My advice is that you research this. There are many YouTubers, from AlvinBlox to the DevKing, for you to get help from. Hope you find what you are looking for though! It would be great if you research this rather than asking people. If you do know scripting but still need help, you are okay to get help. The DevForum is a place for help with bugs or script errors etc. You are asking for someone to make a script for you, which is not supposed to happen.

This may seem like a lecture, but I just want to show that the DevForum is a place for help. Not a place for people doing your work for you.

Both youtubers are bad. Youtubers are not gonna help you understand what something means, just grab the docs and read it

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.