I am trying to make a spoiler rise when my car does a certain speed. Here is my script, I am quite new but I need this on my car so please be patient with me.
local x = Script.Parent.Position
local y = Script.Parent.Position
local z = Script.Parent.Position
if Script.Parent.Parent.Parent.Chassis.VehicleSeat1.Speed == 10
then
instance.new {BodyPosition,Parent}
script.Parent.BodyPosition.position = Vector3.new(x,y+1,z )
end
Please help me out! Thanks!

2 comments
Add the Position properties, like x = script.Parent.Position.X, and please, that script isn't formatted as a Lua script.
^That hurts man :'/