Advertisement
astronaut32

tazer

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