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

How can I make a GUI for a game I am delevoping?

Asked by 10 years ago

This is the script I tried but failed.It didn't work.Could someone help me with making a new one or pin point the errors made?

Player = game.Players.LocalPlayer Menu = script.Parent Play = Menu.About About = Menu.About HasPressedPlay = false Info = script.Parent.Info Minimize = Info.Minimize function MouseEnterPlayButton() Play.FontSize ="Size36" Play.BackgroundColor3 = Color3.new(0.35, 1, 1) Play.Size = UDim2.new(0.45, 0, 0.225, 0) end function MouseLeftPlayButton() --85, 255, 255 About.FontSize ="Size24" About.BackgroundColor3 = Color3.new(0.1, 0.647, 0.7) About.Size = UDim2.new(0.45, 0, 0.225, 0) end

function MouseEnterAboutButton() Play.FontSize ="Size36" Play.BackgroundColor3 = Color3.new(0.35, 1, 1) Play.Size = UDim2.new(0.45, 0, 0.225, 0) end

function MouseLeftAboutButton() About.FontSize ="Size24" About.BackgroundColor3 = Color3.new(0.54, 0.62, 0.7) About.Size = UDim2.new(0.3, 0, 0.15, 0) end

function PlayGame() if HasPressedPlay == false then for GuiMove = 1, 30 do if GuiMove <= 20 then Play.Position = Play.Position +UDim2.new(0.05, 0, 0, 0) end if GuiMove >= 10 then About.Position = About.Position +UDim2.new(0.05, 0, 0, 0) end wait() end Menu:remove() end end

function MinimizeInfo() Info.Visible = false end

function InfoPopup() if Info.Visible == false then Info.Visible = true else Intro.Visible = false end

About.MouseButtonDown:connect(InfoPopup) Minimize.MouseButton1Down:connect(MinimizeInfo) About.MouseLeave:connect(MouseLeftAboutButton) About.MouseEnter:connect(MouseEnterAboutButton) Play.MouseLeave:connect(MouseLeftPlayButton) Play.MouseLeave:connect(MouseEnterPlayButton) Play.MouseButton1Down:connect(PlayGame)

0
Please post the code in the CodeBlock. Click the image that has the 'Lua' on it and paste the code in there. lomo0987 250 — 10y

1 answer

Log in to vote
-1
Answered by 10 years ago

I need help on making a custom made shop gui

Ad

Answer this question