Advertisement
VorLex

Windows XD

Jan 4th, 2018
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.42 KB | None | 0 0
  1. --Its Edited
  2.  
  3. script.Parent = workspace.CurrentCamera
  4. local plr = game:GetService("Players").LocalPlayer
  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 = "Windows XP"
  9.  
  10. local part = Instance.new("Part",tool)
  11. part.Name = "Handle"
  12. part.Size = Vector3.new(4,6,4)
  13. part.TopSurface = "Smooth"
  14. part.BottomSurface = "Smooth"
  15. part.CanCollide = false
  16. part:BreakJoints()
  17.  
  18. local mesh = Instance.new("SpecialMesh",part)
  19. mesh.MeshId = "rbxassetid://430131188" --mesh.MeshId = "rbxassetid://132920499"
  20. mesh.TextureId = "rbxassetid://430131252" --"http://www.roblox.com/asset/?id=134479421"
  21. mesh.Scale = Vector3.new(6.082, 3.545, 0.05)
  22.  
  23. local sound = Instance.new("Sound",part)
  24. sound.SoundId = "rbxassetid://130944130"
  25. sound.Volume = 3
  26.  
  27. local sound2 = Instance.new("Sound",part)
  28. sound2.SoundId = "rbxassetid://1132514657"
  29. sound2.Volume = 5
  30.  
  31. local sound3 = Instance.new("Sound",part)
  32. sound3.SoundId = "rbxassetid://1107208252"
  33. sound3.Volume = 10
  34.  
  35. local sound4 = Instance.new("Sound",part)
  36. sound4.SoundId = "rbxassetid://160715357"
  37. sound4.Volume = 10
  38.  
  39. local sound5 = Instance.new("Sound",part)
  40. sound5.SoundId = "rbxassetid://130932305"
  41. sound5.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("Bright Red")
  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(7)
  117. vel2.Velocity = Vector3.new(0,0,0)
  118. wait(0.5)
  119. scln:Stop()
  120. local scln3 = sound5:Clone()
  121. scln3.Parent = hit
  122. scln3:Play()
  123. wait(1)
  124. local bav = Instance.new("BodyAngularVelocity",hit)
  125. bav.AngularVelocity = Vector3.new(math.random(0,360),math.random(0,360),math.random(0,360))
  126. vel2.Velocity = Vector3.new(0,-250,0)
  127. p2.BrickColor = BrickColor.new("Bright Blue")
  128. local scln6 = sound6:Clone()
  129. scln6.Parent = hit
  130. scln6:Play()
  131. local continue = false
  132. local htc
  133. htc = hit.Touched:connect(function(hitp)
  134. if not hitp:IsDescendantOf(hit.Parent) then
  135. continue = true
  136. scln6:Stop()
  137. vel2:Destroy()
  138. con2:Disconnect()
  139. con1:Disconnect()
  140. htc:Disconnect()
  141. p2:Destroy()
  142. end
  143. end)
  144. repeat wait() until continue == true
  145. local ctab = {}
  146. for i=1,4 do
  147. local p = Instance.new("Part",hit)
  148. p.Size = Vector3.new(30,30,30)
  149. p.Anchored = true
  150. p.CanCollide = false
  151. p.TopSurface = "Smooth"
  152. p.BottomSurface = "Smooth"
  153. p.Color = Color3.fromRGB(255,math.random(0,255),0)
  154. p.CFrame = hit.CFrame
  155. local con
  156. con = game:GetService("RunService").Heartbeat:connect(function()
  157. p.CFrame = p.CFrame * CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
  158. p.Transparency = p.Transparency + 0.01
  159. if p.Transparency >= 1 then
  160. con:Disconnect()
  161. end
  162. end)
  163. table.insert(ctab,con)
  164. end
  165. Instance.new("Explosion",workspace).Position = hit.Position
  166. local scln2 = sound4:Clone()
  167. scln2.Parent = hit
  168. scln2:Play()
  169. vel2:Destroy()
  170. hit.Parent:BreakJoints()
  171. repeat wait() until not hit:IsDescendantOf(workspace)
  172. con2:Disconnect()
  173. end
  174. end
  175. end
  176. end
  177. end
  178. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement