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
t's not
script.parent.Touched:Connect(onTouch)(hit)
but it is:
script.parent.Touched:Connect(onTouch)
and this is 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)