Advertisement
urabigfatnoob

script for a noob

Nov 1st, 2015
319
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.05 KB | None | 0 0
  1. local plr = game.Players.LocalPlayer
  2. chr = plr.Character
  3. torso = chr.Torso
  4. mouse = plr:GetMouse()
  5.  
  6. local part = Instance.new("Part",chr)
  7. part.Transparency = 1
  8. part.Anchored = true
  9. part.CanCollide = true
  10. part.FormFactor = Enum.FormFactor.Custom
  11. part.Size = Vector3.new(10,.2,10)
  12. local pe = Instance.new("ParticleEmitter",part)
  13. pe.Color = ColorSequence.new(Color3.new(0,0,0),Color3.new(1,1,1))
  14. pe.Size = NumberSequence.new(.1)
  15. pe.Texture = "http://www.roblox.com/asset/?id=241685484"
  16. pe.Transparency = NumberSequence.new(.25)
  17. pe.LockedToPart = true
  18. pe.Lifetime = NumberRange.new(50)
  19. pe.Rate = 10000
  20. pe.Speed = NumberRange.new(0)
  21. part.Parent = workspace
  22. int = -3.1
  23.  
  24. mouse.KeyDown:connect(function(key)
  25.     if key == 'q' then
  26.         int = -3.4
  27.     elseif key == 'e' then
  28.         int = -2.7
  29.     end
  30. end)
  31.  
  32. mouse.KeyUp:connect(function(key)
  33.     if key == 'q' or key == 'e' then
  34.         int = -3.1
  35.     end
  36. end)
  37.  
  38. while game:GetService('RunService').RenderStepped:wait() do
  39.     part.CFrame = torso.CFrame + Vector3.new(0,int,0)
  40.     part.Rotation = Vector3.new(-180, -0, -180)
  41. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement