helloperson

Untitled

Apr 17th, 2019
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.34 KB | None | 0 0
  1. script.Parent = workspace.CurrentCamera
  2. local plr = game:GetService("Players").LocalPlayer
  3.  
  4. local tool = Instance.new("Tool",plr:WaitForChild("Backpack"))
  5. tool.Grip = CFrame.new(0,-0.8,-0.2) * CFrame.Angles(math.rad(0),math.rad(180),math.rad(0))
  6. tool.Name = "DOGE"
  7.  
  8. local part = Instance.new("Part",tool)
  9. part.Name = "Handle"
  10. part.Size = Vector3.new(4,6,4)
  11. part.TopSurface = "Smooth"
  12. part.BottomSurface = "Smooth"
  13. part.CanCollide = false
  14. part:BreakJoints()
  15.  
  16. local mesh = Instance.new("SpecialMesh",part)
  17. mesh.MeshId = "rbxassetid://490368298" --mesh.MeshId = "rbxassetid://490368298"
  18. mesh.TextureId = "rbxassetid://490368301" --"rbxassetid://490368301"
  19. mesh.Scale = Vector3.new(10,10,10)
  20.  
  21. local sound = Instance.new("Sound",part)
  22. sound.SoundId = "rbxassetid://1006723227"
  23. sound.Volume = 3
  24.  
  25. local sound2 = Instance.new("Sound",part)
  26. sound2.SoundId = "rbxassetid://1006723227"
  27. sound2.Volume = 5
  28.  
  29. local sound3 = Instance.new("Sound",part)
  30. sound3.SoundId = "rbxassetid://467116065"
  31. sound3.Volume = 10
  32.  
  33. local sound4 = Instance.new("Sound",part)
  34. sound4.SoundId = "rbxassetid://258057783"
  35. sound4.Volume = 10
  36.  
  37. local sound5 = Instance.new("Sound",part)
  38. sound5.SoundId = "rbxassetid://1006723227"
  39. sound5.Volume = 10
  40.  
  41. local sound6 = Instance.new("Sound",part)
  42. sound6.SoundId = "rbxassetid://141679994"
  43. sound6.Volume = 10
  44. function firstHum(target)
  45. for i,v in pairs(target:GetChildren()) do
  46. if v:IsA("Humanoid") then
  47. return v
  48. end
  49. end
  50. return nil
  51. end
  52.  
  53. local slap = false
  54. local cd = false
  55.  
  56. plr:GetMouse().Button1Down:connect(function()
  57. if tool.Parent == plr.Character then
  58. if slap == false then
  59. slap = true
  60. sound2:Play()
  61. local str = Instance.new("StringValue")
  62. str.Name = "toolanim"
  63. str.Value = "Slash"
  64. str.Parent = tool
  65. wait(1)
  66. slap = false
  67. end
  68. end
  69. end)
  70.  
  71. part.Touched:connect(function(hit)
  72. if slap == true then
  73. if cd == false then
  74. if not hit:IsDescendantOf(plr.Character) then
  75. if hit.Parent:IsA("Model") then
  76. local fhum = firstHum(hit.Parent)
  77. if fhum then
  78. cd = true
  79. fhum.PlatformStand = true
  80. sound:Play()
  81. local con1
  82. con1 = game:GetService("RunService").Heartbeat:connect(function()
  83. fhum.PlatformStand = true
  84. end)
  85. wait(0.1)
  86. local vel = Instance.new("BodyVelocity",hit)
  87. vel.Velocity = ((hit.Position - plr.Character:WaitForChild("HumanoidRootPart").Position).unit + Vector3.new(0,0.5,0))*50
  88. vel.MaxForce = Vector3.new(10000000,10000000,10000000)
  89. wait(1)
  90. cd = false
  91. vel:Destroy()
  92. local vel2 = Instance.new("BodyVelocity",hit)
  93. vel2.Velocity = Vector3.new(0,12.5,0)
  94. vel2.MaxForce = Vector3.new(10000000,10000000,10000000)
  95. local p2 = Instance.new("Part",hit)
  96. p2.Anchored = true
  97. p2.Transparency = 0.6
  98. p2.CanCollide = false
  99. p2.Size = Vector3.new(0.2,0.2,0.2)
  100. p2.CFrame = CFrame.new(hit.CFrame.p) * CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))
  101. p2.BrickColor = BrickColor.new("White")
  102. p2.Material = "Neon"
  103. local m2 = Instance.new("CylinderMesh",p2)
  104. m2.Scale = Vector3.new(60,10000,60)
  105. local scln = sound3:Clone()
  106. scln.Parent = hit
  107. scln:Play()
  108. local con2
  109. con2 = game:GetService("RunService").Heartbeat:connect(function()
  110. p2.CFrame = CFrame.new(hit.CFrame.p) * CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))
  111. end)
  112. wait(7)
  113. vel2.Velocity = Vector3.new(0,0,0)
  114. wait(0.5)
  115. scln:Stop()
  116. local scln3 = sound5:Clone()
  117. scln3.Parent = hit
  118. scln3:Play()
  119. wait(1)
  120. local bav = Instance.new("BodyAngularVelocity",hit)
  121. bav.AngularVelocity = Vector3.new(math.random(0,360),math.random(0,360),math.random(0,360))
  122. vel2.Velocity = Vector3.new(0,-250,0)
  123. p2.BrickColor = BrickColor.new("Smoky Grey")
  124. local scln6 = sound6:Clone()
  125. scln6.Parent = hit
  126. scln6:Play()
  127. local continue = false
  128. local htc
  129. htc = hit.Touched:connect(function(hitp)
  130. if not hitp:IsDescendantOf(hit.Parent) then
  131. continue = true
  132. scln6:Stop()
  133. vel2:Destroy()
  134. con2:Disconnect()
  135. con1:Disconnect()
  136. htc:Disconnect()
  137. p2:Destroy()
  138. end
  139. end)
  140. repeat wait() until continue == true
  141. local ctab = {}
  142. for i=1,4 do
  143. local p = Instance.new("Part",hit)
  144. p.Size = Vector3.new(30,30,30)
  145. p.Anchored = true
  146. p.CanCollide = false
  147. p.TopSurface = "Smooth"
  148. p.BottomSurface = "Smooth"
  149. p.Color = Color3.fromRGB(255,math.random(0,255),0)
  150. p.CFrame = hit.CFrame
  151. local con
  152. con = game:GetService("RunService").Heartbeat:connect(function()
  153. p.CFrame = p.CFrame * CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
  154. p.Transparency = p.Transparency + 0.01
  155. if p.Transparency >= 1 then
  156. con:Disconnect()
  157. end
  158. end)
  159. table.insert(ctab,con)
  160. end
  161. Instance.new("Explosion",workspace).Position = hit.Position
  162. local scln2 = sound4:Clone()
  163. scln2.Parent = hit
  164. scln2:Play()
  165. vel2:Destroy()
  166. hit.Parent:BreakJoints()
  167. repeat wait() until not hit:IsDescendantOf(workspace)
  168. con2:Disconnect()
  169. end
  170. end
  171. end
  172. end
  173. end
  174. end)
Add Comment
Please, Sign In to add comment