I am trying to make a door, and it will not move. Can someone help? The error says " 13:43:45.705 - X cannot be assigned to"
here's my script:
script.Parent.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
script.Parent.Position.X = script.Parent.Position.X - 6
end
end)

1 comment
Try "script.Parent.Position = Vector3.new(script.Parent.Position.X - 6, script.Parent.Position.Y, script.Parent.Position.Z)