Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ezweld = function(p, a, b, cf)
- local weld = Instance.new("Weld",p)
- weld.Part0 = a
- weld.Part1 = b
- weld.C0 = cf
- return weld
- end
- plr = owner
- char = plr.Character
- root = char.HumanoidRootPart
- hum = char.Humanoid
- hold = false
- local bv = Instance.new("BodyVelocity",nil)
- local remote = Instance.new("RemoteEvent",char)
- remote.Name = "remote"
- local jet = Instance.new("Part",char)
- local fire = Instance.new("Fire",nil)
- fire.Enabled = true
- if char:FindFirstChild("Torso") then
- jet.CanCollide = false
- jet.Size = Vector3.new(5, 3, 1)
- local mesh = Instance.new("SpecialMesh",jet)
- mesh.MeshId = "http://www.roblox.com/asset/?id=30643517"
- mesh.TextureId = "http://www.roblox.com/asset/?id=30643565"
- local weld = ezweld(char, jet, char.Torso, CFrame.new(0, -0.25, -0.75))
- elseif char:FindFirstChild("UpperTorso") then
- jet.CanCollide = false
- jet.Size = Vector3.new(5, 3, 1)
- local mesh = Instance.new("SpecialMesh",jet)
- mesh.MeshId = "http://www.roblox.com/asset/?id=30643517"
- mesh.TextureId = "http://www.roblox.com/asset/?id=30643565"
- local weld = ezweld(char, jet, char.UpperTorso, CFrame.new(0, 0, -0.75))
- end
- function lol(Key)
- if Key == "flighton" then
- hold = true
- repeat
- wait()
- fire.Parent = jet
- bv.Parent = root
- bv.MaxForce = Vector3.new(0, math.huge, 0)
- bv.Velocity = Vector3.new(0, 25, 0)
- until hold == false
- fire.Parent = nil
- bv.Parent = nil
- end
- if Key == "flightoff" then
- hold = false
- fire.Parent = nil
- end
- end
- NLS([[
- plr = owner
- char = plr.Character
- remote = char.remote
- mouse = plr:GetMouse()
- mouse.KeyDown:connect(function(key)
- if key == " " then
- remote:FireServer("flighton")
- end
- end)
- mouse.KeyUp:connect(function(key)
- if key == " " then
- remote:FireServer("flightoff")
- end
- end)
- ]], char)
- remote.OnServerEvent:connect(function(PlayerSendit, Button) lol(Button) end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement