Ad
Log in to vote
0

Problem with a Local Script for a hopperbin, how to fix this?

Asked by 7 years ago

This is the part of the script

function IfInactive()
    if script.Parent.Active == true then -- line 67 on the script
    local Player = game:GetService("Players").LocalPlayer       
local Cam = game.Workspace.CurrentCamera
for _, Model in pairs(Cam:GetChildren()) do
if Model.Name == "Arms" then
Model:remove()

else end
end


sp.Active:connect(IfActive)
sp.Active:connect(IfInactive)

this is the error:

'end' expected (to close 'if' at line 67) near '<eof>'

how to fix this?

1 answer

Log in to vote
1
Answered by 7 years ago

You used 2 ends instead of 4 by how I'm looking at the script, try adding two more ends to the script, the error may not come up, but if there is still a problem just PM me on Roblox (On TheeDeathCaster) and I'll see what I can do.

Ad

Answer this question