Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Tool0 = Instance.new("Tool")
- Part1 = Instance.new("Part")
- CylinderMesh2 = Instance.new("CylinderMesh")
- Weld3 = Instance.new("Weld")
- Weld4 = Instance.new("Weld")
- Weld5 = Instance.new("Weld")
- Weld6 = Instance.new("Weld")
- Weld7 = Instance.new("Weld")
- Weld8 = Instance.new("Weld")
- Weld9 = Instance.new("Weld")
- Weld10 = Instance.new("Weld")
- Weld11 = Instance.new("Weld")
- Weld12 = Instance.new("Weld")
- Weld13 = Instance.new("Weld")
- Weld14 = Instance.new("Weld")
- Weld15 = Instance.new("Weld")
- Weld16 = Instance.new("Weld")
- Weld17 = Instance.new("Weld")
- Weld18 = Instance.new("Weld")
- Weld19 = Instance.new("Weld")
- Weld20 = Instance.new("Weld")
- Weld21 = Instance.new("Weld")
- Weld22 = Instance.new("Weld")
- Weld23 = Instance.new("Weld")
- Weld24 = Instance.new("Weld")
- Weld25 = Instance.new("Weld")
- Weld26 = Instance.new("Weld")
- Weld27 = Instance.new("Weld")
- Weld28 = Instance.new("Weld")
- Weld29 = Instance.new("Weld")
- Weld30 = Instance.new("Weld")
- Weld31 = Instance.new("Weld")
- Weld32 = Instance.new("Weld")
- Weld33 = Instance.new("Weld")
- Weld34 = Instance.new("Weld")
- Weld35 = Instance.new("Weld")
- Weld36 = Instance.new("Weld")
- Weld37 = Instance.new("Weld")
- Weld38 = Instance.new("Weld")
- Weld39 = Instance.new("Weld")
- Weld40 = Instance.new("Weld")
- Weld41 = Instance.new("Weld")
- Weld42 = Instance.new("Weld")
- Weld43 = Instance.new("Weld")
- Weld44 = Instance.new("Weld")
- BoolValue45 = Instance.new("BoolValue")
- Script46 = Instance.new("Script")
- Script47 = Instance.new("Script")
- LocalScript48 = Instance.new("LocalScript")
- Part49 = Instance.new("Part")
- Script50 = Instance.new("Script")
- Decal51 = Instance.new("Decal")
- Decal52 = Instance.new("Decal")
- Decal53 = Instance.new("Decal")
- Decal54 = Instance.new("Decal")
- Decal55 = Instance.new("Decal")
- Decal56 = Instance.new("Decal")
- Weld57 = Instance.new("Weld")
- Script58 = Instance.new("Script")
- LocalScript59 = Instance.new("LocalScript")
- Tool0.Name = "kickhammer"
- Tool0.Parent = mas
- Part1.Name = "Handle"
- Part1.Parent = Tool0
- Part1.CFrame = CFrame.new(12.8954172, 2.99767208, 6.03132582, 0.194495991, 0.980729401, 0.0182793029, -0.980597854, 0.193938702, 0.0284224544, 0.0243352558, -0.0234507825, 0.999423921)
- Part1.Orientation = Vector3.new(-1.63, 1.04999995, -78.8099976)
- Part1.Position = Vector3.new(12.8954172, 2.99767208, 6.03132582)
- Part1.Rotation = Vector3.new(-1.63, 1.04999995, -78.7799988)
- Part1.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part1.Size = Vector3.new(0.5, 2.5999999, 0.5)
- Part1.BottomSurface = Enum.SurfaceType.Weld
- Part1.BrickColor = BrickColor.new("Institutional white")
- Part1.Material = Enum.Material.Glass
- Part1.Reflectance = 0.94999998807907
- Part1.TopSurface = Enum.SurfaceType.Weld
- Part1.brickColor = BrickColor.new("Institutional white""MouseClick"
- BoolValue45.Parent = Tool0
- BoolValue45.Value = true
- Script46.Name = "Welding"
- Script46.Parent = Tool0
- table.insert(cors,sandbox(Script46,function()
- function Weld(x,y)
- local W = Instance.new("Weld")
- W.Part0 = x
- W.Part1 = y
- local CJ = CFrame.new(x.Position)
- local C0 = x.CFrame:inverse()*CJ
- local C1 = y.CFrame:inverse()*CJ
- W.C0 = C0
- W.C1 = C1
- W.Parent = x
- end
- function Get(A)
- if A.className == "Part" then
- Weld(script.Parent.Handle, A)
- A.Anchored = false
- else
- local C = A:GetChildren()
- for i=1, #C do
- Get(C[i])
- end
- end
- end
- function Finale()
- Get(script.Parent)
- end
- script.Parent.Equipped:connect(Finale)
- script.Parent.Unequipped:connect(Finale)
- Finale()
- end))
- Script47.Name = "_Main"
- Script47.Parent = Tool0
- table.insert(cors,sandbox(Script47,function()
- --player
- player = nil
- --save shoulders
- RSH, LSH = nil, nil
- --grip
- GRP = nil
- --welds
- RW, LW = Instance.new("Weld"), Instance.new("Weld")
- --what anim
- anim = "none"
- --onselected, save shoulders and get player
- script.Parent.Equipped:connect(function()
- player = game.Players:playerFromCharacter(script.Parent.Parent)
- local ch = script.Parent.Parent
- RSH = ch.Torso["Right Shoulder"]
- LSH = ch.Torso["Left Shoulder"]
- GRP = ch["Right Arm"].RightGrip
- --
- RSH.Parent = nil
- LSH.Parent = nil
- --
- RW.Part0 = ch.Torso
- RW.C0 = CFrame.new(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
- RW.C1 = CFrame.new(0, 0.5, 0)
- RW.Part1 = ch["Right Arm"]
- RW.Parent = ch.Torso
- _G.R = RW
- --
- LW.Part0 = ch.Torso
- LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
- LW.C1 = CFrame.new(0, 0.5, 0)
- LW.Part1 = ch["Left Arm"]
- LW.Parent = ch.Torso
- _G.L = LW
- --
- GRP.C0 = CFrame.new(0, -1, 0) * CFrame.fromEulerAnglesXYZ(-1, 0, 0)
- --Bring_Arm_Up animation
- for i = 0, 1, 0.05 do
- wait()
- RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1.3*i, 0, -0.5*i)
- LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1.7*i, 0, 0.8*i)
- LW.C1 = CFrame.new(-0.3*i, 0.5+1.2*i, 0)
- end
- end)
- --griptcf = CFrame.new(0, -1, 0) * CFrame.fromEulerAnglesXYZ(-math.pi/2+0.5, 0, 0)
- script.Parent.Unequipped:connect(function()
- --Bring_Arm_Down animation
- for i = 1, 0, -0.05 do
- wait()
- RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1.3*i, 0, -0.5*i)
- LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1.7*i, 0, 0.8*i)
- LW.C1 = CFrame.new(-0.3*i, 0.5+1.2*i, 0)
- end
- RW.Parent = nil
- LW.Parent = nil
- RSH.Parent = player.Character.Torso
- LSH.Parent = player.Character.Torso
- end)
- function HomeRunHit(part)
- local h = (part.Parent or game):FindFirstChild("Humanoid") --or findfirstchild optimization
- if h then
- h.Sit = true
- wait()
- h.Jump = true
- h.Parent.Torso.Velocity = (CFrame.new(script.Parent.Handle.Position, h.Parent.Torso.Position).lookVector * 100) + Vector3.new(0, 30, 0)
- h.Parent.Torso.RotVelocity = Vector3.new(math.random(-100, 100), math.random(-100, 100), math.random(-100, 100))
- end
- end
- function HomeRun()
- for i = 0, 1, 0.1 do
- if anim ~= "homerun" then return end
- wait()
- RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1.3+1.2*i, -0.5*i, -0.5+i)
- --R.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(2.5, -0.5, 0.5)
- LW.C0 = CFrame.new(-1.5+0.5*i, 0.5, -0.5*i) * CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
- --L.C0 = CFrame.new(-1.0, 0.5, -0.5) * CFrame.fromEulerAnglesXYZ(1.7, 0, 1)
- end
- --start homerunhit connection--
- local con = script.Parent.Handle.Touched:connect(HomeRunHit)
- ----------------------------------------
- for i = 0, 1, 0.2 do
- wait()
- RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(2.5, -0.5-1.7*i, 0.5+0.5*i)
- --R.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(2.5, -2.2, 1)
- LW.C0 = CFrame.new(-1-0.5*i, 0.5, -0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8-1.2*i)
- LW.C1 = CFrame.new(0, 0.5-i, 0)
- GRP.C0 = CFrame.new(0, -1, 0) * CFrame.fromEulerAnglesXYZ(-1-2*i, 0, 0)
- end
- for i = 0, 1, 0.2 do
- wait()
- RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(2.5, -2.2-0.6*i, 1)
- end
- wait(0.1)
- ----end homerun connection---
- con:disconnect()
- --------------------------------------
- for i = 0, 1, 0.1 do
- wait()
- RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(2.5-1.2*i, -2.8+2.8*i, 1-1.5*i)
- --RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
- LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1.7, 0, -0.4+1.2*i)
- LW.C1 = CFrame.new(0, -0.5+i*2, 0)
- --LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
- GRP.C0 = CFrame.new(0, -1, 0) * CFrame.fromEulerAnglesXYZ(-3+2*i, 0, 0)
- end
- end
- function Whack()
- for i = 0, 1, 0.2 do
- if anim ~= "norm" then return end
- wait()
- RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1.3+i, 0, -0.5+0.5*i)
- LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1.7-0.25*i, 0, 0.8-0.6*i)
- end
- for i = 0, 1, 0.25 do
- if anim ~= "norm" then return end
- wait()
- RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(2.3-2.5*i, 0, 0)
- LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1.45-0.25*i, 0, 0.2)
- GRP.C0 = CFrame.new(0, -1, 0) * CFrame.fromEulerAnglesXYZ(-1-0.5*i, 0, 0)
- end
- --insert camshake and hit nearby people
- for _, p in pairs(game.Players:GetChildren()) do
- if p.Character:FindFirstChild("Torso") then
- if (p.Character.Torso.Position - (script.Parent.Handle.CFrame*CFrame.new(0, -3, 0)).p).magnitude < 10 then
- if p ~= player then
- p.Character.Humanoid.Sit = true
- delay(0.1, function() p.Character.Humanoid.Jump = true end)
- p.Character.Torso.RotVelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))
- end
- end
- end
- end
- ------
- for i = 0, 1, 0.2 do
- if anim ~= "norm" then return end
- wait()
- RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.2+1.5*i, 0, -0.5*i)
- LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1.2+0.5*i, 0, 0.2+0.6*i)
- GRP.C0 = CFrame.new(0, -1, 0) * CFrame.fromEulerAnglesXYZ(-1.5+0.5*i, 0, 0)
- end
- end
- local a = false
- local co = nil
- --OMGHAX mouseclick
- local last_click = 0
- script.Parent.MouseClick.Changed:connect(function()
- if time() - last_click < 0.3 then
- anim = "homerun"
- last_click = time()
- HomeRun()
- else
- anim = "norm"
- last_click = time()
- Whack()
- end
- end)
- end))
- LocalScript48.Name = "_EVT"
- LocalScript48.Parent = Tool0
- table.insert(cors,sandbox(LocalScript48,function()
- script.Parent.Equipped:connect(function(mouse)
- mouse.Button1Down:connect(function()
- script.Parent.MouseClick.Value = not script.Parent.MouseClick.Value
- end)
- end)
- end))
- Part49.Name = "Handle 2"
- Part49.Parent = Tool0
- Part49.CFrame = CFrame.new(14.6511459, 3.33246565, 5.48939991, 0.018308267, -0.980727077, 0.194504812, 0.0283583738, -0.193948328, -0.980597794, 0.999425232, 0.0234669708, 0.0242665503)
- Part49.Orientation = Vector3.new(78.6999969, 82.8899994, 171.679993)
- Part49.Position = Vector3.new(14.6511459, 3.33246565, 5.48939991)
- Part49.Rotation = Vector3.new(88.5800018, 11.2200003, 88.9300003)
- Part49.Color = Color3.new(1, 0, 0.74902)
- Part49.Transparency = 0.60000002384186
- Part49.Size = Vector3.new(2, 1, 1)
- Part49.BottomSurface = Enum.SurfaceType.Smooth
- Part49.BrickColor = BrickColor.new("Hot pink")
- Part49.Material = Enum.Material.Neon
- Part49.Reflectance = 1
- Part49.TopSurface = Enum.SurfaceType.Smooth
- Part49.brickColor = BrickColor.new("Hot pink")
- Part49.FormFactor = Enum.FormFactor.Symmetric
- Part49.formFactor = Enum.FormFactor.Symmetric
- Script50.Parent = Part49
- table.insert(cors,sandbox(Script50,function()
- script.Parent.Touched:Connect(function(hit)
- local plr = game.Players:GetPlayerFromCharacter(hit.Parent)
- plr:Kick("You kicked yourself out from the server.")
- end)
- end))
- Decal51.Parent = Part49
- Decal51.Texture = "http://www.roblox.com/asset/?id=142817767"
- Decal51.Face = Enum.NormalId.Back
- Decal52.Parent = Part49
- Decal52.Texture = "http://www.roblox.com/asset/?id=142817767"
- Decal53.Parent = Part49
- Decal53.Texture = "http://www.roblox.com/asset/?id=142817767"
- Decal53.Face = Enum.NormalId.Back
- Decal54.Parent = Part49
- Decal54.Texture = "http://www.roblox.com/asset/?id=142817767"
- Decal55.Parent = Part49
- Decal55.Texture = "http://www.roblox.com/asset/?id=142817767"
- Decal55.Face = Enum.NormalId.Back
- Decal56.Parent = Part49
- Decal56.Texture = "http://www.roblox.com/asset/?id=142817767"
- Weld57.Parent = Part49
- Weld57.C0 = CFrame.new(0, 0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- Weld57.C1 = CFrame.new(1.84774399e-06, 1.2995472, -0.500005245, -6.850317e-05, 1, 1.02692866e-05, -1.59481242e-05, 1.02681943e-05, -1, -1, -6.85033374e-05, 1.59474203e-05)
- Weld57.Part0 = Part49
- Weld57.Part1 = Part1
- Weld57.part1 = Part1
- Script58.Name = "SwordScript"
- Script58.Parent = Tool0
- table.insert(cors,sandbox(Script58,function()
- --Rescripted by Luckymaxer
- --EUROCOW WAS HERE BECAUSE I MADE THE PARTICLES AND THEREFORE THIS ENTIRE SWORD PRETTY AND LOOK PRETTY WORDS AND I'D LIKE TO DEDICATE THIS TO MY FRIENDS AND HI LUCKYMAXER PLS FIX SFOTH SWORDS TY LOVE Y'ALl
- --Updated for R15 avatars by StarWars
- --Re-updated by TakeoHonorable
- Tool = script.Parent
- Handle = Tool:WaitForChild("Handle")
- function Create(ty)
- return function(data)
- local obj = Instance.new(ty)
- for k, v in pairs(data) do
- if type(k) == 'number' then
- v.Parent = obj
- else
- obj[k] = v
- end
- end
- return obj
- end
- end
- local BaseUrl = "rbxassetid://"
- Players = game:GetService("Players")
- Debris = game:GetService("Debris")
- RunService = game:GetService("RunService")
- DamageValues = {
- BaseDamage = 5,
- SlashDamage = 10,
- LungeDamage = 30
- }
- --For R15 avatars
- Animations = {
- R15Slash = 522635514,
- R15Lunge = 522638767
- }
- Damage = DamageValues.BaseDamage
- Grips = {
- Up = CFrame.new(0, 0, -1.70000005, 0, 0, 1, 1, 0, 0, 0, 1, 0),
- Out = CFrame.new(0, 0, -1.70000005, 0, 1, 0, 1, -0, 0, 0, 0, -1)
- }
- Sounds = {
- Slash = Handle:WaitForChild("SwordSlash"),
- Lunge = Handle:WaitForChild("SwordLunge"),
- Unsheath = Handle:WaitForChild("Unsheath")
- }
- ToolEquipped = false
- --For Omega Rainbow Katana thumbnail to display a lot of particles.
- for i, v in pairs(Handle:GetChildren()) do
- if v:IsA("ParticleEmitter") then
- v.Rate = 20
- end
- end
- Tool.Grip = Grips.Up
- Tool.Enabled = true
- function IsTeamMate(Player1, Player2)
- return (Player1 and Player2 and not Player1.Neutral and not Player2.Neutral and Player1.TeamColor == Player2.TeamColor)
- end
- function TagHumanoid(humanoid, player)
- local Creator_Tag = Instance.new("ObjectValue")
- Creator_Tag.Name = "creator"
- Creator_Tag.Value = player
- Debris:AddItem(Creator_Tag, 2)
- Creator_Tag.Parent = humanoid
- end
- function UntagHumanoid(humanoid)
- for i, v in pairs(humanoid:GetChildren()) do
- if v:IsA("ObjectValue") and v.Name == "creator" then
- v:Destroy()
- end
- end
- end
- function Blow(Hit)
- if not Hit or not Hit.Parent or not CheckIfAlive() or not ToolEquipped then
- return
- end
- local RightArm = Character:FindFirstChild("Right Arm") or Character:FindFirstChild("RightHand")
- if not RightArm then
- return
- end
- local RightGrip = RightArm:FindFirstChild("RightGrip")
- if not RightGrip or (RightGrip.Part0 ~= Handle and RightGrip.Part1 ~= Handle) then
- return
- end
- local character = Hit.Parent
- if character == Character then
- return
- end
- local humanoid = character:FindFirstChildOfClass("Humanoid")
- if not humanoid or humanoid.Health == 0 then
- return
- end
- local player = Players:GetPlayerFromCharacter(character)
- if player and (player == Player or IsTeamMate(Player, player)) then
- return
- end
- UntagHumanoid(humanoid)
- TagHumanoid(humanoid, Player)
- humanoid:TakeDamage(Damage)
- end
- function Attack()
- Damage = DamageValues.SlashDamage
- Sounds.Slash:Play()
- if Humanoid then
- if Humanoid.RigType == Enum.HumanoidRigType.R6 then
- local Anim = Instance.new("StringValue")
- Anim.Name = "toolanim"
- Anim.Value = "Slash"
- Anim.Parent = Tool
- elseif Humanoid.RigType == Enum.HumanoidRigType.R15 then
- local Anim = Tool:FindFirstChild("R15Slash")
- if Anim then
- local Track = Humanoid:LoadAnimation(Anim)
- Track:Play(0)
- end
- end
- end
- end
- function Lunge()
- Damage = DamageValues.LungeDamage
- Sounds.Lunge:Play()
- if Humanoid then
- if Humanoid.RigType == Enum.HumanoidRigType.R6 then
- local Anim = Instance.new("StringValue")
- Anim.Name = "toolanim"
- Anim.Value = "Lunge"
- Anim.Parent = Tool
- elseif Humanoid.RigType == Enum.HumanoidRigType.R15 then
- local Anim = Tool:FindFirstChild("R15Lunge")
- if Anim then
- local Track = Humanoid:LoadAnimation(Anim)
- Track:Play(0)
- end
- end
- end
- --[[
- if CheckIfAlive() then
- local Force = Instance.new("BodyVelocity")
- Force.velocity = Vector3.new(0, 10, 0)
- Force.maxForce = Vector3.new(0, 4000, 0)
- Debris:AddItem(Force, 0.4)
- Force.Parent = Torso
- end
- ]]
- wait(0.2)
- Tool.Grip = Grips.Out
- wait(0.6)
- Tool.Grip = Grips.Up
- Damage = DamageValues.SlashDamage
- end
- Tool.Enabled = true
- LastAttack = 0
- function Activated()
- if not Tool.Enabled or not ToolEquipped or not CheckIfAlive() then
- return
- end
- Tool.Enabled = false
- local Tick = RunService.Stepped:wait()
- if (Tick - LastAttack < 0.2) then
- Lunge()
- else
- Attack()
- end
- LastAttack = Tick
- --wait(0.5)
- Damage = DamageValues.BaseDamage
- local SlashAnim = (Tool:FindFirstChild("R15Slash") or Create("Animation"){
- Name = "R15Slash",
- AnimationId = BaseUrl .. Animations.R15Slash,
- Parent = Tool
- })
- local LungeAnim = (Tool:FindFirstChild("R15Lunge") or Create("Animation"){
- Name = "R15Lunge",
- AnimationId = BaseUrl .. Animations.R15Lunge,
- Parent = Tool
- })
- Tool.Enabled = true
- end
- function CheckIfAlive()
- return (((Player and Player.Parent and Character and Character.Parent and Humanoid and Humanoid.Parent and Humanoid.Health > 0 and Torso and Torso.Parent) and true) or false)
- end
- function Equipped()
- Character = Tool.Parent
- Player = Players:GetPlayerFromCharacter(Character)
- Humanoid = Character:FindFirstChildOfClass("Humanoid")
- Torso = Character:FindFirstChild("Torso") or Character:FindFirstChild("HumanoidRootPart")
- if not CheckIfAlive() then
- return
- end
- ToolEquipped = true
- Sounds.Unsheath:Play()
- end
- function Unequipped()
- Tool.Grip = Grips.Up
- ToolEquipped = false
- end
- Tool.Activated:Connect(Activated)
- Tool.Equipped:Connect(Equipped)
- Tool.Unequipped:Connect(Unequipped)
- Connection = Handle.Touched:Connect(Blow)
- end))
- LocalScript59.Name = "MouseIcon"
- LocalScript59.Parent = Tool0
- table.insert(cors,sandbox(LocalScript59,function()
- --Made by Luckymaxer
- Mouse_Icon = "rbxasset://textures/GunCursor.png"
- Reloading_Icon = "rbxasset://textures/GunWaitCursor.png"
- Tool = script.Parent
- Mouse = nil
- function UpdateIcon()
- if Mouse then
- Mouse.Icon = Tool.Enabled and Mouse_Icon or Reloading_Icon
- end
- end
- function OnEquipped(ToolMouse)
- Mouse = ToolMouse
- UpdateIcon()
- end
- function OnChanged(Property)
- if Property == "Enabled" then
- UpdateIcon()
- end
- end
- Tool.Equipped:Connect(OnEquipped)
- Tool.Changed:Connect(OnChanged)
- end))
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = workspace
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement