The output says that the error is around the elseif of < and >
function Click() if workspace.StatsSave.RawPork.Value == 4 then workspace.StatsSave.RawPork.Value = workspace.StatsSave.RawPork.Value - 4 script.Parent.Text = "Turned In" wait(2) script.Parent:remove() elseif workspace.StatsSave.RawPork.Value > 4 then workspace.StatsSave.RawPork.Value = workspace.StatsSave.RawPork.Value - 4 script.Parent.Text = "Turned In" wait(2) script.Parent:remove() elseif workspace.StatsSave.RawPork.Value < 4 then script.Parent.Text = "Not Enough Item" wait(2) script.Parent.Text = "Turn In" end end script.Parent.MouseButton1Down:connect(Click)
I'm not absolutely sure why this is erroring, especially since you didn't give any Output, but you can rewrite this logic slightly to remove some duplicate code:
function Click() if workspace.StatsSave.RawPork.Value >= 4 then workspace.StatsSave.RawPork.Value = workspace.StatsSave.RawPork.Value - 4 script.Parent.Text = "Turned In" wait(2) script.Parent:remove() else --elseif isn't necessary. RawPork is either greater than or equal to 4, or less than it. script.Parent.Text = "Not Enough Item" wait(2) script.Parent.Text = "Turn In" end end script.Parent.MouseButton1Down:connect(Click)