TheUnknownDiscord

watch yo tone

Feb 24th, 2022 (edited)
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.08 KB | None | 0 0
  1. game:GetService("Chat").BubbleChatEnabled = true
  2. tool = Instance.new("Tool",owner.Backpack)
  3. Instance.new("RemoteEvent",tool)
  4. part = Instance.new("Part",tool)
  5. part.Name = "Handle"
  6. part.Size = Vector3.new(4,4,4)
  7. part.Transparency = 1
  8. force = 200
  9. local PartA = Instance.new("Part")
  10. PartA.Transparency = 1
  11. PartA.CanCollide = false
  12. local SA = Instance.new("Sound",PartA)
  13. SA.SoundId = "rbxasset://sounds/bass.mp3"
  14. SA.PlayOnRemove = true
  15. SA.TimePosition = 0.2
  16. local PartB = Instance.new("Part")
  17. PartB.Transparency = 1
  18. PartB.CanCollide = false
  19. local SB = Instance.new("Sound",PartB)
  20. SB.SoundId = "rbxasset://sounds/electronicpingshort.wav"
  21. SB.PlayOnRemove = true
  22. SB.TimePosition = 0.2
  23. local PartC = Instance.new("Part")
  24. PartC.Transparency = 1
  25. PartC.CanCollide = false
  26. local SC = Instance.new("Sound",PartC)
  27. SC.SoundId = "rbxasset://sounds/snap.mp3"
  28. SC.PlayOnRemove = true
  29. SC.TimePosition = 0.2
  30. PartA.Anchored = true
  31. PartB.Anchored = true
  32. PartC.Anchored = true
  33. local VisCount = 0
  34. function HitEffect(Pos,Type)
  35. spawn(function()
  36. VisCount = VisCount + 1
  37. local P = Instance.new("Part",script)
  38. P.Name = "HitEffect"
  39. P.Material = Enum.Material.Neon
  40. P.Position = Pos
  41. P.Anchored = true
  42. P.Locked = true
  43. P.CanCollide = false
  44. if Type == 1 then
  45. P.BrickColor = BrickColor.new("Neon orange")
  46. elseif Type == 2 then
  47. P.BrickColor = BrickColor.new("Really red")
  48. else
  49. P.BrickColor = BrickColor.new("Cyan")
  50. end
  51. local S = {}
  52. if VisCount < 5 then
  53. P.Size = Vector3.new(0.5,0.5,0.5)*math.max(1,Type)
  54. P.Shape = Enum.PartType.Ball
  55. for i = 1,4 do
  56. local SE = Instance.new("Part",script)
  57. SE.Name = "HitOutEffect"
  58. SE.Size = Vector3.new(0.5,0.5,0.05)*math.max(1,Type)
  59. SE.Material = Enum.Material.Neon
  60. SE.Position = Pos
  61. SE.Orientation = Vector3.new(math.random(0,360),math.random(0,360),math.random(0,360))
  62. SE.Anchored = true
  63. SE.Locked = true
  64. SE.CanCollide = false
  65. if Type == 1 then
  66. SE.BrickColor = BrickColor.new("Bright red")
  67. elseif Type == 2 then
  68. SE.BrickColor = BrickColor.new("New Yeller")
  69. else
  70. SE.BrickColor = BrickColor.new("Bright blue")
  71. end
  72. table.insert(S,SE)
  73. end
  74. for i = 1,3*math.max(1,Type) do
  75. P.Size = P.Size + Vector3.new(0.5,0.5,0.5)*math.max(1,Type)
  76. for i = 1,#S do
  77. S[i].CFrame = S[i].CFrame*CFrame.new(0,0,0.5*math.max(1,Type))
  78. S[i].Size = S[i].Size+Vector3.new(0,0,0.5)
  79. end
  80. wait(0.05)
  81. end
  82. for i = 1,2*math.max(1,Type) do
  83. P.Transparency = P.Transparency + 0.5/math.max(1,Type)
  84. for i = 1,#S do
  85. S[i].CFrame = S[i].CFrame*CFrame.new(0,0,0.25*math.max(1,Type))
  86. S[i].Size = S[i].Size-Vector3.new(0,0,0.5)
  87. end
  88. wait(0.05)
  89. end
  90. else
  91. P.Size = Vector3.new(2.5,2.5,2.5)*math.max(1,Type)
  92. P.Orientation = Vector3.new(math.random(0,360),math.random(0,360),math.random(0,360))
  93. wait(0.05*Type)
  94. P.Transparency = 0.3
  95. P.Orientation = Vector3.new(math.random(0,360),math.random(0,360),math.random(0,360))
  96. if Type == 1 then
  97. P.BrickColor = BrickColor.new("Bright red")
  98. elseif Type == 2 then
  99. P.BrickColor = BrickColor.new("New Yeller")
  100. else
  101. P.BrickColor = BrickColor.new("Bright blue")
  102. end
  103. wait(0.05*Type)
  104. P.Transparency = 0.6
  105. P.Orientation = Vector3.new(math.random(0,360),math.random(0,360),math.random(0,360))
  106. if Type == 1 then
  107. P.BrickColor = BrickColor.new("Neon orange")
  108. elseif Type == 2 then
  109. P.BrickColor = BrickColor.new("Really red")
  110. else
  111. P.BrickColor = BrickColor.new("Cyan")
  112. end
  113. wait(0.05*Type)
  114. end
  115. VisCount = VisCount - 1
  116. P:Destroy()
  117. for i = 1,#S do
  118. S[i]:Destroy()
  119. end
  120. end)
  121. end
  122. local SoundCount = 0
  123. function PlayFX(type,pitch,vol,pos)
  124. if SoundCount < 30 then
  125. local waiter = 0
  126. local Part,Sound
  127. if type == "A" then
  128. Part,Sound,waiter = PartA,SA,1
  129. elseif type == "B" then
  130. Part,Sound,waiter = PartB,SB,0.7
  131. elseif type == "C" then
  132. Part,Sound,waiter = PartC,SC,0.4
  133. end
  134. Sound.PlaybackSpeed = pitch
  135. Sound.Volume = vol
  136. Part.Position = pos
  137. Part.Parent = script
  138. Part.Parent = nil
  139. SoundCount = SoundCount + 1
  140. delay(waiter/pitch,function()
  141. SoundCount = SoundCount - 1
  142. end)
  143. end
  144. end
  145. function Fall(pos)
  146. spawn(function()
  147. for i = 1,5 do
  148. local pos = pos.Position
  149. PlayFX("B",3,i*0.3,pos)
  150. wait(0.05)
  151. end
  152. for i = 1,20 do
  153. local pos = pos.Position
  154. PlayFX("B",3-i*0.025,2-i*0.075,pos)
  155. wait(0.05)
  156. end
  157. end)
  158. end
  159. function Snap(pos)
  160. PlayFX("C",2,1,pos)
  161. end
  162. function yotone()
  163. local rightarm = Instance.new("Weld", owner.Character.Torso)
  164. rightarm.Part0 = owner.Character.Torso
  165. rightarm.Part1 = owner.Character["Right Arm"]
  166. rightarm.C0 = CFrame.new(1.5, 0.5, -0.5) * CFrame.Angles(math.rad(90),0,0)
  167. rightarm.Name = "RightArmWeld"
  168. local tweenService = game:GetService("TweenService")
  169. local timeToFade = 0.175
  170. local object = rightarm
  171. local tweenInfo = TweenInfo.new(timeToFade)
  172. local goal = {}
  173. goal.C0 = CFrame.new(0.5, 0.5, -1) * CFrame.Angles(math.rad(90),0,0) * CFrame.Angles(0,0,math.rad(-75))
  174.  
  175. local tween = tweenService:Create(object, tweenInfo, goal)
  176. tween:Play()
  177. tween.Completed:Wait()
  178. local tweenService = game:GetService("TweenService")
  179. local timeToFade = 0.25
  180. local object = rightarm
  181. local tweenInfo = TweenInfo.new(timeToFade)
  182. local goal = {}
  183. goal.C0 = CFrame.new(2, 0.5, -1.5) * CFrame.Angles(math.rad(90),0,0) * CFrame.Angles(0,0,math.rad(35))
  184.  
  185. local tween = tweenService:Create(object, tweenInfo, goal)
  186. tween:Play()
  187. canattack = true
  188. tween.Completed:Wait()
  189. canattack = false
  190. local tweenService = game:GetService("TweenService")
  191. local timeToFade = 0.175
  192. local object = rightarm
  193. local tweenInfo = TweenInfo.new(timeToFade)
  194. local goal = {}
  195. goal.C0 = CFrame.new(1.5, 0.5, -0.5) * CFrame.Angles(math.rad(90),0,0)
  196.  
  197. local tween = tweenService:Create(object, tweenInfo, goal)
  198. tween:Play()
  199. tween.Completed:Wait()
  200. rightarm:Destroy()
  201. end
  202. canattack = false
  203. tool.Activated:Connect(function()
  204. game:GetService("Chat"):Chat(tool.Parent.Head, "watch yo tone", "White")
  205. yotone()
  206. end)
  207. function kill(Character)
  208. coroutine.wrap(function()
  209. pcall(function()
  210. if not Character:findFirstChild("UpperTorso") then
  211. for i,v in pairs(Character:GetDescendants()) do
  212. if v:IsA("Motor6D") then
  213. v:Destroy()
  214. end
  215. end
  216. local Socket = Instance.new("BallSocketConstraint")
  217. local a1 = Instance.new("Attachment")
  218. local a2 = Instance.new("Attachment")
  219. a1.Parent = Character["Left Arm"]
  220. a2.Parent = Character.Torso
  221. Socket.Parent = Character["Left Arm"]
  222. Socket.Attachment0 = a1
  223. Socket.Attachment1 = a2
  224. a1.WorldCFrame = a1.Parent.CFrame * CFrame.new(0,0.5,0)
  225. a2.WorldCFrame = a2.Parent.CFrame * CFrame.new(-1.5,0.5,0)
  226. Socket.LimitsEnabled = true
  227. local Socket = Instance.new("BallSocketConstraint")
  228. local a1 = Instance.new("Attachment")
  229. local a2 = Instance.new("Attachment")
  230. a1.Parent = Character["Left Leg"]
  231. a2.Parent = Character.Torso
  232. Socket.Parent = Character["Left Leg"]
  233. Socket.Attachment0 = a1
  234. Socket.Attachment1 = a2
  235. a1.WorldCFrame = a1.Parent.CFrame * CFrame.new(0,0.5,0)
  236. a2.WorldCFrame = a2.Parent.CFrame * CFrame.new(-0.5,-1.5,0)
  237. Socket.LimitsEnabled = true
  238. local Socket = Instance.new("BallSocketConstraint")
  239. local a1 = Instance.new("Attachment")
  240. local a2 = Instance.new("Attachment")
  241. a1.Parent = Character["Right Leg"]
  242. a2.Parent = Character.Torso
  243. Socket.Parent = Character["Right Leg"]
  244. Socket.Attachment0 = a1
  245. Socket.Attachment1 = a2
  246. Socket.LimitsEnabled = true
  247. a1.WorldCFrame = a1.Parent.CFrame * CFrame.new(0,0.5,0)
  248. a2.WorldCFrame = a2.Parent.CFrame * CFrame.new(0.5,-1.5,0)
  249. local Socket = Instance.new("BallSocketConstraint")
  250. local a1 = Instance.new("Attachment")
  251. local a2 = Instance.new("Attachment")
  252. a1.Parent = Character.HumanoidRootPart
  253. a2.Parent = Character.Torso
  254. Socket.Parent = Character.HumanoidRootPart
  255. Socket.Attachment0 = a1
  256. Socket.Attachment1 = a2
  257. a1.WorldCFrame = a1.Parent.CFrame
  258. a2.WorldCFrame = a1.Parent.CFrame
  259. Socket.LimitsEnabled = true
  260. local Socket = Instance.new("BallSocketConstraint")
  261. local a1 = Instance.new("Attachment")
  262. local a2 = Instance.new("Attachment")
  263. a1.Parent = Character.Head
  264. a2.Parent = Character.Torso
  265. Socket.Parent = Character.Head
  266. Socket.Attachment0 = a1
  267. Socket.Attachment1 = a2
  268. a1.WorldCFrame = a1.Parent.CFrame * CFrame.new(0,-0.5,0)
  269. a2.WorldCFrame = a2.Parent.CFrame * CFrame.new(0,1.0625,0)
  270. Socket.TwistLimitsEnabled = true
  271. Socket.LimitsEnabled = true
  272. local Socket = Instance.new("BallSocketConstraint")
  273. local a1 = Instance.new("Attachment")
  274. local a2 = Instance.new("Attachment")
  275. a1.Parent = Character["Right Arm"]
  276. a2.Parent = Character.Torso
  277. Socket.Parent = Character["Right Arm"]
  278. Socket.Attachment0 = a1
  279. Socket.Attachment1 = a2
  280. a1.WorldCFrame = a1.Parent.CFrame * CFrame.new(0,0.5,0)
  281. a2.WorldCFrame = a2.Parent.CFrame * CFrame.new(1.5,0.5,0)
  282. Socket.LimitsEnabled = true
  283. else
  284. for i,v in pairs(Character:GetDescendants()) do
  285. if v:IsA("Motor6D") then
  286. local Socket = Instance.new("BallSocketConstraint")
  287. local a1 = Instance.new("Attachment")
  288. local a2 = Instance.new("Attachment")
  289. a1.Parent = v.Part0
  290. a2.Parent = v.Part1
  291. Socket.Parent = v.Parent
  292. Socket.Attachment0 = a1
  293. Socket.Attachment1 = a2
  294. a1.CFrame = v.C0
  295. a2.CFrame = v.C1
  296. Socket.LimitsEnabled = true
  297. Socket.TwistLimitsEnabled = true
  298. v:Destroy()
  299. end
  300. end
  301. end
  302. end)
  303. end)()
  304. end
  305. part.Touched:Connect(function(hit)
  306. if canattack then
  307. if hit.Parent ~= owner.Character then
  308. local pos = part.CFrame * CFrame.new(0,0,-2)
  309. HitEffect(pos.Position,2)
  310. Fall(hit)
  311. Snap(hit.Position)
  312. if hit.Parent:FindFirstChildWhichIsA("Humanoid") then
  313. canattack = false
  314. hit.Parent:FindFirstChildWhichIsA("Humanoid").BreakJointsOnDeath = false
  315. local hum = hit.Parent:FindFirstChildWhichIsA("Humanoid")
  316. kill(hit.Parent)
  317. wait()
  318. coroutine.wrap(function()
  319. for i = 1, 10 do
  320. pcall(function()
  321. wait(0.1)
  322. hum.Health = 0
  323. end)
  324. end
  325. end)()
  326. local bf2 = Instance.new("BodyVelocity",hit.Parent:FindFirstChildWhichIsA("Part") )
  327. bf2.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  328. bf2.Velocity = owner.Character.Head.CFrame.lookVector * force + owner.Character.Head.CFrame.upVector * force
  329. game:GetService("Debris"):AddItem(bf2,0.1)
  330. else
  331. hit:ApplyImpulse(owner.Character.Head.CFrame.lookVector * hit:GetMass() * force + owner.Character.Head.CFrame.upVector * hit:GetMass() * force)
  332. end
  333. end
  334. end
  335. end)
Add Comment
Please, Sign In to add comment