I need someone that can help me locate the problem here, Output shows nothing wrong and I checked my script menu thingy...:
lol = script.Parent.Parent
brick = script.Parent
net = script.Parent.Parent.Net
whatever = game.Workspace
player = script.Parent.Parent.Parent.Parent.Parent
score = player:WaitForChild("leaderstats")
function goal(hit)
local ball = hit.Parent
if ball.ClassName == "Hat" then
if ball.Parent == whatever then
ball:Remove()
else
wait()
end
elseif ball and ball:findFirstChild("Humanoid") then
ball.Humanoid.Sit=true
wait()
elseif ball and ball:findFirstChild("Handle") then
wait()
score.Buckets.Value = score.Buckets.Value + 1
end
end
brick.Touched:connect(goal) |