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!