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

Help closing a Conditional Statement?

Asked by 10 years ago

I need help closing line 15,how do I close it?

I also got a error:

Workspace.Pong Machine.screen.Game.Game.Controls:14: '(' expected near ')'

local BueBar = script.Parent.GAME.BluPdl
local RedBar = script.Parent.GAME.RedPdl
local BlueSeat = script.Parent.Parent.Parent.Parent.BlueSeat
local RedSeat = script.Parent.Parent.Parent.Parent.RedSeat
----------------------BlueSeat----------------------------
BlueSeat.ChildAdded:connect(function(Part)
    if Part.Name == "SeatWeld" and Part.Part1.Name =="HumanoidRootPart"
        then
    ---------------------Vairbles-------------------------
    local Character = Part.Part1.Parent
    local Player = game.Players:GetPlayerFromCharacter(Character)
    local PlayersMouse = Player:GetMouse()
    ------------------------------------------------------
    PlayersMouse.KeyDown:connect(Key(function)
                if Key == "W" then
            print("Forward")
            end
        end)
    end
end)

Answer this question