Advertisement
kakeru012435

AHHHHHHHHHHHHHHHHHHHH!!

Jul 20th, 2017
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.99 KB | None | 0 0
  1. --Made by N3xul.
  2. local runDummyScript = function(f,scri)
  3. local oldenv = getfenv(f)
  4. local newenv = setmetatable({}, {
  5. __index = function(_, k)
  6. if k:lower() == 'script' then
  7. return scri
  8. else
  9. return oldenv[k]
  10. end
  11. end
  12. })
  13. setfenv(f, newenv)
  14. ypcall(function() f() end)
  15. end
  16. cors = {}
  17. mas = Instance.new("Model",game:GetService("Lighting"))
  18. mas.Name = "CompiledModel"
  19. o1 = Instance.new("Tool")
  20. o2 = Instance.new("Part")
  21. o3 = Instance.new("SpecialMesh")
  22. o4 = Instance.new("Sound")
  23. o5 = Instance.new("Sound")
  24. o6 = Instance.new("Sound")
  25. o8 = Instance.new("LocalScript")
  26. o9 = Instance.new("Animation")
  27. o10 = Instance.new("LocalScript")
  28. o1.Name = "Blue Neon MidasHand"
  29. o1.Parent = mas
  30. o1.TextureId = "http://www.roblox.com/asset/?id=161119323 "
  31. o1.GripForward = Vector3.new(-1, -0, -0)
  32. o1.GripPos = Vector3.new(0, 0, -1.5)
  33. o1.GripRight = Vector3.new(0, 1, 0)
  34. o1.GripUp = Vector3.new(0, 0, 1)
  35. o2.Name = "Handle"
  36. o2.Parent = o1
  37. o2.BrickColor = BrickColor.new("Dark stone grey")
  38. o2.Position = Vector3.new(176.308273, 2.509341, -160.059555)
  39. o2.Rotation = Vector3.new(-88.9899979, -0.49000001, 64.3700027)
  40. o2.FormFactor = Enum.FormFactor.Plate
  41. o2.Size = Vector3.new(1, 0.800000012, 5)
  42. o2.CFrame = CFrame.new(176.308273, 2.509341, -160.059555, 0.432602614, -0.901544809, -0.00846740138, 0.0195694156, -1.64067707e-14, 0.99980849, -0.901372135, -0.432685465, 0.0176427048)
  43. o2.BottomSurface = Enum.SurfaceType.Smooth
  44. o2.TopSurface = Enum.SurfaceType.Smooth
  45. o2.Color = Color3.new(0.388235, 0.372549, 0.384314)
  46. o2.Position = Vector3.new(176.308273, 2.509341, -160.059555)
  47. o3.Parent = o2
  48. o3.MeshId = "http://www.roblox.com/asset/?id=17384164"
  49. o3.TextureId = "http://www.roblox.com/asset/?id=161119143 "
  50. o3.MeshType = Enum.MeshType.FileMesh
  51. o4.Name = "Midas1"
  52. o4.Parent = o2
  53. o4.SoundId = "http://www.roblox.com/asset/?id=17385513"
  54. o4.Volume = 1
  55. o5.Name = "Midas2"
  56. o5.Parent = o2
  57. o5.SoundId = "http://www.roblox.com/asset/?id=17385522"
  58. o5.Volume = 1
  59. o6.Name = "Midas3"
  60. o6.Parent = o2
  61. o6.SoundId = "http://www.roblox.com/asset/?id=17385529"
  62. o6.Volume = 1
  63. o8.Name = "MouseIcon"
  64. o8.Parent = o1
  65. table.insert(cors,coroutine.create(function()
  66. wait()
  67. runDummyScript(function()
  68. --Made by Luckymaxer
  69.  
  70. Mouse_Icon = "rbxasset://textures/GunCursor.png"
  71. Reloading_Icon = "rbxasset://textures/GunWaitCursor.png"
  72.  
  73. Tool = script.Parent
  74.  
  75. Mouse = nil
  76.  
  77. function UpdateIcon()
  78. if Mouse then
  79. Mouse.Icon = Tool.Enabled and Mouse_Icon or Reloading_Icon
  80. end
  81. end
  82.  
  83. function OnEquipped(ToolMouse)
  84. Mouse = ToolMouse
  85. UpdateIcon()
  86. end
  87.  
  88. function OnChanged(Property)
  89. if Property == "Enabled" then
  90. UpdateIcon()
  91. end
  92. end
  93.  
  94. Tool.Equipped:connect(OnEquipped)
  95. Tool.Changed:connect(OnChanged)
  96.  
  97. end,o8)
  98. end))
  99. o9.Name = "Swing"
  100. o9.Parent = o1
  101. o9.AnimationId = "http://www.roblox.com/asset?id=162787112"
  102. o10.Parent = o1
  103. table.insert(cors,coroutine.create(function()
  104. wait()
  105. runDummyScript(function()
  106. --Made by Luckymaxer
  107.  
  108. Tool = script.Parent
  109. Handle = Tool:WaitForChild("Handle")
  110.  
  111. Players = game:GetService("Players")
  112. Debris = game:GetService("Debris")
  113.  
  114. Swing = Tool:WaitForChild("Swing")
  115.  
  116. Sounds = {
  117. Handle:WaitForChild("Midas1"),
  118. Handle:WaitForChild("Midas2"),
  119. Handle:WaitForChild("Midas3")
  120. }
  121.  
  122. ReloadTime = 2
  123.  
  124. PrimaryColor = "Pastel Blue"
  125. SecondaryColor = "Sand blue"
  126.  
  127. Part = Instance.new("Part")
  128. Part.Name = "Part"
  129. Part.BrickColor = BrickColor.new("Pastel Blue")
  130. Part.Material = Enum.Material.Neon
  131. Part.TopSurface = Enum.SurfaceType.Smooth
  132. Part.BottomSurface = Enum.SurfaceType.Smooth
  133. Part.Shape = Enum.PartType.Block
  134. Part.FormFactor = Enum.FormFactor.Custom
  135. Part.Size = Vector3.new(1, 0.4, 1)
  136.  
  137. TextureId = 136803121
  138.  
  139. function FindCharacterAncestor(Parent)
  140. if Parent and Parent ~= game:GetService("Workspace") then
  141. local humanoid = Parent:FindFirstChild("Humanoid")
  142. if humanoid then
  143. return Parent, humanoid
  144. else
  145. return FindCharacterAncestor(Parent.Parent)
  146. end
  147. end
  148. return nil
  149. end
  150.  
  151. function GetRandomSound()
  152. local Sound = Sounds[math.random(1, #Sounds)]
  153. if not Sound.IsPlaying then
  154. return Sound
  155. else
  156. GetRandomSound()
  157. end
  158. end
  159.  
  160. function MakeColorShavings(Position)
  161. for i = 1, 3 do
  162. local PartClone = Part:Clone()
  163. local a = (math.random() * 6.28)
  164. local d = Vector3.new(math.cos(a), 0, math.sin(a)).unit
  165. PartClone.Velocity = (d * 25)
  166. PartClone.RotVelocity = d
  167. Debris:AddItem(PartClone, 60)
  168. PartClone.Parent = game:GetService("Workspace")
  169. PartClone.CFrame = Position + Vector3.new(0, (math.random() * 3), 0) + (d * 2)
  170. end
  171. end
  172.  
  173. function Blow(Hit)
  174. if Hit and Hit.Parent then
  175. local character, humanoid = FindCharacterAncestor(Hit.Parent)
  176. if not character or character ~= Character and Humanoid and Humanoid.Health > 0 and RightArm then
  177. local RightGrip = RightArm:FindFirstChild("RightGrip")
  178. if RightGrip and (RightGrip.Part0 == Handle or RightGrip.Part1 == Handle) then
  179. if Hit:GetMass() < (Handle:GetMass() * 10) and (character or not Hit.Locked) then
  180. Hit.BrickColor = Part.BrickColor
  181. Hit.Material = Part.Material
  182. for i, v in pairs(Hit:GetChildren()) do
  183. if v:IsA("SpecialMesh") then
  184. if v.MeshType == Enum.MeshType.FileMesh then
  185. v.TextureId = "http://www.roblox.com/asset/?id=" .. TextureId
  186. else
  187. Hit.BrickColor = BrickColor.new(SecondaryColor)
  188. end
  189. end
  190. end
  191. if character then
  192. for i, v in pairs(character:GetChildren()) do
  193. if v:IsA("BodyColors") or v:IsA("Clothing") then
  194. v:Destroy()
  195. elseif v:IsA("CharacterMesh") and v.BodyPart.Name == string.gsub(Hit.Name, " ", "") then
  196. v.BaseTextureId = TextureId
  197. v.OverlayTextureId = TextureId
  198. end
  199. end
  200. end
  201. end
  202. end
  203. end
  204. end
  205. end
  206.  
  207. function Activated()
  208. if Tool.Enabled and Player and Humanoid and Humanoid.Health > 0 and Torso then
  209. Tool.Enabled = false
  210. SwingAnim = Humanoid:LoadAnimation(Swing)
  211. if SwingAnim then
  212. SwingAnim:Play()
  213. end
  214. MakeColorShavings(Torso.CFrame + (Torso.CFrame.lookVector * 3))
  215. wait(0.4)
  216. if SwingAnim then
  217. SwingAnim:Stop()
  218. end
  219. wait(ReloadTime)
  220. Tool.Enabled = true
  221. end
  222. end
  223.  
  224. function Equipped(Mouse)
  225. Character = Tool.Parent
  226. Player = Players:GetPlayerFromCharacter(Character)
  227. Humanoid = Character:FindFirstChild("Humanoid")
  228. Torso = Character:FindFirstChild("Torso")
  229. RightArm = Character:FindFirstChild("Right Arm")
  230. if not Player or not Humanoid or Humanoid.Health == 0 or not Torso or not RightArm then
  231. return
  232. end
  233. if not Tool.Enabled then
  234. wait(ReloadTime)
  235. Tool.Enabled = true
  236. end
  237. end
  238.  
  239. function Unequipped()
  240. if SwingAnim then
  241. SwingAnim:Stop()
  242. end
  243. end
  244.  
  245. Handle.Touched:connect(Blow)
  246.  
  247. Tool.Activated:connect(Activated)
  248. Tool.Equipped:connect(Equipped)
  249. Tool.Unequipped:connect(Unequipped)
  250. end,o10)
  251. end))
  252. mas.Parent = workspace
  253. mas:MakeJoints()
  254. local mas1 = mas:GetChildren()
  255. for i=1,#mas1 do
  256. mas1[i].Parent = game:GetService("Players").LocalPlayer.Backpack
  257. ypcall(function() mas1[i]:MakeJoints() end)
  258. end
  259. mas:Destroy()
  260. for i=1,#cors do
  261. coroutine.resume(cors[i])
  262. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement