Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --The color correction cannot be added due to being restricted in void
- --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"))
- Script0 = Instance.new("Script")
- BodyVelocity1 = Instance.new("BodyVelocity")
- LocalScript2 = Instance.new("LocalScript")
- Part3 = Instance.new("Part")
- Sound4 = Instance.new("Sound")
- SpecialMesh5 = Instance.new("SpecialMesh")
- Sound6 = Instance.new("Sound")
- Sound7 = Instance.new("Sound")
- Script8 = Instance.new("Script")
- StringValue9 = Instance.new("StringValue")
- Animation10 = Instance.new("Animation")
- StringValue11 = Instance.new("StringValue")
- Animation12 = Instance.new("Animation")
- StringValue13 = Instance.new("StringValue")
- Animation14 = Instance.new("Animation")
- NumberValue15 = Instance.new("NumberValue")
- Animation16 = Instance.new("Animation")
- NumberValue17 = Instance.new("NumberValue")
- StringValue18 = Instance.new("StringValue")
- Animation19 = Instance.new("Animation")
- StringValue20 = Instance.new("StringValue")
- Animation21 = Instance.new("Animation")
- StringValue22 = Instance.new("StringValue")
- Animation23 = Instance.new("Animation")
- StringValue24 = Instance.new("StringValue")
- Animation25 = Instance.new("Animation")
- BoolValue26 = Instance.new("BoolValue")
- Tool27 = Instance.new("Tool")
- LocalScript28 = Instance.new("LocalScript")
- Script29 = Instance.new("Script")
- BodyVelocity30 = Instance.new("BodyVelocity")
- Part31 = Instance.new("Part")
- Sound32 = Instance.new("Sound")
- SpecialMesh33 = Instance.new("SpecialMesh")
- Script34 = Instance.new("Script")
- Humanoid35 = Instance.new("Humanoid")
- Script36 = Instance.new("Script")
- StringValue37 = Instance.new("StringValue")
- Part38 = Instance.new("Part")
- Decal39 = Instance.new("Decal")
- SpecialMesh40 = Instance.new("SpecialMesh")
- Part41 = Instance.new("Part")
- Motor6D42 = Instance.new("Motor6D")
- Part43 = Instance.new("Part")
- Part44 = Instance.new("Part")
- Part45 = Instance.new("Part")
- Weld46 = Instance.new("Weld")
- Part47 = Instance.new("Part")
- Part48 = Instance.new("Part")
- BodyForce49 = Instance.new("BodyForce")
- Motor6D50 = Instance.new("Motor6D")
- Motor6D51 = Instance.new("Motor6D")
- Motor6D52 = Instance.new("Motor6D")
- Motor6D53 = Instance.new("Motor6D")
- Motor6D54 = Instance.new("Motor6D")
- BillboardGui55 = Instance.new("BillboardGui")
- TextLabel56 = Instance.new("TextLabel")
- Configuration57 = Instance.new("Configuration")
- LocalScript58 = Instance.new("LocalScript")
- Model59 = Instance.new("Model")
- Part60 = Instance.new("Part")
- Motor6D61 = Instance.new("Motor6D")
- Part62 = Instance.new("Part")
- BodyForce63 = Instance.new("BodyForce")
- Motor6D64 = Instance.new("Motor6D")
- Motor6D65 = Instance.new("Motor6D")
- Motor6D66 = Instance.new("Motor6D")
- Motor6D67 = Instance.new("Motor6D")
- Motor6D68 = Instance.new("Motor6D")
- Part69 = Instance.new("Part")
- Part70 = Instance.new("Part")
- Part71 = Instance.new("Part")
- Part72 = Instance.new("Part")
- Weld73 = Instance.new("Weld")
- Part74 = Instance.new("Part")
- Decal75 = Instance.new("Decal")
- SpecialMesh76 = Instance.new("SpecialMesh")
- Humanoid77 = Instance.new("Humanoid")
- Script78 = Instance.new("Script")
- StringValue79 = Instance.new("StringValue")
- Animation80 = Instance.new("Animation")
- StringValue81 = Instance.new("StringValue")
- Animation82 = Instance.new("Animation")
- StringValue83 = Instance.new("StringValue")
- Animation84 = Instance.new("Animation")
- NumberValue85 = Instance.new("NumberValue")
- Animation86 = Instance.new("Animation")
- NumberValue87 = Instance.new("NumberValue")
- StringValue88 = Instance.new("StringValue")
- Animation89 = Instance.new("Animation")
- StringValue90 = Instance.new("StringValue")
- Animation91 = Instance.new("Animation")
- StringValue92 = Instance.new("StringValue")
- Animation93 = Instance.new("Animation")
- StringValue94 = Instance.new("StringValue")
- Animation95 = Instance.new("Animation")
- Sound96 = Instance.new("Sound")
- Tool97 = Instance.new("Tool")
- LocalScript98 = Instance.new("LocalScript")
- Script99 = Instance.new("Script")
- BodyVelocity100 = Instance.new("BodyVelocity")
- Part101 = Instance.new("Part")
- Sound102 = Instance.new("Sound")
- SpecialMesh103 = Instance.new("SpecialMesh")
- BoolValue104 = Instance.new("BoolValue")
- Sound105 = Instance.new("Sound")
- Script106 = Instance.new("Script")
- Configuration107 = Instance.new("Configuration")
- Script108 = Instance.new("Script")
- BillboardGui109 = Instance.new("BillboardGui")
- TextLabel110 = Instance.new("TextLabel")
- StringValue111 = Instance.new("StringValue")
- Script99.Name = "IceHammer"
- Script99.Parent = Tool97
- table.insert(cors,sandbox(Script99,function()
- -------- OMG HAX
- at2 = 0
- debris = game:GetService("Debris")
- r = game:service("RunService")
- cool = 5
- mod = Instance.new("Model")
- mod.Parent = script.Parent
- h = Instance.new("Humanoid")
- h.Parent = mod
- h.MaxHealth = 0
- head = Instance.new("Part")
- head.Name = "Head"
- head.Transparency = 0.989
- head.BrickColor = BrickColor.new("Really black")
- head.formFactor = "Custom"
- head.Size = Vector3.new(0.2,0.2,0.2)
- head.TopSurface = 0
- head.BottomSurface = 0
- head.Anchored = true
- head.Parent = mod
- local damage = 7
- local slash_damage = 3
- sword = script.Parent.Handle
- Tool = script.Parent
- local SlashSound = Instance.new("Sound")
- SlashSound.SoundId = "http://www.roblox.com/asset/?id=926058764"
- SlashSound.Parent = sword
- SlashSound.Pitch = 1
- SlashSound.Volume = 10
- local UnsheathSound = Instance.new("Sound")
- UnsheathSound.SoundId = "http://www.roblox.com/asset/?id=15933756"
- UnsheathSound.Parent = sword
- UnsheathSound.Volume = 1
- --local blues = {"Really blue", "Really black", "Black", "Bright blue"}
- function isTurbo(character)
- return character:FindFirstChild("WingwsHeaddess") ~= nil
- end
- function allThatIce(pos, isTurbo)
- local count = 1
- if (isTurbo == true) then count = 1 end
- for i=1,count do
- local p = Instance.new("Part")
- --p.BrickColor = BrickColor.new(blues[math.random(#blues)])
- p.formFactor = "Symmetric"
- p.Name = "ICEY NOOB"
- p.Size = Vector3.new(5,5,1)
- p.BrickColor = BrickColor.new("New Yeller")
- p.TopSurface = 0
- p.Material = "Neon"
- p.Transparency = 0.5
- p.CanCollide = false
- --p.Shape = 0
- p.Friction = 0
- p.Elasticity = 0
- p.BottomSurface = 0
- local a = math.random() * 6.28
- local d = Vector3.new(math.cos(a), 0, math.sin(a)).unit
- bv = script.BodyVelocity:clone()
- bv.Parent = p
- --p.RotVelocity = d * 1000
- p.CFrame = CFrame.new(pos + Vector3.new(0, 0, 0) + (d * 0), Tool.Parent.Torso.CFrame.lookVector * -9999999999)
- --p.CFrame = CFrame.new(p.Position, Tool.Parent.Torso.Position)
- p.Parent = game.Workspace
- debris:AddItem(p, 0.1)
- wait()
- end
- end
- function blow(hit)
- local humanoid = hit.Parent:findFirstChild("Humanoid")
- local vCharacter = Tool.Parent
- local vPlayer = game.Players:playerFromCharacter(vCharacter)
- local hum = vCharacter:findFirstChild("Humanoid") -- non-nil if tool held by a character
- if humanoid~=nil and humanoid ~= hum and hum ~= nil then
- -- final check, make sure sword is in-hand
- local right_arm = vCharacter:FindFirstChild("Right Arm")
- if (right_arm ~= nil) then
- local joint = right_arm:FindFirstChild("RightGrip")
- if (joint ~= nil and (joint.Part0 == sword or joint.Part1 == sword)) then
- tagHumanoid(humanoid, vPlayer)
- if (isTurbo(vCharacter) == true) then
- humanoid:TakeDamage(damage * 1.2)
- else
- humanoid:TakeDamage(damage)
- end
- end
- end
- end
- end
- function tagHumanoid(humanoid, player)
- local creator_tag = Instance.new("ObjectValue")
- creator_tag.Value = player
- creator_tag.Name = "creator"
- creator_tag.Parent = humanoid
- debris:AddItem(creator_tag, 1)
- end
- function attack()
- CHARACTER =script.Parent.Parent
- for i = 1,5 do
- allThatIce(CHARACTER.Torso.Position + (CHARACTER.Torso.CFrame.lookVector * 0) - Vector3.new(0,0,0), isTurbo(CHARACTER))
- end
- SlashSound:play()
- local anim = Instance.new("StringValue")
- anim.Name = "toolanim"
- anim.Value = "Slash"
- anim.Parent = Tool
- lol = script.Parent.Parent.Torso
- lol.Velocity = script.Parent.Parent.Head.CFrame.lookVector * 150 -- Foward Dash
- wait(0.1)
- lol.Velocity = script.Parent.Parent.Head.CFrame.lookVector * 150 -- Foward Dash
- wait(0.1)
- lol.Velocity = script.Parent.Parent.Head.CFrame.lookVector * 50 -- Foward Dash
- wait(0.1)
- end
- function swordUp()
- Tool.GripForward = Vector3.new(-1,0,0)
- Tool.GripRight = Vector3.new(0,1,0)
- Tool.GripUp = Vector3.new(0,0,1)
- end
- function swordOut()
- Tool.GripForward = Vector3.new(0,0,1)
- Tool.GripRight = Vector3.new(0,-1,0)
- Tool.GripUp = Vector3.new(-1,0,0)
- end
- Tool.Enabled = true
- function onActivated()
- if not Tool.Enabled then
- return
- end
- Tool.Enabled = false
- local character = Tool.Parent;
- local humanoid = character.Humanoid
- if humanoid == nil then
- print("Humanoid not found")
- return
- end
- if cool >= 1 then
- attack()
- if character.Torso.Velocity.y * -1 < 3 then
- damage = 10
- cool = cool - 1
- b = script.BodyVelocity:clone()
- b.velocity = character.Torso.CFrame.lookVector * 200
- b.Parent = character.Torso
- game:GetService("Debris"):AddItem(b,0.4)
- for i = 1,5 do
- allThatIce(character.Torso.Position + (character.Torso.CFrame.lookVector * 0) - Vector3.new(0,0,0), isTurbo(character))
- end
- damage = 5
- b.velocity = Vector3.new(0,0,0)
- end
- end
- mod.Name = "" .. cool .. ""
- mod.Head.Position = Tool.Handle.Position + Vector3.new(0,10,0)
- wait(0.5)
- Tool.Enabled = true
- end
- function onEquipped()
- UnsheathSound:play()
- script.Parent.Handle.Boss:Play()
- end
- function Stopmusic()
- script.Parent.Handle.Boss:Stop()
- end
- script.Parent.Activated:connect(onActivated)
- script.Parent.Equipped:connect(onEquipped)
- script.Parent.Unequipped:connect(Stopmusic)
- connection = sword.Touched:connect(blow)
- while true do
- wait(0.0000001)
- attack()
- wait(4)
- swordUp()
- bomb = Instance.new("Part")
- bomb.CFrame = CFrame.fromEulerAnglesXYZ(0,math.pi/20,10)
- bomb.Position = Tool.Handle.Position
- bomb.Material = "Neon"
- bomb.Shape = "0"
- bomb.BrickColor = BrickColor.Red()
- bomb.Name = "Explosion"
- bomb.Anchored = true
- bomb.Parent = workspace
- local anim = Instance.new("Animation")
- anim.AnimationId = "rbxassetid://973866387"
- local playAnim = Tool.Parent.Humanoid:LoadAnimation(anim)
- playAnim:Play()
- for n = 1,20 do
- wait()
- bomb.Size = bomb.Size + Vector3.new(1,1,1)
- bomb.Transparency = bomb.Transparency + 0.01
- bomb.CanCollide = false
- end
- bomb:Destroy()
- anim:Destroy()
- Tool.GripForward = Vector3.new(-1,0,0)
- Tool.GripRight = Vector3.new(0,1,0)
- Tool.GripUp = Vector3.new(0,0,1)
- wait(5)
- attack()
- wait(5)
- attack()
- attack()
- attack()
- attack()
- attack()
- attack()
- attack()
- attack()
- attack()
- attack()
- if workspace.Darkness.Sound.SoundId== "rbxassetid://1310017688"then
- bomb = Instance.new("Part")
- bomb.CFrame = CFrame.fromEulerAnglesXYZ(0,math.pi/20,10)
- bomb.Position = Tool.Handle.Position
- bomb.Material = "Neon"
- bomb.Shape = "0"
- bomb.BrickColor = BrickColor.Red()
- bomb.Name = "Explosion"
- bomb.Anchored = true
- bomb.Parent = workspace
- local anim = Instance.new("Animation")
- anim.AnimationId = "rbxassetid://973866387"
- local playAnim = Tool.Parent.Humanoid:LoadAnimation(anim)
- playAnim:Play()
- for n = 1,20 do
- wait()
- bomb.Size = bomb.Size + Vector3.new(1,1,1)
- bomb.Transparency = bomb.Transparency + 0.01
- bomb.CanCollide = false
- end
- bomb:Destroy()
- anim:Destroy()
- Tool.GripForward = Vector3.new(-1,0,0)
- Tool.GripRight = Vector3.new(0,1,0)
- Tool.GripUp = Vector3.new(0,0,1)
- attack()
- attack()
- attack()
- attack()
- attack()
- attack()
- attack()
- attack()
- attack()
- attack()
- bomb = Instance.new("Part")
- bomb.CFrame = CFrame.fromEulerAnglesXYZ(0,math.pi/20,10)
- bomb.Position = Tool.Handle.Position
- bomb.Material = "Neon"
- bomb.Shape = "0"
- bomb.BrickColor = BrickColor.Red()
- bomb.Name = "Explosion"
- bomb.Anchored = true
- bomb.Parent = workspace
- local anim = Instance.new("Animation")
- anim.AnimationId = "rbxassetid://973866387"
- local playAnim = Tool.Parent.Humanoid:LoadAnimation(anim)
- playAnim:Play()
- for n = 1,20 do
- wait()
- bomb.Size = bomb.Size + Vector3.new(1,1,1)
- bomb.Transparency = bomb.Transparency + 0.01
- bomb.CanCollide = false
- end
- bomb:Destroy()
- anim:Destroy()
- Tool.GripForward = Vector3.new(-1,0,0)
- Tool.GripRight = Vector3.new(0,1,0)
- Tool.GripUp = Vector3.new(0,0,1)
- attack()
- attack()
- attack()
- attack()
- attack()
- attack()
- attack()
- attack()
- attack()
- attack()
- bomb = Instance.new("Part")
- bomb.CFrame = CFrame.fromEulerAnglesXYZ(0,math.pi/20,10)
- bomb.Position = Tool.Handle.Position
- bomb.Material = "Neon"
- bomb.Shape = "0"
- bomb.BrickColor = BrickColor.Red()
- bomb.Name = "Explosion"
- bomb.Anchored = true
- bomb.Parent = workspace
- local anim = Instance.new("Animation")
- anim.AnimationId = "rbxassetid://973866387"
- local playAnim = Tool.Parent.Humanoid:LoadAnimation(anim)
- playAnim:Play()
- for n = 1,20 do
- wait()
- bomb.Size = bomb.Size + Vector3.new(1,1,1)
- bomb.Transparency = bomb.Transparency + 0.01
- bomb.CanCollide = false
- end
- bomb:Destroy()
- anim:Destroy()
- Tool.GripForward = Vector3.new(-1,0,0)
- Tool.GripRight = Vector3.new(0,1,0)
- Tool.GripUp = Vector3.new(0,0,1)
- attack()
- attack()
- attack()
- attack()
- attack()
- attack()
- attack()
- attack()
- attack()
- attack()
- bomb = Instance.new("Part")
- bomb.CFrame = CFrame.fromEulerAnglesXYZ(0,math.pi/20,10)
- bomb.Position = Tool.Handle.Position
- bomb.Material = "Neon"
- bomb.Shape = "0"
- bomb.BrickColor = BrickColor.Red()
- bomb.Name = "Explosion"
- bomb.Anchored = true
- bomb.Parent = workspace
- local anim = Instance.new("Animation")
- anim.AnimationId = "rbxassetid://973866387"
- local playAnim = Tool.Parent.Humanoid:LoadAnimation(anim)
- playAnim:Play()
- for n = 1,20 do
- wait()
- bomb.Size = bomb.Size + Vector3.new(1,1,1)
- bomb.Transparency = bomb.Transparency + 0.01
- bomb.CanCollide = false
- end
- bomb:Destroy()
- anim:Destroy()
- Tool.GripForward = Vector3.new(-1,0,0)
- Tool.GripRight = Vector3.new(0,1,0)
- Tool.GripUp = Vector3.new(0,0,1)
- end
- end
- end))
- BodyVelocity100.Parent = Script99
- BodyVelocity100.Velocity = Vector3.new(0, 0, 0)
- BodyVelocity100.velocity = Vector3.new(0, 0, 0)
- LocalScript98.Name = "Local Gui"
- LocalScript98.Parent = Tool97
- table.insert(cors,sandbox(LocalScript98,function()
- local Tool = script.Parent;
- enabled = true
- function onButton1Down(mouse)
- if not enabled then
- return
- end
- enabled = false
- mouse.Icon = "rbxasset://textures\\GunWaitCursor.png"
- wait(1)
- mouse.Icon = "rbxasset://textures\\GunCursor.png"
- enabled = true
- end
- function onEquippedLocal(mouse)
- if mouse == nil then
- print("Mouse not found")
- return
- end
- mouse.Icon = "rbxasset://textures\\GunCursor.png"
- mouse.Button1Down:connect(function() onButton1Down(mouse) end)
- end
- Tool.Equipped:connect(onEquippedLocal)
- end))
- Part101.Name = "Handle"
- Part101.Parent = Tool97
- Part101.BrickColor = BrickColor.new("Really black")
- Part101.Rotation = Vector3.new(90, 90, 0)
- Part101.CanCollide = false
- Part101.Size = Vector3.new(3.1400001, 1.898, 6.28399992)
- Part101.CFrame = CFrame.new(-7.29670906, 3.1299367, -19.070673, -6.79974422e-22, 4.49431016e-21, 1, 0.999999881, 4.72251821e-22, 6.79974523e-22, -4.7225177e-22, 1, -4.49431016e-21)
- Part101.BottomSurface = Enum.SurfaceType.Smooth
- Part101.TopSurface = Enum.SurfaceType.Smooth
- Part101.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part101.Position = Vector3.new(-7.29670906, 3.1299367, -19.070673)
- Part101.Orientation = Vector3.new(0, 90, 90)
- Part101.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Sound102.Name = "Boss"
- Sound102.Parent = Part101
- Sound102.Volume = 2
- SpecialMesh103.Parent = Part101
- SpecialMesh103.MeshId = "rbxassetid://15924243"
- SpecialMesh103.Scale = Vector3.new(2, 2, 2)
- SpecialMesh103.MeshType = Enum.MeshType.FileMesh
- SpecialMesh103.Scale = Vector3.new(2, 2, 2)
- Sound96.Name = "Moan"
- Sound96.Parent = Model59
- Sound96.Pitch = 0.15000000596046
- Sound96.SoundId = "http://www.roblox.com/asset/?id=12222242"
- Sound96.Volume = 0.050000000745058
- Sound105.Parent = Model59
- Sound105.SoundId = "rbxassetid://233363838"
- Sound105.Volume = 5
- Sound105.Looped = true
- Script78.Name = "Animate"
- Script78.Parent = Model59
- table.insert(cors,sandbox(Script78,function()
- function waitForChild(parent, childName)
- local child = parent:findFirstChild(childName)
- if child then return child end
- while true do
- child = parent.ChildAdded:wait()
- if child.Name==childName then return child end
- end
- end
- local Figure = script.Parent
- local Torso = waitForChild(Figure, "Torso")
- local RightShoulder = waitForChild(Torso, "Right Shoulder")
- local LeftShoulder = waitForChild(Torso, "Left Shoulder")
- local RightHip = waitForChild(Torso, "Right Hip")
- local LeftHip = waitForChild(Torso, "Left Hip")
- local Neck = waitForChild(Torso, "Neck")
- local Humanoid = waitForChild(Figure, "Humanoid")
- local pose = "Standing"
- local currentAnim = ""
- local currentAnimTrack = nil
- local currentAnimKeyframeHandler = nil
- local currentAnimSpeed = 1.0
- local animTable = {}
- local animNames = {
- idle = {
- { id = "http://www.roblox.com/asset/?id=125750544", weight = 9 },
- { id = "http://www.roblox.com/asset/?id=125750618", weight = 1 }
- },
- walk = {
- { id = "http://www.roblox.com/asset/?id=125749145", weight = 10 }
- },
- run = {
- { id = "run.xml", weight = 10 }
- },
- jump = {
- { id = "http://www.roblox.com/asset/?id=125750702", weight = 10 }
- },
- fall = {
- { id = "http://www.roblox.com/asset/?id=125750759", weight = 10 }
- },
- climb = {
- { id = "http://www.roblox.com/asset/?id=125750800", weight = 10 }
- },
- toolnone = {
- { id = "http://www.roblox.com/asset/?id=125750867", weight = 10 }
- },
- toolslash = {
- { id = "http://www.roblox.com/asset/?id=129967390", weight = 10 }
- -- { id = "slash.xml", weight = 10 }
- },
- toollunge = {
- { id = "http://www.roblox.com/asset/?id=129967478", weight = 10 }
- },
- wave = {
- { id = "http://www.roblox.com/asset/?id=128777973", weight = 10 }
- },
- point = {
- { id = "http://www.roblox.com/asset/?id=128853357", weight = 10 }
- },
- dance = {
- { id = "http://www.roblox.com/asset/?id=130018893", weight = 10 },
- { id = "http://www.roblox.com/asset/?id=132546839", weight = 10 },
- { id = "http://www.roblox.com/asset/?id=132546884", weight = 10 }
- },
- dance2 = {
- { id = "http://www.roblox.com/asset/?id=160934142", weight = 10 },
- { id = "http://www.roblox.com/asset/?id=160934298", weight = 10 },
- { id = "http://www.roblox.com/asset/?id=160934376", weight = 10 }
- },
- dance3 = {
- { id = "http://www.roblox.com/asset/?id=160934458", weight = 10 },
- { id = "http://www.roblox.com/asset/?id=160934530", weight = 10 },
- { id = "http://www.roblox.com/asset/?id=160934593", weight = 10 }
- },
- laugh = {
- { id = "http://www.roblox.com/asset/?id=129423131", weight = 10 }
- },
- cheer = {
- { id = "http://www.roblox.com/asset/?id=129423030", weight = 10 }
- },
- }
- -- Existance in this list signifies that it is an emote, the value indicates if it is a looping emote
- local emoteNames = { wave = false, point = false, dance = true, dance2 = true, dance3 = true, laugh = false, cheer = false}
- math.randomseed(tick())
- function configureAnimationSet(name, fileList)
- if (animTable[name] ~= nil) then
- for _, connection in pairs(animTable[name].connections) do
- connection:disconnect()
- end
- end
- animTable[name] = {}
- animTable[name].count = 0
- animTable[name].totalWeight = 0
- animTable[name].connections = {}
- -- check for config values
- local config = script:FindFirstChild(name)
- if (config ~= nil) then
- -- print("Loading anims " .. name)
- table.insert(animTable[name].connections, config.ChildAdded:connect(function(child) configureAnimationSet(name, fileList) end))
- table.insert(animTable[name].connections, config.ChildRemoved:connect(function(child) configureAnimationSet(name, fileList) end))
- local idx = 1
- for _, childPart in pairs(config:GetChildren()) do
- if (childPart:IsA("Animation")) then
- table.insert(animTable[name].connections, childPart.Changed:connect(function(property) configureAnimationSet(name, fileList) end))
- animTable[name][idx] = {}
- animTable[name][idx].anim = childPart
- local weightObject = childPart:FindFirstChild("Weight")
- if (weightObject == nil) then
- animTable[name][idx].weight = 1
- else
- animTable[name][idx].weight = weightObject.Value
- end
- animTable[name].count = animTable[name].count + 1
- animTable[name].totalWeight = animTable[name].totalWeight + animTable[name][idx].weight
- -- print(name .. " [" .. idx .. "] " .. animTable[name][idx].anim.AnimationId .. " (" .. animTable[name][idx].weight .. ")")
- idx = idx + 1
- end
- end
- end
- -- fallback to defaults
- if (animTable[name].count <= 0) then
- for idx, anim in pairs(fileList) do
- animTable[name][idx] = {}
- animTable[name][idx].anim = Instance.new("Animation")
- animTable[name][idx].anim.Name = name
- animTable[name][idx].anim.AnimationId = anim.id
- animTable[name][idx].weight = anim.weight
- animTable[name].count = animTable[name].count + 1
- animTable[name].totalWeight = animTable[name].totalWeight + anim.weight
- -- print(name .. " [" .. idx .. "] " .. anim.id .. " (" .. anim.weight .. ")")
- end
- end
- end
- -- Setup animation objects
- function scriptChildModified(child)
- local fileList = animNames[child.Name]
- if (fileList ~= nil) then
- configureAnimationSet(child.Name, fileList)
- end
- end
- script.ChildAdded:connect(scriptChildModified)
- script.ChildRemoved:connect(scriptChildModified)
- for name, fileList in pairs(animNames) do
- configureAnimationSet(name, fileList)
- end
- -- ANIMATION
- -- declarations
- local toolAnim = "None"
- local toolAnimTime = 0
- local jumpAnimTime = 0
- local jumpAnimDuration = 0.3
- local toolTransitionTime = 0.1
- local fallTransitionTime = 0.3
- local jumpMaxLimbVelocity = 0.75
- -- functions
- function stopAllAnimations()
- local oldAnim = currentAnim
- -- return to idle if finishing an emote
- if (emoteNames[oldAnim] ~= nil and emoteNames[oldAnim] == false) then
- oldAnim = "idle"
- end
- currentAnim = ""
- if (currentAnimKeyframeHandler ~= nil) then
- currentAnimKeyframeHandler:disconnect()
- end
- if (currentAnimTrack ~= nil) then
- currentAnimTrack:Stop()
- currentAnimTrack:Destroy()
- currentAnimTrack = nil
- end
- return oldAnim
- end
- function setAnimationSpeed(speed)
- if speed ~= currentAnimSpeed then
- currentAnimSpeed = speed
- currentAnimTrack:AdjustSpeed(currentAnimSpeed)
- end
- end
- function keyFrameReachedFunc(frameName)
- if (frameName == "End") then
- -- print("Keyframe : ".. frameName)
- local repeatAnim = stopAllAnimations()
- local animSpeed = currentAnimSpeed
- playAnimation(repeatAnim, 0.0, Humanoid)
- setAnimationSpeed(animSpeed)
- end
- end
- -- Preload animations
- function playAnimation(animName, transitionTime, humanoid)
- local idleFromEmote = (animName == "idle" and emoteNames[currentAnim] ~= nil)
- if (animName ~= currentAnim and not idleFromEmote) then
- if (currentAnimTrack ~= nil) then
- currentAnimTrack:Stop(transitionTime)
- currentAnimTrack:Destroy()
- end
- currentAnimSpeed = 1.0
- local roll = math.random(1, animTable[animName].totalWeight)
- local origRoll = roll
- local idx = 1
- while (roll > animTable[animName][idx].weight) do
- roll = roll - animTable[animName][idx].weight
- idx = idx + 1
- end
- -- print(animName .. " " .. idx .. " [" .. origRoll .. "]")
- local anim = animTable[animName][idx].anim
- -- load it to the humanoid; get AnimationTrack
- currentAnimTrack = humanoid:LoadAnimation(anim)
- -- play the animation
- currentAnimTrack:Play(transitionTime)
- currentAnim = animName
- -- set up keyframe name triggers
- if (currentAnimKeyframeHandler ~= nil) then
- currentAnimKeyframeHandler:disconnect()
- end
- currentAnimKeyframeHandler = currentAnimTrack.KeyframeReached:connect(keyFrameReachedFunc)
- end
- end
- -------------------------------------------------------------------------------------------
- -------------------------------------------------------------------------------------------
- local toolAnimName = ""
- local toolAnimTrack = nil
- local currentToolAnimKeyframeHandler = nil
- function toolKeyFrameReachedFunc(frameName)
- if (frameName == "End") then
- -- print("Keyframe : ".. frameName)
- local repeatAnim = stopToolAnimations()
- playToolAnimation(repeatAnim, 0.0, Humanoid)
- end
- end
- function playToolAnimation(animName, transitionTime, humanoid)
- if (animName ~= toolAnimName) then
- if (toolAnimTrack ~= nil) then
- toolAnimTrack:Stop()
- toolAnimTrack:Destroy()
- transitionTime = 0
- end
- local roll = math.random(1, animTable[animName].totalWeight)
- local origRoll = roll
- local idx = 1
- while (roll > animTable[animName][idx].weight) do
- roll = roll - animTable[animName][idx].weight
- idx = idx + 1
- end
- -- print(animName .. " * " .. idx .. " [" .. origRoll .. "]")
- local anim = animTable[animName][idx].anim
- -- load it to the humanoid; get AnimationTrack
- toolAnimTrack = humanoid:LoadAnimation(anim)
- -- play the animation
- toolAnimTrack:Play(transitionTime)
- toolAnimName = animName
- currentToolAnimKeyframeHandler = toolAnimTrack.KeyframeReached:connect(toolKeyFrameReachedFunc)
- end
- end
- function stopToolAnimations()
- local oldAnim = toolAnimName
- if (currentToolAnimKeyframeHandler ~= nil) then
- currentToolAnimKeyframeHandler:disconnect()
- end
- toolAnimName = ""
- if (toolAnimTrack ~= nil) then
- toolAnimTrack:Stop()
- toolAnimTrack:Destroy()
- toolAnimTrack = nil
- end
- return oldAnim
- end
- -------------------------------------------------------------------------------------------
- -------------------------------------------------------------------------------------------
- function onRunning(speed)
- if speed>0.01 then
- playAnimation("walk", 0.1, Humanoid)
- pose = "Running"
- else
- playAnimation("idle", 0.1, Humanoid)
- pose = "Standing"
- end
- end
- function onDied()
- pose = "Dead"
- end
- function onJumping()
- playAnimation("jump", 0.1, Humanoid)
- jumpAnimTime = jumpAnimDuration
- pose = "Jumping"
- end
- function onClimbing(speed)
- playAnimation("climb", 0.1, Humanoid)
- setAnimationSpeed(speed / 12.0)
- pose = "Climbing"
- end
- function onGettingUp()
- pose = "GettingUp"
- end
- function onFreeFall()
- if (jumpAnimTime <= 0) then
- playAnimation("fall", fallTransitionTime, Humanoid)
- end
- pose = "FreeFall"
- end
- function onFallingDown()
- pose = "FallingDown"
- end
- function onSeated()
- pose = "Seated"
- end
- function onPlatformStanding()
- pose = "PlatformStanding"
- end
- function onSwimming(speed)
- if speed>0 then
- pose = "Running"
- else
- pose = "Standing"
- end
- end
- function getTool()
- for _, kid in ipairs(Figure:GetChildren()) do
- if kid.className == "Tool" then return kid end
- end
- return nil
- end
- function getToolAnim(tool)
- for _, c in ipairs(tool:GetChildren()) do
- if c.Name == "toolanim" and c.className == "StringValue" then
- return c
- end
- end
- return nil
- end
- function animateTool()
- if (toolAnim == "None") then
- playToolAnimation("toolnone", toolTransitionTime, Humanoid)
- return
- end
- if (toolAnim == "Slash") then
- playToolAnimation("toolslash", 0, Humanoid)
- return
- end
- if (toolAnim == "Lunge") then
- playToolAnimation("toollunge", 0, Humanoid)
- return
- end
- end
- function moveSit()
- RightShoulder.MaxVelocity = 0.15
- LeftShoulder.MaxVelocity = 0.15
- RightShoulder:SetDesiredAngle(3.14 /2)
- LeftShoulder:SetDesiredAngle(-3.14 /2)
- RightHip:SetDesiredAngle(3.14 /2)
- LeftHip:SetDesiredAngle(-3.14 /2)
- end
- local lastTick = 0
- function move(time)
- local amplitude = 1
- local frequency = 1
- local deltaTime = time - lastTick
- lastTick = time
- local climbFudge = 0
- local setAngles = false
- if (jumpAnimTime > 0) then
- jumpAnimTime = jumpAnimTime - deltaTime
- end
- if (pose == "FreeFall" and jumpAnimTime <= 0) then
- playAnimation("fall", fallTransitionTime, Humanoid)
- elseif (pose == "Seated") then
- stopAllAnimations()
- moveSit()
- return
- elseif (pose == "Running") then
- playAnimation("walk", 0.1, Humanoid)
- elseif (pose == "Dead" or pose == "GettingUp" or pose == "FallingDown" or pose == "Seated" or pose == "PlatformStanding") then
- -- print("Wha " .. pose)
- amplitude = 0.1
- frequency = 1
- setAngles = true
- end
- if (setAngles) then
- desiredAngle = amplitude * math.sin(time * frequency)
- RightShoulder:SetDesiredAngle(desiredAngle + climbFudge)
- LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge)
- RightHip:SetDesiredAngle(-desiredAngle)
- LeftHip:SetDesiredAngle(-desiredAngle)
- end
- -- Tool Animation handling
- local tool = getTool()
- if tool then
- animStringValueObject = getToolAnim(tool)
- if animStringValueObject then
- toolAnim = animStringValueObject.Value
- -- message recieved, delete StringValue
- animStringValueObject.Parent = nil
- toolAnimTime = time + .3
- end
- if time > toolAnimTime then
- toolAnimTime = 0
- toolAnim = "None"
- end
- animateTool()
- else
- stopToolAnimations()
- toolAnim = "None"
- toolAnimTime = 0
- end
- end
- -- connect events
- Humanoid.Died:connect(onDied)
- Humanoid.Running:connect(onRunning)
- Humanoid.Jumping:connect(onJumping)
- Humanoid.Climbing:connect(onClimbing)
- Humanoid.GettingUp:connect(onGettingUp)
- Humanoid.FreeFalling:connect(onFreeFall)
- Humanoid.FallingDown:connect(onFallingDown)
- Humanoid.Seated:connect(onSeated)
- Humanoid.PlatformStanding:connect(onPlatformStanding)
- Humanoid.Swimming:connect(onSwimming)
- -- main program
- local runService = game:service("RunService");
- -- initialize to idle
- playAnimation("idle", 0.1, Humanoid)
- pose = "Standing"
- while Figure.Parent~=nil do
- local _, time = wait(0.1)
- move(time)
- end
- end))
- StringValue79.Name = "climb"
- StringValue79.Parent = Script78
- Animation80.Name = "ClimbAnim"
- Animation80.Parent = StringValue79
- Animation80.AnimationId = "http://www.roblox.com/asset/?id=125750800"
- StringValue81.Name = "fall"
- StringValue81.Parent = Script78
- Animation82.Name = "FallAnim"
- Animation82.Parent = StringValue81
- Animation82.AnimationId = "http://www.roblox.com/asset/?id=125750759"
- StringValue83.Name = "idle"
- StringValue83.Parent = Script78
- Animation84.Name = "Animation1"
- Animation84.Parent = StringValue83
- Animation84.AnimationId = "http://www.roblox.com/asset/?id=125750544"
- NumberValue85.Name = "Weight"
- NumberValue85.Parent = Animation84
- NumberValue85.Value = 9
- Animation86.Name = "Animation2"
- Animation86.Parent = StringValue83
- Animation86.AnimationId = "http://www.roblox.com/asset/?id=125750618"
- NumberValue87.Name = "Weight"
- NumberValue87.Parent = Animation86
- NumberValue87.Value = 1
- StringValue88.Name = "jump"
- StringValue88.Parent = Script78
- Animation89.Name = "JumpAnim"
- Animation89.Parent = StringValue88
- Animation89.AnimationId = "http://www.roblox.com/asset/?id=125750702"
- StringValue90.Name = "run"
- StringValue90.Parent = Script78
- Animation91.Name = "RunAnim"
- Animation91.Parent = StringValue90
- Animation91.AnimationId = "http://www.roblox.com/asset/?id=125749145"
- StringValue92.Name = "toolnone"
- StringValue92.Parent = Script78
- Animation93.Name = "ToolNoneAnim"
- Animation93.Parent = StringValue92
- Animation93.AnimationId = "http://www.roblox.com/asset/?id=125750867"
- StringValue94.Name = "walk"
- StringValue94.Parent = Script78
- Animation95.Name = "WalkAnim"
- Animation95.Parent = StringValue94
- Animation95.AnimationId = "http://www.roblox.com/asset/?id=125749145"
- BoolValue104.Name = "CanAttack"
- BoolValue104.Parent = Model59
- Tool97.Name = "Epic Hammer"
- Tool97.Parent = Model59
- Tool97.GripForward = Vector3.new(-1, -0, -0)
- Tool97.GripPos = Vector3.new(0, 0, -1)
- Tool97.GripRight = Vector3.new(0, 1, 0)
- Tool97.GripUp = Vector3.new(0, 0, 1)
- Tool97.ToolTip = "This can make you dash"
- LocalScript98.Name = "Local Gui"
- LocalScript98.Parent = Tool97
- table.insert(cors,sandbox(LocalScript98,function()
- local Tool = script.Parent;
- enabled = true
- function onButton1Down(mouse)
- if not enabled then
- return
- end
- enabled = false
- mouse.Icon = "rbxasset://textures\\GunWaitCursor.png"
- wait(1)
- mouse.Icon = "rbxasset://textures\\GunCursor.png"
- enabled = true
- end
- function onEquippedLocal(mouse)
- if mouse == nil then
- print("Mouse not found")
- return
- end
- mouse.Icon = "rbxasset://textures\\GunCursor.png"
- mouse.Button1Down:connect(function() onButton1Down(mouse) end)
- end
- Tool.Equipped:connect(onEquippedLocal)
- end))
- Script99.Name = "IceHammer"
- Script99.Parent = Tool97
- table.insert(cors,sandbox(Script99,function()
- -------- OMG HAX
- at2 = 0
- debris = game:GetService("Debris")
- r = game:service("RunService")
- cool = 5
- mod = Instance.new("Model")
- mod.Parent = script.Parent
- h = Instance.new("Humanoid")
- h.Parent = mod
- h.MaxHealth = 0
- head = Instance.new("Part")
- head.Name = "Head"
- head.Transparency = 0.989
- head.BrickColor = BrickColor.new("Really black")
- head.formFactor = "Custom"
- head.Size = Vector3.new(0.2,0.2,0.2)
- head.TopSurface = 0
- head.BottomSurface = 0
- head.Anchored = true
- head.Parent = mod
- local damage = 7
- local slash_damage = 3
- sword = script.Parent.Handle
- Tool = script.Parent
- local SlashSound = Instance.new("Sound")
- SlashSound.SoundId = "http://www.roblox.com/asset/?id=926058764"
- SlashSound.Parent = sword
- SlashSound.Pitch = 1
- SlashSound.Volume = 10
- local UnsheathSound = Instance.new("Sound")
- UnsheathSound.SoundId = "http://www.roblox.com/asset/?id=15933756"
- UnsheathSound.Parent = sword
- UnsheathSound.Volume = 1
- --local blues = {"Really blue", "Really black", "Black", "Bright blue"}
- function isTurbo(character)
- return character:FindFirstChild("WingwsHeaddess") ~= nil
- end
- function allThatIce(pos, isTurbo)
- local count = 1
- if (isTurbo == true) then count = 1 end
- for i=1,count do
- local p = Instance.new("Part")
- --p.BrickColor = BrickColor.new(blues[math.random(#blues)])
- p.formFactor = "Symmetric"
- p.Name = "ICEY NOOB"
- p.Size = Vector3.new(5,5,1)
- p.BrickColor = BrickColor.new("New Yeller")
- p.TopSurface = 0
- p.Material = "Neon"
- p.Transparency = 0.5
- p.CanCollide = false
- --p.Shape = 0
- p.Friction = 0
- p.Elasticity = 0
- p.BottomSurface = 0
- local a = math.random() * 6.28
- local d = Vector3.new(math.cos(a), 0, math.sin(a)).unit
- bv = script.BodyVelocity:clone()
- bv.Parent = p
- --p.RotVelocity = d * 1000
- p.CFrame = CFrame.new(pos + Vector3.new(0, 0, 0) + (d * 0), Tool.Parent.Torso.CFrame.lookVector * -9999999999)
- --p.CFrame = CFrame.new(p.Position, Tool.Parent.Torso.Position)
- p.Parent = game.Workspace
- debris:AddItem(p, 0.1)
- wait()
- end
- end
- function blow(hit)
- local humanoid = hit.Parent:findFirstChild("Humanoid")
- local vCharacter = Tool.Parent
- local vPlayer = game.Players:playerFromCharacter(vCharacter)
- local hum = vCharacter:findFirstChild("Humanoid") -- non-nil if tool held by a character
- if humanoid~=nil and humanoid ~= hum and hum ~= nil then
- -- final check, make sure sword is in-hand
- local right_arm = vCharacter:FindFirstChild("Right Arm")
- if (right_arm ~= nil) then
- local joint = right_arm:FindFirstChild("RightGrip")
- if (joint ~= nil and (joint.Part0 == sword or joint.Part1 == sword)) then
- tagHumanoid(humanoid, vPlayer)
- if (isTurbo(vCharacter) == true) then
- humanoid:TakeDamage(damage * 1.2)
- else
- humanoid:TakeDamage(damage)
- end
- end
- end
- end
- end
- function tagHumanoid(humanoid, player)
- local creator_tag = Instance.new("ObjectValue")
- creator_tag.Value = player
- creator_tag.Name = "creator"
- creator_tag.Parent = humanoid
- debris:AddItem(creator_tag, 1)
- end
- function attack()
- CHARACTER =script.Parent.Parent
- for i = 1,5 do
- allThatIce(CHARACTER.Torso.Position + (CHARACTER.Torso.CFrame.lookVector * 0) - Vector3.new(0,0,0), isTurbo(CHARACTER))
- end
- SlashSound:play()
- local anim = Instance.new("StringValue")
- anim.Name = "toolanim"
- anim.Value = "Slash"
- anim.Parent = Tool
- lol = script.Parent.Parent.Torso
- lol.Velocity = script.Parent.Parent.Head.CFrame.lookVector * 150 -- Foward Dash
- wait(0.1)
- lol.Velocity = script.Parent.Parent.Head.CFrame.lookVector * 150 -- Foward Dash
- wait(0.1)
- lol.Velocity = script.Parent.Parent.Head.CFrame.lookVector * 50 -- Foward Dash
- wait(0.1)
- end
- function swordUp()
- Tool.GripForward = Vector3.new(-1,0,0)
- Tool.GripRight = Vector3.new(0,1,0)
- Tool.GripUp = Vector3.new(0,0,1)
- end
- function swordOut()
- Tool.GripForward = Vector3.new(0,0,1)
- Tool.GripRight = Vector3.new(0,-1,0)
- Tool.GripUp = Vector3.new(-1,0,0)
- end
- Tool.Enabled = true
- function onActivated()
- if not Tool.Enabled then
- return
- end
- Tool.Enabled = false
- local character = Tool.Parent;
- local humanoid = character.Humanoid
- if humanoid == nil then
- print("Humanoid not found")
- return
- end
- if cool >= 1 then
- attack()
- if character.Torso.Velocity.y * -1 < 3 then
- damage = 10
- cool = cool - 1
- b = script.BodyVelocity:clone()
- b.velocity = character.Torso.CFrame.lookVector * 200
- b.Parent = character.Torso
- game:GetService("Debris"):AddItem(b,0.4)
- for i = 1,5 do
- allThatIce(character.Torso.Position + (character.Torso.CFrame.lookVector * 0) - Vector3.new(0,0,0), isTurbo(character))
- end
- damage = 5
- b.velocity = Vector3.new(0,0,0)
- end
- end
- mod.Name = "" .. cool .. ""
- mod.Head.Position = Tool.Handle.Position + Vector3.new(0,10,0)
- wait(0.5)
- Tool.Enabled = true
- end
- function onEquipped()
- UnsheathSound:play()
- script.Parent.Handle.Boss:Play()
- end
- function Stopmusic()
- script.Parent.Handle.Boss:Stop()
- end
- script.Parent.Activated:connect(onActivated)
- script.Parent.Equipped:connect(onEquipped)
- script.Parent.Unequipped:connect(Stopmusic)
- connection = sword.Touched:connect(blow)
- while true do
- wait(0.0000001)
- attack()
- wait(4)
- swordUp()
- bomb = Instance.new("Part")
- bomb.CFrame = CFrame.fromEulerAnglesXYZ(0,math.pi/20,10)
- bomb.Position = Tool.Handle.Position
- bomb.Material = "Neon"
- bomb.Shape = "0"
- bomb.BrickColor = BrickColor.Red()
- bomb.Name = "Explosion"
- bomb.Anchored = true
- bomb.Parent = workspace
- local anim = Instance.new("Animation")
- anim.AnimationId = "rbxassetid://973866387"
- local playAnim = Tool.Parent.Humanoid:LoadAnimation(anim)
- playAnim:Play()
- for n = 1,20 do
- wait()
- bomb.Size = bomb.Size + Vector3.new(1,1,1)
- bomb.Transparency = bomb.Transparency + 0.01
- bomb.CanCollide = false
- end
- bomb:Destroy()
- anim:Destroy()
- Tool.GripForward = Vector3.new(-1,0,0)
- Tool.GripRight = Vector3.new(0,1,0)
- Tool.GripUp = Vector3.new(0,0,1)
- wait(5)
- attack()
- wait(5)
- attack()
- attack()
- attack()
- attack()
- attack()
- attack()
- attack()
- attack()
- attack()
- attack()
- if workspace.Darkness.Sound.SoundId== "rbxassetid://1310017688"then
- bomb = Instance.new("Part")
- bomb.CFrame = CFrame.fromEulerAnglesXYZ(0,math.pi/20,10)
- bomb.Position = Tool.Handle.Position
- bomb.Material = "Neon"
- bomb.Shape = "0"
- bomb.BrickColor = BrickColor.Red()
- bomb.Name = "Explosion"
- bomb.Anchored = true
- bomb.Parent = workspace
- local anim = Instance.new("Animation")
- anim.AnimationId = "rbxassetid://973866387"
- local playAnim = Tool.Parent.Humanoid:LoadAnimation(anim)
- playAnim:Play()
- for n = 1,20 do
- wait()
- bomb.Size = bomb.Size + Vector3.new(1,1,1)
- bomb.Transparency = bomb.Transparency + 0.01
- bomb.CanCollide = false
- end
- bomb:Destroy()
- anim:Destroy()
- Tool.GripForward = Vector3.new(-1,0,0)
- Tool.GripRight = Vector3.new(0,1,0)
- Tool.GripUp = Vector3.new(0,0,1)
- attack()
- attack()
- attack()
- attack()
- attack()
- attack()
- attack()
- attack()
- attack()
- attack()
- bomb = Instance.new("Part")
- bomb.CFrame = CFrame.fromEulerAnglesXYZ(0,math.pi/20,10)
- bomb.Position = Tool.Handle.Position
- bomb.Material = "Neon"
- bomb.Shape = "0"
- bomb.BrickColor = BrickColor.Red()
- bomb.Name = "Explosion"
- bomb.Anchored = true
- bomb.Parent = workspace
- local anim = Instance.new("Animation")
- anim.AnimationId = "rbxassetid://973866387"
- local playAnim = Tool.Parent.Humanoid:LoadAnimation(anim)
- playAnim:Play()
- for n = 1,20 do
- wait()
- bomb.Size = bomb.Size + Vector3.new(1,1,1)
- bomb.Transparency = bomb.Transparency + 0.01
- bomb.CanCollide = false
- end
- bomb:Destroy()
- anim:Destroy()
- Tool.GripForward = Vector3.new(-1,0,0)
- Tool.GripRight = Vector3.new(0,1,0)
- Tool.GripUp = Vector3.new(0,0,1)
- attack()
- attack()
- attack()
- attack()
- attack()
- attack()
- attack()
- attack()
- attack()
- attack()
- bomb = Instance.new("Part")
- bomb.CFrame = CFrame.fromEulerAnglesXYZ(0,math.pi/20,10)
- bomb.Position = Tool.Handle.Position
- bomb.Material = "Neon"
- bomb.Shape = "0"
- bomb.BrickColor = BrickColor.Red()
- bomb.Name = "Explosion"
- bomb.Anchored = true
- bomb.Parent = workspace
- local anim = Instance.new("Animation")
- anim.AnimationId = "rbxassetid://973866387"
- local playAnim = Tool.Parent.Humanoid:LoadAnimation(anim)
- playAnim:Play()
- for n = 1,20 do
- wait()
- bomb.Size = bomb.Size + Vector3.new(1,1,1)
- bomb.Transparency = bomb.Transparency + 0.01
- bomb.CanCollide = false
- end
- bomb:Destroy()
- anim:Destroy()
- Tool.GripForward = Vector3.new(-1,0,0)
- Tool.GripRight = Vector3.new(0,1,0)
- Tool.GripUp = Vector3.new(0,0,1)
- attack()
- attack()
- attack()
- attack()
- attack()
- attack()
- attack()
- attack()
- attack()
- attack()
- bomb = Instance.new("Part")
- bomb.CFrame = CFrame.fromEulerAnglesXYZ(0,math.pi/20,10)
- bomb.Position = Tool.Handle.Position
- bomb.Material = "Neon"
- bomb.Shape = "0"
- bomb.BrickColor = BrickColor.Red()
- bomb.Name = "Explosion"
- bomb.Anchored = true
- bomb.Parent = workspace
- local anim = Instance.new("Animation")
- anim.AnimationId = "rbxassetid://973866387"
- local playAnim = Tool.Parent.Humanoid:LoadAnimation(anim)
- playAnim:Play()
- for n = 1,20 do
- wait()
- bomb.Size = bomb.Size + Vector3.new(1,1,1)
- bomb.Transparency = bomb.Transparency + 0.01
- bomb.CanCollide = false
- end
- bomb:Destroy()
- anim:Destroy()
- Tool.GripForward = Vector3.new(-1,0,0)
- Tool.GripRight = Vector3.new(0,1,0)
- Tool.GripUp = Vector3.new(0,0,1)
- end
- end
- end))
- BodyVelocity100.Parent = Script99
- BodyVelocity100.Velocity = Vector3.new(0, 0, 0)
- BodyVelocity100.velocity = Vector3.new(0, 0, 0)
- Part101.Name = "Handle"
- Part101.Parent = Tool97
- Part101.BrickColor = BrickColor.new("Really black")
- Part101.Rotation = Vector3.new(90, 90, 0)
- Part101.CanCollide = false
- Part101.Size = Vector3.new(3.1400001, 1.898, 6.28399992)
- Part101.CFrame = CFrame.new(-7.29670906, 3.1299367, -19.070673, -6.79974422e-22, 4.49431016e-21, 1, 0.999999881, 4.72251821e-22, 6.79974523e-22, -4.7225177e-22, 1, -4.49431016e-21)
- Part101.BottomSurface = Enum.SurfaceType.Smooth
- Part101.TopSurface = Enum.SurfaceType.Smooth
- Part101.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part101.Position = Vector3.new(-7.29670906, 3.1299367, -19.070673)
- Part101.Orientation = Vector3.new(0, 90, 90)
- Part101.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Sound102.Name = "Boss"
- Sound102.Parent = Part101
- Sound102.Volume = 2
- SpecialMesh103.Parent = Part101
- SpecialMesh103.MeshId = "rbxassetid://15924243"
- SpecialMesh103.Scale = Vector3.new(2, 2, 2)
- SpecialMesh103.MeshType = Enum.MeshType.FileMesh
- SpecialMesh103.Scale = Vector3.new(2, 2, 2)
- Script106.Name = "Follow"
- Script106.Parent = Model59
- table.insert(cors,sandbox(Script106,function()
- local larm = script.Parent:FindFirstChild("Left Arm")
- local rarm = script.Parent:FindFirstChild("Right Arm")
- function findNearestTorso(pos)
- local list = game.Workspace:children()
- local torso = nil
- local dist = 455
- local temp = nil
- local human = nil
- local temp2 = nil
- for x = 1, #list do
- temp2 = list[x]
- if (temp2.className == "Model") and (temp2 ~= script.Parent) then
- temp = temp2:findFirstChild("Torso")
- human = temp2:findFirstChild("Humanoid")
- if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
- if (temp.Position - pos).magnitude < dist then
- torso = temp
- dist = (temp.Position - pos).magnitude
- end
- end
- end
- end
- return torso
- end
- while true do
- wait(0.1)
- local target = findNearestTorso(script.Parent.Torso.Position)
- if target ~= nil then
- script.Parent.Humanoid:MoveTo(target.Position, target)
- elseif script.Parent.CanAttack == false then
- script.Parent.CanAttack = true
- end
- end
- end))
- Humanoid77.Parent = Model59
- Humanoid77.RightLeg = Part70
- Humanoid77.LeftLeg = Part69
- Humanoid77.Torso = Part60
- Humanoid77.Health = 34353544
- Humanoid77.MaxHealth = 34353544
- Humanoid77.WalkSpeed = 5
- Script108.Parent = Model59
- table.insert(cors,sandbox(Script108,function()
- wait(180)
- soundy = script.Parent.Sound
- for s = 1,20 do
- wait(0.1)
- soundy.Volume = soundy.Volume - 0.3
- end
- soundy.SoundId= "rbxassetid://316889671"
- for s = 1,30 do
- wait(0.1)
- soundy.Volume = soundy.Volume + 0.2
- end
- wait(2)
- soundy.SoundId= "rbxassetid://1310017688"
- bossfight2 = game.Lighting
- bossfight2.ColorCorrection.Enabled = true
- end))
- StringValue111.Parent = Model59
- Part74.Name = "Head"
- Part74.Parent = Model59
- Part74.BrickColor = BrickColor.new("Black")
- Part74.Rotation = Vector3.new(0, -90, 0)
- Part74.FormFactor = Enum.FormFactor.Symmetric
- Part74.Size = Vector3.new(2.75328374, 1.37664187, 1.37664187)
- Part74.CFrame = CFrame.new(-8.29670906, 6.19489956, -21.1356354, 4.49431016e-21, -6.79974523e-22, -1, 4.72251821e-22, 1, -6.79974523e-22, 1, -4.72251821e-22, 4.49431016e-21)
- Part74.BottomSurface = Enum.SurfaceType.Smooth
- Part74.TopSurface = Enum.SurfaceType.Smooth
- Part74.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part74.Position = Vector3.new(-8.29670906, 6.19489956, -21.1356354)
- Part74.Orientation = Vector3.new(0, -90, 0)
- Part74.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Decal75.Name = "Face"
- Decal75.Parent = Part74
- Decal75.Texture = "http://www.roblox.com/asset/?id=7074882"
- SpecialMesh76.Parent = Part74
- SpecialMesh76.Scale = Vector3.new(1.25, 1.25, 1.25)
- SpecialMesh76.Scale = Vector3.new(1.25, 1.25, 1.25)
- Part60.Name = "HumanoidRootPart"
- Part60.Parent = Model59
- Part60.BrickColor = BrickColor.new("Earth green")
- Part60.Transparency = 1
- Part60.Rotation = Vector3.new(0, -90, 0)
- Part60.FormFactor = Enum.FormFactor.Symmetric
- Part60.Size = Vector3.new(2.75328374, 2.75328374, 1.37664187)
- Part60.CFrame = CFrame.new(-8.29670906, 4.1299367, -21.1356354, 4.49431016e-21, -6.79974523e-22, -1, 4.72251821e-22, 1, -6.79974523e-22, 1, -4.72251821e-22, 4.49431016e-21)
- Part60.BottomSurface = Enum.SurfaceType.Smooth
- Part60.TopSurface = Enum.SurfaceType.Smooth
- Part60.Color = Color3.new(0.152941, 0.27451, 0.176471)
- Part60.Position = Vector3.new(-8.29670906, 4.1299367, -21.1356354)
- Part60.Orientation = Vector3.new(0, -90, 0)
- Part60.Color = Color3.new(0.152941, 0.27451, 0.176471)
- Motor6D61.Name = "Root Hip"
- Motor6D61.Parent = Part60
- Motor6D61.C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- Motor6D61.C1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- Motor6D61.Part0 = Part60
- Motor6D61.Part1 = Part62
- Motor6D61.MaxVelocity = 0.10000000149012
- Part71.Name = "Left Arm"
- Part71.Parent = Model59
- Part71.BrickColor = BrickColor.new("Black")
- Part71.Rotation = Vector3.new(0, -90, 0)
- Part71.CanCollide = false
- Part71.FormFactor = Enum.FormFactor.Symmetric
- Part71.Size = Vector3.new(1.37664187, 2.75328374, 1.37664187)
- Part71.CFrame = CFrame.new(-8.29670906, 4.1299367, -23.2005978, 4.49431016e-21, -6.79974422e-22, -1, 4.72251821e-22, 0.999999881, -6.79974523e-22, 1, -4.7225177e-22, 4.49431016e-21)
- Part71.BottomSurface = Enum.SurfaceType.Smooth
- Part71.TopSurface = Enum.SurfaceType.Smooth
- Part71.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part71.Position = Vector3.new(-8.29670906, 4.1299367, -23.2005978)
- Part71.Orientation = Vector3.new(0, -90, 0)
- Part71.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part69.Name = "Left Leg"
- Part69.Parent = Model59
- Part69.BrickColor = BrickColor.new("Black")
- Part69.Rotation = Vector3.new(0, -90, 0)
- Part69.CanCollide = false
- Part69.FormFactor = Enum.FormFactor.Symmetric
- Part69.Size = Vector3.new(1.37664187, 2.75328374, 1.37664187)
- Part69.CFrame = CFrame.new(-8.29670906, 1.37665319, -21.8239555, 4.49431016e-21, -6.79974422e-22, -1, 4.72251821e-22, 0.999999881, -6.79974523e-22, 1, -4.7225177e-22, 4.49431016e-21)
- Part69.BottomSurface = Enum.SurfaceType.Smooth
- Part69.TopSurface = Enum.SurfaceType.Smooth
- Part69.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part69.Position = Vector3.new(-8.29670906, 1.37665319, -21.8239555)
- Part69.Orientation = Vector3.new(0, -90, 0)
- Part69.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part72.Name = "Right Arm"
- Part72.Parent = Model59
- Part72.BrickColor = BrickColor.new("Black")
- Part72.Rotation = Vector3.new(0, -90, 0)
- Part72.CanCollide = false
- Part72.FormFactor = Enum.FormFactor.Symmetric
- Part72.Size = Vector3.new(1.37664187, 2.75328374, 1.37664187)
- Part72.CFrame = CFrame.new(-8.29670906, 4.1299367, -19.070673, 4.49431016e-21, -6.79974422e-22, -1, 4.72251821e-22, 0.999999881, -6.79974523e-22, 1, -4.7225177e-22, 4.49431016e-21)
- Part72.BottomSurface = Enum.SurfaceType.Smooth
- Part72.TopSurface = Enum.SurfaceType.Smooth
- Part72.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part72.Position = Vector3.new(-8.29670906, 4.1299367, -19.070673)
- Part72.Orientation = Vector3.new(0, -90, 0)
- Part72.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Weld73.Name = "RightGrip"
- Weld73.Parent = Part72
- Weld73.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
- Weld73.C1 = CFrame.new(0, 0, -1, 0, 0, 1, 1, 0, 0, 0, 1, 0)
- Weld73.Part0 = Part72
- Weld73.Part1 = Part101
- Part70.Name = "Right Leg"
- Part70.Parent = Model59
- Part70.BrickColor = BrickColor.new("Black")
- Part70.Rotation = Vector3.new(0, -90, 0)
- Part70.CanCollide = false
- Part70.FormFactor = Enum.FormFactor.Symmetric
- Part70.Size = Vector3.new(1.37664187, 2.75328374, 1.37664187)
- Part70.CFrame = CFrame.new(-8.29670906, 1.37665319, -20.4473152, 4.49431016e-21, -6.79974422e-22, -1, 4.72251821e-22, 0.999999881, -6.79974523e-22, 1, -4.7225177e-22, 4.49431016e-21)
- Part70.BottomSurface = Enum.SurfaceType.Smooth
- Part70.TopSurface = Enum.SurfaceType.Smooth
- Part70.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part70.Position = Vector3.new(-8.29670906, 1.37665319, -20.4473152)
- Part70.Orientation = Vector3.new(0, -90, 0)
- Part70.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part62.Name = "Torso"
- Part62.Parent = Model59
- Part62.BrickColor = BrickColor.new("Smoky grey")
- Part62.Rotation = Vector3.new(0, -90, 0)
- Part62.FormFactor = Enum.FormFactor.Symmetric
- Part62.Size = Vector3.new(2.75328374, 2.75328374, 1.37664187)
- Part62.CFrame = CFrame.new(-8.29670906, 4.1299367, -21.1356354, 4.49431016e-21, -6.79974523e-22, -1, 4.72251821e-22, 1, -6.79974523e-22, 1, -4.72251821e-22, 4.49431016e-21)
- Part62.BottomSurface = Enum.SurfaceType.Smooth
- Part62.TopSurface = Enum.SurfaceType.Smooth
- Part62.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part62.Position = Vector3.new(-8.29670906, 4.1299367, -21.1356354)
- Part62.Orientation = Vector3.new(0, -90, 0)
- Part62.Color = Color3.new(0.356863, 0.364706, 0.411765)
- BodyForce63.Name = "RepulsionForce"
- BodyForce63.Parent = Part62
- BodyForce63.force = Vector3.new(0, 0, 0)
- Motor6D64.Name = "Left Hip"
- Motor6D64.Parent = Part62
- Motor6D64.C0 = CFrame.new(-1.37664187, -1.37664187, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
- Motor6D64.C1 = CFrame.new(-0.688320935, 1.37664187, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
- Motor6D64.Part0 = Part62
- Motor6D64.Part1 = Part69
- Motor6D64.MaxVelocity = 0.10000000149012
- Motor6D65.Name = "Right Hip"
- Motor6D65.Parent = Part62
- Motor6D65.C0 = CFrame.new(1.37664187, -1.37664187, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08)
- Motor6D65.C1 = CFrame.new(0.688320935, 1.37664187, 0, -4.37113883e-08, 0, 1, 0, 0.99999994, 0, -1, 0, -4.37113883e-08)
- Motor6D65.Part0 = Part62
- Motor6D65.Part1 = Part70
- Motor6D65.MaxVelocity = 0.10000000149012
- Motor6D66.Name = "Left Shoulder"
- Motor6D66.Parent = Part62
- Motor6D66.C0 = CFrame.new(-1.37664187, 0.688320935, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
- Motor6D66.C1 = CFrame.new(0.688320935, 0.688320935, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
- Motor6D66.Part0 = Part62
- Motor6D66.Part1 = Part71
- Motor6D66.MaxVelocity = 0.10000000149012
- Motor6D67.Name = "Right Shoulder"
- Motor6D67.Parent = Part62
- Motor6D67.C0 = CFrame.new(1.37664187, 0.688320935, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08)
- Motor6D67.C1 = CFrame.new(-0.688320935, 0.688320935, 0, -4.37113883e-08, 0, 1, 0, 0.99999994, 0, -1, 0, -4.37113883e-08)
- Motor6D67.Part0 = Part62
- Motor6D67.Part1 = Part72
- Motor6D67.MaxVelocity = 0.10000000149012
- Motor6D68.Name = "Neck"
- Motor6D68.Parent = Part62
- Motor6D68.C0 = CFrame.new(0, 1.37664187, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- Motor6D68.C1 = CFrame.new(0, -0.688320935, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- Motor6D68.Part0 = Part62
- Motor6D68.Part1 = Part74
- Motor6D68.MaxVelocity = 0.10000000149012
- BillboardGui109.Parent = Model59
- BillboardGui109.Size = UDim2.new(0, 100, 0, 30)
- BillboardGui109.StudsOffset = Vector3.new(0, 5, 0)
- TextLabel110.Parent = BillboardGui109
- TextLabel110.Size = UDim2.new(1, 0, 1, 0)
- TextLabel110.Text = "Idle"
- TextLabel110.Visible = false
- TextLabel110.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel110.Font = Enum.Font.SourceSansBold
- TextLabel110.FontSize = Enum.FontSize.Size24
- Configuration107.Name = "Pack"
- Configuration107.Parent = Model59
- LocalScript58.Name = "CamShake"
- LocalScript58.Parent = mas
- table.insert(cors,sandbox(LocalScript58,function()
- local cam = game.Workspace.CurrentCamera
- while true do
- wait(0.012)
- if workspace.Darkness.Sound.SoundId== "rbxassetid://1310017688"then
- wait(0.032)
- for i = 1, 2 do
- wait(0.078)
- local cam_rot = cam.CoordinateFrame - cam.CoordinateFrame.p --* CFrame.fromEulerAnglesXYZ(math.random(-10, 10)/10, math.random(-10, 10)/10, 0)
- local cam_scroll = (cam.CoordinateFrame.p - cam.Focus.p).magnitude
- local ncf = CFrame.new(cam.Focus.p)*cam_rot*CFrame.fromEulerAnglesXYZ(math.random(-123, 123)/4000, math.random(-123, 123)/4000, 0)
- cam.CoordinateFrame = ncf*CFrame.new(0, 0, cam_scroll)
- end
- end
- end
- end))
- Model59.Name = "Darkness"
- Model59.Parent = mas
- Part60.Name = "HumanoidRootPart"
- Part60.Parent = Model59
- Part60.BrickColor = BrickColor.new("Earth green")
- Part60.Transparency = 1
- Part60.Rotation = Vector3.new(0, -90, 0)
- Part60.FormFactor = Enum.FormFactor.Symmetric
- Part60.Size = Vector3.new(2.75328374, 2.75328374, 1.37664187)
- Part60.CFrame = CFrame.new(-8.29670906, 4.1299367, -21.1356354, 4.49431016e-21, -6.79974523e-22, -1, 4.72251821e-22, 1, -6.79974523e-22, 1, -4.72251821e-22, 4.49431016e-21)
- Part60.BottomSurface = Enum.SurfaceType.Smooth
- Part60.TopSurface = Enum.SurfaceType.Smooth
- Part60.Color = Color3.new(0.152941, 0.27451, 0.176471)
- Part60.Position = Vector3.new(-8.29670906, 4.1299367, -21.1356354)
- Part60.Orientation = Vector3.new(0, -90, 0)
- Part60.Color = Color3.new(0.152941, 0.27451, 0.176471)
- Motor6D61.Name = "Root Hip"
- Motor6D61.Parent = Part60
- Motor6D61.C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- Motor6D61.C1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- Motor6D61.Part0 = Part60
- Motor6D61.Part1 = Part62
- Motor6D61.MaxVelocity = 0.10000000149012
- Part62.Name = "Torso"
- Part62.Parent = Model59
- Part62.BrickColor = BrickColor.new("Smoky grey")
- Part62.Rotation = Vector3.new(0, -90, 0)
- Part62.FormFactor = Enum.FormFactor.Symmetric
- Part62.Size = Vector3.new(2.75328374, 2.75328374, 1.37664187)
- Part62.CFrame = CFrame.new(-8.29670906, 4.1299367, -21.1356354, 4.49431016e-21, -6.79974523e-22, -1, 4.72251821e-22, 1, -6.79974523e-22, 1, -4.72251821e-22, 4.49431016e-21)
- Part62.BottomSurface = Enum.SurfaceType.Smooth
- Part62.TopSurface = Enum.SurfaceType.Smooth
- Part62.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part62.Position = Vector3.new(-8.29670906, 4.1299367, -21.1356354)
- Part62.Orientation = Vector3.new(0, -90, 0)
- Part62.Color = Color3.new(0.356863, 0.364706, 0.411765)
- BodyForce63.Name = "RepulsionForce"
- BodyForce63.Parent = Part62
- BodyForce63.force = Vector3.new(0, 0, 0)
- Motor6D64.Name = "Left Hip"
- Motor6D64.Parent = Part62
- Motor6D64.C0 = CFrame.new(-1.37664187, -1.37664187, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
- Motor6D64.C1 = CFrame.new(-0.688320935, 1.37664187, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
- Motor6D64.Part0 = Part62
- Motor6D64.Part1 = Part69
- Motor6D64.MaxVelocity = 0.10000000149012
- Motor6D65.Name = "Right Hip"
- Motor6D65.Parent = Part62
- Motor6D65.C0 = CFrame.new(1.37664187, -1.37664187, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08)
- Motor6D65.C1 = CFrame.new(0.688320935, 1.37664187, 0, -4.37113883e-08, 0, 1, 0, 0.99999994, 0, -1, 0, -4.37113883e-08)
- Motor6D65.Part0 = Part62
- Motor6D65.Part1 = Part70
- Motor6D65.MaxVelocity = 0.10000000149012
- Motor6D66.Name = "Left Shoulder"
- Motor6D66.Parent = Part62
- Motor6D66.C0 = CFrame.new(-1.37664187, 0.688320935, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
- Motor6D66.C1 = CFrame.new(0.688320935, 0.688320935, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
- Motor6D66.Part0 = Part62
- Motor6D66.Part1 = Part71
- Motor6D66.MaxVelocity = 0.10000000149012
- Motor6D67.Name = "Right Shoulder"
- Motor6D67.Parent = Part62
- Motor6D67.C0 = CFrame.new(1.37664187, 0.688320935, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08)
- Motor6D67.C1 = CFrame.new(-0.688320935, 0.688320935, 0, -4.37113883e-08, 0, 1, 0, 0.99999994, 0, -1, 0, -4.37113883e-08)
- Motor6D67.Part0 = Part62
- Motor6D67.Part1 = Part72
- Motor6D67.MaxVelocity = 0.10000000149012
- Motor6D68.Name = "Neck"
- Motor6D68.Parent = Part62
- Motor6D68.C0 = CFrame.new(0, 1.37664187, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- Motor6D68.C1 = CFrame.new(0, -0.688320935, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- Motor6D68.Part0 = Part62
- Motor6D68.Part1 = Part74
- Motor6D68.MaxVelocity = 0.10000000149012
- Part69.Name = "Left Leg"
- Part69.Parent = Model59
- Part69.BrickColor = BrickColor.new("Black")
- Part69.Rotation = Vector3.new(0, -90, 0)
- Part69.CanCollide = false
- Part69.FormFactor = Enum.FormFactor.Symmetric
- Part69.Size = Vector3.new(1.37664187, 2.75328374, 1.37664187)
- Part69.CFrame = CFrame.new(-8.29670906, 1.37665319, -21.8239555, 4.49431016e-21, -6.79974422e-22, -1, 4.72251821e-22, 0.999999881, -6.79974523e-22, 1, -4.7225177e-22, 4.49431016e-21)
- Part69.BottomSurface = Enum.SurfaceType.Smooth
- Part69.TopSurface = Enum.SurfaceType.Smooth
- Part69.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part69.Position = Vector3.new(-8.29670906, 1.37665319, -21.8239555)
- Part69.Orientation = Vector3.new(0, -90, 0)
- Part69.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part70.Name = "Right Leg"
- Part70.Parent = Model59
- Part70.BrickColor = BrickColor.new("Black")
- Part70.Rotation = Vector3.new(0, -90, 0)
- Part70.CanCollide = false
- Part70.FormFactor = Enum.FormFactor.Symmetric
- Part70.Size = Vector3.new(1.37664187, 2.75328374, 1.37664187)
- Part70.CFrame = CFrame.new(-8.29670906, 1.37665319, -20.4473152, 4.49431016e-21, -6.79974422e-22, -1, 4.72251821e-22, 0.999999881, -6.79974523e-22, 1, -4.7225177e-22, 4.49431016e-21)
- Part70.BottomSurface = Enum.SurfaceType.Smooth
- Part70.TopSurface = Enum.SurfaceType.Smooth
- Part70.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part70.Position = Vector3.new(-8.29670906, 1.37665319, -20.4473152)
- Part70.Orientation = Vector3.new(0, -90, 0)
- Part70.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part71.Name = "Left Arm"
- Part71.Parent = Model59
- Part71.BrickColor = BrickColor.new("Black")
- Part71.Rotation = Vector3.new(0, -90, 0)
- Part71.CanCollide = false
- Part71.FormFactor = Enum.FormFactor.Symmetric
- Part71.Size = Vector3.new(1.37664187, 2.75328374, 1.37664187)
- Part71.CFrame = CFrame.new(-8.29670906, 4.1299367, -23.2005978, 4.49431016e-21, -6.79974422e-22, -1, 4.72251821e-22, 0.999999881, -6.79974523e-22, 1, -4.7225177e-22, 4.49431016e-21)
- Part71.BottomSurface = Enum.SurfaceType.Smooth
- Part71.TopSurface = Enum.SurfaceType.Smooth
- Part71.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part71.Position = Vector3.new(-8.29670906, 4.1299367, -23.2005978)
- Part71.Orientation = Vector3.new(0, -90, 0)
- Part71.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part72.Name = "Right Arm"
- Part72.Parent = Model59
- Part72.BrickColor = BrickColor.new("Black")
- Part72.Rotation = Vector3.new(0, -90, 0)
- Part72.CanCollide = false
- Part72.FormFactor = Enum.FormFactor.Symmetric
- Part72.Size = Vector3.new(1.37664187, 2.75328374, 1.37664187)
- Part72.CFrame = CFrame.new(-8.29670906, 4.1299367, -19.070673, 4.49431016e-21, -6.79974422e-22, -1, 4.72251821e-22, 0.999999881, -6.79974523e-22, 1, -4.7225177e-22, 4.49431016e-21)
- Part72.BottomSurface = Enum.SurfaceType.Smooth
- Part72.TopSurface = Enum.SurfaceType.Smooth
- Part72.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part72.Position = Vector3.new(-8.29670906, 4.1299367, -19.070673)
- Part72.Orientation = Vector3.new(0, -90, 0)
- Part72.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Weld73.Name = "RightGrip"
- Weld73.Parent = Part72
- Weld73.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
- Weld73.C1 = CFrame.new(0, 0, -1, 0, 0, 1, 1, 0, 0, 0, 1, 0)
- Weld73.Part0 = Part72
- Weld73.Part1 = Part101
- Part74.Name = "Head"
- Part74.Parent = Model59
- Part74.BrickColor = BrickColor.new("Black")
- Part74.Rotation = Vector3.new(0, -90, 0)
- Part74.FormFactor = Enum.FormFactor.Symmetric
- Part74.Size = Vector3.new(2.75328374, 1.37664187, 1.37664187)
- Part74.CFrame = CFrame.new(-8.29670906, 6.19489956, -21.1356354, 4.49431016e-21, -6.79974523e-22, -1, 4.72251821e-22, 1, -6.79974523e-22, 1, -4.72251821e-22, 4.49431016e-21)
- Part74.BottomSurface = Enum.SurfaceType.Smooth
- Part74.TopSurface = Enum.SurfaceType.Smooth
- Part74.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part74.Position = Vector3.new(-8.29670906, 6.19489956, -21.1356354)
- Part74.Orientation = Vector3.new(0, -90, 0)
- Part74.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Decal75.Name = "Face"
- Decal75.Parent = Part74
- Decal75.Texture = "http://www.roblox.com/asset/?id=7074882"
- SpecialMesh76.Parent = Part74
- SpecialMesh76.Scale = Vector3.new(1.25, 1.25, 1.25)
- SpecialMesh76.Scale = Vector3.new(1.25, 1.25, 1.25)
- Humanoid77.Parent = Model59
- Humanoid77.RightLeg = Part70
- Humanoid77.LeftLeg = Part69
- Humanoid77.Torso = Part60
- Humanoid77.Health = 34353544
- Humanoid77.MaxHealth = 34353544
- Humanoid77.WalkSpeed = 5
- Script78.Name = "Animate"
- Script78.Parent = Model59
- table.insert(cors,sandbox(Script78,function()
- function waitForChild(parent, childName)
- local child = parent:findFirstChild(childName)
- if child then return child end
- while true do
- child = parent.ChildAdded:wait()
- if child.Name==childName then return child end
- end
- end
- local Figure = script.Parent
- local Torso = waitForChild(Figure, "Torso")
- local RightShoulder = waitForChild(Torso, "Right Shoulder")
- local LeftShoulder = waitForChild(Torso, "Left Shoulder")
- local RightHip = waitForChild(Torso, "Right Hip")
- local LeftHip = waitForChild(Torso, "Left Hip")
- local Neck = waitForChild(Torso, "Neck")
- local Humanoid = waitForChild(Figure, "Humanoid")
- local pose = "Standing"
- local currentAnim = ""
- local currentAnimTrack = nil
- local currentAnimKeyframeHandler = nil
- local currentAnimSpeed = 1.0
- local animTable = {}
- local animNames = {
- idle = {
- { id = "http://www.roblox.com/asset/?id=125750544", weight = 9 },
- { id = "http://www.roblox.com/asset/?id=125750618", weight = 1 }
- },
- walk = {
- { id = "http://www.roblox.com/asset/?id=125749145", weight = 10 }
- },
- run = {
- { id = "run.xml", weight = 10 }
- },
- jump = {
- { id = "http://www.roblox.com/asset/?id=125750702", weight = 10 }
- },
- fall = {
- { id = "http://www.roblox.com/asset/?id=125750759", weight = 10 }
- },
- climb = {
- { id = "http://www.roblox.com/asset/?id=125750800", weight = 10 }
- },
- toolnone = {
- { id = "http://www.roblox.com/asset/?id=125750867", weight = 10 }
- },
- toolslash = {
- { id = "http://www.roblox.com/asset/?id=129967390", weight = 10 }
- -- { id = "slash.xml", weight = 10 }
- },
- toollunge = {
- { id = "http://www.roblox.com/asset/?id=129967478", weight = 10 }
- },
- wave = {
- { id = "http://www.roblox.com/asset/?id=128777973", weight = 10 }
- },
- point = {
- { id = "http://www.roblox.com/asset/?id=128853357", weight = 10 }
- },
- dance = {
- { id = "http://www.roblox.com/asset/?id=130018893", weight = 10 },
- { id = "http://www.roblox.com/asset/?id=132546839", weight = 10 },
- { id = "http://www.roblox.com/asset/?id=132546884", weight = 10 }
- },
- dance2 = {
- { id = "http://www.roblox.com/asset/?id=160934142", weight = 10 },
- { id = "http://www.roblox.com/asset/?id=160934298", weight = 10 },
- { id = "http://www.roblox.com/asset/?id=160934376", weight = 10 }
- },
- dance3 = {
- { id = "http://www.roblox.com/asset/?id=160934458", weight = 10 },
- { id = "http://www.roblox.com/asset/?id=160934530", weight = 10 },
- { id = "http://www.roblox.com/asset/?id=160934593", weight = 10 }
- },
- laugh = {
- { id = "http://www.roblox.com/asset/?id=129423131", weight = 10 }
- },
- cheer = {
- { id = "http://www.roblox.com/asset/?id=129423030", weight = 10 }
- },
- }
- -- Existance in this list signifies that it is an emote, the value indicates if it is a looping emote
- local emoteNames = { wave = false, point = false, dance = true, dance2 = true, dance3 = true, laugh = false, cheer = false}
- math.randomseed(tick())
- function configureAnimationSet(name, fileList)
- if (animTable[name] ~= nil) then
- for _, connection in pairs(animTable[name].connections) do
- connection:disconnect()
- end
- end
- animTable[name] = {}
- animTable[name].count = 0
- animTable[name].totalWeight = 0
- animTable[name].connections = {}
- -- check for config values
- local config = script:FindFirstChild(name)
- if (config ~= nil) then
- -- print("Loading anims " .. name)
- table.insert(animTable[name].connections, config.ChildAdded:connect(function(child) configureAnimationSet(name, fileList) end))
- table.insert(animTable[name].connections, config.ChildRemoved:connect(function(child) configureAnimationSet(name, fileList) end))
- local idx = 1
- for _, childPart in pairs(config:GetChildren()) do
- if (childPart:IsA("Animation")) then
- table.insert(animTable[name].connections, childPart.Changed:connect(function(property) configureAnimationSet(name, fileList) end))
- animTable[name][idx] = {}
- animTable[name][idx].anim = childPart
- local weightObject = childPart:FindFirstChild("Weight")
- if (weightObject == nil) then
- animTable[name][idx].weight = 1
- else
- animTable[name][idx].weight = weightObject.Value
- end
- animTable[name].count = animTable[name].count + 1
- animTable[name].totalWeight = animTable[name].totalWeight + animTable[name][idx].weight
- -- print(name .. " [" .. idx .. "] " .. animTable[name][idx].anim.AnimationId .. " (" .. animTable[name][idx].weight .. ")")
- idx = idx + 1
- end
- end
- end
- -- fallback to defaults
- if (animTable[name].count <= 0) then
- for idx, anim in pairs(fileList) do
- animTable[name][idx] = {}
- animTable[name][idx].anim = Instance.new("Animation")
- animTable[name][idx].anim.Name = name
- animTable[name][idx].anim.AnimationId = anim.id
- animTable[name][idx].weight = anim.weight
- animTable[name].count = animTable[name].count + 1
- animTable[name].totalWeight = animTable[name].totalWeight + anim.weight
- -- print(name .. " [" .. idx .. "] " .. anim.id .. " (" .. anim.weight .. ")")
- end
- end
- end
- -- Setup animation objects
- function scriptChildModified(child)
- local fileList = animNames[child.Name]
- if (fileList ~= nil) then
- configureAnimationSet(child.Name, fileList)
- end
- end
- script.ChildAdded:connect(scriptChildModified)
- script.ChildRemoved:connect(scriptChildModified)
- for name, fileList in pairs(animNames) do
- configureAnimationSet(name, fileList)
- end
- -- ANIMATION
- -- declarations
- local toolAnim = "None"
- local toolAnimTime = 0
- local jumpAnimTime = 0
- local jumpAnimDuration = 0.3
- local toolTransitionTime = 0.1
- local fallTransitionTime = 0.3
- local jumpMaxLimbVelocity = 0.75
- -- functions
- function stopAllAnimations()
- local oldAnim = currentAnim
- -- return to idle if finishing an emote
- if (emoteNames[oldAnim] ~= nil and emoteNames[oldAnim] == false) then
- oldAnim = "idle"
- end
- currentAnim = ""
- if (currentAnimKeyframeHandler ~= nil) then
- currentAnimKeyframeHandler:disconnect()
- end
- if (currentAnimTrack ~= nil) then
- currentAnimTrack:Stop()
- currentAnimTrack:Destroy()
- currentAnimTrack = nil
- end
- return oldAnim
- end
- function setAnimationSpeed(speed)
- if speed ~= currentAnimSpeed then
- currentAnimSpeed = speed
- currentAnimTrack:AdjustSpeed(currentAnimSpeed)
- end
- end
- function keyFrameReachedFunc(frameName)
- if (frameName == "End") then
- -- print("Keyframe : ".. frameName)
- local repeatAnim = stopAllAnimations()
- local animSpeed = currentAnimSpeed
- playAnimation(repeatAnim, 0.0, Humanoid)
- setAnimationSpeed(animSpeed)
- end
- end
- -- Preload animations
- function playAnimation(animName, transitionTime, humanoid)
- local idleFromEmote = (animName == "idle" and emoteNames[currentAnim] ~= nil)
- if (animName ~= currentAnim and not idleFromEmote) then
- if (currentAnimTrack ~= nil) then
- currentAnimTrack:Stop(transitionTime)
- currentAnimTrack:Destroy()
- end
- currentAnimSpeed = 1.0
- local roll = math.random(1, animTable[animName].totalWeight)
- local origRoll = roll
- local idx = 1
- while (roll > animTable[animName][idx].weight) do
- roll = roll - animTable[animName][idx].weight
- idx = idx + 1
- end
- -- print(animName .. " " .. idx .. " [" .. origRoll .. "]")
- local anim = animTable[animName][idx].anim
- -- load it to the humanoid; get AnimationTrack
- currentAnimTrack = humanoid:LoadAnimation(anim)
- -- play the animation
- currentAnimTrack:Play(transitionTime)
- currentAnim = animName
- -- set up keyframe name triggers
- if (currentAnimKeyframeHandler ~= nil) then
- currentAnimKeyframeHandler:disconnect()
- end
- currentAnimKeyframeHandler = currentAnimTrack.KeyframeReached:connect(keyFrameReachedFunc)
- end
- end
- -------------------------------------------------------------------------------------------
- -------------------------------------------------------------------------------------------
- local toolAnimName = ""
- local toolAnimTrack = nil
- local currentToolAnimKeyframeHandler = nil
- function toolKeyFrameReachedFunc(frameName)
- if (frameName == "End") then
- -- print("Keyframe : ".. frameName)
- local repeatAnim = stopToolAnimations()
- playToolAnimation(repeatAnim, 0.0, Humanoid)
- end
- end
- function playToolAnimation(animName, transitionTime, humanoid)
- if (animName ~= toolAnimName) then
- if (toolAnimTrack ~= nil) then
- toolAnimTrack:Stop()
- toolAnimTrack:Destroy()
- transitionTime = 0
- end
- local roll = math.random(1, animTable[animName].totalWeight)
- local origRoll = roll
- local idx = 1
- while (roll > animTable[animName][idx].weight) do
- roll = roll - animTable[animName][idx].weight
- idx = idx + 1
- end
- -- print(animName .. " * " .. idx .. " [" .. origRoll .. "]")
- local anim = animTable[animName][idx].anim
- -- load it to the humanoid; get AnimationTrack
- toolAnimTrack = humanoid:LoadAnimation(anim)
- -- play the animation
- toolAnimTrack:Play(transitionTime)
- toolAnimName = animName
- currentToolAnimKeyframeHandler = toolAnimTrack.KeyframeReached:connect(toolKeyFrameReachedFunc)
- end
- end
- function stopToolAnimations()
- local oldAnim = toolAnimName
- if (currentToolAnimKeyframeHandler ~= nil) then
- currentToolAnimKeyframeHandler:disconnect()
- end
- toolAnimName = ""
- if (toolAnimTrack ~= nil) then
- toolAnimTrack:Stop()
- toolAnimTrack:Destroy()
- toolAnimTrack = nil
- end
- return oldAnim
- end
- -------------------------------------------------------------------------------------------
- -------------------------------------------------------------------------------------------
- function onRunning(speed)
- if speed>0.01 then
- playAnimation("walk", 0.1, Humanoid)
- pose = "Running"
- else
- playAnimation("idle", 0.1, Humanoid)
- pose = "Standing"
- end
- end
- function onDied()
- pose = "Dead"
- end
- function onJumping()
- playAnimation("jump", 0.1, Humanoid)
- jumpAnimTime = jumpAnimDuration
- pose = "Jumping"
- end
- function onClimbing(speed)
- playAnimation("climb", 0.1, Humanoid)
- setAnimationSpeed(speed / 12.0)
- pose = "Climbing"
- end
- function onGettingUp()
- pose = "GettingUp"
- end
- function onFreeFall()
- if (jumpAnimTime <= 0) then
- playAnimation("fall", fallTransitionTime, Humanoid)
- end
- pose = "FreeFall"
- end
- function onFallingDown()
- pose = "FallingDown"
- end
- function onSeated()
- pose = "Seated"
- end
- function onPlatformStanding()
- pose = "PlatformStanding"
- end
- function onSwimming(speed)
- if speed>0 then
- pose = "Running"
- else
- pose = "Standing"
- end
- end
- function getTool()
- for _, kid in ipairs(Figure:GetChildren()) do
- if kid.className == "Tool" then return kid end
- end
- return nil
- end
- function getToolAnim(tool)
- for _, c in ipairs(tool:GetChildren()) do
- if c.Name == "toolanim" and c.className == "StringValue" then
- return c
- end
- end
- return nil
- end
- function animateTool()
- if (toolAnim == "None") then
- playToolAnimation("toolnone", toolTransitionTime, Humanoid)
- return
- end
- if (toolAnim == "Slash") then
- playToolAnimation("toolslash", 0, Humanoid)
- return
- end
- if (toolAnim == "Lunge") then
- playToolAnimation("toollunge", 0, Humanoid)
- return
- end
- end
- function moveSit()
- RightShoulder.MaxVelocity = 0.15
- LeftShoulder.MaxVelocity = 0.15
- RightShoulder:SetDesiredAngle(3.14 /2)
- LeftShoulder:SetDesiredAngle(-3.14 /2)
- RightHip:SetDesiredAngle(3.14 /2)
- LeftHip:SetDesiredAngle(-3.14 /2)
- end
- local lastTick = 0
- function move(time)
- local amplitude = 1
- local frequency = 1
- local deltaTime = time - lastTick
- lastTick = time
- local climbFudge = 0
- local setAngles = false
- if (jumpAnimTime > 0) then
- jumpAnimTime = jumpAnimTime - deltaTime
- end
- if (pose == "FreeFall" and jumpAnimTime <= 0) then
- playAnimation("fall", fallTransitionTime, Humanoid)
- elseif (pose == "Seated") then
- stopAllAnimations()
- moveSit()
- return
- elseif (pose == "Running") then
- playAnimation("walk", 0.1, Humanoid)
- elseif (pose == "Dead" or pose == "GettingUp" or pose == "FallingDown" or pose == "Seated" or pose == "PlatformStanding") then
- -- print("Wha " .. pose)
- amplitude = 0.1
- frequency = 1
- setAngles = true
- end
- if (setAngles) then
- desiredAngle = amplitude * math.sin(time * frequency)
- RightShoulder:SetDesiredAngle(desiredAngle + climbFudge)
- LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge)
- RightHip:SetDesiredAngle(-desiredAngle)
- LeftHip:SetDesiredAngle(-desiredAngle)
- end
- -- Tool Animation handling
- local tool = getTool()
- if tool then
- animStringValueObject = getToolAnim(tool)
- if animStringValueObject then
- toolAnim = animStringValueObject.Value
- -- message recieved, delete StringValue
- animStringValueObject.Parent = nil
- toolAnimTime = time + .3
- end
- if time > toolAnimTime then
- toolAnimTime = 0
- toolAnim = "None"
- end
- animateTool()
- else
- stopToolAnimations()
- toolAnim = "None"
- toolAnimTime = 0
- end
- end
- -- connect events
- Humanoid.Died:connect(onDied)
- Humanoid.Running:connect(onRunning)
- Humanoid.Jumping:connect(onJumping)
- Humanoid.Climbing:connect(onClimbing)
- Humanoid.GettingUp:connect(onGettingUp)
- Humanoid.FreeFalling:connect(onFreeFall)
- Humanoid.FallingDown:connect(onFallingDown)
- Humanoid.Seated:connect(onSeated)
- Humanoid.PlatformStanding:connect(onPlatformStanding)
- Humanoid.Swimming:connect(onSwimming)
- -- main program
- local runService = game:service("RunService");
- -- initialize to idle
- playAnimation("idle", 0.1, Humanoid)
- pose = "Standing"
- while Figure.Parent~=nil do
- local _, time = wait(0.1)
- move(time)
- end
- end))
- StringValue79.Name = "climb"
- StringValue79.Parent = Script78
- Animation80.Name = "ClimbAnim"
- Animation80.Parent = StringValue79
- Animation80.AnimationId = "http://www.roblox.com/asset/?id=125750800"
- StringValue81.Name = "fall"
- StringValue81.Parent = Script78
- Animation82.Name = "FallAnim"
- Animation82.Parent = StringValue81
- Animation82.AnimationId = "http://www.roblox.com/asset/?id=125750759"
- StringValue83.Name = "idle"
- StringValue83.Parent = Script78
- Animation84.Name = "Animation1"
- Animation84.Parent = StringValue83
- Animation84.AnimationId = "http://www.roblox.com/asset/?id=125750544"
- NumberValue85.Name = "Weight"
- NumberValue85.Parent = Animation84
- NumberValue85.Value = 9
- Animation86.Name = "Animation2"
- Animation86.Parent = StringValue83
- Animation86.AnimationId = "http://www.roblox.com/asset/?id=125750618"
- NumberValue87.Name = "Weight"
- NumberValue87.Parent = Animation86
- NumberValue87.Value = 1
- StringValue88.Name = "jump"
- StringValue88.Parent = Script78
- Animation89.Name = "JumpAnim"
- Animation89.Parent = StringValue88
- Animation89.AnimationId = "http://www.roblox.com/asset/?id=125750702"
- StringValue90.Name = "run"
- StringValue90.Parent = Script78
- Animation91.Name = "RunAnim"
- Animation91.Parent = StringValue90
- Animation91.AnimationId = "http://www.roblox.com/asset/?id=125749145"
- StringValue92.Name = "toolnone"
- StringValue92.Parent = Script78
- Animation93.Name = "ToolNoneAnim"
- Animation93.Parent = StringValue92
- Animation93.AnimationId = "http://www.roblox.com/asset/?id=125750867"
- StringValue94.Name = "walk"
- StringValue94.Parent = Script78
- Animation95.Name = "WalkAnim"
- Animation95.Parent = StringValue94
- Animation95.AnimationId = "http://www.roblox.com/asset/?id=125749145"
- Sound96.Name = "Moan"
- Sound96.Parent = Model59
- Sound96.Pitch = 0.15000000596046
- Sound96.SoundId = "http://www.roblox.com/asset/?id=12222242"
- Sound96.Volume = 0.050000000745058
- Tool97.Name = "Epic Hammer"
- Tool97.Parent = Model59
- Tool97.GripForward = Vector3.new(-1, -0, -0)
- Tool97.GripPos = Vector3.new(0, 0, -1)
- Tool97.GripRight = Vector3.new(0, 1, 0)
- Tool97.GripUp = Vector3.new(0, 0, 1)
- Tool97.ToolTip = "This can make you dash"
- LocalScript98.Name = "Local Gui"
- LocalScript98.Parent = Tool97
- table.insert(cors,sandbox(LocalScript98,function()
- local Tool = script.Parent;
- enabled = true
- function onButton1Down(mouse)
- if not enabled then
- return
- end
- enabled = false
- mouse.Icon = "rbxasset://textures\\GunWaitCursor.png"
- wait(1)
- mouse.Icon = "rbxasset://textures\\GunCursor.png"
- enabled = true
- end
- function onEquippedLocal(mouse)
- if mouse == nil then
- print("Mouse not found")
- return
- end
- mouse.Icon = "rbxasset://textures\\GunCursor.png"
- mouse.Button1Down:connect(function() onButton1Down(mouse) end)
- end
- Tool.Equipped:connect(onEquippedLocal)
- end))
- Script99.Name = "IceHammer"
- Script99.Parent = Tool97
- table.insert(cors,sandbox(Script99,function()
- -------- OMG HAX
- at2 = 0
- debris = game:GetService("Debris")
- r = game:service("RunService")
- cool = 5
- mod = Instance.new("Model")
- mod.Parent = script.Parent
- h = Instance.new("Humanoid")
- h.Parent = mod
- h.MaxHealth = 0
- head = Instance.new("Part")
- head.Name = "Head"
- head.Transparency = 0.989
- head.BrickColor = BrickColor.new("Really black")
- head.formFactor = "Custom"
- head.Size = Vector3.new(0.2,0.2,0.2)
- head.TopSurface = 0
- head.BottomSurface = 0
- head.Anchored = true
- head.Parent = mod
- local damage = 7
- local slash_damage = 3
- sword = script.Parent.Handle
- Tool = script.Parent
- local SlashSound = Instance.new("Sound")
- SlashSound.SoundId = "http://www.roblox.com/asset/?id=926058764"
- SlashSound.Parent = sword
- SlashSound.Pitch = 1
- SlashSound.Volume = 10
- local UnsheathSound = Instance.new("Sound")
- UnsheathSound.SoundId = "http://www.roblox.com/asset/?id=15933756"
- UnsheathSound.Parent = sword
- UnsheathSound.Volume = 1
- --local blues = {"Really blue", "Really black", "Black", "Bright blue"}
- function isTurbo(character)
- return character:FindFirstChild("WingwsHeaddess") ~= nil
- end
- function allThatIce(pos, isTurbo)
- local count = 1
- if (isTurbo == true) then count = 1 end
- for i=1,count do
- local p = Instance.new("Part")
- --p.BrickColor = BrickColor.new(blues[math.random(#blues)])
- p.formFactor = "Symmetric"
- p.Name = "ICEY NOOB"
- p.Size = Vector3.new(5,5,1)
- p.BrickColor = BrickColor.new("New Yeller")
- p.TopSurface = 0
- p.Material = "Neon"
- p.Transparency = 0.5
- p.CanCollide = false
- --p.Shape = 0
- p.Friction = 0
- p.Elasticity = 0
- p.BottomSurface = 0
- local a = math.random() * 6.28
- local d = Vector3.new(math.cos(a), 0, math.sin(a)).unit
- bv = script.BodyVelocity:clone()
- bv.Parent = p
- --p.RotVelocity = d * 1000
- p.CFrame = CFrame.new(pos + Vector3.new(0, 0, 0) + (d * 0), Tool.Parent.Torso.CFrame.lookVector * -9999999999)
- --p.CFrame = CFrame.new(p.Position, Tool.Parent.Torso.Position)
- p.Parent = game.Workspace
- debris:AddItem(p, 0.1)
- wait()
- end
- end
- function blow(hit)
- local humanoid = hit.Parent:findFirstChild("Humanoid")
- local vCharacter = Tool.Parent
- local vPlayer = game.Players:playerFromCharacter(vCharacter)
- local hum = vCharacter:findFirstChild("Humanoid") -- non-nil if tool held by a character
- if humanoid~=nil and humanoid ~= hum and hum ~= nil then
- -- final check, make sure sword is in-hand
- local right_arm = vCharacter:FindFirstChild("Right Arm")
- if (right_arm ~= nil) then
- local joint = right_arm:FindFirstChild("RightGrip")
- if (joint ~= nil and (joint.Part0 == sword or joint.Part1 == sword)) then
- tagHumanoid(humanoid, vPlayer)
- if (isTurbo(vCharacter) == true) then
- humanoid:TakeDamage(damage * 1.2)
- else
- humanoid:TakeDamage(damage)
- end
- end
- end
- end
- end
- function tagHumanoid(humanoid, player)
- local creator_tag = Instance.new("ObjectValue")
- creator_tag.Value = player
- creator_tag.Name = "creator"
- creator_tag.Parent = humanoid
- debris:AddItem(creator_tag, 1)
- end
- function attack()
- CHARACTER =script.Parent.Parent
- for i = 1,5 do
- allThatIce(CHARACTER.Torso.Position + (CHARACTER.Torso.CFrame.lookVector * 0) - Vector3.new(0,0,0), isTurbo(CHARACTER))
- end
- SlashSound:play()
- local anim = Instance.new("StringValue")
- anim.Name = "toolanim"
- anim.Value = "Slash"
- anim.Parent = Tool
- lol = script.Parent.Parent.Torso
- lol.Velocity = script.Parent.Parent.Head.CFrame.lookVector * 150 -- Foward Dash
- wait(0.1)
- lol.Velocity = script.Parent.Parent.Head.CFrame.lookVector * 150 -- Foward Dash
- wait(0.1)
- lol.Velocity = script.Parent.Parent.Head.CFrame.lookVector * 50 -- Foward Dash
- wait(0.1)
- end
- function swordUp()
- Tool.GripForward = Vector3.new(-1,0,0)
- Tool.GripRight = Vector3.new(0,1,0)
- Tool.GripUp = Vector3.new(0,0,1)
- end
- function swordOut()
- Tool.GripForward = Vector3.new(0,0,1)
- Tool.GripRight = Vector3.new(0,-1,0)
- Tool.GripUp = Vector3.new(-1,0,0)
- end
- Tool.Enabled = true
- function onActivated()
- if not Tool.Enabled then
- return
- end
- Tool.Enabled = false
- local character = Tool.Parent;
- local humanoid = character.Humanoid
- if humanoid == nil then
- print("Humanoid not found")
- return
- end
- if cool >= 1 then
- attack()
- if character.Torso.Velocity.y * -1 < 3 then
- damage = 10
- cool = cool - 1
- b = script.BodyVelocity:clone()
- b.velocity = character.Torso.CFrame.lookVector * 200
- b.Parent = character.Torso
- game:GetService("Debris"):AddItem(b,0.4)
- for i = 1,5 do
- allThatIce(character.Torso.Position + (character.Torso.CFrame.lookVector * 0) - Vector3.new(0,0,0), isTurbo(character))
- end
- damage = 5
- b.velocity = Vector3.new(0,0,0)
- end
- end
- mod.Name = "" .. cool .. ""
- mod.Head.Position = Tool.Handle.Position + Vector3.new(0,10,0)
- wait(0.5)
- Tool.Enabled = true
- end
- function onEquipped()
- UnsheathSound:play()
- script.Parent.Handle.Boss:Play()
- end
- function Stopmusic()
- script.Parent.Handle.Boss:Stop()
- end
- script.Parent.Activated:connect(onActivated)
- script.Parent.Equipped:connect(onEquipped)
- script.Parent.Unequipped:connect(Stopmusic)
- connection = sword.Touched:connect(blow)
- while true do
- wait(0.0000001)
- attack()
- wait(4)
- swordUp()
- bomb = Instance.new("Part")
- bomb.CFrame = CFrame.fromEulerAnglesXYZ(0,math.pi/20,10)
- bomb.Position = Tool.Handle.Position
- bomb.Material = "Neon"
- bomb.Shape = "0"
- bomb.BrickColor = BrickColor.Red()
- bomb.Name = "Explosion"
- bomb.Anchored = true
- bomb.Parent = workspace
- local anim = Instance.new("Animation")
- anim.AnimationId = "rbxassetid://973866387"
- local playAnim = Tool.Parent.Humanoid:LoadAnimation(anim)
- playAnim:Play()
- for n = 1,20 do
- wait()
- bomb.Size = bomb.Size + Vector3.new(1,1,1)
- bomb.Transparency = bomb.Transparency + 0.01
- bomb.CanCollide = false
- end
- bomb:Destroy()
- anim:Destroy()
- Tool.GripForward = Vector3.new(-1,0,0)
- Tool.GripRight = Vector3.new(0,1,0)
- Tool.GripUp = Vector3.new(0,0,1)
- wait(5)
- attack()
- wait(5)
- attack()
- attack()
- attack()
- attack()
- attack()
- attack()
- attack()
- attack()
- attack()
- attack()
- if workspace.Darkness.Sound.SoundId== "rbxassetid://1310017688"then
- bomb = Instance.new("Part")
- bomb.CFrame = CFrame.fromEulerAnglesXYZ(0,math.pi/20,10)
- bomb.Position = Tool.Handle.Position
- bomb.Material = "Neon"
- bomb.Shape = "0"
- bomb.BrickColor = BrickColor.Red()
- bomb.Name = "Explosion"
- bomb.Anchored = true
- bomb.Parent = workspace
- local anim = Instance.new("Animation")
- anim.AnimationId = "rbxassetid://973866387"
- local playAnim = Tool.Parent.Humanoid:LoadAnimation(anim)
- playAnim:Play()
- for n = 1,20 do
- wait()
- bomb.Size = bomb.Size + Vector3.new(1,1,1)
- bomb.Transparency = bomb.Transparency + 0.01
- bomb.CanCollide = false
- end
- bomb:Destroy()
- anim:Destroy()
- Tool.GripForward = Vector3.new(-1,0,0)
- Tool.GripRight = Vector3.new(0,1,0)
- Tool.GripUp = Vector3.new(0,0,1)
- attack()
- attack()
- attack()
- attack()
- attack()
- attack()
- attack()
- attack()
- attack()
- attack()
- bomb = Instance.new("Part")
- bomb.CFrame = CFrame.fromEulerAnglesXYZ(0,math.pi/20,10)
- bomb.Position = Tool.Handle.Position
- bomb.Material = "Neon"
- bomb.Shape = "0"
- bomb.BrickColor = BrickColor.Red()
- bomb.Name = "Explosion"
- bomb.Anchored = true
- bomb.Parent = workspace
- local anim = Instance.new("Animation")
- anim.AnimationId = "rbxassetid://973866387"
- local playAnim = Tool.Parent.Humanoid:LoadAnimation(anim)
- playAnim:Play()
- for n = 1,20 do
- wait()
- bomb.Size = bomb.Size + Vector3.new(1,1,1)
- bomb.Transparency = bomb.Transparency + 0.01
- bomb.CanCollide = false
- end
- bomb:Destroy()
- anim:Destroy()
- Tool.GripForward = Vector3.new(-1,0,0)
- Tool.GripRight = Vector3.new(0,1,0)
- Tool.GripUp = Vector3.new(0,0,1)
- attack()
- attack()
- attack()
- attack()
- attack()
- attack()
- attack()
- attack()
- attack()
- attack()
- bomb = Instance.new("Part")
- bomb.CFrame = CFrame.fromEulerAnglesXYZ(0,math.pi/20,10)
- bomb.Position = Tool.Handle.Position
- bomb.Material = "Neon"
- bomb.Shape = "0"
- bomb.BrickColor = BrickColor.Red()
- bomb.Name = "Explosion"
- bomb.Anchored = true
- bomb.Parent = workspace
- local anim = Instance.new("Animation")
- anim.AnimationId = "rbxassetid://973866387"
- local playAnim = Tool.Parent.Humanoid:LoadAnimation(anim)
- playAnim:Play()
- for n = 1,20 do
- wait()
- bomb.Size = bomb.Size + Vector3.new(1,1,1)
- bomb.Transparency = bomb.Transparency + 0.01
- bomb.CanCollide = false
- end
- bomb:Destroy()
- anim:Destroy()
- Tool.GripForward = Vector3.new(-1,0,0)
- Tool.GripRight = Vector3.new(0,1,0)
- Tool.GripUp = Vector3.new(0,0,1)
- attack()
- attack()
- attack()
- attack()
- attack()
- attack()
- attack()
- attack()
- attack()
- attack()
- bomb = Instance.new("Part")
- bomb.CFrame = CFrame.fromEulerAnglesXYZ(0,math.pi/20,10)
- bomb.Position = Tool.Handle.Position
- bomb.Material = "Neon"
- bomb.Shape = "0"
- bomb.BrickColor = BrickColor.Red()
- bomb.Name = "Explosion"
- bomb.Anchored = true
- bomb.Parent = workspace
- local anim = Instance.new("Animation")
- anim.AnimationId = "rbxassetid://973866387"
- local playAnim = Tool.Parent.Humanoid:LoadAnimation(anim)
- playAnim:Play()
- for n = 1,20 do
- wait()
- bomb.Size = bomb.Size + Vector3.new(1,1,1)
- bomb.Transparency = bomb.Transparency + 0.01
- bomb.CanCollide = false
- end
- bomb:Destroy()
- anim:Destroy()
- Tool.GripForward = Vector3.new(-1,0,0)
- Tool.GripRight = Vector3.new(0,1,0)
- Tool.GripUp = Vector3.new(0,0,1)
- end
- end
- end))
- BodyVelocity100.Parent = Script99
- BodyVelocity100.Velocity = Vector3.new(0, 0, 0)
- BodyVelocity100.velocity = Vector3.new(0, 0, 0)
- Part101.Name = "Handle"
- Part101.Parent = Tool97
- Part101.BrickColor = BrickColor.new("Really black")
- Part101.Rotation = Vector3.new(90, 90, 0)
- Part101.CanCollide = false
- Part101.Size = Vector3.new(3.1400001, 1.898, 6.28399992)
- Part101.CFrame = CFrame.new(-7.29670906, 3.1299367, -19.070673, -6.79974422e-22, 4.49431016e-21, 1, 0.999999881, 4.72251821e-22, 6.79974523e-22, -4.7225177e-22, 1, -4.49431016e-21)
- Part101.BottomSurface = Enum.SurfaceType.Smooth
- Part101.TopSurface = Enum.SurfaceType.Smooth
- Part101.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part101.Position = Vector3.new(-7.29670906, 3.1299367, -19.070673)
- Part101.Orientation = Vector3.new(0, 90, 90)
- Part101.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Sound102.Name = "Boss"
- Sound102.Parent = Part101
- Sound102.Volume = 2
- SpecialMesh103.Parent = Part101
- SpecialMesh103.MeshId = "rbxassetid://15924243"
- SpecialMesh103.Scale = Vector3.new(2, 2, 2)
- SpecialMesh103.MeshType = Enum.MeshType.FileMesh
- SpecialMesh103.Scale = Vector3.new(2, 2, 2)
- BoolValue104.Name = "CanAttack"
- BoolValue104.Parent = Model59
- Sound105.Parent = Model59
- Sound105.SoundId = "rbxassetid://233363838"
- Sound105.Volume = 5
- Sound105.Looped = true
- Sound105:Play()
- Script106.Name = "Follow"
- Script106.Parent = Model59
- table.insert(cors,sandbox(Script106,function()
- local larm = script.Parent:FindFirstChild("Left Arm")
- local rarm = script.Parent:FindFirstChild("Right Arm")
- function findNearestTorso(pos)
- local list = game.Workspace:children()
- local torso = nil
- local dist = 455
- local temp = nil
- local human = nil
- local temp2 = nil
- for x = 1, #list do
- temp2 = list[x]
- if (temp2.className == "Model") and (temp2 ~= script.Parent) then
- temp = temp2:findFirstChild("Torso")
- human = temp2:findFirstChild("Humanoid")
- if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
- if (temp.Position - pos).magnitude < dist then
- torso = temp
- dist = (temp.Position - pos).magnitude
- end
- end
- end
- end
- return torso
- end
- while true do
- wait(0.1)
- local target = findNearestTorso(script.Parent.Torso.Position)
- if target ~= nil then
- script.Parent.Humanoid:MoveTo(target.Position, target)
- elseif script.Parent.CanAttack == false then
- script.Parent.CanAttack = true
- end
- end
- end))
- Configuration107.Name = "Pack"
- Configuration107.Parent = Model59
- Script108.Parent = Model59
- table.insert(cors,sandbox(Script108,function()
- wait(180)
- soundy = script.Parent.Sound
- for s = 1,20 do
- wait(0.1)
- soundy.Volume = soundy.Volume - 0.3
- end
- soundy.SoundId= "rbxassetid://316889671"
- for s = 1,30 do
- wait(0.1)
- soundy.Volume = soundy.Volume + 0.2
- end
- wait(2)
- soundy.SoundId= "rbxassetid://1310017688"
- bossfight2 = game.Lighting
- end))
- BillboardGui109.Parent = Model59
- BillboardGui109.Size = UDim2.new(0, 100, 0, 30)
- BillboardGui109.StudsOffset = Vector3.new(0, 5, 0)
- TextLabel110.Parent = BillboardGui109
- TextLabel110.Size = UDim2.new(1, 0, 1, 0)
- TextLabel110.Text = "Idle"
- TextLabel110.Visible = false
- TextLabel110.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel110.Font = Enum.Font.SourceSansBold
- TextLabel110.FontSize = Enum.FontSize.Size24
- StringValue111.Parent = Model59
- 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