? wrote a code ( one of my firsts) to animate a button :
local FE = "e"
local object = script.Parent
local Player = game.Players.LocalPlayer
local Character = Player.Character
while script.Parent.Parent.Parent.Visible == true
do
if game:GetService("UserInputService").InputBegan:Connect(function(inputObject, gameProcessedEvent)
if inputObject.KeyCode == Enum.KeyCode[FE] then
object = guiObject:TweenSize(0, 85, 0, 85)
end
end
as you can see theres 2 ends cause if ? put one it gives Players.gjlkv1.PlayerGui.ScreenGui.ImageLabel.Frame.ImageButton.ImageButton.Loc:10: Expected 'end' (to close 'function' at line 7), got if ? put 2 it gives Players.gjlkv1.PlayerGui.ScreenGui.ImageLabel.Frame.ImageButton.ImageButton.Loc:11: Expected ')' (to close '(' at line 7), got so having a little problem where to put them help please?

8 comments
Players.gjlkv1.PlayerGui.ScreenGui.ImageLabel.Frame.ImageButton.ImageButton.Loc:12: Expected 'then' when parsing if statement, got
Add
thenat line 7Players.gjlkv1.PlayerGui.ScreenGui.ImageLabel.Frame.ImageButton.ImageButton.Loc:8: Expected identifier when parsing expression, got 'then'
problem isnt with then etc etc its about puting ends
Delete the then, why do you got a if at line 7 before function ? If that this correct then you are missing then (output error) or delete the if
have no idea ? was using the roblox devloper forum and it showd it like that
but it doesnt fix my problem
Players.gjlkv1.PlayerGui.ScreenGui.ImageLabel.Frame.ImageButton.ImageButton.Loc:10: Expected 'end' (to close 'function' at line 7), got