Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to make a hover device? (video linked)

1 answer

You can make it so that the part or device is always a certain amount up the Y axis

Ex.

local RunService = game:GetService('RunService') -- faster than wait()
local part = -- your part
local baseplate = workspace.Baseplate -- optional, where do you want to compare the vector3 from?

RunService.Heartbeat:Connect(function() -- the middle of a frame (1/60th of a second)
	part.Position = Vector3.new(part.Position.X,baseplate.Position.Y + 10,part.Position.Z) -- basically the parts position but it is 10 studs up from the baseplate
end)

This would be a server script in workspace...hope this helps and if not I hope it leads you in the right direction

EDIT: VIDEO TUTORIAL: https://youtu.be/wVTAgxptjAw

4 comments

0

I want the player to be able to stand on it and ride it using the controls w,a,s,d (q & e height controls)

0

OH. Okay you would need to use InputService for the q & e part, and then if you want the device to move along with the player then you would just copy where the player goes, but always have under the player. Hold on i will make a script

0

https://web.roblox.com/games/6733616344/helloooooooo Here is an open studio game so you can copy: i will also put the scripts in my answer

1

interesting tutorial.

This discussion is preserved as it was. New answers, comments, and votes are closed.