Thefrozen106

Dio's "OverPowered" Knife

Aug 2nd, 2017
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.01 KB | None | 0 0
  1. local p = game.Players.LocalPlayer
  2. local char = p.Character
  3. local hed = char.Head
  4. local LocalPlayer = p
  5.  
  6. local Player = game.Players.localPlayer
  7. local Character = p.Character
  8.  
  9. local LeftArm2 = Character["Left Arm"]
  10. local RightArm2 = Character["Right Arm"]
  11. local LeftLeg2 = Character["Left Leg"]
  12. local RightLeg2 = Character["Right Leg"]
  13. local Head2 = Character.Head
  14. local Torso2 = Character.Torso
  15.  
  16. local player = game.Players.LocalPlayer
  17. local shirt = player.Character:WaitForChild("Shirt")
  18. local pants = player.Character:WaitForChild("Pants")
  19.  
  20. wait()
  21. shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=536831523"
  22. pants.PantsTemplate = "http://www.roblox.com/asset/?id=547264976"
  23.  
  24. char.Humanoid.MaxHealth = math.huge
  25. char.Humanoid.Health = math.huge
  26.  
  27. for i,v in pairs(char:GetChildren()) do
  28. if v.ClassName == "Accessory" or v.ClassName == "Hat" then
  29. v:destroy()
  30. end
  31. end
  32.  
  33. local Hair = Instance.new("Part")
  34. Hair.Parent = char
  35. Hair.Name = "Hair"
  36. Hair.Size = Vector3.new(1, 1, 1)
  37. Hair.CFrame = char.Head.CFrame
  38. Hair:BreakJoints()
  39. Hair.CanCollide = false
  40. Hair.TopSurface = "Smooth"
  41. Hair.BottomSurface = "Smooth"
  42. Hair.BrickColor = BrickColor.new("Gold")
  43. Weld = Instance.new("Weld")
  44. Weld.Name = "Weld"
  45. Weld.Part0 = char.Head
  46. Weld.Part1 = Hair
  47. Weld.Parent = char.Head
  48. Weld.C0 = CFrame.new(0.1,0,0.2)*CFrame.fromEulerAnglesXYZ(0,0,0)
  49. Mesh = Instance.new("SpecialMesh")
  50. Mesh.Parent = Hair
  51. Mesh.MeshId = "rbxassetid://886288384"
  52. Mesh.TextureId = "rbxassetid://886289004"
  53. Mesh.Scale = Vector3.new(0.11,0.1,0.08)
  54.  
  55. cut = Instance.new("Sound", Character)
  56. cut.SoundId = "https://www.roblox.com/asset/?id=97095069"
  57. cut.Volume = 1.5
  58. thri = Instance.new("Sound", Character)
  59. thri.SoundId = "https://www.roblox.com/asset/?id=186311262"
  60. thri.Volume = 2.5
  61. WRY = Instance.new("Sound", Character)
  62. WRY.SoundId = "https://www.roblox.com/asset/?id=910713928"
  63. WRY.Volume = 5
  64.  
  65. ff = Instance.new("ForceField", game.Players.LocalPlayer.Character)
  66. ff.Visible = false
  67.  
  68. local Players=game:service'Players'
  69. local Player=Players.LocalPlayer
  70. local Mouse=Player:GetMouse''
  71. local RenderStepped=game:service'RunService'.RenderStepped
  72.  
  73. local MeshId='http://www.roblox.com/asset?id=202083123'
  74. local TextureId='http://www.roblox.com/asset/?id=189436355'
  75.  
  76. local KnifeSpeed= 120
  77.  
  78. Mouse.Button1Down:connect(function()
  79. cut:Play()
  80. if Mouse.Target then
  81. local Knife=Instance.new('Part',Player.Character)
  82. Knife.CanCollide=false
  83. Knife.Size=Vector3.new(2,2,2)
  84. Knife.CFrame=Player.Character.Torso.CFrame
  85. local KnifeMesh=Instance.new('SpecialMesh',Knife)
  86. KnifeMesh.MeshType='FileMesh'
  87. KnifeMesh.MeshId=MeshId
  88. KnifeMesh.TextureId=TextureId
  89. KnifeMesh.Scale=Vector3.new(1,1,1)
  90. local BodyVel=Instance.new('BodyVelocity',Knife)
  91. BodyVel.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  92. local BodyGyro=Instance.new('BodyGyro',Knife)
  93. BodyGyro.maxTorque=Vector3.new(math.huge,math.huge,math.huge)
  94. BodyGyro.P=2e4
  95. coroutine.wrap(function()
  96. RenderStepped:connect(function()
  97. BodyGyro.cframe=CFrame.new(Knife.Position,Mouse.Hit.p)
  98. BodyVel.velocity=Knife.CFrame.lookVector*KnifeSpeed
  99. end)
  100. end)()
  101. Knife.Touched:connect(function(p)
  102. if p.Parent~=Player.Character and p.Parent:FindFirstChild'Humanoid' then
  103. p.Parent:BreakJoints()
  104. Knife:Destroy''
  105. thri:Play()
  106. end
  107. end)
  108. end
  109. end)
  110.  
  111. mse = Player:GetMouse()
  112.  
  113. sound = Instance.new("Sound", Character)
  114. sound.SoundId = "https://www.roblox.com/asset/?id=840567549"
  115. sound.Volume = 2.5
  116. sound2 = Instance.new("Sound", Character)
  117. sound2.SoundId = "https://www.roblox.com/asset/?id=616594208"
  118. sound2.Volume = 2.5
  119. sound3 = Instance.new("Sound", Character)
  120. sound3.SoundId = "https://www.roblox.com/asset/?id=616576400"
  121. sound3.Volume = 1.8
  122. sound4 = Instance.new("Sound", Character)
  123. sound4.SoundId = "https://www.roblox.com/asset/?id=616576400"
  124. sound4.Volume = 2
  125. TSTheme = Instance.new("Sound", Character)
  126. TSTheme.SoundId = "https://www.roblox.com/asset/?id=910713928"
  127. TSTheme.Volume = 2
  128. canworld = true
  129. mse.KeyDown:connect(function(key)
  130. key = key:lower()
  131. if key == "t" then
  132. if canworld == false then return end
  133. if canworld then
  134. canworld = false
  135. sound3:Play()
  136. sound:Play()
  137. sound4:Play()
  138. TSTheme:Play()
  139.  
  140. local function spawnpart()
  141. sphere = Instance.new("Part")
  142. --game.Debris:AddItem(sphere,3)
  143. local sm = Instance.new("SpecialMesh", sphere)
  144. sm.MeshType = "Sphere"
  145. sphere.Transparency = 0.5
  146. sphere.Anchored = true
  147. sphere.CanCollide = false
  148. sphere.Material = "Neon"
  149. sphere.BrickColor = BrickColor.new("Black")
  150. end
  151.  
  152. local function weld(lol)
  153. local weld = Instance.new("Weld", Player.Character.Torso)
  154. weld.Part0 = Player.Character.Torso
  155. weld.Part1 = lol
  156. weld.C0 = Player.Character.Torso.CFrame:inverse()
  157. weld.C1 = lol.CFrame:inverse()
  158. end
  159. wait()
  160. spawnpart()
  161. for i, v in pairs(game.Players:GetChildren()) do
  162. t = v.Character:FindFirstChild("Torso")
  163. if t then
  164. t.Anchored = true
  165. Player.Character:FindFirstChild("Torso").Anchored = false
  166. end
  167. RA = v.Character:FindFirstChild("Right Arm")
  168. if RA then
  169. RA.Anchored = true
  170. Player.Character:FindFirstChild("Right Arm").Anchored = false
  171. end
  172. LA = v.Character:FindFirstChild("Left Arm")
  173. if LA then
  174. LA.Anchored = true
  175. Player.Character:FindFirstChild("Left Arm").Anchored = false
  176. end
  177. RL = v.Character:FindFirstChild("Right Leg")
  178. if RL then
  179. RL.Anchored = true
  180. Player.Character:FindFirstChild("Right Leg").Anchored = false
  181. end
  182. LL = v.Character:FindFirstChild("Left Leg")
  183. if LL then
  184. LL.Anchored = true
  185. Player.Character:FindFirstChild("Left Leg").Anchored = false
  186. end
  187. end
  188. weld(sphere)
  189. cce = Instance.new("ColorCorrectionEffect", game.Lighting)
  190. cce.Saturation = -5
  191. --game.Debris:AddItem(cce, 5)
  192. sphere.Parent = Character.Torso
  193. for i = 1,3 do
  194. sphere.Size = sphere.Size + Vector3.new(50,50,50)
  195. wait()
  196. end
  197. wait()
  198. sphere:Destroy()
  199. KnifeSpeed = 0
  200. cce.Saturation = -0.1
  201. wait(0.3)
  202. cce.Saturation = -0.2
  203. wait(0.3)
  204. cce.Saturation = -0.3
  205. wait(0.2)
  206. cce.Saturation = -1.5
  207. wait()
  208. end
  209. end
  210. end
  211. )
  212.  
  213. mse.KeyDown:connect(function(key)
  214. key = key:lower()
  215. if key == "y" then
  216. canworld = true
  217. sound2:Play()
  218. wait()
  219. KnifeSpeed = 1
  220. cce.Saturation = -1.3
  221. wait(0.5)
  222. KnifeSpeed = 1.2
  223. cce.Saturation = -0.5
  224. wait(0.5)
  225. KnifeSpeed = 1.4
  226. cce.Saturation = -0.4
  227. wait(0.3)
  228. KnifeSpeed = 1.5
  229. cce.Saturation = -0.2
  230. wait(0.2)
  231. cce.Saturation = 0
  232.  
  233. for i, v in pairs(game.Players:GetChildren()) do
  234. t = v.Character:FindFirstChild("Torso")
  235. if t then
  236. t.Anchored = false
  237. end
  238. RA = v.Character:FindFirstChild("Right Arm")
  239. if RA then
  240. RA.Anchored = false
  241. end
  242. LA = v.Character:FindFirstChild("Left Arm")
  243. if LA then
  244. LA.Anchored = false
  245. end
  246. RL = v.Character:FindFirstChild("Right Leg")
  247. if RL then
  248. RL.Anchored = false
  249. end
  250. LL = v.Character:FindFirstChild("Left Leg")
  251. if LL then
  252. LL.Anchored = false
  253. end
  254. end
  255. KnifeSpeed = 120
  256. TSTheme:Stop()
  257. end
  258. end)
Add Comment
Please, Sign In to add comment