Expect table not value??
01 | script.Parent.Sensor.Touched:connect( function (whoWasThat) |
03 | if w:IsA( "VehicleSeat" ) then |
04 | local speed = math.floor(math.sqrt((w.Velocity.x^ 2 )+(w.Velocity.y^ 2 )+(w.Velocity.z^ 2 ))) |
05 | if speed >maxspeed then |
07 | if speed > maxspeed then |
14:53:05.859 - Workspace.SlidingDoor.OutsideSensor.Sensor Script:20: bad argument #1 to 'pairs' (table expected, got no value)
14:53:05.861 - Script 'Workspace.SlidingDoor.OutsideSensor.Sensor Script', Line 20
14:53:05.862 - Stack End
I have no idea what to do with this one?