Wweroblox12121212

Untitled

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