Hello! I just recently made my new jetpack for a commission. The guy asked for a jetpack similarly like jailbreaks. Here’s what I made so far.
Far from finished.
Here’s the catch. It moves up only, if you fall, you just land back to the place where you used the jetpack. Here’s a short video.
Another issue that I have is that if I didn’t pickup the jetpack, and just left it there, my jump is higher, not restrained. But if I picked the jetpack, I get restrained. My jump is lessened.
It’s 2 scripts. One client sided, One server sided.
For the server side, It’s used for welding the jetpack to the back of the player (HRP)
JetpackTool.Equipped:Connect(function()
if JetpackTool.Parent ~= workspace then
local newweld = Instance.new("Weld")
newweld:Clone()
newweld.Name = "WeldTrso"
local UT = JetpackTool.Parent:WaitForChild("UpperTorso")
local PP = JetpackTool.Handle
newweld.C0 = CFrame.new(0, .25, -.6)
newweld.Part0 = PP
newweld.Part1 = UT
newweld.Parent = PP
end
end)
The client side, It does the UIS, BodyVelocity tweaking.
local Jetpack = script.Parent
local Spaceisheld = false
local JetpackIsEquiped = false
local BodyVelocity = Instance.new("BodyVelocity")
BodyVelocity.Parent = char.HumanoidRootPart
BodyVelocity.Velocity = Vector3.new(0,0,0)
local NeonThingy = Jetpack.Neon
Jetpack.Equipped:Connect(function()
JetpackIsEquiped = true
print("equipped!")
end)
Jetpack.Unequipped:Connect(function()
JetpackIsEquiped = false
print("unequipped!")
end)
UIS.InputBegan:Connect(function(input)
if input.KeyCode == Enum.KeyCode.Space and JetpackIsEquiped == true then
print("space")
NeonThingy.Material = Enum.Material.Neon
BodyVelocity.Velocity = Vector3.new(0,math.random(10,50),0)
end
end)
UIS.InputEnded:Connect(function(input)
if input.KeyCode == Enum.KeyCode.Space and JetpackIsEquiped == true then
NeonThingy.Material = Enum.Material.ForceField
BodyVelocity.Velocity = Vector3.new(0,-50,0)
end
end)
NOTE: I used Body velocity for this, I’ve been told to by multiple people.
I’ve also heard that the first issue, (Fly, and land on the same spot) can be probably fixed with BodyGyro. I’m pretty moderate with scripting, and I don’t want being spoon fed. Just lead me to the right way.