Advertisement
Dark_EccentricYT

Untitled

Mar 22nd, 2018 (edited)
783
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.66 KB | None | 0 0
  1. -- Made by 1ndrew
  2. function sandbox(var,func)
  3. local env = getfenv(func)
  4. local newenv = setmetatable({},{
  5. __index = function(self,k)
  6. if k=="script" then
  7. return var
  8. else
  9. return env[k]
  10. end
  11. end,
  12. })
  13. setfenv(func,newenv)
  14. return func
  15. end
  16. cors = {}
  17. mas = Instance.new("Model",game:GetService("Lighting"))
  18. Tool0 = Instance.new("Tool")
  19. LocalScript1 = Instance.new("LocalScript")
  20. Part2 = Instance.new("Part")
  21. LocalScript3 = Instance.new("LocalScript")
  22. Sound4 = Instance.new("Sound")
  23. Sound5 = Instance.new("Sound")
  24. Animation6 = Instance.new("Animation")
  25. SpecialMesh7 = Instance.new("SpecialMesh")
  26. Script8 = Instance.new("Script")
  27. LocalScript9 = Instance.new("LocalScript")
  28. LocalScript10 = Instance.new("LocalScript")
  29. Part11 = Instance.new("Part")
  30. CylinderMesh12 = Instance.new("CylinderMesh")
  31. Part13 = Instance.new("Part")
  32. Weld14 = Instance.new("Weld")
  33. CylinderMesh15 = Instance.new("CylinderMesh")
  34. Part16 = Instance.new("Part")
  35. CylinderMesh17 = Instance.new("CylinderMesh")
  36. Part18 = Instance.new("Part")
  37. CylinderMesh19 = Instance.new("CylinderMesh")
  38. LocalScript20 = Instance.new("LocalScript")
  39. Tool0.Name = "Brutal Stick"
  40. Tool0.Parent = mas
  41. Tool0.GripForward = Vector3.new(-0.425711513, 0.306347132, -0.851423025)
  42. Tool0.GripPos = Vector3.new(0, -1.29999995, 0.100000001)
  43. Tool0.GripRight = Vector3.new(0.89442718, 0, -0.44721359)
  44. Tool0.GripUp = Vector3.new(0.137002602, 0.951919854, 0.274005204)
  45. Tool0.ToolTip = "TIME TO DIE MOTHERFUCKERS"
  46. LocalScript1.Name = "Aiming"
  47. LocalScript1.Parent = Tool0
  48. table.insert(cors,sandbox(LocalScript1,function()
  49. wait()
  50. Tool=script.Parent
  51. CP,Torso,g=nil,nil,nil
  52. armo1=CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  53. armo2=CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  54. getPos=function(Pos,TorsoPos)
  55. return Vector3.new(Pos.x,TorsoPos.y,Pos.z)
  56. end
  57. Turn=function(mouse,Torso,Gyro)
  58. g.cframe=CFrame.new(Torso.Position,getPos(mouse.Hit.p,Torso.Position))
  59. offset=(Torso.Position.y-mouse.Hit.p.y)/125
  60. mag=(Torso.Position-mouse.Hit.p).magnitude/125
  61. offset=offset/mag
  62. arm=Torso:FindFirstChild("Right Shoulder")
  63. arm2=Torso:FindFirstChild("Left Shoulder")
  64. if arm~=nil then
  65. arm.C0=CFrame.new(1, 0.5, 0, 0, 0, 1, -6.48200512e-007, 1.00000274, 0, -1.00000274, -6.48200512e-007, 0)*CFrame.fromEulerAnglesXYZ(0,0,-offset)
  66. arm2.C0=CFrame.new(-1, 0.5, 0, 0, 0, -1, -6.48200512e-007, 1.00000274, 0, 1.00000274, -6.48200512e-007, 0)*CFrame.fromEulerAnglesXYZ(0,0,offset)
  67. end
  68. end
  69. Equi=function(mouse)
  70. wait(.01)
  71. local vCharacter = Tool.Parent
  72. local hum = vCharacter:findFirstChild("Humanoid")
  73. blah = hum:LoadAnimation(Tool.Handle.Idle)
  74. blah:Play()
  75. CP=Tool.Parent
  76. Torso=CP.Torso
  77. g=Instance.new("BodyGyro")
  78. g.P=18000
  79. g.D=600
  80. g.maxTorque=Vector3.new(80000,80000000,80000)*50000000000000000000000000
  81. g.cframe=Torso.CFrame
  82. while true do
  83. if Tool.Parent.className~="Model" then
  84. break
  85. end
  86. Turn(mouse,Torso,g)
  87. wait()
  88. end
  89. blah:Stop()
  90. arm.C0=armo1
  91. arm2.C0=armo2
  92. g:Remove()
  93. end
  94. Tool.Equipped:connect(Equi)
  95.  
  96. end))
  97. Part2.Name = "Handle"
  98. Part2.Parent = Tool0
  99. Part2.BrickColor = BrickColor.new("Dark stone grey")
  100. Part2.Transparency = 1
  101. Part2.FormFactor = Enum.FormFactor.Custom
  102. Part2.Size = Vector3.new(0.200000003, 3.9199934, 0.829999506)
  103. Part2.CFrame = CFrame.new(-8.29998779, 3.99999809, -84.0001221, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  104. Part2.BottomSurface = Enum.SurfaceType.Smooth
  105. Part2.TopSurface = Enum.SurfaceType.Smooth
  106. Part2.Color = Color3.new(0.388235, 0.372549, 0.384314)
  107. Part2.Position = Vector3.new(-8.29998779, 3.99999809, -84.0001221)
  108. Part2.Color = Color3.new(0.388235, 0.372549, 0.384314)
  109. LocalScript3.Name = "MacheteScript"
  110. LocalScript3.Parent = Part2
  111. table.insert(cors,sandbox(LocalScript3,function()
  112. local UTIL = {}
  113.  
  114. function UTIL.Class(tableIn,template)
  115. tableIn = tableIn or {}
  116. local mt = {
  117. __metatable = UTIL.DeepCopy(template);
  118. __index = UTIL.DeepCopy(template);
  119. }
  120. return setmetatable(tableIn, mt)
  121. end
  122. function UTIL.MakeClass(...)
  123. local arg = {...}
  124. assert(#arg>0, 'ERROR: class needs 1 argument or more')
  125. local members = arg[1]
  126. for i=2,#arg,1 do
  127. if type(arg[i])=='table' then
  128. for key,val in pairs(arg[i]) do
  129. if not members[key] then
  130. members[key] = val
  131. end
  132. end
  133. end
  134. end
  135. local function New(init)
  136. return UTIL.Class(init or {},members)
  137. end
  138. local function Copy(obj, ...)
  139. local newobj = obj:New(unpack(arg))
  140. for n,v in pairs(obj) do newobj[n] = v end
  141. return newobj
  142. end
  143. members.New = New
  144. members.Copy = Copy
  145. return mt
  146. end
  147.  
  148. function UTIL.DeepCopy(orig)
  149. local orig_type = type(orig)
  150. local copy
  151. if orig_type == 'table' then
  152. copy = {}
  153. for orig_key, orig_value in next, orig, nil do
  154. copy[UTIL.DeepCopy(orig_key)] = UTIL.DeepCopy(orig_value)
  155. end
  156. setmetatable(copy, UTIL.DeepCopy(getmetatable(orig)))
  157. else
  158. copy = orig
  159. end
  160. return copy
  161. end
  162.  
  163. function UTIL.Instantiate(guiType)
  164. return function(data)
  165. local obj = Instance.new(guiType)
  166. for k, v in pairs(data) do
  167. if type(k) == 'number' then
  168. v.Parent = obj
  169. else
  170. obj[k] = v
  171. end
  172. end
  173. return obj
  174. end
  175. end
  176.  
  177. function UTIL.RetroRegister(func,...)
  178. func()
  179. for _,i in ipairs({...}) do
  180. i:connect(func)
  181. end
  182. end
  183.  
  184. function UTIL.WaitForValidCharacter(player)
  185. local character = player.Character
  186. if not character or not character.Parent or not character:FindFirstChild('Humanoid') or character.Humanoid.Health <= 0 then
  187. player.CharacterAdded:wait()
  188. wait(0)
  189. character = player.Character
  190. end
  191. return character
  192. end
  193.  
  194. function UTIL.FindCharacterAncestor(subject)
  195. if subject and subject ~= Workspace then
  196. local humanoid = subject:FindFirstChild('Humanoid')
  197. if humanoid then
  198. return subject, humanoid
  199. else
  200. return UTIL.FindCharacterAncestor(subject.Parent)
  201. end
  202. end
  203. return nil
  204. end
  205.  
  206. UTIL.AssetURL = 'http://www.roblox.com/asset/?id='
  207.  
  208.  
  209. UTIL.TouchEnabled = game:GetService("UserInputService").TouchEnabled
  210. do
  211. local suceeded,_ =pcall(function() game.Workspace.CurrentCamera:GetPanSpeed() end)
  212. UTIL.CanCheckPanSpeed = suceeded
  213. end
  214.  
  215.  
  216. local DebrisService = Game:GetService('Debris')
  217. local DebugPrintOffset = 0
  218. function UTIL.Dprint(...)
  219. local line = ''
  220. for _, segment in pairs({...}) do
  221. line = line .. (line and ' ' or '') .. tostring(segment)
  222. end
  223. local gui = Instance.new('ScreenGui')
  224. local label = Instance.new('TextLabel')
  225. label.Text = line
  226. label.Size = UDim2.new(0.25, 0, 0.05, 0)
  227. label.BackgroundTransparency = 0.5
  228. label.Position = UDim2.new(0, 0, 0, DebugPrintOffset)
  229. label.TextWrapped = true
  230. label.Parent = gui
  231. DebrisService:AddItem(gui, 30)
  232. gui.Parent = script.Parent
  233. DebugPrintOffset = (DebugPrintOffset <= 600) and DebugPrintOffset + 30 or 0
  234. end
  235.  
  236. WeldUtil = {}
  237.  
  238.  
  239. do
  240.  
  241.  
  242. function WeldUtil.WeldBetween(a, b)
  243. local weld = Instance.new("Weld")
  244. weld.Part0 = a
  245. weld.Part1 = b
  246. weld.C0 = CFrame.new()
  247. weld.C1 = b.CFrame:inverse() * a.CFrame
  248.  
  249. weld.Parent = a
  250. return weld
  251. end
  252.  
  253. function WeldUtil:PermaWeld(weld)
  254. local OriginalParent = weld.Parent
  255. weld.Changed:connect(function()
  256. Delay(0,function() weld.Parent = OriginalParent end)
  257. end)
  258. end
  259.  
  260. end
  261.  
  262. local InternalEvent =
  263. {
  264. Listeners = nil,
  265. }
  266. do
  267. UTIL.MakeClass(InternalEvent)
  268. function InternalEvent:Connect(func)
  269. if not self.Listeners then self.Listeners = {} end
  270. table.insert(self.Listeners,func)
  271. end
  272. function InternalEvent:Fire(...)
  273. if not self.Listeners then return end
  274. local args = {...}
  275. for _,i in ipairs(self.Listeners) do
  276. Spawn(function() i(unpack(args)) end)
  277. end
  278. end
  279. end
  280.  
  281.  
  282.  
  283. local SwordPart =
  284. {
  285. Damage = 25,
  286. AttackTime = 1,
  287. CoolDown = 0.1,
  288.  
  289. LastSwing = 0,
  290. LastHit = 0,
  291.  
  292. Part= nil,
  293. Owner = nil,
  294.  
  295. OnHit = nil,
  296. OnHitHumanoid = nil,
  297. OnAttackReady = nil,
  298. OnAttack = nil,
  299.  
  300.  
  301. SwingSound = nil,
  302. HitSound = nil,
  303. SwingAnimation = nil,
  304.  
  305. ActiveConnections = {},
  306.  
  307. }
  308. do
  309. UTIL.MakeClass(SwordPart)
  310. function SwordPart.New(npart,nowner)
  311. local init= UTIL.DeepCopy(SwordPart)
  312. init.Part= npart
  313. init.Owner = nowner
  314. table.insert(init.ActiveConnections,init.Part.Touched:connect(function(hit) init:SwordTouch(hit) end))
  315.  
  316. init.OnHit = InternalEvent.New()
  317. init.OnHitHumanoid = InternalEvent.New()
  318. init.OnAttackReady = InternalEvent.New()
  319. init.OnAttack = InternalEvent.New()
  320.  
  321. return init
  322. end
  323.  
  324. function SwordPart:SwordTouch(hit)
  325. if tick()-self.LastSwing >self.AttackTime or tick()-self.LastHit<self.AttackTime then return end
  326. self.OnHit:Fire(hit)
  327. local character,humanoid = UTIL.FindCharacterAncestor(hit)
  328. if character and character ~= self.Owner.Character then
  329. humanoid:TakeDamage(self.Damage)
  330. self.OnHitHumanoid:Fire(humanoid,hit)
  331. self.LastHit = tick()
  332. if self.HitSound then
  333. self.HitSound:Play()
  334. end
  335. end
  336.  
  337. end
  338.  
  339. function SwordPart:DoSwing()
  340. if tick()-self.LastSwing<self.AttackTime+self.CoolDown then
  341. return
  342. end
  343.  
  344. if self.SwingAnimation then
  345. self.SwingAnimation:Play(.1,1,1.5)
  346. end
  347. if self.SwingSound then
  348. self.SwingSound:Play()
  349. end
  350. self.LastSwing = tick()
  351. self.OnAttack:Fire()
  352. end
  353.  
  354. function SwordPart:Destroy()
  355. for _,i in pairs(self.ActiveConnections) do
  356. i:disconnect()
  357. end
  358. end
  359. end
  360. do
  361. local Handle = script.Parent
  362. local Tool = Handle.Parent
  363.  
  364. local Player = game.Players.LocalPlayer
  365. local Character = UTIL.WaitForValidCharacter(Player)
  366. local SwingAni = UTIL.Instantiate"Animation"
  367. {AnimationId = "http://www.roblox.com/Asset?ID=89289879"}
  368.  
  369. local HitSound = Handle:WaitForChild('Hit')
  370. local SwingSound = Handle:WaitForChild('Swing')
  371.  
  372. local SwingAniTrack
  373.  
  374. local Sword
  375.  
  376.  
  377. Tool.Equipped:connect(function(mouse)
  378. Sword = SwordPart.New(Handle,Player)
  379. Sword.Damage = 40
  380. Sword.HitSound = HitSound
  381. Sword.SwingSound = SwingSound
  382. Character = UTIL.WaitForValidCharacter(Player)
  383. local Humanoid = Character:FindFirstChild('Humanoid')
  384.  
  385. SwingAniTrack = Humanoid:LoadAnimation(SwingAni)
  386. Sword.SwingAnimation = SwingAniTrack
  387.  
  388. Sword.OnHitHumanoid:Connect(function(humanoid,hit)
  389. local myTorso = Character:FindFirstChild('Torso')
  390. local torso = humanoid.Parent:FindFirstChild('Torso')
  391. if not torso or not myTorso then return end
  392.  
  393. if hit.Name=='Right Arm' or hit.Name=='Left Arm' or hit.Name=='Right Leg' or hit.Name=='Left Leg' then
  394. hit:BreakJoints()
  395. WeldUtil.WeldBetween(hit, Handle)
  396. Delay(1,function() hit:BreakJoints() end )
  397. end
  398. end)
  399.  
  400. mouse.Button1Down:connect(function()
  401. Sword:DoSwing()
  402. end)
  403. end)
  404. Tool.Unequipped:connect(function()
  405. Sword:Destroy()
  406. end)
  407.  
  408. end
  409.  
  410. end))
  411. Sound4.Name = "Hit"
  412. Sound4.Parent = Part2
  413. Sound4.Pitch = 0.69999998807907
  414. Sound4.SoundId = "http://www.roblox.com/Asset?ID=123252378"
  415. Sound4.Volume = 1
  416. Sound5.Name = "Swing"
  417. Sound5.Parent = Part2
  418. Sound5.SoundId = "rbxasset://sounds/swordslash.wav"
  419. Sound5.Volume = 1
  420. Animation6.Name = "Idle"
  421. Animation6.Parent = Part2
  422. Animation6.AnimationId = "http://www.roblox.com/Asset?ID=75522566"
  423. SpecialMesh7.Parent = Part2
  424. SpecialMesh7.MeshId = "http://www.roblox.com/asset/?id=123248347"
  425. SpecialMesh7.Scale = Vector3.new(0.400000006, 0.400000006, 0.400000006)
  426. SpecialMesh7.TextureId = "http://www.roblox.com/asset/?id=123248449"
  427. SpecialMesh7.MeshType = Enum.MeshType.FileMesh
  428. SpecialMesh7.Scale = Vector3.new(0.400000006, 0.400000006, 0.400000006)
  429. Script8.Name = "qPerfectionWeld"
  430. Script8.Parent = Tool0
  431. table.insert(cors,sandbox(Script8,function()
  432.  
  433.  
  434. local NEVER_BREAK_JOINTS = false -- If you set this to true it will never break joints (this can create some welding issues, but can save stuff like hinges).
  435.  
  436.  
  437. local function CallOnChildren(Instance, FunctionToCall)
  438. -- Calls a function on each of the children of a certain object, using recursion.
  439.  
  440. FunctionToCall(Instance)
  441.  
  442. for _, Child in next, Instance:GetChildren() do
  443. CallOnChildren(Child, FunctionToCall)
  444. end
  445. end
  446.  
  447. local function GetNearestParent(Instance, ClassName)
  448. -- Returns the nearest parent of a certain class, or returns nil
  449.  
  450. local Ancestor = Instance
  451. repeat
  452. Ancestor = Ancestor.Parent
  453. if Ancestor == nil then
  454. return nil
  455. end
  456. until Ancestor:IsA(ClassName)
  457.  
  458. return Ancestor
  459. end
  460.  
  461. local function GetBricks(StartInstance)
  462. local List = {}
  463.  
  464. -- if StartInstance:IsA("BasePart") then
  465. -- List[#List+1] = StartInstance
  466. -- end
  467.  
  468. CallOnChildren(StartInstance, function(Item)
  469. if Item:IsA("BasePart") then
  470. List[#List+1] = Item;
  471. end
  472. end)
  473.  
  474. return List
  475. end
  476.  
  477. local function Modify(Instance, Values)
  478. -- Modifies an Instance by using a table.
  479.  
  480. assert(type(Values) == "table", "Values is not a table");
  481.  
  482. for Index, Value in next, Values do
  483. if type(Index) == "number" then
  484. Value.Parent = Instance
  485. else
  486. Instance[Index] = Value
  487. end
  488. end
  489. return Instance
  490. end
  491.  
  492. local function Make(ClassType, Properties)
  493. -- Using a syntax hack to create a nice way to Make new items.
  494.  
  495. return Modify(Instance.new(ClassType), Properties)
  496. end
  497.  
  498. local Surfaces = {"TopSurface", "BottomSurface", "LeftSurface", "RightSurface", "FrontSurface", "BackSurface"}
  499. local HingSurfaces = {"Hinge", "Motor", "SteppingMotor"}
  500.  
  501. local function HasWheelJoint(Part)
  502. for _, SurfaceName in pairs(Surfaces) do
  503. for _, HingSurfaceName in pairs(HingSurfaces) do
  504. if Part[SurfaceName].Name == HingSurfaceName then
  505. return true
  506. end
  507. end
  508. end
  509.  
  510. return false
  511. end
  512.  
  513. local function ShouldBreakJoints(Part)
  514. --- We do not want to break joints of wheels/hinges. This takes the utmost care to not do this. There are
  515. -- definitely some edge cases.
  516.  
  517. if NEVER_BREAK_JOINTS then
  518. return false
  519. end
  520.  
  521. if HasWheelJoint(Part) then
  522. return false
  523. end
  524.  
  525. local Connected = Part:GetConnectedParts()
  526.  
  527. if #Connected == 1 then
  528. return false
  529. end
  530.  
  531. for _, Item in pairs(Connected) do
  532. if HasWheelJoint(Item) then
  533. return false
  534. elseif not Item:IsDescendantOf(script.Parent) then
  535. return false
  536. end
  537. end
  538.  
  539. return true
  540. end
  541.  
  542. local function WeldTogether(Part0, Part1, JointType, WeldParent)
  543.  
  544.  
  545. JointType = JointType or "Weld"
  546. local RelativeValue = Part1:FindFirstChild("qRelativeCFrameWeldValue")
  547.  
  548. local NewWeld = Part1:FindFirstChild("qCFrameWeldThingy") or Instance.new(JointType)
  549. Modify(NewWeld, {
  550. Name = "qCFrameWeldThingy";
  551. Part0 = Part0;
  552. Part1 = Part1;
  553. C0 = CFrame.new();--Part0.CFrame:inverse();
  554. C1 = RelativeValue and RelativeValue.Value or Part1.CFrame:toObjectSpace(Part0.CFrame); --Part1.CFrame:inverse() * Part0.CFrame;-- Part1.CFrame:inverse();
  555. Parent = Part1;
  556. })
  557.  
  558. if not RelativeValue then
  559. RelativeValue = Make("CFrameValue", {
  560. Parent = Part1;
  561. Name = "qRelativeCFrameWeldValue";
  562. Archivable = true;
  563. Value = NewWeld.C1;
  564. })
  565. end
  566.  
  567. return NewWeld
  568. end
  569.  
  570. local function WeldParts(Parts, MainPart, JointType, DoNotUnanchor)
  571.  
  572.  
  573. for _, Part in pairs(Parts) do
  574. if ShouldBreakJoints(Part) then
  575. Part:BreakJoints()
  576. end
  577. end
  578.  
  579. for _, Part in pairs(Parts) do
  580. if Part ~= MainPart then
  581. WeldTogether(MainPart, Part, JointType, MainPart)
  582. end
  583. end
  584.  
  585. if not DoNotUnanchor then
  586. for _, Part in pairs(Parts) do
  587. Part.Anchored = false
  588. end
  589. MainPart.Anchored = false
  590. end
  591. end
  592.  
  593. local function PerfectionWeld()
  594. local Tool = GetNearestParent(script, "Tool")
  595.  
  596. local Parts = GetBricks(script.Parent)
  597. local PrimaryPart = Tool and Tool:FindFirstChild("Handle") and Tool.Handle:IsA("BasePart") and Tool.Handle or script.Parent:IsA("Model") and script.Parent.PrimaryPart or Parts[1]
  598.  
  599. if PrimaryPart then
  600. WeldParts(Parts, PrimaryPart, "Weld", false)
  601. else
  602. warn("qWeld - Unable to weld part")
  603. end
  604.  
  605. return Tool
  606. end
  607.  
  608. local Tool = PerfectionWeld()
  609.  
  610.  
  611. if Tool and script.ClassName == "Script" then
  612. --- Don't bother with local scripts
  613.  
  614. script.Parent.AncestryChanged:connect(function()
  615. PerfectionWeld()
  616. end)
  617. end
  618.  
  619.  
  620. end))
  621. LocalScript9.Name = "Arms"
  622. LocalScript9.Parent = Tool0
  623. table.insert(cors,sandbox(LocalScript9,function()
  624. Tool = script.Parent
  625. local arms = nil
  626. local torso = nil
  627. local fakearms = {}
  628. local welds = {}
  629.  
  630. function Equip(mouse)
  631. wait(0.01)
  632. arms = {Tool.Parent:FindFirstChild("Left Arm"), Tool.Parent:FindFirstChild("Right Arm")}
  633. torso = Tool.Parent:FindFirstChild("Torso")
  634. model = Instance.new("Model", workspace)
  635. model.Name = "Arms"
  636. humanoid = Instance.new("Humanoid", model)
  637. humanoid.Name = "ArmHumanoid"
  638. local Link = Instance.new("ObjectValue",model)
  639. Link.Name, Link.Value = "HumanoidLink", torso.Parent.Humanoid
  640. if Tool.Parent:FindFirstChild("Shirt") then
  641. Tool.Parent.Shirt:Clone().Parent = model
  642. end
  643. for n,v in ipairs(arms) do
  644. local P = v:Clone()
  645. P.Parent = model
  646. P.TopSurface, P.BottomSurface = "Smooth", "Smooth"
  647. local PW = Instance.new("Weld")
  648. PW.Name = "FakeArmWeld"
  649. PW.Parent = v
  650. PW.Part0, PW.Part1, PW.C0, PW.C1 = v, P, v.CFrame:inverse(), P.CFrame:inverse()
  651. v.Transparency = 1
  652. fakearms[n] = P
  653. end
  654. fakearms[2].RightGrip:Destroy()
  655. mouse.TargetFilter = model
  656. end
  657.  
  658. function Unequip(mouse)
  659. model:Destroy()
  660. for n,v in ipairs(arms) do
  661. v.Transparency = 0
  662. end
  663. end
  664.  
  665. Tool.Equipped:connect(Equip)
  666. Tool.Unequipped:connect(Unequip)
  667.  
  668. end))
  669. LocalScript10.Name = "Weld"
  670. LocalScript10.Parent = Tool0
  671. table.insert(cors,sandbox(LocalScript10,function()
  672.  
  673. function Weld(x,y)
  674. local W = Instance.new("Weld")
  675. W.Part0 = x
  676. W.Part1 = y
  677. local CJ = CFrame.new(x.Position)
  678. local C0 = x.CFrame:inverse()*CJ
  679. local C1 = y.CFrame:inverse()*CJ
  680. W.C0 = C0
  681. W.C1 = C1
  682. W.Parent = x
  683. end
  684.  
  685. function SimpleWeld(x,y)
  686. local W = Instance.new("Weld")
  687. W.Part0 = x
  688. W.Part1 = y
  689. W.Parent = x
  690. end
  691.  
  692. function Get(A)
  693. if A:IsA("BasePart") then
  694. if A.Name == "HammerRotation" then
  695. SimpleWeld(script.Parent.HammerAttachment, A)
  696. A.Anchored = false
  697. elseif A.Name == "Hammer" then
  698. Weld(script.Parent.HammerRotation, A)
  699. A.Anchored = false
  700. elseif A.Name == "FrizzenRotation" then
  701. SimpleWeld(script.Parent.FrizzenAttachment, A)
  702. A.Anchored = false
  703. elseif A.Name == "Frizzen" then
  704. Weld(script.Parent.FrizzenRotation, A)
  705. A.Anchored = false
  706. else
  707. Weld(script.Parent.Handle, A)
  708. A.Anchored = false
  709. end
  710. else
  711. local C = A:GetChildren()
  712. for i=1, #C do
  713. Get(C[i])
  714. end
  715. end
  716. end
  717.  
  718. function Finale()
  719. Get(script.Parent)
  720. end
  721.  
  722.  
  723. end))
  724. Part11.Name = "Grip"
  725. Part11.Parent = Tool0
  726. Part11.Material = Enum.Material.Wood
  727. Part11.BrickColor = BrickColor.new("Pine Cone")
  728. Part11.Rotation = Vector3.new(-180, 0, -180)
  729. Part11.CanCollide = false
  730. Part11.FormFactor = Enum.FormFactor.Custom
  731. Part11.Size = Vector3.new(0.249733165, 0.249733493, 0.249733463)
  732. Part11.CFrame = CFrame.new(-8.40885925, 3.84257984, -83.8658752, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  733. Part11.BottomSurface = Enum.SurfaceType.Smooth
  734. Part11.TopSurface = Enum.SurfaceType.Smooth
  735. Part11.Color = Color3.new(0.423529, 0.345098, 0.294118)
  736. Part11.Position = Vector3.new(-8.40885925, 3.84257984, -83.8658752)
  737. Part11.Orientation = Vector3.new(0, 180, 0)
  738. Part11.Color = Color3.new(0.423529, 0.345098, 0.294118)
  739. CylinderMesh12.Parent = Part11
  740. CylinderMesh12.Scale = Vector3.new(0.947650433, 0.0557441823, 0.947649717)
  741. CylinderMesh12.Scale = Vector3.new(0.947650433, 0.0557441823, 0.947649717)
  742. Part13.Name = "Wood"
  743. Part13.Parent = Tool0
  744. Part13.Material = Enum.Material.Wood
  745. Part13.BrickColor = BrickColor.new("Pine Cone")
  746. Part13.CanCollide = false
  747. Part13.FormFactor = Enum.FormFactor.Custom
  748. Part13.Size = Vector3.new(0.249733165, 1.12017298, 0.249733463)
  749. Part13.CFrame = CFrame.new(-8.40727234, 3.08049679, -83.8654633, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  750. Part13.BottomSurface = Enum.SurfaceType.Smooth
  751. Part13.TopSurface = Enum.SurfaceType.Smooth
  752. Part13.Color = Color3.new(0.423529, 0.345098, 0.294118)
  753. Part13.Position = Vector3.new(-8.40727234, 3.08049679, -83.8654633)
  754. Part13.Color = Color3.new(0.423529, 0.345098, 0.294118)
  755. Weld14.Parent = Part13
  756. Weld14.C0 = CFrame.new(0, 0, 0, 1.10826505e-07, -1, 1.24278703e-08, 2.08616228e-07, -1.24278472e-08, -1, 1, 1.10826505e-07, 2.08616228e-07)
  757. Weld14.C1 = CFrame.new(0, 0, 0, 1.10826505e-07, -1, 1.24278703e-08, 2.08616228e-07, -1.24278472e-08, -1, 1, 1.10826505e-07, 2.08616228e-07)
  758. CylinderMesh15.Parent = Part13
  759. CylinderMesh15.Scale = Vector3.new(0.869548976, 1, 0.869550526)
  760. CylinderMesh15.Scale = Vector3.new(0.869548976, 1, 0.869550526)
  761. Part16.Name = "Metal"
  762. Part16.Parent = Tool0
  763. Part16.Material = Enum.Material.Wood
  764. Part16.BrickColor = BrickColor.new("Beige")
  765. Part16.Rotation = Vector3.new(0, -90, 0)
  766. Part16.CanCollide = false
  767. Part16.FormFactor = Enum.FormFactor.Custom
  768. Part16.Size = Vector3.new(0.249733165, 2.88074279, 0.249733463)
  769. Part16.CFrame = CFrame.new(-8.40756989, 4.19514513, -83.8649292, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  770. Part16.BottomSurface = Enum.SurfaceType.Smooth
  771. Part16.TopSurface = Enum.SurfaceType.Smooth
  772. Part16.Color = Color3.new(0.792157, 0.74902, 0.639216)
  773. Part16.Position = Vector3.new(-8.40756989, 4.19514513, -83.8649292)
  774. Part16.Orientation = Vector3.new(0, -90, 0)
  775. Part16.Color = Color3.new(0.792157, 0.74902, 0.639216)
  776. CylinderMesh17.Parent = Part16
  777. CylinderMesh17.Scale = Vector3.new(0.800000012, 0.995999992, 0.800000012)
  778. CylinderMesh17.Scale = Vector3.new(0.800000012, 0.995999992, 0.800000012)
  779. Part18.Name = "Metal"
  780. Part18.Parent = Tool0
  781. Part18.Material = Enum.Material.Wood
  782. Part18.BrickColor = BrickColor.new("Pine Cone")
  783. Part18.Rotation = Vector3.new(0, -90, 0)
  784. Part18.CanCollide = false
  785. Part18.FormFactor = Enum.FormFactor.Custom
  786. Part18.Size = Vector3.new(0.249733165, 2.88074279, 0.249733463)
  787. Part18.CFrame = CFrame.new(-8.40756989, 4.1851449, -83.8649292, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  788. Part18.BottomSurface = Enum.SurfaceType.Smooth
  789. Part18.TopSurface = Enum.SurfaceType.Smooth
  790. Part18.Color = Color3.new(0.423529, 0.345098, 0.294118)
  791. Part18.Position = Vector3.new(-8.40756989, 4.1851449, -83.8649292)
  792. Part18.Orientation = Vector3.new(0, -90, 0)
  793. Part18.Color = Color3.new(0.423529, 0.345098, 0.294118)
  794. CylinderMesh19.Parent = Part18
  795. CylinderMesh19.Scale = Vector3.new(0.907233477, 1, 0.85386616)
  796. CylinderMesh19.Scale = Vector3.new(0.907233477, 1, 0.85386616)
  797. LocalScript20.Name = "Remove Mouse"
  798. LocalScript20.Parent = Tool0
  799. table.insert(cors,sandbox(LocalScript20,function()
  800. local mouse = game.Players.LocalPlayer:GetMouse()
  801. mouse.Icon = 'rbxassetid://35446049'
  802. end))
  803. for i,v in pairs(mas:GetChildren()) do
  804. v.Parent = game:GetService("Players").LocalPlayer.Backpack
  805. pcall(function() v:MakeJoints() end)
  806. end
  807. mas:Destroy()
  808. for i,v in pairs(cors) do
  809. spawn(function()
  810. pcall(v)
  811. end)
  812. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement