I want this script to move a part up, but it doesn’t seem to be working, maybe cause the part I’m trying to move is a model entirely.
--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
Vehicle = Vector3.new(0,0.5,0)
end
end)
remote.OnServerEvent:Connect(function(plr, state)
Move = state
end)
(p.s. I also don’t think I really need heartbeat here, but I don’t know what to switch it out for)