Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local plr = game.Players.LocalPlayer
- chr = plr.Character
- torso = chr.Torso
- mouse = plr:GetMouse()
- local part = Instance.new("Part",chr)
- part.Transparency = 1
- part.Anchored = true
- part.CanCollide = true
- part.FormFactor = Enum.FormFactor.Custom
- part.Size = Vector3.new(10,.2,10)
- local pe = Instance.new("ParticleEmitter",part)
- pe.Color = ColorSequence.new(Color3.new(0,0,0),Color3.new(1,1,1))
- pe.Size = NumberSequence.new(.1)
- pe.Texture = "http://www.roblox.com/asset/?id=241685484"
- pe.Transparency = NumberSequence.new(.25)
- pe.LockedToPart = true
- pe.Lifetime = NumberRange.new(50)
- pe.Rate = 10000
- pe.Speed = NumberRange.new(0)
- part.Parent = workspace
- int = -3.1
- mouse.KeyDown:connect(function(key)
- if key == 'q' then
- int = -3.4
- elseif key == 'e' then
- int = -2.7
- end
- end)
- mouse.KeyUp:connect(function(key)
- if key == 'q' or key == 'e' then
- int = -3.1
- end
- end)
- while game:GetService('RunService').RenderStepped:wait() do
- part.CFrame = torso.CFrame + Vector3.new(0,int,0)
- part.Rotation = Vector3.new(-180, -0, -180)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement