Soooo Im having trouble with my script The Output says Workspace.Door!.Script:12: attempt to call a userdata value heres the script
local sp = script.Parent
function onTouch(hit)
sp.Transparency = 0.50
sp.CanCollide = false
wait(1)
sp.CanCollide = true
sp.Transparency = 0
end
script.parent.Touched:Connect(onTouch)(hit)
ive never heard the output error message

1 comment
i have tried to solve this DONOT CLOSE PLS I NEED HELP