Advertisement
ScriptBuilderSHEHAB

electro

Jul 24th, 2016
316
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.46 KB | None | 0 0
  1. Player = game.Players.LocalPlayer
  2. Character = Player.Character
  3. script.Parent = Character
  4. Character.Humanoid.MaxHealth = math.huge
  5. pcall(function() Character.Tazer:Remove() end)
  6. Staff = Instance.new("Model")
  7. Staff.Name = "Tazer"
  8. Staff.Parent = Character
  9. --[[ * Arm Weld * ]]--
  10. ArmWeld = Instance.new("Weld")
  11. ArmWeld.Parent = Character["Torso"]
  12. ArmWeld.Part0 = ArmWeld.Parent
  13. ArmWeld.Part1 = Character["Right Arm"]
  14. ArmWeld.C0 = CFrame.new(1.5,0,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  15. --[[ * Arm Weld * ]]--
  16. ArmWeldR = Instance.new("Weld")
  17. ArmWeldR.Parent = Character["Torso"]
  18. ArmWeldR.Part0 = ArmWeldR.Parent
  19. ArmWeldR.Part1 = Character["Left Arm"]
  20. ArmWeldR.C0 = CFrame.new(-1.5,0,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  21. --[[ * Neck Weld * ]]--
  22. Neck = Instance.new("Weld")
  23. Neck.Parent = Character["Torso"]
  24. Neck.Part0 = Neck.Parent
  25. Neck.Part1 = Character["Head"]
  26. Neck.C0 = CFrame.new(0,1.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  27. --[[ * TBody * ]]--
  28. TBody = Instance.new("Part")
  29. TBody.formFactor = "Custom"
  30. TBody.Locked = true
  31. TBody.CanCollide = false
  32. TBody.BrickColor = BrickColor.new("Really black")
  33. TBody.Anchored = false
  34. TBody.Size = Vector3.new(0.4,1,0.25)
  35. TBody.TopSurface = 0
  36. TBody.BottomSurface = 0
  37. TBody.Parent = Staff
  38. MeshA = Instance.new("BlockMesh",TBody)
  39. WeldA = Instance.new("Weld")
  40. WeldA.Parent = TBody
  41. WeldA.Part0 = Character["Right Arm"]
  42. WeldA.Part1 = TBody
  43. WeldA.C0 = CFrame.new(0,-1,-0) * CFrame.Angles(-math.pi/2,0,0)
  44. SoundA = Instance.new("Sound")
  45. SoundA.Parent = TBody
  46. --[[ * TBodyA * ]]--
  47. TBodyA = Instance.new("Part")
  48. TBodyA.formFactor = "Custom"
  49. TBodyA.Locked = true
  50. TBodyA.CanCollide = false
  51. TBodyA.BrickColor = BrickColor.new("Really black")
  52. TBodyA.Anchored = false
  53. TBodyA.Size = Vector3.new(0.2,0.25,0.25)
  54. TBodyA.TopSurface = 0
  55. TBodyA.BottomSurface = 0
  56. TBodyA.Parent = Staff
  57. MeshA = Instance.new("BlockMesh",TBodyA)
  58. WeldA = Instance.new("Weld")
  59. WeldA.Parent = TBodyA
  60. WeldA.Part0 = TBody
  61. WeldA.Part1 = TBodyA
  62. WeldA.C0 = CFrame.new(0.125,0.5,0) * CFrame.Angles(0,0,0)
  63. --[[ * TBodyB * ]]--
  64. TBodyB = Instance.new("Part")
  65. TBodyB.formFactor = "Custom"
  66. TBodyB.Locked = true
  67. TBodyB.CanCollide = false
  68. TBodyB.BrickColor = BrickColor.new("Really black")
  69. TBodyB.Anchored = false
  70. TBodyB.Size = Vector3.new(0.2,0.25,0.25)
  71. TBodyB.TopSurface = 0
  72. TBodyB.BottomSurface = 0
  73. TBodyB.Parent = Staff
  74. MeshB = Instance.new("BlockMesh",TBodyB)
  75. WeldB = Instance.new("Weld")
  76. WeldB.Parent = TBodyB
  77. WeldB.Part0 = TBody
  78. WeldB.Part1 = TBodyB
  79. WeldB.C0 = CFrame.new(-0.125,0.5,0) * CFrame.Angles(0,0,0)
  80. --[[ * Taze * ]]--
  81. Taze = Instance.new("Part")
  82. Taze.formFactor = "Custom"
  83. Taze.Locked = true
  84. Taze.CanCollide = false
  85. Taze.BrickColor = BrickColor.new("Really black")
  86. Taze.Anchored = false
  87. Taze.Size = Vector3.new(0.2,0.2,0.2)
  88. Taze.TopSurface = 0
  89. Taze.BottomSurface = 0
  90. Taze.Parent = Staff
  91. Taze.Reflectance = 1
  92. MeshB = Instance.new("BlockMesh",Taze)
  93. WeldB = Instance.new("Weld")
  94. WeldB.Parent = Taze
  95. WeldB.Part0 = TBody
  96. WeldB.Part1 = Taze
  97. WeldB.C0 = CFrame.new(0,0.5,0) * CFrame.Angles(0,0,0)
  98. if Taze:IsDescendantOf(Character) then print('yes') end
  99. if script.Parent.Name == Player.Name then
  100. Hopper = Instance.new("HopperBin")
  101. Hopper.Name = "Tazer"
  102. Hopper.Parent = Player.Backpack
  103. end
  104. Blah = true
  105. Relax = false
  106. Tazing = false
  107. function Tazed(hit)
  108. if Tazing == true then
  109. for i,v in pairs(hit.Parent:GetChildren()) do
  110. if v:IsA("Pants") or v:IsA("Shirt") or v:IsA("ShirtGraphic") or v:IsA("CharacterMesh") then
  111. v:Remove()
  112. end
  113. if v:IsA("Hat") then
  114. pcall(function()
  115. v.Handle.Anchored = true
  116. v.Handle.Reflectance = 1
  117. end)
  118. pcall(function()
  119. v.Handle.Mesh.TextureId = ""
  120. end)
  121. end
  122. if v:IsA("Part") then
  123. v.Anchored = true
  124. v.Reflectance = 1
  125. v:BreakJoints()
  126. end
  127. end
  128. end
  129. end
  130. function Clicked(Mouse)
  131. if Blah == true then
  132. Blah = false
  133. if Relax == true then
  134. for i = 1,5 do wait()
  135. ArmWeld.C0 = ArmWeld.C0 * CFrame.Angles(math.pi/10/10*3,math.pi/10/10*3,math.pi/10/10*3)
  136. ArmWeld.C0 = ArmWeld.C0 - Vector3.new(-0.05*3,0,0.05/2*3)
  137. Neck.C0 = Neck.C0 * CFrame.Angles(math.pi/10/10/2*3,0,0)
  138. Neck.C0 = Neck.C0 + Vector3.new(0,0,0.1/10*3)
  139. end
  140. ArmWeld.C0 = CFrame.new(1.5,0,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  141. for i = 1,5 do wait()
  142. ArmWeld.C0 = ArmWeld.C0 * CFrame.Angles(0,0,math.pi/5/2)
  143. ArmWeld.C0 = ArmWeld.C0 + Vector3.new(0.1,0.1,0)
  144. end
  145. for i = 1,3 do wait()
  146. ArmWeld.C0 = ArmWeld.C0 * CFrame.Angles(math.pi/5/2,0,0)
  147. ArmWeld.C0 = ArmWeld.C0 - Vector3.new(0.3/2,0,0.2/2)
  148. end
  149. Tazing = true
  150. Taze.Touched:connect(Tazed)
  151. TBodyA.Touched:connect(Tazed)
  152. TBodyB.Touched:connect(Tazed)
  153. TBody.Touched:connect(Tazed)
  154. Character["Right Arm"].Touched:connect(Tazed)
  155. for i = 1,2 do wait()
  156. ArmWeld.C0 = ArmWeld.C0 * CFrame.Angles(math.pi/5/2,0,0)
  157. ArmWeld.C0 = ArmWeld.C0 - Vector3.new(0.3/2,0,0.2/2)
  158. end
  159. Character.Humanoid.WalkSpeed = 0
  160. wait(1)
  161. Tazing = false
  162. Character.Humanoid.WalkSpeed = 16
  163. for i = 1,5 do wait()
  164. ArmWeld.C0 = ArmWeld.C0 * CFrame.Angles(-math.pi/5/2,0,0)
  165. ArmWeld.C0 = ArmWeld.C0 + Vector3.new(0.3/2,0,0.2/2)
  166. end
  167. for i = 1,5 do wait()
  168. ArmWeld.C0 = ArmWeld.C0 * CFrame.Angles(0,0,-math.pi/5/2)
  169. ArmWeld.C0 = ArmWeld.C0 - Vector3.new(0.1,0.1,0)
  170. end
  171. for i = 1,5 do wait()
  172. ArmWeld.C0 = ArmWeld.C0 * CFrame.Angles(-math.pi/10/10*3,-math.pi/10/10*3,-math.pi/10/10*3)
  173. ArmWeld.C0 = ArmWeld.C0 + Vector3.new(-0.05*3,0,0.05/2*3)
  174. Neck.C0 = Neck.C0 * CFrame.Angles(-math.pi/10/10/2*3,0,0)
  175. Neck.C0 = Neck.C0 - Vector3.new(0,0,0.1/10*3)
  176. end
  177. end
  178. Blah = true
  179. end
  180. end
  181. VCZ = 0
  182. Keys = {}
  183. function onKeyDown(key,Mouse)
  184. if Blah == true then
  185. Blah = false
  186. if key == "p" then
  187. if Relax == false then
  188. Relax = true
  189. for i = 1,15 do wait()
  190. ArmWeld.C0 = ArmWeld.C0 * CFrame.Angles(-math.pi/10/10,-math.pi/10/10,-math.pi/10/10)
  191. ArmWeld.C0 = ArmWeld.C0 + Vector3.new(-0.05,0,0.05/2)
  192. ArmWeldR.C0 = ArmWeldR.C0 * CFrame.Angles(-math.pi/10/10,math.pi/10/10,math.pi/10/10)
  193. ArmWeldR.C0 = ArmWeldR.C0 + Vector3.new(0.05,0,0.05/2)
  194. Neck.C0 = Neck.C0 * CFrame.Angles(-math.pi/10/10/2,0,0)
  195. Neck.C0 = Neck.C0 - Vector3.new(0,0,0.1/10)
  196. end
  197. elseif Relax == true then
  198. Relax = false
  199. for i = 1,15 do wait()
  200. ArmWeld.C0 = ArmWeld.C0 * CFrame.Angles(math.pi/10/10,math.pi/10/10,math.pi/10/10)
  201. ArmWeld.C0 = ArmWeld.C0 - Vector3.new(-0.05,0,0.05/2)
  202. ArmWeldR.C0 = ArmWeldR.C0 * CFrame.Angles(math.pi/10/10,-math.pi/10/10,-math.pi/10/10)
  203. ArmWeldR.C0 = ArmWeldR.C0 - Vector3.new(0.05,0,0.05/2)
  204. Neck.C0 = Neck.C0 * CFrame.Angles(math.pi/10/10/2,0,0)
  205. Neck.C0 = Neck.C0 + Vector3.new(0,0,0.1/10)
  206. end
  207. ArmWeld.C0 = CFrame.new(1.5,0,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  208. ArmWeldR.C0 = CFrame.new(-1.5,0,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  209. end
  210. end
  211. Blah = true
  212. return
  213. end
  214. end
  215. function onKeyUp(key,Mouse)
  216. end
  217. function Selected(Mouse)
  218. Mouse.Icon = "rbxasset://textures\\GunCursor.png"
  219. Mouse.KeyDown:connect(function(key) onKeyDown(key, Mouse) end)
  220. Mouse.KeyUp:connect(function(key) onKeyUp(key, Mouse) end)
  221. Mouse.Button1Down:connect(function()Clicked(Mouse)end)
  222. end
  223. function Deselected(Mouse)
  224. end
  225. function DeadGuy()
  226. --pcall(function() Character.Head.face:Remove() end)
  227. for i = 1,20 do
  228. for i,v in pairs(Character:GetChildren()) do
  229. if v:IsA("Part") then
  230. v.Anchored = true
  231. end
  232. end
  233. for i,v in pairs(Assassin:GetChildren()) do
  234. if v:IsA("Part") then
  235. v.Anchored = true
  236. end
  237. end
  238. for i,v in pairs(Staff:GetChildren()) do
  239. if v:IsA("Part") then
  240. v.Anchored = true
  241. end
  242. end
  243. for i,v in pairs(Lightning:GetChildren()) do
  244. if v:IsA("Part") then
  245. v.Anchored = true
  246. end
  247. end
  248. end
  249. wait(0.1)
  250. end
  251. Hopper.Selected:connect(Selected)
  252. Hopper.Deselected:connect(Deselected)
  253. Character.Humanoid.Died:connect(DeadGuy)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement