I'm making a script for a game I'm developing with my friend, pic99001, but that isn't the point. I'm making a script that repeats a cycle and makes a Model move. It isn't working though! This is the code I tried:
repeat
workspace.Plane.SpinEngines.SpinRate.Value = workspace.Plane.SpinEngines.SpinRate.Value+1
wait(1)
until workspace.Plane.SpinEngines.SpinRate.Value == 10
wait(2)
local part = workspace.Plane.PrimaryPart
local plane = workspace.Plane
repeat
part.Position = Vector3.new(part.Position.X+2, part.Position.Y, part.Position.Z)
plane:GetPrimaryPartCFrame()
wait(0.1)
until part.Position == Vector3.new(-600.5, 30.662, -40.654)
Path: game.Workspace.Plane.MainPart.MovementScript Could somebody help? I would much appreciate it! Thanks so much! -JBennettChief9
Follow the game here: https://web.roblox.com/games/4294341129/Cops-Robbers-Prison-Attack-Under-Construction

1 comment
There is a function Model:MoveTo() that will move the Model.PrimaryPart. Hope it solve your problem. https://developer.roblox.com/en-us/api-reference/class/Model