KilluaGod

Derp Ssundee

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