Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Converted with ttyyuu12345's model to script plugin v4
- 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")
- StringValue1 = Instance.new("StringValue")
- Folder2 = Instance.new("Folder")
- NumberValue3 = Instance.new("NumberValue")
- LocalScript4 = Instance.new("LocalScript")
- NumberValue5 = Instance.new("NumberValue")
- LocalScript6 = Instance.new("LocalScript")
- NumberValue7 = Instance.new("NumberValue")
- LocalScript8 = Instance.new("LocalScript")
- ScreenGui9 = Instance.new("ScreenGui")
- Frame10 = Instance.new("Frame")
- TextLabel11 = Instance.new("TextLabel")
- LocalScript12 = Instance.new("LocalScript")
- TextLabel13 = Instance.new("TextLabel")
- LocalScript14 = Instance.new("LocalScript")
- TextLabel15 = Instance.new("TextLabel")
- LocalScript16 = Instance.new("LocalScript")
- LocalScript17 = Instance.new("LocalScript")
- NumberValue18 = Instance.new("NumberValue")
- Script19 = Instance.new("Script")
- Folder20 = Instance.new("Folder")
- NumberValue21 = Instance.new("NumberValue")
- Script22 = Instance.new("Script")
- NumberValue23 = Instance.new("NumberValue")
- Script24 = Instance.new("Script")
- Folder25 = Instance.new("Folder")
- Animation26 = Instance.new("Animation")
- Animation27 = Instance.new("Animation")
- Animation28 = Instance.new("Animation")
- Animation29 = Instance.new("Animation")
- Animation30 = Instance.new("Animation")
- Animation31 = Instance.new("Animation")
- Folder32 = Instance.new("Folder")
- ParticleEmitter33 = Instance.new("ParticleEmitter")
- ParticleEmitter34 = Instance.new("ParticleEmitter")
- Script35 = Instance.new("Script")
- Part36 = Instance.new("Part")
- Script37 = Instance.new("Script")
- Script38 = Instance.new("Script")
- Part39 = Instance.new("Part")
- Sound40 = Instance.new("Sound")
- Sound41 = Instance.new("Sound")
- SpecialMesh42 = Instance.new("SpecialMesh")
- Sound43 = Instance.new("Sound")
- Sound44 = Instance.new("Sound")
- Folder45 = Instance.new("Folder")
- Script46 = Instance.new("Script")
- ScreenGui47 = Instance.new("ScreenGui")
- Frame48 = Instance.new("Frame")
- TextLabel49 = Instance.new("TextLabel")
- LocalScript50 = Instance.new("LocalScript")
- TextLabel51 = Instance.new("TextLabel")
- LocalScript52 = Instance.new("LocalScript")
- TextLabel53 = Instance.new("TextLabel")
- TextLabel54 = Instance.new("TextLabel")
- TextLabel55 = Instance.new("TextLabel")
- TextLabel56 = Instance.new("TextLabel")
- Tool0.Name = "Sword"
- Tool0.Parent = mas
- Tool0.TextureId = "rbxgameasset://Images/meleeicon"
- Tool0.GripForward = Vector3.new(0.999995828, -3.05171125e-05, 0.00287951133)
- Tool0.GripPos = Vector3.new(-3.63797881e-11, -1.44320107, 3.99325017e-12)
- Tool0.GripRight = Vector3.new(-0.00287950388, 3.05180438e-05, 0.999995828)
- Tool0.GripUp = Vector3.new(3.06048642e-05, 1, -3.04300429e-05)
- Tool0.ToolTip = "[Sword]"
- Tool0.CanBeDropped = false
- StringValue1.Name = "WeaponType"
- StringValue1.Parent = Tool0
- StringValue1.Value = "Melee"
- Folder2.Name = "Stats"
- Folder2.Parent = Tool0
- NumberValue3.Name = "Defense"
- NumberValue3.Parent = Folder2
- NumberValue3.Value = 1
- LocalScript4.Parent = NumberValue3
- LocalScript4.Disabled = true
- table.insert(cors,sandbox(LocalScript4,function()
- local val = script.Parent
- local plr = game.Players.LocalPlayer
- local char = workspace:WaitForChild(plr.Name)
- local hum = char:WaitForChild("Humanoid")
- while true do
- val.Value = char.Defense.Value
- wait()
- end
- end))
- NumberValue5.Name = "Power"
- NumberValue5.Parent = Folder2
- LocalScript6.Parent = NumberValue5
- LocalScript6.Disabled = true
- table.insert(cors,sandbox(LocalScript6,function()
- local val = script.Parent
- local plr = game.Players.LocalPlayer
- local char = workspace:WaitForChild(plr.Name)
- local hum = char:WaitForChild("Humanoid")
- while true do
- val.Value = char.Power.Value
- wait()
- end
- end))
- NumberValue7.Name = "Speed"
- NumberValue7.Parent = Folder2
- LocalScript8.Parent = NumberValue7
- LocalScript8.Disabled = true
- table.insert(cors,sandbox(LocalScript8,function()
- local val = script.Parent
- local plr = game.Players.LocalPlayer
- local char = workspace:WaitForChild(plr.Name)
- local hum = char:WaitForChild("Humanoid")
- while true do
- val.Value = math.floor(hum.WalkSpeed/16*10)/10
- wait()
- end
- end))
- ScreenGui9.Name = "StatGui"
- ScreenGui9.Parent = Tool0
- Frame10.Name = "Stats"
- Frame10.Parent = ScreenGui9
- Frame10.Size = UDim2.new(0.150000006, 1, 0.150000006, 1)
- Frame10.Style = Enum.FrameStyle.RobloxRound
- Frame10.Position = UDim2.new(0.845000029, 0, 0.845000029, 0)
- Frame10.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame10.BorderSizePixel = 0
- TextLabel11.Name = "Power"
- TextLabel11.Parent = Frame10
- TextLabel11.Size = UDim2.new(0.333000004, 1, 1, 1)
- TextLabel11.Text = "Pow:(#)"
- TextLabel11.BackgroundColor3 = Color3.new(1, 0.333333, 0)
- TextLabel11.BorderSizePixel = 0
- TextLabel11.Font = Enum.Font.ArialBold
- TextLabel11.FontSize = Enum.FontSize.Size14
- TextLabel11.TextColor3 = Color3.new(1, 1, 1)
- TextLabel11.TextScaled = true
- TextLabel11.TextStrokeTransparency = 0
- TextLabel11.TextWrapped = true
- LocalScript12.Parent = TextLabel11
- table.insert(cors,sandbox(LocalScript12,function()
- local tg = script.Parent
- local plr = game.Players.LocalPlayer
- local char = workspace:WaitForChild(plr.Name)
- local hum = char:WaitForChild("Humanoid")
- while true do
- tg.Text = ("Pow:("..tostring(char:WaitForChild("Sword").Stats.Power.Value)..")")
- wait()
- end
- end))
- TextLabel13.Name = "Defense"
- TextLabel13.Parent = Frame10
- TextLabel13.Size = UDim2.new(0.333000004, 1, 1, 1)
- TextLabel13.Text = "Def:(#)"
- TextLabel13.Position = UDim2.new(0.333000004, 0, 0, 0)
- TextLabel13.BackgroundColor3 = Color3.new(0, 0.666667, 1)
- TextLabel13.BorderSizePixel = 0
- TextLabel13.Font = Enum.Font.ArialBold
- TextLabel13.FontSize = Enum.FontSize.Size14
- TextLabel13.TextColor3 = Color3.new(1, 1, 1)
- TextLabel13.TextScaled = true
- TextLabel13.TextStrokeTransparency = 0
- TextLabel13.TextWrapped = true
- LocalScript14.Parent = TextLabel13
- table.insert(cors,sandbox(LocalScript14,function()
- local tg = script.Parent
- local plr = game.Players.LocalPlayer
- local char = workspace:WaitForChild(plr.Name)
- local hum = char:WaitForChild("Humanoid")
- while true do
- tg.Text = ("Def:("..tostring(char:WaitForChild("Sword").Stats.Defense.Value)..")")
- wait()
- end
- end))
- TextLabel15.Name = "Speed"
- TextLabel15.Parent = Frame10
- TextLabel15.Size = UDim2.new(0.333000004, 1, 1, 1)
- TextLabel15.Text = "Spd:(#)"
- TextLabel15.Position = UDim2.new(0.666000009, 0, 0, 0)
- TextLabel15.BackgroundColor3 = Color3.new(1, 1, 0)
- TextLabel15.BorderSizePixel = 0
- TextLabel15.Font = Enum.Font.ArialBold
- TextLabel15.FontSize = Enum.FontSize.Size14
- TextLabel15.TextColor3 = Color3.new(1, 1, 1)
- TextLabel15.TextScaled = true
- TextLabel15.TextStrokeTransparency = 0
- TextLabel15.TextWrapped = true
- LocalScript16.Parent = TextLabel15
- table.insert(cors,sandbox(LocalScript16,function()
- local tg = script.Parent
- local plr = game.Players.LocalPlayer
- local char = workspace:WaitForChild(plr.Name)
- local hum = char:WaitForChild("Humanoid")
- while true do
- tg.Text = ("Spd:("..tostring(char:WaitForChild("Sword").Stats.Speed.Value)..")")
- wait()
- end
- end))
- LocalScript17.Name = "ToolScript"
- LocalScript17.Parent = Tool0
- table.insert(cors,sandbox(LocalScript17,function()
- local tool = script.Parent
- local plr = game.Players.LocalPlayer
- local char = workspace:WaitForChild(plr.Name)
- local hum = char:WaitForChild("Humanoid")
- local r = game:service("RunService")
- local isclicking = false
- local Clicknumb = 1 -- this needs to be here
- local mouse = plr:GetMouse()
- local CanCast = 1
- function Equipped()
- print('Equipped')
- local gooey = tool.StatGui:Clone()
- gooey.Parent = plr.PlayerGui
- tool.Stats.Power.LocalScript.Disabled = false
- tool.Stats.Defense.LocalScript.Disabled = false
- tool.Stats.Speed.LocalScript.Disabled = false
- local gooey2 = tool.SkillGui:Clone()
- gooey2.Parent = plr.PlayerGui
- gooey2.Skills.XSkill.LocalScript.Disabled = false
- gooey2.Skills.ZSkill.LocalScript.Disabled = false
- end
- function UnEquipped()
- print('UnEquipped')
- plr.PlayerGui.StatGui:Destroy()
- plr.PlayerGui.SkillGui:Destroy()
- tool.Stats.Power.LocalScript.Disabled = true
- tool.Stats.Defense.LocalScript.Disabled = true
- tool.Stats.Speed.LocalScript.Disabled = true
- end
- function Attack1()
- CanCast = 0
- if tool.Enabled == true then return end
- local anim1 = tool.Animations.Slash1
- local example = hum:LoadAnimation(anim1)
- example:Play(0,1,1)
- tool.Handle.S1:Play()
- tool.Hitbox.Damage.Disabled = false
- wait(.45)
- tool.Hitbox.Damage.Disabled = true
- CanCast = 1
- end
- function Attack2()
- CanCast = 0
- if tool.Enabled == true then return end
- local anim2 = tool.Animations.Slash2
- local example = hum:LoadAnimation(anim2)
- example:Play(0,1,1)
- tool.Handle.S1:Play()
- tool.Hitbox.Damage.Disabled = false
- wait(.45)
- tool.Hitbox.Damage.Disabled = true
- CanCast = 1
- end
- function Attack3()
- CanCast = 0
- if tool.Enabled == true then return end
- local anim3 = tool.Animations.Spin
- local example = hum:LoadAnimation(anim3)
- example:Play(0,1,1)
- wait(.6)
- tool.Handle.S2:Play()
- tool.Hitbox.Damage.Disabled = false
- wait(.15)
- tool.Hitbox.Damage.Disabled = true
- CanCast = 1
- end
- local lastattack = 0
- tool.Enabled = true
- function Activated()
- if not tool.Enabled then
- return
- end
- tool.Enabled = false
- local character = tool.Parent;
- local humanoid = character.Humanoid
- if humanoid == nil then
- print("No humanoid!")
- return
- end
- local t = r.Stepped:wait()
- if script.Timer.Value == 0 then
- Clicknumb = 1
- end
- if Clicknumb == 1 then -- copy all this, change the functions for attacks.
- Clicknumb = 2
- Attack1()
- wait(0.05)
- script.Timer.Value = 2.5
- elseif Clicknumb == 2 then
- Clicknumb = 3
- Attack2()
- wait(0.05)
- script.Timer.Value = 2.5
- elseif Clicknumb == 3 then
- Clicknumb = 1
- Attack3()
- wait(0.05)
- script.Timer.Value = 2.5
- end -- thats about it.
- lastattack = t
- tool.Enabled = true
- end
- function UnActivated()
- end
- -- KEY SKILLS --------------------------------------------------------------------------
- function KeyDown(key)
- key = key:lower()
- local casting = false
- if CanCast == 1 then
- if tool.Parent ~= plr.Backpack then
- if (key == "z") then -- Z : Kick
- if casting == false then
- casting = true
- if script.Cooldowns.Z.Value == 0 then
- script.Cooldowns.Z.Value = 1.5
- tool.Enabled = false
- local kick = tool.Animations.Kick
- local example = hum:LoadAnimation(kick)
- example:Play(0,1,2)
- tool.Handle.S3:Play()
- local dmgclone = tool.ExtraScripts.DamageFEO:Clone()
- dmgclone.Parent = char["Right Leg"]
- dmgclone.Disabled = false
- hum.WalkSpeed = hum.WalkSpeed - 16
- wait(.45)
- dmgclone:Remove()
- hum.WalkSpeed = hum.WalkSpeed + 16
- end
- casting = false
- tool.Enabled = true
- end
- end
- if (key == "x") then -- X : Lunge
- if casting == false then
- casting = true
- if script.Cooldowns.X.Value == 0 then
- script.Cooldowns.X.Value = 12
- tool.Enabled = false
- local lunge = tool.Animations.Lunge
- local example2 = hum:LoadAnimation(lunge)
- local charge = tool.Animations.Charge
- local example3 = hum:LoadAnimation(charge)
- local PEClone1 = tool.ParticleEmitters.Shine:Clone()
- PEClone1.Parent = tool.Hitbox
- char.Humanoid.WalkSpeed = hum.WalkSpeed - 16
- char.Humanoid.JumpPower = hum.JumpPower - 50
- tool.Handle.S4:Play()
- example3:Play(0,1,0.25)
- PEClone1.Enabled = true
- wait(2)
- PEClone1.Enabled = false
- PEClone1:Destroy()
- tool.Hitbox.Damage2.Disabled = false
- example2:Play(0,1,1)
- local PEClone2 = tool.ParticleEmitters.Smoke:Clone()
- PEClone2.Parent = tool.Handle
- PEClone2.Enabled = true
- local motor = Instance.new("BodyVelocity", char.HumanoidRootPart)
- motor.Velocity = char.HumanoidRootPart.CFrame.lookVector*60
- motor.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- for i = 1,5 do
- local effect = tool.Handle:Clone()
- effect.Parent = workspace
- effect.Name = "Effect"
- effect.Mesh.Scale = effect.Mesh.Scale * 1.25
- effect.S1:Destroy() ; effect.S2:Destroy() ; effect.S3:Destroy()
- effect.Mesh.TextureId = ""
- effect.BrickColor = char.Torso.BrickColor
- effect.Transparency = .4
- effect.CanCollide = false
- effect.Anchored = true
- effect.Rotation = tool.Handle.Rotation
- wait(.2) ; effect:Remove()
- end
- motor:Destroy()
- PEClone2:Destroy()
- tool.Hitbox.Damage2.Disabled = true
- char.Humanoid.WalkSpeed = hum.WalkSpeed + 16
- char.Humanoid.JumpPower = hum.JumpPower + 50
- wait(.1)
- end
- end
- casting = false
- tool.Enabled = true
- end
- end
- end
- end
- -- KEY SKILLS --------------------------------------------------------------------------
- tool.Equipped:connect(Equipped)
- tool.Unequipped:connect(UnEquipped)
- tool.Activated:connect(Activated)
- tool.Deactivated:connect(UnActivated)
- mouse.KeyDown:connect(KeyDown)
- end))
- NumberValue18.Name = "Timer"
- NumberValue18.Parent = LocalScript17
- Script19.Parent = NumberValue18
- table.insert(cors,sandbox(Script19,function()
- while true do
- wait(0.5)
- if script.Parent.Value >= 0.5 then
- script.Parent.Value = script.Parent.Value - 0.5
- end
- end
- end))
- Folder20.Name = "Cooldowns"
- Folder20.Parent = LocalScript17
- NumberValue21.Name = "Z"
- NumberValue21.Parent = Folder20
- Script22.Parent = NumberValue21
- table.insert(cors,sandbox(Script22,function()
- while true do
- wait(0.5)
- if script.Parent.Value >= 0.5 then
- script.Parent.Value = script.Parent.Value - 0.5
- end
- end
- end))
- NumberValue23.Name = "X"
- NumberValue23.Parent = Folder20
- Script24.Parent = NumberValue23
- table.insert(cors,sandbox(Script24,function()
- while true do
- wait(0.5)
- if script.Parent.Value >= 0.5 then
- script.Parent.Value = script.Parent.Value - 0.5
- end
- end
- end))
- Folder25.Name = "Animations"
- Folder25.Parent = Tool0
- Animation26.Name = "Slash1"
- Animation26.Parent = Folder25
- Animation26.AnimationId = "rbxassetid://186934753"
- Animation27.Name = "Slash2"
- Animation27.Parent = Folder25
- Animation27.AnimationId = "rbxassetid://186934753"
- Animation28.Name = "Spin"
- Animation28.Parent = Folder25
- Animation28.AnimationId = "https://www.roblox.com/item.aspx?id=452321869"
- Animation29.Name = "Kick"
- Animation29.Parent = Folder25
- Animation29.AnimationId = "https://www.roblox.com/item.aspx?id=428420299"
- Animation30.Name = "Charge"
- Animation30.Parent = Folder25
- Animation30.AnimationId = "https://www.roblox.com/item.aspx?id=437820400"
- Animation31.Name = "Lunge"
- Animation31.Parent = Folder25
- Animation31.AnimationId = "rbxassetid://186934753"
- Folder32.Name = "ParticleEmitters"
- Folder32.Parent = Tool0
- ParticleEmitter33.Name = "Shine"
- ParticleEmitter33.Parent = Folder32
- ParticleEmitter33.Transparency = NumberSequence.new(1,1,0.31874996423721,0.5,0)
- ParticleEmitter33.Rotation = NumberRange.new(-360, 360)
- ParticleEmitter33.Size = NumberSequence.new(3,3,0)
- ParticleEmitter33.Color = ColorSequence.new(Color3.new(1, 1, 0.498039),Color3.new(1, 0.803922, 0.482353))
- ParticleEmitter33.Enabled = false
- ParticleEmitter33.LightEmission = 0.44999998807907
- ParticleEmitter33.Texture = "http://www.roblox.com/asset/?id=244221535"
- ParticleEmitter33.Lifetime = NumberRange.new(0.40000000596046, 0.40000000596046)
- ParticleEmitter33.Rate = 40
- ParticleEmitter33.RotSpeed = NumberRange.new(-300, 300)
- ParticleEmitter33.Speed = NumberRange.new(0, 0)
- ParticleEmitter33.Color = ColorSequence.new(Color3.new(1, 1, 0.498039),Color3.new(1, 0.803922, 0.482353))
- ParticleEmitter34.Name = "Smoke"
- ParticleEmitter34.Parent = Folder32
- ParticleEmitter34.Transparency = NumberSequence.new(0,1)
- ParticleEmitter34.Rotation = NumberRange.new(-360, 360)
- ParticleEmitter34.Color = ColorSequence.new(Color3.new(0.184314, 0.184314, 0.184314),Color3.new(0.368627, 0.368627, 0.368627),Color3.new(0.207843, 0.207843, 0.207843),Color3.new(0.262745, 0.262745, 0.262745),Color3.new(0.454902, 0.454902, 0.454902))
- ParticleEmitter34.Enabled = false
- ParticleEmitter34.Texture = "http://www.roblox.com/asset/?id=290833005"
- ParticleEmitter34.Acceleration = Vector3.new(0, 3, 0)
- ParticleEmitter34.Lifetime = NumberRange.new(2, 2)
- ParticleEmitter34.Rate = 30
- ParticleEmitter34.RotSpeed = NumberRange.new(-300, 300)
- ParticleEmitter34.Speed = NumberRange.new(2, 2)
- ParticleEmitter34.VelocitySpread = 180
- ParticleEmitter34.Color = ColorSequence.new(Color3.new(0.184314, 0.184314, 0.184314),Color3.new(0.368627, 0.368627, 0.368627),Color3.new(0.207843, 0.207843, 0.207843),Color3.new(0.262745, 0.262745, 0.262745),Color3.new(0.454902, 0.454902, 0.454902))
- Script35.Name = "UltimateWeld"
- Script35.Parent = Tool0
- table.insert(cors,sandbox(Script35,function()
- --DO NOT USE BOTH WELDING SCRIPTS PROVIDED BY THIS MODEL
- --The regular script is recommended
- --[[
- Prevents welds from breaking/transforming when player uses the tool
- This recreates the EXACT weld every time
- This also prevents lag build up by clearing old welds, the tradition weld script just keeps making new
- ones, which can lead to weapons have crazy amounts of welds that dont work (I saw 6000 in a weapon once)
- ]]
- --[[Usage
- 1. Remove Old welding script (optional, only if updating a weapon and that weapon does not rely on that script)
- 2. Anchor all parts of tool and put inside of a tool object
- 3. Place this script in that tool (make sure you do this AFTER step 2, otherwise it may fail)
- 4. Treat like normal tool, nothing special has to be done with it
- ]]
- --[[The local script included in this model can only be used if
- 1. The weapon is being placed in the players backpack first (i.e. the weapon is in starterpack and moves to player backpack)
- OR
- 2. The weapon is previously welded (weapon can be placed in workspace and picked up then)
- ]]
- repeat wait() until script.Parent:FindFirstChild("Handle")
- local welds={}
- function ClearOldWelds(tbl)
- for _,v in pairs(tbl) do
- if v:IsA('Weld') then
- v:Destroy()
- end
- end
- end
- function Equipped()
- local handle=script.Parent:FindFirstChild('Handle')
- if not handle then return end
- local tble=handle:GetChildren()
- for _,v in pairs(script.Parent:GetChildren()) do
- if v:IsA('BasePart') and v~=handle then
- local c1
- for _1,v1 in pairs(welds) do
- if _1==v then
- c1=v1
- break
- end
- end
- if not c1 then
- welds[v]=v.CFrame:inverse()*handle.CFrame
- v.Anchored=false
- c1=welds[v]
- end
- local weld=Instance.new('Weld')
- weld.Part0=handle
- weld.Part1=v
- weld.C0=CFrame.new()
- weld.C1=c1
- weld.Parent=handle
- end
- end
- ClearOldWelds(tble)
- handle.Anchored=false
- end
- Equipped()
- script.Parent.Equipped:connect(Equipped)
- --Made by DonnyTheDemented
- end))
- Part36.Name = "Hitbox"
- Part36.Parent = Tool0
- Part36.Transparency = 1
- Part36.Rotation = Vector3.new(0, 90, 0)
- Part36.Anchored = true
- Part36.CanCollide = false
- Part36.Size = Vector3.new(1, 4.29999971, 1)
- Part36.CFrame = CFrame.new(-20.0999966, 24.1000004, -3.899997, 3.05180438e-05, -3.05171161e-05, 1, -3.05171106e-05, 1, 3.05180438e-05, -1, -3.05180438e-05, 3.05171125e-05)
- Part36.Position = Vector3.new(-20.0999966, 24.1000004, -3.899997)
- Part36.Orientation = Vector3.new(0, 90, 0)
- Script37.Name = "Damage"
- Script37.Parent = Part36
- Script37.Disabled = true
- table.insert(cors,sandbox(Script37,function()
- ---local examp = require(game.Workspace.DamageFunc)
- local tool = script.Parent.Parent
- local debounce = false
- function OnTouch(hit)
- local i = math.random(10,26)
- local human = hit.Parent:FindFirstChild("Monster")
- if (human ~= nil ) then
- if debounce == false then
- debounce = true
- examp.SubtractionHealth(human,i,human.Parent.Defense.Value,tool.Stats.Power.Value,tool.Parent)
- script.Disabled = true
- end
- end
- end
- script.Parent.Touched:connect(OnTouch)
- end))
- Script38.Name = "Damage2"
- Script38.Parent = Part36
- Script38.Disabled = true
- table.insert(cors,sandbox(Script38,function()
- ---local examp = require(game.Workspace.DamageFunc)
- local tool = script.Parent.Parent
- local debounce = false
- function OnTouch(hit)
- local i = math.random(20,50)
- local human = hit.Parent:FindFirstChild("Monster")
- if (human ~= nil ) then
- if debounce == false then
- debounce = true
- examp.SubtractionHealth(human,i,human.Parent.Defense.Value,tool.Stats.Power.Value,tool.Parent)
- end
- end
- end
- script.Parent.Touched:connect(OnTouch)
- end))
- Part39.Name = "Handle"
- Part39.Parent = Tool0
- Part39.BrickColor = BrickColor.new("Smoky grey")
- Part39.Rotation = Vector3.new(0, 90, 0)
- Part39.CanCollide = false
- Part39.Size = Vector3.new(0.5, 4.4000001, 0.5)
- Part39.CFrame = CFrame.new(-20.0999279, 24.2000103, -3.89998746, 3.92483344e-08, -9.88477041e-07, 1, -1.4239723e-05, 1, 9.88477609e-07, -1, -1.4239723e-05, 3.92342585e-08)
- Part39.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part39.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part39.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part39.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part39.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part39.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Part39.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part39.Position = Vector3.new(-20.0999279, 24.2000103, -3.89998746)
- Part39.Orientation = Vector3.new(0, 90, 0)
- Part39.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Sound40.Name = "S1"
- Sound40.Parent = Part39
- Sound40.Pitch = 1.1000000238419
- Sound40.SoundId = "rbxasset://sounds//swordslash.wav"
- Sound40.Volume = 0.25
- Sound41.Name = "S2"
- Sound41.Parent = Part39
- Sound41.Pitch = 1.1000000238419
- Sound41.SoundId = "rbxasset://sounds//swordlunge.wav"
- Sound41.Volume = 0.25
- SpecialMesh42.Parent = Part39
- SpecialMesh42.MeshId = "http://www.roblox.com/asset/?id=94746028"
- SpecialMesh42.Scale = Vector3.new(1.20000005, 1.20000005, 1.20000005)
- SpecialMesh42.TextureId = "http://www.roblox.com/asset/?ID=94746105"
- SpecialMesh42.MeshType = Enum.MeshType.FileMesh
- SpecialMesh42.Scale = Vector3.new(1.20000005, 1.20000005, 1.20000005)
- Sound43.Name = "S4"
- Sound43.Parent = Part39
- Sound43.Pitch = 0.55000001192093
- Sound43.SoundId = "http://www.roblox.com/asset/?id=2101137"
- Sound43.Volume = 0.25
- Sound44.Name = "S3"
- Sound44.Parent = Part39
- Sound44.Pitch = 0.89999997615814
- Sound44.SoundId = "rbxasset://sounds/swoosh.wav"
- Sound44.Volume = 0.25
- Folder45.Name = "ExtraScripts"
- Folder45.Parent = Tool0
- Script46.Name = "DamageFEO"
- Script46.Parent = Folder45
- Script46.Disabled = true
- table.insert(cors,sandbox(Script46,function()
- -- Damage script F.E.O( For External Object )
- -- Basically if you want to make damage on a arm, leg, head, etc.
- ---local examp = require(game.Workspace.DamageFunc)
- local tool = script.Parent.Parent
- local debounce = false
- function OnTouch(hit)
- local i = math.random(5,20)
- local human = hit.Parent:FindFirstChild("Monster")
- if (human ~= nil ) then
- if debounce == false then
- debounce = true
- human.PlatformStand = true
- examp.SubtractionHealth(human,i,human.Parent.Defense.Value,script.Parent.Parent.Sword.Stats.Power.Value,script.Parent.Parent)
- script.Disabled = true
- end
- end
- end
- script.Parent.Touched:connect(OnTouch)
- end))
- ScreenGui47.Name = "SkillGui"
- ScreenGui47.Parent = Tool0
- Frame48.Name = "Skills"
- Frame48.Parent = ScreenGui47
- Frame48.Size = UDim2.new(0.150000006, 1, 0.125, 1)
- Frame48.Style = Enum.FrameStyle.RobloxRound
- Frame48.Position = UDim2.new(0.845000029, 0, 0.625, 0)
- Frame48.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame48.BorderSizePixel = 0
- TextLabel49.Name = "ZSkill"
- TextLabel49.Parent = Frame48
- TextLabel49.Size = UDim2.new(0.5, 0, 1, 1)
- TextLabel49.Text = ""
- TextLabel49.BackgroundColor3 = Color3.new(0.333333, 1, 0)
- TextLabel49.BorderSizePixel = 0
- TextLabel49.Font = Enum.Font.ArialBold
- TextLabel49.FontSize = Enum.FontSize.Size14
- TextLabel49.TextColor3 = Color3.new(1, 1, 1)
- TextLabel49.TextScaled = true
- TextLabel49.TextStrokeTransparency = 0
- TextLabel49.TextWrapped = true
- LocalScript50.Parent = TextLabel49
- LocalScript50.Disabled = true
- table.insert(cors,sandbox(LocalScript50,function()
- max = 1
- cd = 1
- local tg = script.Parent
- local plr = game.Players.LocalPlayer
- local char = workspace:WaitForChild(plr.Name)
- local hum = char:WaitForChild("Humanoid")
- wait()
- for _, child in pairs(char:GetChildren()) do
- if child.ClassName == 'Tool' then
- tool = child
- end
- end
- while true do
- if tool.ToolScript.Cooldowns.Z.Value > max then max = tool.ToolScript.Cooldowns.Z.Value
- end
- tg.Size = UDim2.new((( 0.5 / max ) * ( max - tool.ToolScript.Cooldowns.Z.Value)),0,1,1)
- if tool.ToolScript.Cooldowns.Z.Value == 0 and cd == 0 then
- cd = 1
- script.Parent.Parent.ZF.BackgroundTransparency = 0.8
- wait()
- script.Parent.Parent.ZF.BackgroundTransparency = 0.6
- wait()
- script.Parent.Parent.ZF.BackgroundTransparency = 0.4
- wait()
- script.Parent.Parent.ZF.BackgroundTransparency = 0.2
- wait()
- script.Parent.Parent.ZF.BackgroundTransparency = 0.0
- wait()
- script.Parent.Parent.ZF.BackgroundTransparency = 0.2
- wait()
- script.Parent.Parent.ZF.BackgroundTransparency = 0.4
- wait()
- script.Parent.Parent.ZF.BackgroundTransparency = 0.6
- wait()
- script.Parent.Parent.ZF.BackgroundTransparency = 0.8
- wait()
- script.Parent.Parent.ZF.BackgroundTransparency = 1
- else if tool.ToolScript.Cooldowns.Z.Value ~= 0 then
- cd = 0
- end
- end
- wait()
- end
- end))
- TextLabel51.Name = "XSkill"
- TextLabel51.Parent = Frame48
- TextLabel51.Size = UDim2.new(0.5, 0, 1, 1)
- TextLabel51.Text = ""
- TextLabel51.Position = UDim2.new(0.5, 0, 0, 0)
- TextLabel51.BackgroundColor3 = Color3.new(0, 0.666667, 1)
- TextLabel51.BorderSizePixel = 0
- TextLabel51.Font = Enum.Font.ArialBold
- TextLabel51.FontSize = Enum.FontSize.Size14
- TextLabel51.TextColor3 = Color3.new(1, 1, 1)
- TextLabel51.TextScaled = true
- TextLabel51.TextStrokeTransparency = 0
- TextLabel51.TextWrapped = true
- LocalScript52.Parent = TextLabel51
- LocalScript52.Disabled = true
- table.insert(cors,sandbox(LocalScript52,function()
- max = 1
- cd = 1
- local tg = script.Parent
- local plr = game.Players.LocalPlayer
- local char = workspace:WaitForChild(plr.Name)
- local hum = char:WaitForChild("Humanoid")
- wait()
- for _, child in pairs(char:GetChildren()) do
- if child.ClassName == 'Tool' then
- tool = child
- end
- end
- while true do
- if tool.ToolScript.Cooldowns.X.Value > max then max = tool.ToolScript.Cooldowns.X.Value
- end
- tg.Size = UDim2.new((( 0.5 / max ) * ( max - tool.ToolScript.Cooldowns.X.Value)),0,1,1)
- if tool.ToolScript.Cooldowns.X.Value == 0 and cd == 0 then
- cd = 1
- script.Parent.Parent.XF.BackgroundTransparency = 0.8
- wait()
- script.Parent.Parent.XF.BackgroundTransparency = 0.6
- wait()
- script.Parent.Parent.XF.BackgroundTransparency = 0.4
- wait()
- script.Parent.Parent.XF.BackgroundTransparency = 0.2
- wait()
- script.Parent.Parent.XF.BackgroundTransparency = 0.0
- wait()
- script.Parent.Parent.XF.BackgroundTransparency = 0.2
- wait()
- script.Parent.Parent.XF.BackgroundTransparency = 0.4
- wait()
- script.Parent.Parent.XF.BackgroundTransparency = 0.6
- wait()
- script.Parent.Parent.XF.BackgroundTransparency = 0.8
- wait()
- script.Parent.Parent.XF.BackgroundTransparency = 1
- else if tool.ToolScript.Cooldowns.X.Value ~= 0 then
- cd = 0
- end
- end
- wait()
- end
- end))
- TextLabel53.Name = "X"
- TextLabel53.Parent = Frame48
- TextLabel53.Transparency = 1
- TextLabel53.Size = UDim2.new(0.5, 0, 1, 1)
- TextLabel53.Text = "X"
- TextLabel53.Position = UDim2.new(0.5, 0, 0, 0)
- TextLabel53.BackgroundColor3 = Color3.new(0, 0.666667, 1)
- TextLabel53.BackgroundTransparency = 1
- TextLabel53.BorderSizePixel = 0
- TextLabel53.Font = Enum.Font.ArialBold
- TextLabel53.FontSize = Enum.FontSize.Size14
- TextLabel53.TextColor3 = Color3.new(1, 1, 1)
- TextLabel53.TextScaled = true
- TextLabel53.TextStrokeTransparency = 0
- TextLabel53.TextWrapped = true
- TextLabel54.Name = "Z"
- TextLabel54.Parent = Frame48
- TextLabel54.Transparency = 1
- TextLabel54.Size = UDim2.new(0.5, 0, 1, 1)
- TextLabel54.Text = "Z"
- TextLabel54.BackgroundColor3 = Color3.new(0.333333, 1, 0)
- TextLabel54.BackgroundTransparency = 1
- TextLabel54.BorderSizePixel = 0
- TextLabel54.Font = Enum.Font.ArialBold
- TextLabel54.FontSize = Enum.FontSize.Size14
- TextLabel54.TextColor3 = Color3.new(1, 1, 1)
- TextLabel54.TextScaled = true
- TextLabel54.TextStrokeTransparency = 0
- TextLabel54.TextWrapped = true
- TextLabel55.Name = "ZF"
- TextLabel55.Parent = Frame48
- TextLabel55.Transparency = 1
- TextLabel55.Size = UDim2.new(0.5, 0, 1, 1)
- TextLabel55.Text = ""
- TextLabel55.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel55.BackgroundTransparency = 1
- TextLabel55.BorderSizePixel = 0
- TextLabel55.Font = Enum.Font.ArialBold
- TextLabel55.FontSize = Enum.FontSize.Size14
- TextLabel55.TextColor3 = Color3.new(1, 1, 1)
- TextLabel55.TextScaled = true
- TextLabel55.TextStrokeTransparency = 0
- TextLabel55.TextWrapped = true
- TextLabel56.Name = "XF"
- TextLabel56.Parent = Frame48
- TextLabel56.Transparency = 1
- TextLabel56.Size = UDim2.new(0.5, 0, 1, 1)
- TextLabel56.Text = ""
- TextLabel56.Position = UDim2.new(0.5, 0, 0, 0)
- TextLabel56.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel56.BackgroundTransparency = 1
- TextLabel56.BorderSizePixel = 0
- TextLabel56.ZIndex = 4
- TextLabel56.Font = Enum.Font.ArialBold
- TextLabel56.FontSize = Enum.FontSize.Size14
- TextLabel56.TextColor3 = Color3.new(1, 1, 1)
- TextLabel56.TextScaled = true
- TextLabel56.TextStrokeTransparency = 0
- TextLabel56.TextWrapped = true
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = game:GetService("Players").LocalPlayer.Backpack
- 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