Advertisement
lundofett

Untitled

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