SHOW:
|
|
- or go back to the newest paste.
| 1 | - | plr = game.Players.SavageMunkey |
| 1 | + | plr = game.Players.LocalPlayer |
| 2 | char = plr.Character | |
| 3 | mouse = plr:GetMouse() | |
| 4 | Color = 'Teal' | |
| 5 | CC = true | |
| 6 | ||
| 7 | Fade = function(Part) | |
| 8 | pcall(function() | |
| 9 | if Part ~= nil then | |
| 10 | wait(1) | |
| 11 | Part.Parent = workspace | |
| 12 | Part.CanCollide = false | |
| 13 | for i = 1,20 do | |
| 14 | -- Part.Size = Part.Size - Vector3.new(.05,0,.05) | |
| 15 | Part.Transparency = Part.Transparency + .05 | |
| 16 | Part.CFrame = Part.CFrame * CFrame.new(0,-.07,0) | |
| 17 | wait() | |
| 18 | end | |
| 19 | Part.Anchored = false | |
| 20 | wait(.5) | |
| 21 | Part:Destroy() | |
| 22 | elseif Part == nil then | |
| 23 | print('No part selected')
| |
| 24 | end;end)end--<<I've grown fond of writing my ends like that. | |
| 25 | ||
| 26 | function PathPart(rot) | |
| 27 | local Path = Instance.new('Part',char.Torso)
| |
| 28 | Path.FormFactor = 3 | |
| 29 | Path.Size = Vector3.new(3.5,.1,3.5) | |
| 30 | Path.TopSurface = 0 | |
| 31 | Path.BottomSurface = 0 | |
| 32 | Path.CanCollide = CC | |
| 33 | Path.CFrame = CFrame.new(game.Workspace[plr.Name]:FindFirstChild("Torso").CFrame.p) * CFrame.new(0,-3.1,0) * CFrame.fromEulerAnglesXYZ(0,rot,0)
| |
| 34 | Path.Material = 'SmoothPlastic' | |
| 35 | Path.BrickColor = BrickColor.new(Color) | |
| 36 | Path.Anchored = true | |
| 37 | spawn(function() | |
| 38 | Fade(Path) | |
| 39 | end)end | |
| 40 | ||
| 41 | BodyV = Instance.new('BodyVelocity',char.Torso)
| |
| 42 | BodyV.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
| 43 | ||
| 44 | mouse.KeyDown:connect(function(key) | |
| 45 | if key:lower() == 'e' then | |
| 46 | BodyV.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
| 47 | BodyV.velocity = Vector3.new(0,20,0) | |
| 48 | CC = true | |
| 49 | elseif key:lower() == 'q' then | |
| 50 | BodyV.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
| 51 | BodyV.velocity = Vector3.new(0,-20,0) | |
| 52 | CC = false | |
| 53 | end | |
| 54 | end) | |
| 55 | ||
| 56 | mouse.KeyUp:connect(function(key) | |
| 57 | if key:lower() == 'q' or 'e' then | |
| 58 | BodyV.maxForce = Vector3.new(0,0,0) | |
| 59 | CC = true | |
| 60 | end | |
| 61 | end) | |
| 62 | ||
| 63 | rot = 0 | |
| 64 | game["Run Service"].RenderStepped:connect(function() | |
| 65 | rot = rot + .03 | |
| 66 | PathPart(rot) | |
| 67 | end) | |
| 68 | ||
| 69 | warn'Q[HOLD]: Go DownWard' | |
| 70 | warn'E[HOLD]: Go UpWard' |