Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- local chil = workspace:GetChildren()
- for i,v in pairs(chil) do
- if not (v==script or v:IsA("Camera") or v:IsA("Terrain") or game:GetService("Players"):GetPlayerFromCharacter(v)~=nil) then
- v:Destroy()
- end
- end
- Camera0 = Instance.new("Camera")
- Model1 = Instance.new("Model")
- Part2 = Instance.new("Part")
- UnionOperation3 = Instance.new("UnionOperation")
- Part4 = Instance.new("Part")
- Model5 = Instance.new("Model")
- UnionOperation6 = Instance.new("UnionOperation")
- Motor6D7 = Instance.new("Motor6D")
- Motor6D8 = Instance.new("Motor6D")
- Motor6D9 = Instance.new("Motor6D")
- Motor6D10 = Instance.new("Motor6D")
- Motor6D11 = Instance.new("Motor6D")
- Beam12 = Instance.new("Beam")
- Sound13 = Instance.new("Sound")
- UnionOperation14 = Instance.new("UnionOperation")
- Decal15 = Instance.new("Decal")
- BillboardGui16 = Instance.new("BillboardGui")
- TextLabel17 = Instance.new("TextLabel")
- TextLabel18 = Instance.new("TextLabel")
- Script19 = Instance.new("Script")
- Part20 = Instance.new("Part")
- Motor6D21 = Instance.new("Motor6D")
- Sound22 = Instance.new("Sound")
- Sound23 = Instance.new("Sound")
- Sound24 = Instance.new("Sound")
- Sound25 = Instance.new("Sound")
- Sound26 = Instance.new("Sound")
- Sound27 = Instance.new("Sound")
- Sound28 = Instance.new("Sound")
- Sound29 = Instance.new("Sound")
- Sound30 = Instance.new("Sound")
- Sound31 = Instance.new("Sound")
- Sound32 = Instance.new("Sound")
- MeshPart33 = Instance.new("MeshPart")
- MeshPart34 = Instance.new("MeshPart")
- MeshPart35 = Instance.new("MeshPart")
- MeshPart36 = Instance.new("MeshPart")
- Script37 = Instance.new("Script")
- Sound38 = Instance.new("Sound")
- MeshPart39 = Instance.new("MeshPart")
- Weld40 = Instance.new("Weld")
- MeshPart41 = Instance.new("MeshPart")
- Weld42 = Instance.new("Weld")
- Humanoid43 = Instance.new("Humanoid")
- Part44 = Instance.new("Part")
- SpecialMesh45 = Instance.new("SpecialMesh")
- Model46 = Instance.new("Model")
- SpawnLocation47 = Instance.new("SpawnLocation")
- Decal48 = Instance.new("Decal")
- SpawnLocation49 = Instance.new("SpawnLocation")
- Decal50 = Instance.new("Decal")
- SpawnLocation51 = Instance.new("SpawnLocation")
- Decal52 = Instance.new("Decal")
- Part53 = Instance.new("Part")
- SpawnLocation54 = Instance.new("SpawnLocation")
- Decal55 = Instance.new("Decal")
- SpawnLocation56 = Instance.new("SpawnLocation")
- Decal57 = Instance.new("Decal")
- SpawnLocation58 = Instance.new("SpawnLocation")
- Decal59 = Instance.new("Decal")
- Part60 = Instance.new("Part")
- Part61 = Instance.new("Part")
- SpawnLocation62 = Instance.new("SpawnLocation")
- Decal63 = Instance.new("Decal")
- SpawnLocation64 = Instance.new("SpawnLocation")
- Decal65 = Instance.new("Decal")
- Part66 = Instance.new("Part")
- SpawnLocation67 = Instance.new("SpawnLocation")
- Decal68 = Instance.new("Decal")
- Camera0.Parent = mas
- Camera0.CFrame = CFrame.new(46.878933, 19.3350315, -48.1704102, -0.117004655, -0.42346862, 0.898323119, -3.7252903e-09, 0.904536128, 0.426397353, -0.993131459, 0.0498904735, -0.105834916)
- Camera0.CoordinateFrame = CFrame.new(46.878933, 19.3350315, -48.1704102, -0.117004655, -0.42346862, 0.898323119, -3.7252903e-09, 0.904536128, 0.426397353, -0.993131459, 0.0498904735, -0.105834916)
- Camera0.Focus = CFrame.new(10.2748413, 1.96056199, -43.8579407, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Camera0.focus = CFrame.new(10.2748413, 1.96056199, -43.8579407, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Model1.Parent = mas
- Part2.Parent = Model1
- Part2.CFrame = CFrame.new(-9.97735596, 4.67629385, -32.2881622, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part2.Position = Vector3.new(-9.97735596, 4.67629385, -32.2881622)
- Part2.Color = Color3.new(0, 0, 1)
- Part2.Transparency = 1
- Part2.Size = Vector3.new(11.8312006, 21.6499958, 12.28965)
- Part2.Anchored = true
- Part2.BottomSurface = Enum.SurfaceType.Smooth
- Part2.BrickColor = BrickColor.new("Really blue")
- Part2.TopSurface = Enum.SurfaceType.Smooth
- Part2.brickColor = BrickColor.new("Really blue")
- UnionOperation3.Parent = Model1
- UnionOperation3.CFrame = CFrame.new(-10.0993462, 4.67834091, -31.2852325, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- UnionOperation3.Orientation = Vector3.new(0, 90, 0)
- UnionOperation3.Position = Vector3.new(-10.0993462, 4.67834091, -31.2852325)
- UnionOperation3.Rotation = Vector3.new(0, 90, 0)
- UnionOperation3.Color = Color3.new(0, 0, 1)
- UnionOperation3.Size = Vector3.new(78.035202, 28.0076447, 76.9837036)
- UnionOperation3.BrickColor = BrickColor.new("Really blue")
- UnionOperation3.CanCollide = false
- UnionOperation3.brickColor = BrickColor.new("Really blue")
- Part4.Parent = Model1
- Part4.CFrame = CFrame.new(-9.60234833, -6.71868181, -31.7431183, 0, -1, 0, 1, 0, -0, 0, 0, 1)
- Part4.Orientation = Vector3.new(0, 0, 90)
- Part4.Position = Vector3.new(-9.60234833, -6.71868181, -31.7431183)
- Part4.Rotation = Vector3.new(0, 0, 90)
- Part4.Transparency = 1
- Part4.Size = Vector3.new(2.05412745, 77.9478531, 77.9478531)
- Part4.Anchored = true
- Part4.BottomSurface = Enum.SurfaceType.Smooth
- Part4.Material = Enum.Material.SmoothPlastic
- Part4.TopSurface = Enum.SurfaceType.Smooth
- Part4.Shape = Enum.PartType.Cylinder
- Model5.Name = "Joofil"
- Model5.Parent = mas
- Model5.PrimaryPart = Part20
- UnionOperation6.Name = "Torso"
- UnionOperation6.Parent = Model5
- UnionOperation6.CFrame = CFrame.new(-18.0134163, -2.58869219, -45.6248856, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- UnionOperation6.Position = Vector3.new(-18.0134163, -2.58869219, -45.6248856)
- UnionOperation6.Color = Color3.new(0.129412, 0.329412, 0.72549)
- UnionOperation6.Size = Vector3.new(2.00003052, 2.00002933, 1.00000763)
- UnionOperation6.BrickColor = BrickColor.new("Deep blue")
- UnionOperation6.Material = Enum.Material.SmoothPlastic
- UnionOperation6.brickColor = BrickColor.new("Deep blue")
- UnionOperation6.UsePartColor = true
- Motor6D7.Name = "Head"
- Motor6D7.Parent = UnionOperation6
- Motor6D7.C1 = CFrame.new(-3.9100647e-05, -1.49995828, 2.28881836e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D7.Part0 = UnionOperation6
- Motor6D7.Part1 = UnionOperation14
- Motor6D7.part1 = UnionOperation14
- Motor6D8.Name = "RArm"
- Motor6D8.Parent = UnionOperation6
- Motor6D8.C1 = CFrame.new(-1.50003719, 0.000101089478, 2.28881836e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D8.Part0 = UnionOperation6
- Motor6D8.Part1 = MeshPart34
- Motor6D8.part1 = MeshPart34
- Motor6D9.Name = "LArm"
- Motor6D9.Parent = UnionOperation6
- Motor6D9.C1 = CFrame.new(1.49996281, 0.000101089478, 2.28881836e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D9.Part0 = UnionOperation6
- Motor6D9.Part1 = MeshPart33
- Motor6D9.part1 = MeshPart33
- Motor6D10.Name = "RLeg"
- Motor6D10.Parent = UnionOperation6
- Motor6D10.C1 = CFrame.new(-0.500037193, 2.00010109, 2.28881836e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D10.Part0 = UnionOperation6
- Motor6D10.Part1 = MeshPart35
- Motor6D10.part1 = MeshPart35
- Motor6D11.Name = "LLeg"
- Motor6D11.Parent = UnionOperation6
- Motor6D11.C1 = CFrame.new(0.499962807, 2.00010109, 2.28881836e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D11.Part0 = UnionOperation6
- Motor6D11.Part1 = MeshPart36
- Motor6D11.part1 = MeshPart36
- Beam12.Name = "Neck"
- Beam12.Parent = UnionOperation6
- Beam12.Attachment0 = nil
- Beam12.Attachment1 = nil
- Beam12.FaceCamera = true
- Beam12.LightEmission = 1
- Beam12.LightInfluence = 1
- Beam12.Segments = 50
- Beam12.Texture = "rbxassetid://1134824633"
- Beam12.TextureLength = 5
- Beam12.TextureMode = Enum.TextureMode.Static
- Beam12.TextureSpeed = 2
- Beam12.Transparency = NumberSequence.new(0.20000000298023,0.20000000298023)
- Beam12.Width0 = 0.5
- Beam12.Width1 = 0.5
- Sound13.Name = "Die"
- Sound13.Parent = UnionOperation6
- Sound13.MaxDistance = 300
- Sound13.EmitterSize = 35
- Sound13.MinDistance = 35
- Sound13.SoundId = "rbxassetid://2150821806"
- Sound13.Volume = 2
- UnionOperation14.Name = "Head"
- UnionOperation14.Parent = Model5
- UnionOperation14.CFrame = CFrame.new(-18.0133781, -1.08873391, -45.6249084, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- UnionOperation14.Position = Vector3.new(-18.0133781, -1.08873391, -45.6249084)
- UnionOperation14.Color = Color3.new(0.937255, 0.721569, 0.219608)
- UnionOperation14.Size = Vector3.new(1.20000005, 1.20000005, 1.20000005)
- UnionOperation14.BrickColor = BrickColor.new("Gold")
- UnionOperation14.Material = Enum.Material.SmoothPlastic
- UnionOperation14.brickColor = BrickColor.new("Gold")
- UnionOperation14.UsePartColor = true
- Decal15.Name = "Smile"
- Decal15.Parent = UnionOperation14
- Decal15.Texture = "http://www.roblox.com/asset/?id=288072938"
- BillboardGui16.Name = "Nametag"
- BillboardGui16.Parent = UnionOperation14
- BillboardGui16.Size = UDim2.new(4, 0, 4, 0)
- BillboardGui16.AlwaysOnTop = true
- BillboardGui16.StudsOffset = Vector3.new(0, 2, 0)
- TextLabel17.Name = "Title"
- TextLabel17.Parent = BillboardGui16
- TextLabel17.Size = UDim2.new(1, 0, 0.25, 0)
- TextLabel17.BackgroundColor = BrickColor.new("Institutional white")
- TextLabel17.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel17.BackgroundTransparency = 1
- TextLabel17.BorderSizePixel = 0
- TextLabel17.ClipsDescendants = true
- TextLabel17.Font = Enum.Font.Fantasy
- TextLabel17.FontSize = Enum.FontSize.Size14
- TextLabel17.Text = "Joofil"
- TextLabel17.TextColor = BrickColor.new("Institutional white")
- TextLabel17.TextColor3 = Color3.new(1, 1, 1)
- TextLabel17.TextScaled = true
- TextLabel17.TextSize = 14
- TextLabel17.TextWrap = true
- TextLabel17.TextWrapped = true
- TextLabel18.Name = "HP"
- TextLabel18.Parent = BillboardGui16
- TextLabel18.Position = UDim2.new(0, 0, 0.25, 0)
- TextLabel18.Size = UDim2.new(1, 0, 0.100000001, 0)
- TextLabel18.BackgroundColor = BrickColor.new("Institutional white")
- TextLabel18.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel18.BackgroundTransparency = 1
- TextLabel18.BorderSizePixel = 0
- TextLabel18.ClipsDescendants = true
- TextLabel18.Font = Enum.Font.Fantasy
- TextLabel18.FontSize = Enum.FontSize.Size48
- TextLabel18.Text = "0/0"
- TextLabel18.TextColor = BrickColor.new("Mint")
- TextLabel18.TextColor3 = Color3.new(0.686275, 1, 0.686275)
- TextLabel18.TextScaled = true
- TextLabel18.TextSize = 45
- TextLabel18.TextWrap = true
- TextLabel18.TextWrapped = true
- Script19.Parent = BillboardGui16
- table.insert(cors,sandbox(Script19,function()
- wait(0.05)
- Humanoid = script.Parent.Parent.Parent:FindFirstChildOfClass("Humanoid")
- script.Parent.HP.Text = math.ceil(Humanoid.Health).."/"..Humanoid.MaxHealth
- Humanoid.Changed:connect(function()
- if Humanoid.Health > Humanoid.MaxHealth/2 then
- script.Parent.HP.TextColor3 = Color3.new(175/255,1,175/255)
- end
- if Humanoid.Health > Humanoid.MaxHealth then
- script.Parent.HP.TextColor3 = Color3.new(175/255,1,225/255)
- end
- if Humanoid.Health > Humanoid.MaxHealth * 1.5 then
- script.Parent.HP.TextColor3 = Color3.new(175/255,1,1)
- end
- if Humanoid.Health > Humanoid.MaxHealth * 3 then
- script.Parent.HP.TextColor3 = Color3.new(175/255,220/255,1)
- end
- if Humanoid.Health > Humanoid.MaxHealth * 10 then
- script.Parent.HP.TextColor3 = Color3.new(175/255,175/255,1)
- end
- if Humanoid.Health < Humanoid.MaxHealth/2 then
- script.Parent.HP.TextColor3 = Color3.new(210/255,1,175/255)
- end
- if Humanoid.Health < Humanoid.MaxHealth/2.5 then
- script.Parent.HP.TextColor3 = Color3.new(230/255,1,175/255)
- end
- if Humanoid.Health < Humanoid.MaxHealth/3 then
- script.Parent.HP.TextColor3 = Color3.new(1,1,175/255)
- end
- if Humanoid.Health < Humanoid.MaxHealth/5 then
- script.Parent.HP.TextColor3 = Color3.new(1,225/255,175/255)
- end
- if Humanoid.Health < Humanoid.MaxHealth/7.5 then
- script.Parent.HP.TextColor3 = Color3.new(1,200/255,175/255)
- end
- if Humanoid.Health < Humanoid.MaxHealth/10 then
- script.Parent.HP.TextColor3 = Color3.new(1,175/255,175/255)
- end
- if Humanoid.Health == 0 then
- script.Parent.HP.Text = "Dead"
- else
- script.Parent.HP.Text = math.ceil(Humanoid.Health).."/"..Humanoid.MaxHealth
- end
- if Humanoid.Health == math.huge then
- script.Parent.HP.Text = "Godded"
- script.Parent.HP.TextColor3 = Color3.new(175/255,175/255,175/255)
- end
- end)
- end))
- Part20.Name = "HumanoidRootPart"
- Part20.Parent = Model5
- Part20.CFrame = CFrame.new(-18.0133781, -2.58873391, -45.6249084, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part20.Position = Vector3.new(-18.0133781, -2.58873391, -45.6249084)
- Part20.Color = Color3.new(0.937255, 0.721569, 0.219608)
- Part20.Transparency = 1
- Part20.Size = Vector3.new(2, 2, 1)
- Part20.Anchored = true
- Part20.BottomSurface = Enum.SurfaceType.Smooth
- Part20.BrickColor = BrickColor.new("Gold")
- Part20.Material = Enum.Material.SmoothPlastic
- Part20.TopSurface = Enum.SurfaceType.Smooth
- Part20.brickColor = BrickColor.new("Gold")
- Motor6D21.Name = "Root"
- Motor6D21.Parent = Part20
- Motor6D21.C1 = CFrame.new(3.9100647e-05, -4.17232513e-05, -2.28881836e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D21.Part0 = Part20
- Motor6D21.Part1 = UnionOperation6
- Motor6D21.part1 = UnionOperation6
- Sound22.Name = "Chuckle"
- Sound22.Parent = Part20
- Sound22.MaxDistance = 300
- Sound22.EmitterSize = 35
- Sound22.MinDistance = 35
- Sound22.SoundId = "rbxassetid://2545010175"
- Sound22.Volume = 5
- Sound23.Name = "ByeBye"
- Sound23.Parent = Part20
- Sound23.MaxDistance = 300
- Sound23.EmitterSize = 35
- Sound23.MinDistance = 35
- Sound23.SoundId = "rbxassetid://2545211516"
- Sound23.Volume = 5
- Sound24.Name = "ChaosChaos"
- Sound24.Parent = Part20
- Sound24.MaxDistance = 300
- Sound24.EmitterSize = 35
- Sound24.MinDistance = 35
- Sound24.SoundId = "rbxassetid://2545008459"
- Sound24.Volume = 5
- Sound25.Name = "Ha2"
- Sound25.Parent = Part20
- Sound25.MaxDistance = 300
- Sound25.EmitterSize = 35
- Sound25.MinDistance = 35
- Sound25.SoundId = "rbxassetid://2606662454"
- Sound25.Volume = 5
- Sound26.Name = "Ha1"
- Sound26.Parent = Part20
- Sound26.MaxDistance = 300
- Sound26.EmitterSize = 35
- Sound26.MinDistance = 35
- Sound26.SoundId = "rbxassetid://2606661976"
- Sound26.Volume = 5
- Sound27.Name = "Neo"
- Sound27.Parent = Part20
- Sound27.MaxDistance = 300
- Sound27.EmitterSize = 35
- Sound27.MinDistance = 35
- Sound27.SoundId = "rbxassetid://2545018472"
- Sound27.Volume = 5
- Sound28.Name = "MeDoAnything"
- Sound28.Parent = Part20
- Sound28.MaxDistance = 300
- Sound28.EmitterSize = 35
- Sound28.MinDistance = 35
- Sound28.SoundId = "rbxassetid://2544975373"
- Sound28.Volume = 5
- Sound29.Name = "OH"
- Sound29.Parent = Part20
- Sound29.MaxDistance = 300
- Sound29.EmitterSize = 35
- Sound29.MinDistance = 35
- Sound29.SoundId = "rbxassetid://2545012765"
- Sound29.Volume = 5
- Sound30.Name = "Laugh"
- Sound30.Parent = Part20
- Sound30.MaxDistance = 300
- Sound30.EmitterSize = 35
- Sound30.MinDistance = 35
- Sound30.SoundId = "rbxassetid://2545211765"
- Sound30.Volume = 5
- Sound31.Name = "Metamorph"
- Sound31.Parent = Part20
- Sound31.MaxDistance = 300
- Sound31.EmitterSize = 35
- Sound31.MinDistance = 35
- Sound31.SoundId = "rbxassetid://2545011398"
- Sound31.Volume = 5
- Sound32.Name = "Deathed"
- Sound32.Parent = Part20
- Sound32.MaxDistance = 300
- Sound32.EmitterSize = 35
- Sound32.MinDistance = 35
- Sound32.SoundId = "rbxassetid://2637401925"
- Sound32.Volume = 2
- MeshPart33.Name = "Left Arm"
- MeshPart33.Parent = Model5
- MeshPart33.CFrame = CFrame.new(-19.5133781, -2.58879328, -45.6249084, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- MeshPart33.Position = Vector3.new(-19.5133781, -2.58879328, -45.6249084)
- MeshPart33.Color = Color3.new(0.937255, 0.721569, 0.219608)
- MeshPart33.Size = Vector3.new(1.00004005, 2.00002551, 1)
- MeshPart33.BrickColor = BrickColor.new("Gold")
- MeshPart33.Material = Enum.Material.SmoothPlastic
- MeshPart33.brickColor = BrickColor.new("Gold")
- MeshPart34.Name = "Right Arm"
- MeshPart34.Parent = Model5
- MeshPart34.CFrame = CFrame.new(-16.5133781, -2.58879328, -45.6249084, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- MeshPart34.Position = Vector3.new(-16.5133781, -2.58879328, -45.6249084)
- MeshPart34.Color = Color3.new(0.937255, 0.721569, 0.219608)
- MeshPart34.Size = Vector3.new(1.00004005, 2.00002551, 1)
- MeshPart34.BrickColor = BrickColor.new("Gold")
- MeshPart34.Material = Enum.Material.SmoothPlastic
- MeshPart34.brickColor = BrickColor.new("Gold")
- MeshPart35.Name = "Right Leg"
- MeshPart35.Parent = Model5
- MeshPart35.CFrame = CFrame.new(-17.5133781, -4.58879328, -45.6249084, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- MeshPart35.Position = Vector3.new(-17.5133781, -4.58879328, -45.6249084)
- MeshPart35.Color = Color3.new(0.294118, 0.592157, 0.294118)
- MeshPart35.Size = Vector3.new(1.00004005, 2.00002551, 1)
- MeshPart35.BrickColor = BrickColor.new("Bright green")
- MeshPart35.Material = Enum.Material.SmoothPlastic
- MeshPart35.brickColor = BrickColor.new("Bright green")
- MeshPart36.Name = "Left Leg"
- MeshPart36.Parent = Model5
- MeshPart36.CFrame = CFrame.new(-18.5133781, -4.58879328, -45.6249084, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- MeshPart36.Position = Vector3.new(-18.5133781, -4.58879328, -45.6249084)
- MeshPart36.Color = Color3.new(0.294118, 0.592157, 0.294118)
- MeshPart36.Size = Vector3.new(1.00004005, 2.00002551, 1)
- MeshPart36.BrickColor = BrickColor.new("Bright green")
- MeshPart36.Material = Enum.Material.SmoothPlastic
- MeshPart36.brickColor = BrickColor.new("Bright green")
- Script37.Name = "REOOFING"
- Script37.Parent = Model5
- table.insert(cors,sandbox(Script37,function()
- IT = Instance.new
- CF = CFrame.new
- VT = Vector3.new
- RAD = math.rad
- C3 = Color3.new
- UD2 = UDim2.new
- BRICKC = BrickColor.new
- ANGLES = CFrame.Angles
- EULER = CFrame.fromEulerAnglesXYZ
- COS = math.cos
- ACOS = math.acos
- SIN = math.sin
- ASIN = math.asin
- ABS = math.abs
- MRANDOM = math.random
- FLOOR = math.floor
- local GYRO = nil
- local CHARACTER = script.Parent
- local HUMANOID = CHARACTER:FindFirstChildOfClass("Humanoid")
- local TORSO = CHARACTER.Torso
- local ROOT = CHARACTER.HumanoidRootPart
- local RIGHTARM = CHARACTER["Right Arm"]
- local LEFTARM = CHARACTER["Left Arm"]
- local RIGHTLEG = CHARACTER["Right Leg"]
- local LEFTLEG = CHARACTER["Left Leg"]
- RootJoint = ROOT["Root"]
- Neck = TORSO["Head"]
- RightShoulder = TORSO["RArm"]
- LeftShoulder = TORSO["LArm"]
- RightHip = TORSO["RLeg"]
- LeftHip = TORSO["LLeg"]
- local BODY = {}
- local CHAIR = CHARACTER.Wheelchair
- for index, CHILD in pairs(CHARACTER:GetDescendants()) do
- if (CHILD:IsA("BasePart") or CHILD:IsA("Decal") or CHILD:IsA("Beam")) and CHILD ~= ROOT and CHILD ~= CHAIR then
- table.insert(BODY,CHILD)
- end
- end
- local ATTACKING = false
- if script:FindFirstChild("Color") then
- script.Color.Parent = game.Lighting
- end
- local HIT = false
- local MUSIC = script.Music
- local DEAD = false
- MUSIC:Play()
- local CLUBSMESH = 2761335666
- local DIAMONDMESH = 1254392112
- local SPADEMESH = 2760895053
- local HEARTMESH = 105992239 --VT(3.5,3.5,3.5)
- local SCYTHEMESH = 455516381
- local SINE = 0
- local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
- Debris = game:GetService("Debris")
- local Effects = IT("Folder",CHARACTER)
- --//=================================\\
- --|| SAZERENOS' ARTIFICIAL HEARTBEAT
- --\\=================================//
- ArtificialHB = Instance.new("BindableEvent", script)
- ArtificialHB.Name = "ArtificialHB"
- script:WaitForChild("ArtificialHB")
- frame = 1/60
- tf = 0
- allowframeloss = false
- tossremainder = false
- lastframe = tick()
- script.ArtificialHB:Fire()
- game:GetService("RunService").Heartbeat:connect(function(s, p)
- tf = tf + s
- if tf >= frame then
- if allowframeloss then
- script.ArtificialHB:Fire()
- lastframe = tick()
- else
- for i = 1, math.floor(tf / frame) do
- script.ArtificialHB:Fire()
- end
- lastframe = tick()
- end
- if tossremainder then
- tf = 0
- else
- tf = tf - frame * math.floor(tf / frame)
- end
- end
- end)
- function PositiveAngle(NUMBER)
- if NUMBER >= 0 then
- NUMBER = 0
- end
- return NUMBER
- end
- function NegativeAngle(NUMBER)
- if NUMBER <= 0 then
- NUMBER = 0
- end
- return NUMBER
- end
- function Swait(NUMBER)
- if NUMBER == 0 or NUMBER == nil then
- ArtificialHB.Event:wait()
- else
- for i = 1, NUMBER do
- ArtificialHB.Event:wait()
- end
- end
- end
- --//=================================\\
- --|| FUNCTIONS
- --\\=================================//
- function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
- local NEWMESH = IT(MESH)
- if MESH == "SpecialMesh" then
- NEWMESH.MeshType = MESHTYPE
- if MESHID ~= "nil" and MESHID ~= "" then
- NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
- end
- if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
- NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
- end
- end
- NEWMESH.Offset = OFFSET or VT(0, 0, 0)
- NEWMESH.Scale = SCALE
- NEWMESH.Parent = PARENT
- return NEWMESH
- end
- function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
- local NEWPART = IT("Part")
- NEWPART.formFactor = FORMFACTOR
- NEWPART.Reflectance = REFLECTANCE
- NEWPART.Transparency = TRANSPARENCY
- NEWPART.CanCollide = false
- NEWPART.Locked = true
- NEWPART.Anchored = true
- if ANCHOR == false then
- NEWPART.Anchored = false
- end
- NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
- NEWPART.Name = NAME
- NEWPART.Size = SIZE
- NEWPART.Position = TORSO.Position
- NEWPART.Material = MATERIAL
- NEWPART:BreakJoints()
- NEWPART.Parent = PARENT
- return NEWPART
- end
- local function weldBetween(a, b)
- local weldd = IT("ManualWeld")
- weldd.Part0 = a
- weldd.Part1 = b
- weldd.C0 = CF()
- weldd.C1 = b.CFrame:inverse() * a.CFrame
- weldd.Parent = a
- return weldd
- end
- local S = IT("Sound")
- function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
- local NEWSOUND = nil
- coroutine.resume(coroutine.create(function()
- NEWSOUND = S:Clone()
- NEWSOUND.Parent = PARENT
- NEWSOUND.Volume = VOLUME
- NEWSOUND.Pitch = PITCH
- NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
- NEWSOUND:play()
- if DOESLOOP == true then
- NEWSOUND.Looped = true
- else
- repeat wait(1) until NEWSOUND.Playing == false
- NEWSOUND:remove()
- end
- end))
- return NEWSOUND
- end
- function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
- return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
- end
- function ApplyDamage(Humanoid,Damage)
- Damage = Damage * 1
- if Humanoid.Health ~= 0 then
- Humanoid.Health = Humanoid.Health - Damage
- end
- end
- function ApplyAoE(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL)
- for index, CHILD in pairs(workspace:GetDescendants()) do
- if CHILD.ClassName == "Model" and CHILD ~= CHARACTER then
- local HUM = CHILD:FindFirstChildOfClass("Humanoid")
- if HUM then
- local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
- if TORSO then
- if (TORSO.Position - POSITION).Magnitude <= RANGE then
- if INSTAKILL == true then
- CHILD:BreakJoints()
- else
- local DMG = MRANDOM(MINDMG,MAXDMG)
- ApplyDamage(HUM,DMG)
- end
- if FLING > 0 then
- for _, c in pairs(CHILD:GetChildren()) do
- if c:IsA("BasePart") then
- local bv = Instance.new("BodyVelocity")
- bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
- bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
- bv.Parent = c
- Debris:AddItem(bv,0.05)
- end
- end
- end
- end
- end
- end
- end
- end
- end
- --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- function WACKYEFFECT(Table)
- local TYPE = (Table.EffectType or "Sphere")
- local SIZE = (Table.Size or VT(1,1,1))
- local ENDSIZE = (Table.Size2 or VT(0,0,0))
- local TRANSPARENCY = (Table.Transparency or 0)
- local ENDTRANSPARENCY = (Table.Transparency2 or 1)
- local CFRAME = (Table.CFrame or TORSO.CFrame)
- local MOVEDIRECTION = (Table.MoveToPos or nil)
- local ROTATION1 = (Table.RotationX or 0)
- local ROTATION2 = (Table.RotationY or 0)
- local ROTATION3 = (Table.RotationZ or 0)
- local MATERIAL = (Table.Material or "Neon")
- local COLOR = (Table.Color or C3(1,1,1))
- local TIME = (Table.Time or 45)
- local SOUNDID = (Table.SoundID or nil)
- local SOUNDPITCH = (Table.SoundPitch or nil)
- local SOUNDVOLUME = (Table.SoundVolume or nil)
- coroutine.resume(coroutine.create(function()
- local PLAYSSOUND = false
- local SOUND = nil
- local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
- if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
- PLAYSSOUND = true
- SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
- end
- EFFECT.Color = COLOR
- local MSH = nil
- if TYPE == "Sphere" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
- elseif TYPE == "Block" or TYPE == "Box" then
- MSH = IT("BlockMesh",EFFECT)
- MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
- elseif TYPE == "Wave" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
- elseif TYPE == "Ring" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
- elseif TYPE == "Slash" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
- elseif TYPE == "Round Slash" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
- elseif TYPE == "Swirl" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
- elseif TYPE == "Skull" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
- elseif TYPE == "Crystal" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
- end
- if MSH ~= nil then
- local MOVESPEED = nil
- if MOVEDIRECTION ~= nil then
- MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
- end
- local GROWTH = SIZE - ENDSIZE
- local TRANS = TRANSPARENCY - ENDTRANSPARENCY
- if TYPE == "Block" then
- EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
- else
- EFFECT.CFrame = CFRAME
- end
- for LOOP = 1, TIME+1 do
- Swait()
- MSH.Scale = MSH.Scale - GROWTH/TIME
- if TYPE == "Wave" then
- MSH.Offset = VT(0,0,-MSH.Scale.X/8)
- end
- EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
- if TYPE == "Block" then
- EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
- else
- EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
- end
- if MOVEDIRECTION ~= nil then
- local ORI = EFFECT.Orientation
- EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
- EFFECT.Orientation = ORI
- end
- end
- if PLAYSSOUND == false then
- EFFECT:remove()
- else
- repeat Swait() until SOUND.Playing == false
- EFFECT:remove()
- end
- else
- if PLAYSSOUND == false then
- EFFECT:remove()
- else
- repeat Swait() until SOUND.Playing == false
- EFFECT:remove()
- end
- end
- end))
- end
- function Transparent(CY)
- for E = 1, #BODY do
- if BODY[E].ClassName ~= "Beam" then
- BODY[E].Transparency = CY
- else
- BODY[E].Transparency = NumberSequence.new(CY)
- end
- end
- end
- --//=================================\\
- --|| CLERPING
- --\\=================================//
- function QuaternionFromCFrame(cf)
- local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
- local trace = m00 + m11 + m22
- if trace > 0 then
- local s = math.sqrt(1 + trace)
- local recip = 0.5 / s
- return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
- else
- local i = 0
- if m11 > m00 then
- i = 1
- end
- if m22 > (i == 0 and m00 or m11) then
- i = 2
- end
- if i == 0 then
- local s = math.sqrt(m00 - m11 - m22 + 1)
- local recip = 0.5 / s
- return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
- elseif i == 1 then
- local s = math.sqrt(m11 - m22 - m00 + 1)
- local recip = 0.5 / s
- return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
- elseif i == 2 then
- local s = math.sqrt(m22 - m00 - m11 + 1)
- local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
- end
- end
- end
- function QuaternionToCFrame(px, py, pz, x, y, z, w)
- local xs, ys, zs = x + x, y + y, z + z
- local wx, wy, wz = w * xs, w * ys, w * zs
- local xx = x * xs
- local xy = x * ys
- local xz = x * zs
- local yy = y * ys
- local yz = y * zs
- local zz = z * zs
- return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
- end
- function QuaternionSlerp(a, b, t)
- local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
- local startInterp, finishInterp;
- if cosTheta >= 0.0001 then
- if (1 - cosTheta) > 0.0001 then
- local theta = ACOS(cosTheta)
- local invSinTheta = 1 / SIN(theta)
- startInterp = SIN((1 - t) * theta) * invSinTheta
- finishInterp = SIN(t * theta) * invSinTheta
- else
- startInterp = 1 - t
- finishInterp = t
- end
- else
- if (1 + cosTheta) > 0.0001 then
- local theta = ACOS(-cosTheta)
- local invSinTheta = 1 / SIN(theta)
- startInterp = SIN((t - 1) * theta) * invSinTheta
- finishInterp = SIN(t * theta) * invSinTheta
- else
- startInterp = t - 1
- finishInterp = t
- end
- end
- return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
- end
- function Clerp(a, b, t)
- local qa = {QuaternionFromCFrame(a)}
- local qb = {QuaternionFromCFrame(b)}
- local ax, ay, az = a.x, a.y, a.z
- local bx, by, bz = b.x, b.y, b.z
- local _t = 1 - t
- return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
- end
- function ClerpBody(TABLE,PRIORITY)
- if PRIORITY == "Attack" or ATTACKING == false then
- RootJoint.C1 = Clerp(RootJoint.C1, TABLE[1], 0.35)
- if HIT == false then
- Neck.C1 = Clerp(Neck.C1, TABLE[2], 0.35)
- end
- RightShoulder.C1 = Clerp(RightShoulder.C1, TABLE[3], 0.35)
- LeftShoulder.C1 = Clerp(LeftShoulder.C1, TABLE[4], 0.35)
- RightHip.C1 = Clerp(RightHip.C1, TABLE[5], 0.35)
- LeftHip.C1 = Clerp(LeftHip.C1, TABLE[6], 0.35)
- end
- end
- --//=================================\\
- --|| ATRIFICIAL INTELLIGENCE
- --\\=================================//
- local GoTo = function(TO)
- CHARACTER:SetPrimaryPartCFrame(Clerp(ROOT.CFrame,CF(ROOT.Position,TO),0.5)*CF(0,0,-HUMANOID.WalkSpeed/32))
- CHARACTER:SetPrimaryPartCFrame(CF(ROOT.Position)*ANGLES(0,RAD(ROOT.Orientation.Y),0))
- end
- function TestForTarget(PRT,target)
- local to = true
- if PRT then
- if PRT:FindFirstAncestorOfClass("Model") == target.Parent then
- to = false
- end
- end
- return to
- end
- function ChaosOrAnything()
- local PLAY = {ROOT.MeDoAnything,ROOT.ChaosChaos}
- PLAY[MRANDOM(1,2)]:Play()
- end
- function OhOhOh(TARGET)
- local FOE = TARGET.Torso
- if FOE then
- ATTACKING = true
- ChaosOrAnything()
- local E = 0
- repeat
- Swait()
- E = E + 1
- ClerpBody({
- CF(0,-E/25,0)*ANGLES(RAD(0),RAD(0),RAD(0)),
- CF(0,-0.5,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(0,-1,0),
- CF(0,0.5,0)*ANGLES(RAD(-120),RAD(0),RAD(35))*CF(-1.5,-0.5,0),
- CF(0,0.5,0)*ANGLES(RAD(-120),RAD(0),RAD(-35))*CF(1.5,-0.5,0),
- CF(-0,0.5,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(-0.5,1,0.5),
- CF(0,0.5,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(0.5,0.9,0.5),
- },"Attack")
- until ROOT.ChaosChaos.Playing == false and ROOT.MeDoAnything.Playing == false
- for i = 1, MRANDOM(3,5) do
- local TO = FOE.Position
- local MOVETO = CF(FOE.Position+VT(0,1,0))*ANGLES(0,RAD(MRANDOM(0,359)),0)*CF(0,0,15)
- CHARACTER:SetPrimaryPartCFrame(MOVETO)
- Transparent(0)
- ROOT.OH:Play()
- for i = 1, 5 do
- ClerpBody({
- CF(0,0,0)*ANGLES(RAD(0),RAD(0),RAD(0)),
- CF(0,-0.5,0)*ANGLES(RAD(5),RAD(0),RAD(0))*CF(0,-1,0),
- CF(0,0.5,0)*ANGLES(RAD(-75),RAD(0),RAD(-35))*CF(-1.5,-0.5,0),
- CF(0,0.5,0)*ANGLES(RAD(-75),RAD(0),RAD(35))*CF(1.5,-0.5,0),
- CF(-0,0.5,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(-0.5,1,0.5),
- CF(0,0.5,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(0.5,0.9,0.5),
- },"Attack")
- end
- for i = 1, 3 do
- local ANGLE = (50-(25*i))/1.25
- coroutine.resume(coroutine.create(function()
- local TOFIREFROM = ROOT.CFrame*ANGLES(0,RAD(ANGLE),0)
- local CLUB = CreatePart(3, workspace, "Granite", 0, 0, TORSO.BrickColor, "Spade", VT(1.5,0.5,1.5), false)
- CreateMesh("SpecialMesh", CLUB, "FileMesh", CLUBSMESH, "", VT(0.75,0.75,0.75), VT(0,0,0))
- CLUB.CFrame = TOFIREFROM
- local GO = IT("BodyVelocity",CLUB)
- GO.Velocity = CLUB.CFrame.lookVector*65
- Debris:AddItem(CLUB,1)
- CLUB.Touched:Connect(function(HIT)
- if HIT.Parent:FindFirstChildOfClass("Humanoid") and HIT.Parent ~= CHARACTER then
- CLUB:Remove()
- CreateSound(410625063, HIT.Parent:FindFirstChildOfClass("Humanoid").Torso, 2, 1, false)
- HIT.Parent:FindFirstChildOfClass("Humanoid").Health = HIT.Parent:FindFirstChildOfClass("Humanoid").Health - 10
- end
- end)
- end))
- end
- for i = 1, 35 do
- Swait()
- ClerpBody({
- CF(0,-i/350,0)*ANGLES(RAD(0),RAD(0),RAD(0)),
- CF(0,-0.5,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(0,-1,0),
- CF(0,0.5,0)*ANGLES(RAD(-120),RAD(0),RAD(35))*CF(-1.5,-0.5,0),
- CF(0,0.5,0)*ANGLES(RAD(-120),RAD(0),RAD(-35))*CF(1.5,-0.5,0),
- CF(-0,0.5,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(-0.5,1,0.5),
- CF(0,0.5,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(0.5,0.9,0.5),
- },"Attack")
- Transparent(i/35)
- end
- if TARGET.Health <= 0 or DEAD == true then
- break
- end
- end
- ATTACKING = false
- for i = 1, 25 do
- Swait()
- Transparent((25-i)/25)
- end
- Transparent(0)
- end
- end
- function Diamonds(TARGET)
- local FOE = TARGET.Torso
- if FOE then
- ChaosOrAnything()
- ATTACKING = true
- coroutine.resume(coroutine.create(function()
- repeat
- Swait()
- CHARACTER:SetPrimaryPartCFrame(Clerp(ROOT.CFrame,CF(VT(ROOT.Position.X,FOE.Position.Y,ROOT.Position.Z),FOE.Position),0.2))
- ClerpBody({
- CF(0,0.1*SIN(SINE/12),0)*ANGLES(RAD(0),RAD(0),RAD(0)),
- CF(0,-0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0,-1,0),
- CF(0,0.5,0)*ANGLES(RAD(-120+15*COS(SINE/12)),RAD(0),RAD(35+5*COS(SINE/12)))*CF(-1.5,-0.5,0),
- CF(0,0.5,0)*ANGLES(RAD(-120+15*COS(SINE/12)),RAD(0),RAD(-35-5*COS(SINE/12)))*CF(1.5,-0.5,0),
- CF(-0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(-0.5,1,0.5),
- CF(0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0.5,0.9,0.5),
- },"Attack")
- until ATTACKING == false
- end))
- for i = 1, MRANDOM(25,35) do
- coroutine.resume(coroutine.create(function()
- local DIAMOND = CreatePart(3, workspace, "Granite", 0, 1, TORSO.BrickColor, "Diamond", VT(0.5,0.5,1.5), true)
- CreateMesh("SpecialMesh", DIAMOND, "FileMesh", DIAMONDMESH, "", VT(0.1, 0.05, 0.15), VT(0,0,0))
- DIAMOND.CFrame = ROOT.CFrame*CF(MRANDOM(-150,150)/20,0,-1.5)
- for i = 1, 15 do
- Swait()
- DIAMOND.Transparency = (15-i)/15
- DIAMOND.CFrame = DIAMOND.CFrame*CF(0,0,-(15-i)/35)
- end
- DIAMOND.Anchored = false
- DIAMOND.Transparency = 0
- local GO = IT("BodyVelocity",DIAMOND)
- GO.Velocity = DIAMOND.CFrame.lookVector*15
- Debris:AddItem(DIAMOND,1)
- DIAMOND.Touched:Connect(function(HIT)
- if HIT.Parent:FindFirstChildOfClass("Humanoid") and HIT.Parent ~= CHARACTER then
- DIAMOND:Remove()
- CreateSound(410625063, HIT.Parent:FindFirstChildOfClass("Humanoid").Torso, 2, 1, false)
- HIT.Parent:FindFirstChildOfClass("Humanoid").Health = HIT.Parent:FindFirstChildOfClass("Humanoid").Health - 7.5
- end
- end)
- for i = 1, 5 do
- Swait()
- GO.Velocity = DIAMOND.CFrame.lookVector*(15*i)
- end
- end))
- if TARGET.Health <= 0 or DEAD == true then
- break
- end
- Swait(7)
- end
- ATTACKING = false
- end
- end
- function RingAround(TARGET)
- local FOE = TARGET.Torso
- if FOE then
- ATTACKING = true
- ChaosOrAnything()
- local E = 0
- repeat
- Swait()
- E = E + 1
- ClerpBody({
- CF(0,(-E/25)+0.1*SIN(SINE/12),0)*ANGLES(RAD(0),RAD(0),RAD(0)),
- CF(0,-0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0,-1,0),
- CF(0,0.5,0)*ANGLES(RAD(-120+15*COS(SINE/12)),RAD(0),RAD(35+5*COS(SINE/12)))*CF(-1.5,-0.5,0),
- CF(0,0.5,0)*ANGLES(RAD(-120+15*COS(SINE/12)),RAD(0),RAD(-35-5*COS(SINE/12)))*CF(1.5,-0.5,0),
- CF(-0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(-0.5,1,0.5),
- CF(0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0.5,0.9,0.5),
- },"Attack")
- until ROOT.ChaosChaos.Playing == false and ROOT.MeDoAnything.Playing == false
- coroutine.resume(coroutine.create(function()
- repeat
- Swait()
- CHARACTER:SetPrimaryPartCFrame(Clerp(ROOT.CFrame,CF(ROOT.Position,VT(FOE.Position.X,ROOT.Position.Y,FOE.Position.Z)),0.2))
- ClerpBody({
- CF(0,0.1*SIN(SINE/12),0)*ANGLES(RAD(0),RAD(0),RAD(0)),
- CF(0,-0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0,-1,0),
- CF(0,0.5,0)*ANGLES(RAD(-120+15*COS(SINE/12)),RAD(0),RAD(35+5*COS(SINE/12)))*CF(-1.5,-0.5,0),
- CF(0,0.5,0)*ANGLES(RAD(-120+15*COS(SINE/12)),RAD(0),RAD(-35-5*COS(SINE/12)))*CF(1.5,-0.5,0),
- CF(-0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(-0.5,1,0.5),
- CF(0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0.5,0.9,0.5),
- },"Attack")
- until ATTACKING == false
- end))
- for i = 1, MRANDOM(2,4) do
- local SPAWN = CF(FOE.Position)*ANGLES(0,RAD(MRANDOM(0,359)),0)
- local SPADES = {}
- for i = 1, 10 do
- local SPADE = CreatePart(3, workspace, "Granite", 0, 1, TORSO.BrickColor, "Spade", VT(2,2,2), true)
- CreateMesh("SpecialMesh", SPADE, "FileMesh", SPADEMESH, "", VT(1.2,1.2,1.2), VT(0,0,0))
- SPADE.CFrame = SPAWN*ANGLES(0,RAD(36*i),0)*CF(0,0,35)
- SPADE.Touched:Connect(function(HIT)
- if HIT.Parent:FindFirstChildOfClass("Humanoid") and HIT.Parent ~= CHARACTER then
- SPADE:Remove()
- CreateSound(410625063, HIT.Parent:FindFirstChildOfClass("Humanoid").Torso, 2, 1, false)
- HIT.Parent:FindFirstChildOfClass("Humanoid").Health = HIT.Parent:FindFirstChildOfClass("Humanoid").Health - 10
- end
- end)
- table.insert(SPADES,SPADE)
- end
- for i = 1, 25 do
- for E = 1, #SPADES do
- SPADES[E].CFrame = SPADES[E].CFrame * CF(0,0,-0.5)
- SPADES[E].Transparency = (10-i)/9.5
- end
- Swait()
- end
- wait(0.2)
- for E = 1, #SPADES do
- coroutine.resume(coroutine.create(function()
- local SPADE = SPADES[E]
- for i = 1, 15 do
- SPADE.CFrame = SPADE.CFrame*CF(0,0,(15-i)/15)
- Swait()
- end
- SPADE.Anchored = false
- local GO = IT("BodyVelocity",SPADE)
- GO.Velocity = SPADE.CFrame.lookVector*5
- GO.MaxForce = GO.MaxForce * 100
- Debris:AddItem(SPADE,1)
- SPADE.Touched:Connect(function(HIT)
- if HIT.Parent:FindFirstChildOfClass("Humanoid") and HIT.Parent ~= CHARACTER then
- SPADE:Remove()
- CreateSound(410625063, HIT.Parent:FindFirstChildOfClass("Humanoid").Torso, 2, 1, false)
- HIT.Parent:FindFirstChildOfClass("Humanoid").Health = HIT.Parent:FindFirstChildOfClass("Humanoid").Health - 2.5
- end
- end)
- for i = 1, 15 do
- Swait()
- GO.Velocity = SPADE.CFrame.lookVector*(5*i)
- end
- end))
- Swait(5)
- end
- if TARGET.Health <= 0 or DEAD == true then
- break
- end
- end
- wait(0.5)
- ATTACKING = false
- end
- end
- function HeartsGoesOut(TARGET)
- local FOE = TARGET.Torso
- if FOE then
- ChaosOrAnything()
- ATTACKING = true
- coroutine.resume(coroutine.create(function()
- repeat
- Swait()
- CHARACTER:SetPrimaryPartCFrame(Clerp(ROOT.CFrame,CF(ROOT.Position,VT(FOE.Position.X,ROOT.Position.Y,FOE.Position.Z)),0.2))
- ClerpBody({
- CF(0,0.1*SIN(SINE/12),0)*ANGLES(RAD(0),RAD(0),RAD(0)),
- CF(0,-0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0,-1,0),
- CF(0,0.5,0)*ANGLES(RAD(-120+15*COS(SINE/12)),RAD(0),RAD(35+5*COS(SINE/12)))*CF(-1.5,-0.5,0),
- CF(0,0.5,0)*ANGLES(RAD(-120+15*COS(SINE/12)),RAD(0),RAD(-35-5*COS(SINE/12)))*CF(1.5,-0.5,0),
- CF(-0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(-0.5,1,0.5),
- CF(0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0.5,0.9,0.5),
- },"Attack")
- until ATTACKING == false
- end))
- for i = 1, MRANDOM(5,7) do
- local SPAWN = CF(FOE.Position+VT(0,1,0))*ANGLES(0,RAD(MRANDOM(0,359)),0)*CF(0,0,35)
- SPAWN = CF(SPAWN.p,FOE.Position+VT(0,1,0))
- coroutine.resume(coroutine.create(function()
- local HEARTS = {}
- for i = 1, 4 do
- local HEART = CreatePart(3, workspace, "Granite", 0, 1, TORSO.BrickColor, "Heart", VT(2,2,2), true)
- CreateMesh("SpecialMesh", HEART, "FileMesh", HEARTMESH, "", VT(3.5,3.5,3.5), VT(0,0,0))
- HEART.CFrame = SPAWN*ANGLES(0,RAD((360/4)*i),0)
- HEART.Touched:Connect(function(HIT)
- if HIT.Parent:FindFirstChildOfClass("Humanoid") and HIT.Parent ~= CHARACTER then
- HEART:Remove()
- CreateSound(410625063, HIT.Parent:FindFirstChildOfClass("Humanoid").Torso, 2, 1, false)
- HIT.Parent:FindFirstChildOfClass("Humanoid").Health = HIT.Parent:FindFirstChildOfClass("Humanoid").Health - 7.5
- end
- end)
- table.insert(HEARTS,HEART)
- end
- for i = 1, 10 do
- Swait()
- for E = 1, #HEARTS do
- HEARTS[E].CFrame = HEARTS[E].CFrame*CF(0,0,-(10-i)/10)
- HEARTS[E].Transparency = (10-i)/9.5
- end
- end
- local DIST = (HEARTS[1].Position - SPAWN.p).Magnitude
- for i = 1, 100 do
- Swait()
- SPAWN = SPAWN*CF(0,0,-1)
- for E = 1, #HEARTS do
- HEARTS[E].Transparency = 0
- HEARTS[E].CFrame = SPAWN*ANGLES(0,RAD(((360/4)*E)+(i*5)),0)*CF(0,0,-DIST)
- end
- end
- for E = 1, #HEARTS do
- HEARTS[E]:Destroy()
- end
- end))
- Swait(35)
- if TARGET.Health <= 0 or DEAD == true then
- break
- end
- end
- wait(0.5)
- ATTACKING = false
- end
- end
- function Meta(TARGET)
- local FOE = TARGET.Torso
- if FOE then
- ROOT.Metamorph:Play()
- ATTACKING = true
- local SCYTHE = CreatePart(3, workspace, "Granite", 0, 1, TORSO.BrickColor, "Diamond", VT(3,0,3), true)
- CreateMesh("SpecialMesh", SCYTHE, "FileMesh", SCYTHEMESH, "", VT(0.01, 0.01, 0.01), VT(0,0,0))
- SCYTHE.CFrame = TORSO.CFrame
- for i = 1, 3 do
- for i = 1, 15 do
- Swait()
- ClerpBody({
- CF(0,0.1*SIN(SINE/12),0)*ANGLES(RAD(0),RAD(0),RAD(0)),
- CF(0,-0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0,-1,0),
- CF(0,0.5,0)*ANGLES(RAD(-120+15*COS(SINE/12)),RAD(0),RAD(35+5*COS(SINE/12)))*CF(-1.5,-0.5,0),
- CF(0,0.5,0)*ANGLES(RAD(-120+15*COS(SINE/12)),RAD(0),RAD(-35-5*COS(SINE/12)))*CF(1.5,-0.5,0),
- CF(-0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(-0.5,1,0.5),
- CF(0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0.5,0.9,0.5),
- },"Attack")
- Transparent(i/15)
- SCYTHE.Transparency = (15-i)/15
- SCYTHE.CFrame = CF(TORSO.Position)*ANGLES(0,RAD(SINE*5),0)
- end
- for i = 1, 15 do
- Swait()
- ClerpBody({
- CF(0,0.1*SIN(SINE/12),0)*ANGLES(RAD(0),RAD(0),RAD(0)),
- CF(0,-0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0,-1,0),
- CF(0,0.5,0)*ANGLES(RAD(-120+15*COS(SINE/12)),RAD(0),RAD(35+5*COS(SINE/12)))*CF(-1.5,-0.5,0),
- CF(0,0.5,0)*ANGLES(RAD(-120+15*COS(SINE/12)),RAD(0),RAD(-35-5*COS(SINE/12)))*CF(1.5,-0.5,0),
- CF(-0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(-0.5,1,0.5),
- CF(0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0.5,0.9,0.5),
- },"Attack")
- Transparent((15-i)/15)
- SCYTHE.Transparency = i/15
- SCYTHE.CFrame = CF(TORSO.Position)*ANGLES(0,RAD(SINE*5),0)
- end
- end
- for i = 1, 15 do
- Swait()
- ClerpBody({
- CF(0,0.1*SIN(SINE/12),0)*ANGLES(RAD(0),RAD(0),RAD(0)),
- CF(0,-0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0,-1,0),
- CF(0,0.5,0)*ANGLES(RAD(-120+15*COS(SINE/12)),RAD(0),RAD(35+5*COS(SINE/12)))*CF(-1.5,-0.5,0),
- CF(0,0.5,0)*ANGLES(RAD(-120+15*COS(SINE/12)),RAD(0),RAD(-35-5*COS(SINE/12)))*CF(1.5,-0.5,0),
- CF(-0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(-0.5,1,0.5),
- CF(0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0.5,0.9,0.5),
- },"Attack")
- Transparent(i/15)
- SCYTHE.Transparency = (15-i)/15
- SCYTHE.CFrame = CF(TORSO.Position)*ANGLES(0,RAD(SINE*5),0)
- end
- Transparent(1)
- SCYTHE.Transparency = 0
- local SCYTHES = {SCYTHE}
- for i = 1, 3 do
- local COPY = SCYTHE:Clone()
- COPY.Parent = workspace
- COPY.CFrame = SCYTHE.CFrame
- table.insert(SCYTHES,COPY)
- end
- for E = 1, #SCYTHES do
- local DELAY = false
- SCYTHES[E].Touched:Connect(function(HIT)
- if HIT.Parent:FindFirstChildOfClass("Humanoid") and HIT.Parent ~= CHARACTER and DELAY == false then
- HIT.Parent:FindFirstChildOfClass("Humanoid").Health = HIT.Parent:FindFirstChildOfClass("Humanoid").Health - 3.5
- CreateSound(410625063, HIT.Parent:FindFirstChildOfClass("Humanoid").Torso, 2, 1, false)
- DELAY = true
- wait(1)
- DELAY = false
- end
- end)
- end
- local NOW = ROOT.CFrame
- CHARACTER:SetPrimaryPartCFrame(CF(0,5000,0))
- HUMANOID.Parent = nil
- local Y = FOE.Position.Y
- for i = 1, 750 do
- Swait()
- for E = 1, #SCYTHES do
- SCYTHES[E].CFrame = CF(Clerp(SCYTHES[E].CFrame,CF(FOE.Position.X,Y,FOE.Position.Z)*ANGLES(0,RAD((360/4*E)+SINE),0)*CF(0,0,45*SIN(i/50)),0.1).p)*ANGLES(0,RAD(SINE*5),0)
- end
- if TARGET.Health <= 0 or DEAD == true then
- break
- end
- end
- for i = 1, 25 do
- for E = 1, #SCYTHES do
- SCYTHES[E].CFrame = CF(Clerp(SCYTHES[E].CFrame,NOW,0.15).p)*ANGLES(0,RAD(SINE*5),0)
- end
- Swait()
- end
- CHARACTER:SetPrimaryPartCFrame(NOW)
- HUMANOID.Parent = CHARACTER
- for i = 1, 15 do
- Swait()
- ClerpBody({
- CF(0,0.1*SIN(SINE/12),0)*ANGLES(RAD(0),RAD(0),RAD(0)),
- CF(0,-0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0,-1,0),
- CF(0,0.5,0)*ANGLES(RAD(-120+15*COS(SINE/12)),RAD(0),RAD(35+5*COS(SINE/12)))*CF(-1.5,-0.5,0),
- CF(0,0.5,0)*ANGLES(RAD(-120+15*COS(SINE/12)),RAD(0),RAD(-35-5*COS(SINE/12)))*CF(1.5,-0.5,0),
- CF(-0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(-0.5,1,0.5),
- CF(0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0.5,0.9,0.5),
- },"Attack")
- Transparent((15-i)/15)
- for E = 1, #SCYTHES do
- SCYTHES[E].CFrame = CF(ROOT.Position)*ANGLES(0,RAD(SINE*5),0)
- SCYTHES[E].Transparency = i/15
- end
- end
- for E = 1, #SCYTHES do
- SCYTHES[E]:Remove()
- end
- ATTACKING = false
- end
- end
- local ATTACKS = {OhOhOh,Diamonds,RingAround,HeartsGoesOut,Meta}
- --//=================================\\
- --|| WRAP
- --\\=================================//
- function BEGINAI()
- local TORSOROT = 0
- CHARACTER:SetPrimaryPartCFrame(ROOT.CFrame*CF(0,1,0))
- coroutine.resume(coroutine.create(function()
- game:GetService("RunService").Heartbeat:connect(function()
- local DEFAULTS = {
- CF(0,0,0),
- CF(0,-0.5,0)*ANGLES(RAD(0),RAD(0),RAD(0))*CF(0,-1,0),
- CF(0,0.5,0)*ANGLES(RAD(0),RAD(0),RAD(0))*CF(-1.5,-0.5,0),
- CF(0,0.5,0)*ANGLES(RAD(0),RAD(0),RAD(0))*CF(1.5,-0.5,0),
- CF(-0,1,0)*ANGLES(RAD(0),RAD(0),RAD(0))*CF(-0.5,1,0),
- CF(0,1,0)*ANGLES(RAD(0),RAD(0),RAD(0))*CF(0.5,1,0),
- }
- SINE = SINE + 1
- end)
- while true do
- TORSOROT = 35
- for i = 1, 5 do
- ClerpBody({
- CF(0,0,0)*ANGLES(RAD(0),RAD(35),RAD(0)),
- CF(0,-0.5,0)*ANGLES(RAD(15),RAD(-20),RAD(0))*CF(0,-1,0),
- CF(0,0.5,0)*ANGLES(RAD(12),RAD(0),RAD(0))*CF(-1.5,-0.5,0),
- CF(0,0.5,0)*ANGLES(RAD(-120),RAD(0),RAD(-35))*CF(1.5,-0.5,0),
- CF(-0,0,0)*ANGLES(RAD(0),RAD(0),RAD(0))*CF(-0.5,1,1),
- CF(0,1,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(0.5,0.9,0.2),
- },nil)
- end
- for i = 1, 15 do
- Swait()
- ClerpBody({
- CF(0,0.3,0)*ANGLES(RAD(0),RAD(35),RAD(0)),
- CF(0,-0.5,0)*ANGLES(RAD(0),RAD(-35),RAD(0))*CF(0,-1,0),
- CF(0,0.5,0)*ANGLES(RAD(12),RAD(0),RAD(0))*CF(-1.5,-0.5,0),
- CF(0,0.75,0)*ANGLES(RAD(-120),RAD(0),RAD(-35))*CF(1.5,-0.25,0),
- CF(-0,1,0)*ANGLES(RAD(0),RAD(0),RAD(0))*CF(-0.5,1,0.5),
- CF(0,1,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(0.5,0.9,0.2),
- },nil)
- if DEAD == true then
- break
- end
- end
- if DEAD == true then
- break
- end
- TORSOROT = -35
- for i = 1, 5 do
- ClerpBody({
- CF(0,0,0)*ANGLES(RAD(0),RAD(-35),RAD(0)),
- CF(0,-0.5,0)*ANGLES(RAD(15),RAD(20),RAD(0))*CF(0,-1,0),
- CF(0,0.5,0)*ANGLES(RAD(-120),RAD(0),RAD(35))*CF(-1.5,-0.5,0),
- CF(0,0.5,0)*ANGLES(RAD(12),RAD(0),RAD(0))*CF(1.5,-0.5,0),
- CF(-0,1,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(-0.5,0.9,0.2),
- CF(0,0,0)*ANGLES(RAD(0),RAD(0),RAD(0))*CF(0.5,0.9,1),
- },nil)
- end
- for i = 1, 15 do
- Swait()
- ClerpBody({
- CF(0,0.3,0)*ANGLES(RAD(0),RAD(-35),RAD(0)),
- CF(0,-0.5,0)*ANGLES(RAD(0),RAD(35),RAD(0))*CF(0,-1,0),
- CF(0,0.75,0)*ANGLES(RAD(-120),RAD(0),RAD(35))*CF(-1.5,-0.25,0),
- CF(0,0.5,0)*ANGLES(RAD(12),RAD(0),RAD(0))*CF(1.5,-0.5,0),
- CF(-0,1,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(-0.5,1,0.2),
- CF(0,1,0)*ANGLES(RAD(0),RAD(0),RAD(0))*CF(0.5,1,0.5),
- },nil)
- if DEAD == true then
- break
- end
- end
- if DEAD == true then
- break
- end
- end
- end))
- local TARGET = nil
- local TARGETHUM = nil
- coroutine.resume(coroutine.create(function()
- --local h = HUMANOID
- local pathService = game:GetService("PathfindingService")
- local goToPos = function(loc,target)
- local distance = (loc-ROOT.Position).magnitude
- local start = tick()
- while distance > 7 do
- if target then
- if target.Torso and ATTACKING == false then
- GoTo(loc+VT(0,4.5,0))
- Swait()
- local RAYTEST = Raycast(ROOT.Position,CF(ROOT.Position,target.Torso.Position).lookVector,500,CHARACTER)
- if distance <= 7 or TARGETHUM ~= target or TestForTarget(RAYTEST,target) == false then -- Something may have gone wrong. Just break.
- break
- end
- distance = (loc+VT(0,4.5,0)-ROOT.Position).magnitude
- else
- break
- end
- else
- break
- end
- end
- end
- while true do
- if DEAD == true then
- break
- end
- Swait()
- if TARGETHUM then
- local target = TARGETHUM
- if TARGETHUM.Torso then
- local RAYTEST = Raycast(ROOT.Position,CF(ROOT.Position,VT(target.Torso.Position.X,ROOT.Position.Y,target.Torso.Position.Z)).lookVector,500,CHARACTER)
- if TestForTarget(RAYTEST,target) == true then
- local path = pathService:ComputeRawPathAsync(ROOT.Position,TARGETHUM.Torso.Position,5000)
- local didBreak = false
- local targetStart
- if target and ROOT and target.Torso then
- targetStart = target.Torso.Position
- local previous = ROOT.Position
- local points = path:GetWaypoints()
- local s = #points > 1 and 2 or 1
- for i = s,#points do
- if GYRO == nil then
- local point = points[i].Position
- if didBreak then
- break
- end
- if target and target.Torso and target.Health > 0 and ATTACKING == false then
- if (ROOT.Position - point).Magnitude > 1 and TARGETHUM == target then
- local pos = previous:lerp(point,0.65)
- goToPos(previous:lerp(point,0.65),target)
- previous = point
- end
- else
- didBreak = true
- break
- end
- end
- end
- end
- if not didBreak and targetStart then
- goToPos(targetStart)
- end
- else
- if ATTACKING == false then
- GoTo(target.Torso.Position+VT(0,2.5,0))
- end
- end
- end
- end
- end
- end))
- HUMANOID.Died:Connect(function()
- if DEAD == false then
- DEAD = true
- repeat
- Swait()
- until ATTACKING == false
- CHAIR.Transparency = 0
- Transparent(0)
- script.Music:Stop()
- ROOT.Deathed:Play()
- repeat
- Swait()
- ClerpBody({
- CF(0,0,0)*ANGLES(RAD(0),RAD(0),RAD(0)),
- CF(0,-0.5,0)*ANGLES(RAD(35),RAD(0),RAD(0))*CF(0,-1,0),
- CF(0,0.5,0)*ANGLES(RAD(-35),RAD(0),RAD(5))*CF(-1.5,-0.3,0),
- CF(0,0.5,0)*ANGLES(RAD(-35),RAD(0),RAD(-5))*CF(1.5,-0.3,0),
- CF(-0,0,0)*ANGLES(RAD(-15),RAD(0),RAD(0))*CF(-0.5,1,1),
- CF(0,0,0)*ANGLES(RAD(-15),RAD(0),RAD(0))*CF(0.5,1,1),
- },nil)
- until ROOT.Deathed.Playing == false
- CHARACTER.Head.Nametag:Remove()
- TORSO.Neck:Remove()
- TORSO.Die:Play()
- ROOT:Remove()
- CHARACTER:BreakJoints()
- CHAIR:Destroy()
- Debris:AddItem(CHARACTER,5)
- end
- end)
- HUMANOID.HealthChanged:Connect(function()
- if HIT == false and DEAD == false then
- HIT = true
- local HA = {ROOT.Ha1,ROOT.Ha2}
- HA[MRANDOM(1,2)]:Play()
- for i = 1, 100 do
- Swait()
- if ATTACKING == true then
- Neck.C1 = Clerp(Neck.C1, CF(0,-2.5,0)*ANGLES(0,0,RAD(65*SIN(i/6)))*CF(0,-1,0), 0.2)
- else
- Neck.C1 = Clerp(Neck.C1, CF(0,-2.5,0)*ANGLES(0,0,RAD(65*SIN(i/6)))*ANGLES(0,RAD(-TORSOROT),0)*CF(0,-1,0), 0.7)
- end
- if DEAD == true then
- break
- end
- end
- HIT = false
- end
- end)
- while true do
- if DEAD == true then
- break
- end
- local TARGETVARIANTS = {}
- TARGET = nil
- for index, CHILD in pairs(workspace:GetChildren()) do
- if CHILD ~= CHARACTER and CHILD:FindFirstChild("Slain") == nil then
- local HUMAN = CHILD:FindFirstChildOfClass("Humanoid")
- if HUMAN then
- if HUMAN.Health > 0 then
- if HUMAN.Torso then
- local DISTANCE = (HUMAN.Torso.Position - ROOT.Position).Magnitude
- table.insert(TARGETVARIANTS,{CHILD,DISTANCE})
- end
- end
- end
- end
- end
- local DIST = math.huge
- for E = 1, #TARGETVARIANTS do
- local PLAYER = TARGETVARIANTS[E]
- local CHARACTER = PLAYER[1]
- local DISTANCE = PLAYER[2]
- if DISTANCE < DIST then
- DIST = DISTANCE
- TARGET = CHARACTER
- end
- end
- if TARGET and TARGET:FindFirstChild("HumanoidRootPart") then
- TARGETHUM = TARGET:FindFirstChildOfClass("Humanoid")
- --[[HUMANOID.WalkSpeed = 22
- HUMANOID.JumpPower = 125]]
- local RAY = Raycast(ROOT.Position,CF(ROOT.Position,TARGETHUM.Torso.Position).lookVector,25,CHARACTER)
- if DIST <= 25 and TestForTarget(RAY,TARGETHUM) == false and (TARGETHUM.Torso.Position.Y > ROOT.Position.Y-1 or TARGETHUM.Torso.Position.Y < ROOT.Position.Y+2) then
- ATTACKS[MRANDOM(1,#ATTACKS)](TARGETHUM)
- end
- else
- TARGETHUM = nil
- end
- wait()
- end
- end
- BEGINAI()
- end))
- Sound38.Name = "Music"
- Sound38.Parent = Script37
- Sound38.Looped = true
- Sound38.SoundId = "rbxassetid://2701520256"
- Sound38.Volume = 2.5
- MeshPart39.Name = "Hat"
- MeshPart39.Parent = Model5
- MeshPart39.CFrame = CFrame.new(-18.0133781, -0.388853788, -45.1248779, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- MeshPart39.Position = Vector3.new(-18.0133781, -0.388853788, -45.1248779)
- MeshPart39.Color = Color3.new(0.129412, 0.329412, 0.72549)
- MeshPart39.Size = Vector3.new(2.75788856, 1.64599526, 2.41334939)
- MeshPart39.BrickColor = BrickColor.new("Deep blue")
- MeshPart39.CanCollide = false
- MeshPart39.Material = Enum.Material.SmoothPlastic
- MeshPart39.brickColor = BrickColor.new("Deep blue")
- Weld40.Name = "Joint"
- Weld40.Parent = MeshPart39
- Weld40.C0 = CFrame.new(0, -0.699880123, -0.500030518, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld40.Part0 = MeshPart39
- Weld40.Part1 = UnionOperation14
- Weld40.part1 = UnionOperation14
- MeshPart41.Name = "Tail"
- MeshPart41.Parent = Model5
- MeshPart41.CFrame = CFrame.new(-18.0133781, -4.15885258, -44.0249252, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- MeshPart41.Position = Vector3.new(-18.0133781, -4.15885258, -44.0249252)
- MeshPart41.Color = Color3.new(0.129412, 0.329412, 0.72549)
- MeshPart41.Size = Vector3.new(0.462002546, 1.40317202, 2.49498963)
- MeshPart41.BrickColor = BrickColor.new("Deep blue")
- MeshPart41.CanCollide = false
- MeshPart41.Material = Enum.Material.SmoothPlastic
- MeshPart41.brickColor = BrickColor.new("Deep blue")
- Weld42.Name = "Joint"
- Weld42.Parent = MeshPart41
- Weld42.C0 = CFrame.new(-3.81469727e-05, 1.57016039, -1.59996033, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld42.Part0 = MeshPart41
- Weld42.Part1 = UnionOperation6
- Weld42.part1 = UnionOperation6
- Humanoid43.Parent = Model5
- Humanoid43.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
- Humanoid43.Health = 6500
- Humanoid43.LeftLeg = MeshPart36
- Humanoid43.MaxHealth = 6500
- Humanoid43.MaxSlopeAngle = 89.900001525879
- Humanoid43.RightLeg = MeshPart35
- Humanoid43.Torso = Part20
- Humanoid43.maxHealth = 6500
- Part44.Name = "Wheelchair"
- Part44.Parent = Model5
- Part44.CFrame = CFrame.new(-18.0133781, -3.48885107, -45.6249237, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part44.Position = Vector3.new(-18.0133781, -3.48885107, -45.6249237)
- Part44.Transparency = 1
- Part44.Size = Vector3.new(0.0500000007, 0.0500000007, 0.0500000007)
- Part44.Anchored = true
- Part44.BottomSurface = Enum.SurfaceType.Smooth
- Part44.CanCollide = false
- Part44.Material = Enum.Material.SmoothPlastic
- Part44.TopSurface = Enum.SurfaceType.Smooth
- SpecialMesh45.Parent = Part44
- SpecialMesh45.MeshId = "rbxassetid://1226669573"
- SpecialMesh45.Scale = Vector3.new(2, 2, 2)
- SpecialMesh45.TextureId = "rbxassetid://1226669284"
- SpecialMesh45.MeshType = Enum.MeshType.FileMesh
- Model46.Name = "Spawns"
- Model46.Parent = mas
- SpawnLocation47.Parent = Model46
- SpawnLocation47.CFrame = CFrame.new(10.2748404, 1.96056199, -43.8579407, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- SpawnLocation47.Position = Vector3.new(10.2748404, 1.96056199, -43.8579407)
- SpawnLocation47.Size = Vector3.new(6, 1, 6)
- SpawnLocation47.Anchored = true
- SpawnLocation47.BottomSurface = Enum.SurfaceType.Smooth
- SpawnLocation47.TopSurface = Enum.SurfaceType.Smooth
- Decal48.Parent = SpawnLocation47
- Decal48.Texture = "rbxasset://textures/SpawnLocation.png"
- Decal48.Face = Enum.NormalId.Top
- SpawnLocation49.Parent = Model46
- SpawnLocation49.CFrame = CFrame.new(10.2748404, 1.96056199, -36.8579407, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- SpawnLocation49.Position = Vector3.new(10.2748404, 1.96056199, -36.8579407)
- SpawnLocation49.Size = Vector3.new(6, 1, 6)
- SpawnLocation49.Anchored = true
- SpawnLocation49.BottomSurface = Enum.SurfaceType.Smooth
- SpawnLocation49.TopSurface = Enum.SurfaceType.Smooth
- Decal50.Parent = SpawnLocation49
- Decal50.Texture = "rbxasset://textures/SpawnLocation.png"
- Decal50.Face = Enum.NormalId.Top
- SpawnLocation51.Parent = Model46
- SpawnLocation51.CFrame = CFrame.new(3.27484107, 1.96056199, -43.8579407, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- SpawnLocation51.Position = Vector3.new(3.27484107, 1.96056199, -43.8579407)
- SpawnLocation51.Size = Vector3.new(6, 1, 6)
- SpawnLocation51.Anchored = true
- SpawnLocation51.BottomSurface = Enum.SurfaceType.Smooth
- SpawnLocation51.TopSurface = Enum.SurfaceType.Smooth
- Decal52.Parent = SpawnLocation51
- Decal52.Texture = "rbxasset://textures/SpawnLocation.png"
- Decal52.Face = Enum.NormalId.Top
- Part53.Parent = Model46
- Part53.CFrame = CFrame.new(10.2748404, 1.96056199, -32.8579407, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part53.Position = Vector3.new(10.2748404, 1.96056199, -32.8579407)
- Part53.Size = Vector3.new(24, 1, 2)
- Part53.BottomSurface = Enum.SurfaceType.Smooth
- Part53.TopSurface = Enum.SurfaceType.Smooth
- SpawnLocation54.Parent = Model46
- SpawnLocation54.CFrame = CFrame.new(17.2748413, 1.96056199, -36.8579407, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- SpawnLocation54.Position = Vector3.new(17.2748413, 1.96056199, -36.8579407)
- SpawnLocation54.Size = Vector3.new(6, 1, 6)
- SpawnLocation54.Anchored = true
- SpawnLocation54.BottomSurface = Enum.SurfaceType.Smooth
- SpawnLocation54.TopSurface = Enum.SurfaceType.Smooth
- Decal55.Parent = SpawnLocation54
- Decal55.Texture = "rbxasset://textures/SpawnLocation.png"
- Decal55.Face = Enum.NormalId.Top
- SpawnLocation56.Parent = Model46
- SpawnLocation56.CFrame = CFrame.new(17.2748413, 1.96056199, -50.8579407, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- SpawnLocation56.Position = Vector3.new(17.2748413, 1.96056199, -50.8579407)
- SpawnLocation56.Size = Vector3.new(6, 1, 6)
- SpawnLocation56.Anchored = true
- SpawnLocation56.BottomSurface = Enum.SurfaceType.Smooth
- SpawnLocation56.TopSurface = Enum.SurfaceType.Smooth
- Decal57.Parent = SpawnLocation56
- Decal57.Texture = "rbxasset://textures/SpawnLocation.png"
- Decal57.Face = Enum.NormalId.Top
- SpawnLocation58.Parent = Model46
- SpawnLocation58.CFrame = CFrame.new(17.2748413, 1.96056199, -43.8579407, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- SpawnLocation58.Position = Vector3.new(17.2748413, 1.96056199, -43.8579407)
- SpawnLocation58.Size = Vector3.new(6, 1, 6)
- SpawnLocation58.Anchored = true
- SpawnLocation58.BottomSurface = Enum.SurfaceType.Smooth
- SpawnLocation58.TopSurface = Enum.SurfaceType.Smooth
- Decal59.Parent = SpawnLocation58
- Decal59.Texture = "rbxasset://textures/SpawnLocation.png"
- Decal59.Face = Enum.NormalId.Top
- Part60.Parent = Model46
- Part60.CFrame = CFrame.new(10.2748404, 1.96056199, -54.8579407, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part60.Position = Vector3.new(10.2748404, 1.96056199, -54.8579407)
- Part60.Size = Vector3.new(24, 1, 2)
- Part60.BottomSurface = Enum.SurfaceType.Smooth
- Part60.TopSurface = Enum.SurfaceType.Smooth
- Part61.Parent = Model46
- Part61.CFrame = CFrame.new(-0.725158989, 1.96056199, -43.8579407, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Part61.Orientation = Vector3.new(0, -90, 0)
- Part61.Position = Vector3.new(-0.725158989, 1.96056199, -43.8579407)
- Part61.Rotation = Vector3.new(0, -90, 0)
- Part61.Size = Vector3.new(20, 1, 2)
- Part61.BottomSurface = Enum.SurfaceType.Smooth
- Part61.TopSurface = Enum.SurfaceType.Smooth
- SpawnLocation62.Parent = Model46
- SpawnLocation62.CFrame = CFrame.new(3.27484107, 1.96056199, -50.8579407, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- SpawnLocation62.Position = Vector3.new(3.27484107, 1.96056199, -50.8579407)
- SpawnLocation62.Size = Vector3.new(6, 1, 6)
- SpawnLocation62.Anchored = true
- SpawnLocation62.BottomSurface = Enum.SurfaceType.Smooth
- SpawnLocation62.TopSurface = Enum.SurfaceType.Smooth
- Decal63.Parent = SpawnLocation62
- Decal63.Texture = "rbxasset://textures/SpawnLocation.png"
- Decal63.Face = Enum.NormalId.Top
- SpawnLocation64.Parent = Model46
- SpawnLocation64.CFrame = CFrame.new(3.27484107, 1.96056199, -36.8579407, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- SpawnLocation64.Position = Vector3.new(3.27484107, 1.96056199, -36.8579407)
- SpawnLocation64.Size = Vector3.new(6, 1, 6)
- SpawnLocation64.Anchored = true
- SpawnLocation64.BottomSurface = Enum.SurfaceType.Smooth
- SpawnLocation64.TopSurface = Enum.SurfaceType.Smooth
- Decal65.Parent = SpawnLocation64
- Decal65.Texture = "rbxasset://textures/SpawnLocation.png"
- Decal65.Face = Enum.NormalId.Top
- Part66.Parent = Model46
- Part66.CFrame = CFrame.new(21.2748413, 1.96056199, -43.8579407, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Part66.Orientation = Vector3.new(0, -90, 0)
- Part66.Position = Vector3.new(21.2748413, 1.96056199, -43.8579407)
- Part66.Rotation = Vector3.new(0, -90, 0)
- Part66.Size = Vector3.new(20, 1, 2)
- Part66.BottomSurface = Enum.SurfaceType.Smooth
- Part66.TopSurface = Enum.SurfaceType.Smooth
- SpawnLocation67.Parent = Model46
- SpawnLocation67.CFrame = CFrame.new(10.2748404, 1.96056199, -50.8579407, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- SpawnLocation67.Position = Vector3.new(10.2748404, 1.96056199, -50.8579407)
- SpawnLocation67.Size = Vector3.new(6, 1, 6)
- SpawnLocation67.Anchored = true
- SpawnLocation67.BottomSurface = Enum.SurfaceType.Smooth
- SpawnLocation67.TopSurface = Enum.SurfaceType.Smooth
- Decal68.Parent = SpawnLocation67
- Decal68.Texture = "rbxasset://textures/SpawnLocation.png"
- Decal68.Face = Enum.NormalId.Top
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = script
- 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