Part not moving correctly/Script not executing properly

I have a server script that should allow a part (model in my case) to move. I want to move it up and down but haven’t been able to switch/fix my script to do so.

--server (ServerScriptService)--

local REP = game:GetService("ReplicatedStorage")
local RS = game:GetService("RunService")

local remote = REP.Lift

local Vehicle = game.Workspace.Mover.Vehicle
local Move

RS.Heartbeat:Connect(function()
	if Move then
		Vector3.new(0,0.5,0)
	end
end)

remote.OnServerEvent:Connect(function(plr, state)
	Move = state
end)

Any help is appreciated!

2 Likes

As stated by @PANDASonNOOB in your previous post you have:

if Move then
	Vector3.new(0,0.5,0)
end

But Vector3.new(0, 0.5, 0) isn’t being applied to either CFraming or Moving the Vehicle.

It’s like saying

if x == y then
    z = 3
end

but you aren’t doing anything with z.