Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

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 ''

how to fix this?

1 answer

✓ Accepted answer

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.

This discussion is preserved as it was. New answers, comments, and votes are closed.