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

Script not working?

Asked by 10 years ago
Player = game.Players.LocalPlayer
Menu = Script.Parent
Start = Menu.Start
About = Menu.About
ContactUs = Menu.ContactUs
HasPressedStart = false
function MouseEnterStartButton()
    Start.Fontsize = "Size48"
    Start.BackgroundColor3 = Color3.new(0.1, 0.67, 0.71)
    Start.Size = UDim2.new(0, 0, 0, 0)
end

function MouseLeftStartButton()
    Start.Fontsize = "Size48"
    Start.BackgroundColor3 = Color3.new(0.1, 0.67, 0.71)
    Start.Size = UDim2.new(0, 0, 0, 0)
end --Start Button Script

function MouseEnterAboutButton()
    About.Fontsize = "Size48"
    About.BackgroundColor3 = Color3.new(0.1, 0.67, 0.71)
    About.Size = UDim2.new(0, 0, 0, 0)
end

function MouseLeftAboutButton()
    About.Fontsize = "Size48"
    About.BackgroundColor3 = Color3.new(0.1, 0.67, 0.71)
    About.Size = UDim2.new(0, 0, 0, 0)
end --About Button Script

function MouseEnterContactUsButton()
    ContactUs.Fontsize = "Size48"
    ContactUs.BackgroundColor3 = Color3.new(0.1, 0.67, 0.71)
    ContactUs.Size = UDim2.new(0, 0, 0, 0)
end

function MouseLeftAboutButton()
    ContactUs.Fontsize = "Size48"
    ContactUs.BackgroundColor3 = Color3.new(0.1, 0.67, 0.71)
    ContactUs.Size = UDim2.new(0, 0, 0, 0)
end --Contact Us Button Script

function PlayGame()
    if HasPressedPlay == false then
    for GuiMove = 1, 20  do
       Start.Position =UDim2.new(0, 0, 0, 0)
       if GuiMove >= 10 then
        About.Position = UDim2.new(0, 0, 0, 0)
        if GuiMove >= 10 then
       ContactUs.Position = UDim2.new (0, 0, 0, 0)
    end
       wait()
    end
    for GuiMove = 1, 20  do
       Start.Position =UDim2.new(0, 0, 0, 0)
       if GuiMove >= 10 then
        About.Position = UDim2.new(0, 0, 0, 0)
        if GuiMove >= 10 then
       ContactUs.Position = UDim2.new (0, 0, 0, 0)
    end
       wait()
    end    

      Menu:remove()
    end 
end

Start.MouseLeave:connect(MouseLeftStartButton)
Start.MouseEnter:connect(MouseEnterStartButton)
About.MouseLeave:connect(MouseLeftStartButton)
About.MouseEnter:connect(MouseEnterStartButton)
ContactUs.MouseLeave:connect(MouseLeftStartButton)
ContactUs.MouseEnter:connect(MouseEnterStartButton)
Start.MouseButton1Down:connect(StartGame)

This is my GUI script and when I click on the start button GUI it should close all the GUI''s. The output says: 09:17:16.632 - Players.Player1.PlayerGui.StartMenu.LocalScript:75: 'end' expected (to close 'if' at line 44) near '<eof>'

1 answer

Log in to vote
-4
Answered by 10 years ago

We can't figure out how to fix it, unless you put the output's details down. We're sorry.

0
09:17:16.632 - Players.Player1.PlayerGui.StartMenu.LocalScript:75: 'end' expected (to close 'if' at line 44) near '<eof>' RFYassine 15 — 10y
0
that means you forgot to 'end' a 'if' command. Wrongmistake 0 — 10y
Ad

Answer this question