HaxRoblox

BrickyRocket

Oct 12th, 2016
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.80 KB | None | 0 0
  1. --Lesson for xJDiviisionZ
  2.  
  3. plr = game.Players.LocalPlayer --Variable
  4. plr.Character.Humanoid.Animator:Destroy() --Destroy anim (if idle changed)
  5. local t = Instance.new('Sound' ,game.Workspace) --(Variable making sound + properties if need.)
  6. t.SoundId = 'http://www.roblox.com/asset/?id=2248511' --(Selecting the sound from roblox/develop/library*Sounds/(ID)
  7. local Mouse = plr:GetMouse() --(Getmous)
  8. Mouse.KeyDown:connect(function(Key) --Function
  9. Key = Key:lower() --(getting keys)
  10. if Key == 'e' then --which button pressed
  11. plr.Character.Humanoid.WalkSpeed = 100
  12. local h = Instance.new('Part' ,game.Workspace) --making part
  13. h.Material = 'Neon' --properties from variable 'h'
  14. h.CanCollide = false
  15. h.Name = 'Bullet'
  16. h.BrickColor = BrickColor.new('Lime green')
  17. h.Size = Vector3.new(1,1,4)
  18. h.Anchored = true
  19. h.CFrame = plr.Character.Torso.CFrame * CFrame.new(0,0,-4.3)
  20. local function ontouch(hit) --when touched (what it hits)
  21. local r = Instance.new('Explosion' ,game.Workspace) --making explosion
  22. r.ExplosionType = 'NoCraters' --properties of variable r
  23. r.BlastRadius = 0
  24. r.Position = Vector3.new(h.Position.X,h.Position.Y,h.Position.Z)
  25. h:Destroy() --Destroying the variable
  26. hit.Parent.Humanoid.Health = 0
  27. hit:BreakJoints() --breaking joint
  28. t.Playing = true
  29.  
  30. end
  31. h.Touched:connect(ontouch)
  32. while true do wait()
  33. h.CFrame = h.CFrame * CFrame.new(0,0,-3.4)
  34.  
  35. end
  36. end
  37. end)
  38. local Mouse = plr:GetMouse() --(Getmous)
  39. Mouse.KeyDown:connect(function(Key) --Function
  40. Key = Key:lower() --(getting keys)
  41. if Key == 'q' then --which button pressed
  42. plr.Character.Humanoid.WalkSpeed = 100
  43. local a = Instance.new('Part' ,game.Workspace) --making part
  44. a.Material = 'Neon' --properties from variable 'h'
  45. a.CanCollide = false
  46. a.Name = 'Bullet'
  47. a.BrickColor = BrickColor.new('Really red')
  48. a.Size = Vector3.new(1,1,4)
  49. a.Anchored = true
  50. a.CFrame = plr.Character.Torso.CFrame * CFrame.new(0,0,-4.3)
  51. local function ontouch(hit) --when touched (what it hits)
  52. local o = Instance.new('Explosion' ,game.Workspace) --making explosion
  53. o.ExplosionType = 'NoCraters' --properties of variable r
  54. o.BlastRadius = 0
  55. o.Position = Vector3.new(a.Position.X,a.Position.Y,a.Position.Z)
  56. a:Destroy() --Destroying the variable
  57. hit.Parent.Humanoid.Health = 0
  58. hit:BreakJoints() --breaking joint
  59. t.Playing = true
  60.  
  61. end
  62. a.Touched:connect(ontouch)
  63. while true do wait()
  64. a.CFrame = a.CFrame * CFrame.new(0,0,-3.4)
  65.  
  66. end
  67. end
  68. end)
  69.  
  70. local Player = game:FindService("Players").LocalPlayer
  71. local Mouse = Player:GetMouse()
  72. Mouse.Button1Up:connect(function()
  73. local Part = Mouse.Target
  74. if Part then
  75. local h = Instance.new('Explosion' ,game.Workspace)
  76. h.BlastPressure = 500000
  77. h.BlastRadius = 8
  78. h.Position = Vector3.new(Mouse.Hit.p.X,Mouse.Hit.p.Y,Mouse.Hit.p.Z)
  79.  
  80. end
  81. end)
  82.  
  83. --CREDITS ScriptingLua_LuaTeam
Advertisement
Add Comment
Please, Sign In to add comment