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")
- LocalScript2 = Instance.new("LocalScript")
- Model3 = Instance.new("Model")
- Script4 = Instance.new("Script")
- Model5 = Instance.new("Model")
- MeshPart6 = Instance.new("MeshPart")
- Decal7 = Instance.new("Decal")
- Decal8 = Instance.new("Decal")
- Decal9 = Instance.new("Decal")
- Decal10 = Instance.new("Decal")
- UnionOperation11 = Instance.new("UnionOperation")
- UnionOperation12 = Instance.new("UnionOperation")
- UnionOperation13 = Instance.new("UnionOperation")
- UnionOperation14 = Instance.new("UnionOperation")
- UnionOperation15 = Instance.new("UnionOperation")
- MeshPart16 = Instance.new("MeshPart")
- MeshPart17 = Instance.new("MeshPart")
- UnionOperation18 = Instance.new("UnionOperation")
- UnionOperation19 = Instance.new("UnionOperation")
- UnionOperation20 = Instance.new("UnionOperation")
- MeshPart21 = Instance.new("MeshPart")
- MeshPart22 = Instance.new("MeshPart")
- MeshPart23 = Instance.new("MeshPart")
- MeshPart24 = Instance.new("MeshPart")
- MeshPart25 = Instance.new("MeshPart")
- MeshPart26 = Instance.new("MeshPart")
- MeshPart27 = Instance.new("MeshPart")
- MeshPart28 = Instance.new("MeshPart")
- MeshPart29 = Instance.new("MeshPart")
- MeshPart30 = Instance.new("MeshPart")
- MeshPart31 = Instance.new("MeshPart")
- MeshPart32 = Instance.new("MeshPart")
- MeshPart33 = Instance.new("MeshPart")
- MeshPart34 = Instance.new("MeshPart")
- MeshPart35 = Instance.new("MeshPart")
- MeshPart36 = Instance.new("MeshPart")
- MeshPart37 = Instance.new("MeshPart")
- MeshPart38 = Instance.new("MeshPart")
- MeshPart39 = Instance.new("MeshPart")
- MeshPart40 = Instance.new("MeshPart")
- MeshPart41 = Instance.new("MeshPart")
- MeshPart42 = Instance.new("MeshPart")
- Part43 = Instance.new("Part")
- Model44 = Instance.new("Model")
- SpawnLocation45 = Instance.new("SpawnLocation")
- Decal46 = Instance.new("Decal")
- SpawnLocation47 = Instance.new("SpawnLocation")
- Decal48 = Instance.new("Decal")
- SpawnLocation49 = Instance.new("SpawnLocation")
- Decal50 = Instance.new("Decal")
- Part51 = Instance.new("Part")
- SpawnLocation52 = Instance.new("SpawnLocation")
- Decal53 = Instance.new("Decal")
- SpawnLocation54 = Instance.new("SpawnLocation")
- Decal55 = Instance.new("Decal")
- SpawnLocation56 = Instance.new("SpawnLocation")
- Decal57 = Instance.new("Decal")
- Part58 = Instance.new("Part")
- Part59 = Instance.new("Part")
- SpawnLocation60 = Instance.new("SpawnLocation")
- Decal61 = Instance.new("Decal")
- SpawnLocation62 = Instance.new("SpawnLocation")
- Decal63 = Instance.new("Decal")
- Part64 = Instance.new("Part")
- SpawnLocation65 = Instance.new("SpawnLocation")
- Decal66 = Instance.new("Decal")
- Sound67 = Instance.new("Sound")
- Camera0.Parent = mas
- Camera0.CFrame = CFrame.new(-588.681152, 2371.89771, -871.18158, -0.99731195, 0.0659546852, -0.0319205187, 1.86264515e-09, 0.435638011, 0.900122046, 0.0732730478, 0.897702456, -0.434466958)
- Camera0.CoordinateFrame = CFrame.new(-588.681152, 2371.89771, -871.18158, -0.99731195, 0.0659546852, -0.0319205187, 1.86264515e-09, 0.435638011, 0.900122046, 0.0732730478, 0.897702456, -0.434466958)
- Camera0.Focus = CFrame.new(-588.61731, 2370.09741, -870.312622, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Camera0.focus = CFrame.new(-588.61731, 2370.09741, -870.312622, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Model1.Name = "CompiledScripts"
- Model1.Parent = mas
- LocalScript2.Name = "Script1"
- LocalScript2.Parent = Model1
- table.insert(cors,sandbox(LocalScript2,function()
- --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")
- Part3 = Instance.new("Part")
- UnionOperation4 = Instance.new("UnionOperation")
- Part5 = Instance.new("Part")
- PointLight6 = Instance.new("PointLight")
- RotateV7 = Instance.new("RotateV")
- SpawnLocation8 = Instance.new("SpawnLocation")
- Model9 = Instance.new("Model")
- UnionOperation10 = Instance.new("UnionOperation")
- Beam11 = Instance.new("Beam")
- Sound12 = Instance.new("Sound")
- Motor6D13 = Instance.new("Motor6D")
- Motor6D14 = Instance.new("Motor6D")
- Motor6D15 = Instance.new("Motor6D")
- Motor6D16 = Instance.new("Motor6D")
- Motor6D17 = Instance.new("Motor6D")
- UnionOperation18 = Instance.new("UnionOperation")
- Decal19 = Instance.new("Decal")
- BillboardGui20 = Instance.new("BillboardGui")
- TextLabel21 = Instance.new("TextLabel")
- TextLabel22 = Instance.new("TextLabel")
- Script23 = Instance.new("Script")
- Part24 = Instance.new("Part")
- 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")
- Sound33 = Instance.new("Sound")
- Sound34 = Instance.new("Sound")
- Sound35 = Instance.new("Sound")
- Motor6D36 = Instance.new("Motor6D")
- MeshPart37 = Instance.new("MeshPart")
- MeshPart38 = Instance.new("MeshPart")
- MeshPart39 = Instance.new("MeshPart")
- MeshPart40 = Instance.new("MeshPart")
- Script41 = Instance.new("Script")
- Sound42 = Instance.new("Sound")
- MeshPart43 = Instance.new("MeshPart")
- Weld44 = Instance.new("Weld")
- MeshPart45 = Instance.new("MeshPart")
- Weld46 = Instance.new("Weld")
- Humanoid47 = Instance.new("Humanoid")
- Part48 = Instance.new("Part")
- SpecialMesh49 = Instance.new("SpecialMesh")
- Camera0.Parent = mas
- Camera0.CFrame = CFrame.new(-541.142883, 93.6241302, 44.4250946, -0.896999061, -0.229961351, 0.377505511, -0, 0.854022264, 0.520236433, -0.442032397, 0.466651589, -0.766057193)
- Camera0.CoordinateFrame = CFrame.new(-541.142883, 93.6241302, 44.4250946, -0.896999061, -0.229961351, 0.377505511, -0, 0.854022264, 0.520236433, -0.442032397, 0.466651589, -0.766057193)
- Camera0.Focus = CFrame.new(-544.792542, 88.594574, 51.8312035, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Camera0.focus = CFrame.new(-544.792542, 88.594574, 51.8312035, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Model1.Parent = mas
- Part2.Parent = Model1
- Part2.CFrame = CFrame.new(-542.362, 84.453186, 64.4654312, 0, -1, 0, 1, 0, -0, 0, 0, 1)
- Part2.Orientation = Vector3.new(0, 0, 90)
- Part2.Position = Vector3.new(-542.362, 84.453186, 64.4654312)
- Part2.Rotation = Vector3.new(0, 0, 90)
- Part2.Transparency = 1
- Part2.Size = Vector3.new(2.05412745, 77.9478531, 77.9478531)
- Part2.Anchored = true
- Part2.BottomSurface = Enum.SurfaceType.Smooth
- Part2.Material = Enum.Material.SmoothPlastic
- Part2.TopSurface = Enum.SurfaceType.Smooth
- Part2.Shape = Enum.PartType.Cylinder
- Part3.Parent = Model1
- Part3.CFrame = CFrame.new(-542.737, 95.8481674, 63.9203873, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part3.Position = Vector3.new(-542.737, 95.8481674, 63.9203873)
- Part3.Color = Color3.new(0, 0, 1)
- Part3.Transparency = 1
- Part3.Size = Vector3.new(11.8312006, 21.6499958, 12.28965)
- Part3.Anchored = true
- Part3.BottomSurface = Enum.SurfaceType.Smooth
- Part3.BrickColor = BrickColor.new("Really blue")
- Part3.TopSurface = Enum.SurfaceType.Smooth
- Part3.brickColor = BrickColor.new("Really blue")
- UnionOperation4.Parent = Model1
- UnionOperation4.CFrame = CFrame.new(-542.859009, 95.8502197, 64.923317, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- UnionOperation4.Orientation = Vector3.new(0, 90, 0)
- UnionOperation4.Position = Vector3.new(-542.859009, 95.8502197, 64.923317)
- UnionOperation4.Rotation = Vector3.new(0, 90, 0)
- UnionOperation4.Color = Color3.new(0, 0, 1)
- UnionOperation4.Size = Vector3.new(78.035202, 28.0076447, 76.9837036)
- UnionOperation4.BrickColor = BrickColor.new("Really blue")
- UnionOperation4.CanCollide = false
- UnionOperation4.brickColor = BrickColor.new("Really blue")
- Part5.Parent = Model1
- Part5.CFrame = CFrame.new(-542.731995, 80.3513184, 63.8854446, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part5.Position = Vector3.new(-542.731995, 80.3513184, 63.8854446)
- Part5.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part5.Size = Vector3.new(86.9104919, 2.91001558, 85.2406006)
- Part5.Anchored = true
- Part5.BottomSurface = Enum.SurfaceType.Smooth
- Part5.BrickColor = BrickColor.new("Really black")
- Part5.TopParamA = -0.10000000149012
- Part5.TopParamB = 0.10000000149012
- Part5.TopSurface = Enum.SurfaceType.Motor
- Part5.TopSurfaceInput = Enum.InputType.Constant
- Part5.brickColor = BrickColor.new("Really black")
- PointLight6.Parent = Part5
- PointLight6.Range = 45
- PointLight6.Brightness = 0.60000002384186
- RotateV7.Parent = Part5
- RotateV7.C0 = CFrame.new(0, 1.45500779, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- RotateV7.C1 = CFrame.new(1.03999996, -14.04, 0.129999995, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- RotateV7.Part0 = Part5
- RotateV7.Part1 = UnionOperation4
- RotateV7.part1 = UnionOperation4
- RotateV7.BaseAngle = 1.5707963705063
- SpawnLocation8.Parent = mas
- SpawnLocation8.CFrame = CFrame.new(-522.671448, 85.6833878, 81.3869476, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- SpawnLocation8.Orientation = Vector3.new(0, 180, 0)
- SpawnLocation8.Position = Vector3.new(-522.671448, 85.6833878, 81.3869476)
- SpawnLocation8.Rotation = Vector3.new(-180, 0, -180)
- SpawnLocation8.Transparency = 1
- SpawnLocation8.Size = Vector3.new(6, 0.200000048, 6)
- SpawnLocation8.Anchored = true
- SpawnLocation8.BackSurface = Enum.SurfaceType.Weld
- SpawnLocation8.BottomSurface = Enum.SurfaceType.Weld
- SpawnLocation8.FrontSurface = Enum.SurfaceType.Weld
- SpawnLocation8.LeftSurface = Enum.SurfaceType.Weld
- SpawnLocation8.RightSurface = Enum.SurfaceType.Weld
- SpawnLocation8.TopSurface = Enum.SurfaceType.Smooth
- Model9.Name = "Joofil"
- Model9.Parent = mas
- Model9.PrimaryPart = Part24
- UnionOperation10.Name = "Torso"
- UnionOperation10.Parent = Model9
- UnionOperation10.CFrame = CFrame.new(-544.792603, 88.5832062, 50.7608109, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- UnionOperation10.Position = Vector3.new(-544.792603, 88.5832062, 50.7608109)
- UnionOperation10.Color = Color3.new(0.129412, 0.329412, 0.72549)
- UnionOperation10.Size = Vector3.new(2.00003052, 2.00002933, 1.00000763)
- UnionOperation10.BrickColor = BrickColor.new("Deep blue")
- UnionOperation10.Material = Enum.Material.SmoothPlastic
- UnionOperation10.brickColor = BrickColor.new("Deep blue")
- UnionOperation10.UsePartColor = true
- Beam11.Name = "Neck"
- Beam11.Parent = UnionOperation10
- Beam11.Attachment0 = nil
- Beam11.Attachment1 = nil
- Beam11.FaceCamera = true
- Beam11.LightEmission = 1
- Beam11.LightInfluence = 1
- Beam11.Segments = 50
- Beam11.Texture = "rbxassetid://1134824633"
- Beam11.TextureLength = 5
- Beam11.TextureMode = Enum.TextureMode.Static
- Beam11.TextureSpeed = 2
- Beam11.Transparency = NumberSequence.new(0.20000000298023,0.20000000298023)
- Beam11.Width0 = 0.5
- Beam11.Width1 = 0.5
- Sound12.Name = "Die"
- Sound12.Parent = UnionOperation10
- Sound12.MaxDistance = 300
- Sound12.EmitterSize = 35
- Sound12.MinDistance = 35
- Sound12.SoundId = "rbxassetid://2150821806"
- Sound12.Volume = 2
- Motor6D13.Name = "Head"
- Motor6D13.Parent = UnionOperation10
- Motor6D13.C1 = CFrame.new(-3.9100647e-05, -1.49995828, 2.28881836e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D13.Part0 = UnionOperation10
- Motor6D13.Part1 = UnionOperation18
- Motor6D13.part1 = UnionOperation18
- Motor6D14.Name = "RArm"
- Motor6D14.Parent = UnionOperation10
- Motor6D14.C1 = CFrame.new(-1.50003719, 0.000101089478, 2.28881836e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D14.Part0 = UnionOperation10
- Motor6D14.Part1 = MeshPart38
- Motor6D14.part1 = MeshPart38
- Motor6D15.Name = "LArm"
- Motor6D15.Parent = UnionOperation10
- Motor6D15.C1 = CFrame.new(1.49996281, 0.000101089478, 2.28881836e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D15.Part0 = UnionOperation10
- Motor6D15.Part1 = MeshPart37
- Motor6D15.part1 = MeshPart37
- Motor6D16.Name = "RLeg"
- Motor6D16.Parent = UnionOperation10
- Motor6D16.C1 = CFrame.new(-0.500037193, 2.00010109, 2.28881836e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D16.Part0 = UnionOperation10
- Motor6D16.Part1 = MeshPart39
- Motor6D16.part1 = MeshPart39
- Motor6D17.Name = "LLeg"
- Motor6D17.Parent = UnionOperation10
- Motor6D17.C1 = CFrame.new(0.499962807, 2.00010109, 2.28881836e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D17.Part0 = UnionOperation10
- Motor6D17.Part1 = MeshPart40
- Motor6D17.part1 = MeshPart40
- UnionOperation18.Name = "Head"
- UnionOperation18.Parent = Model9
- UnionOperation18.CFrame = CFrame.new(-544.792542, 90.083168, 50.760788, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- UnionOperation18.Position = Vector3.new(-544.792542, 90.083168, 50.760788)
- UnionOperation18.Color = Color3.new(0.937255, 0.721569, 0.219608)
- UnionOperation18.Size = Vector3.new(1.20000005, 1.20000005, 1.20000005)
- UnionOperation18.BrickColor = BrickColor.new("Gold")
- UnionOperation18.Material = Enum.Material.SmoothPlastic
- UnionOperation18.brickColor = BrickColor.new("Gold")
- UnionOperation18.UsePartColor = true
- Decal19.Name = "Smile"
- Decal19.Parent = UnionOperation18
- Decal19.Texture = "http://www.roblox.com/asset/?id=288072938"
- BillboardGui20.Name = "Nametag"
- BillboardGui20.Parent = UnionOperation18
- BillboardGui20.Size = UDim2.new(4, 0, 4, 0)
- BillboardGui20.AlwaysOnTop = true
- BillboardGui20.StudsOffset = Vector3.new(0, 2, 0)
- TextLabel21.Name = "Title"
- TextLabel21.Parent = BillboardGui20
- TextLabel21.Size = UDim2.new(1, 0, 0.25, 0)
- TextLabel21.BackgroundColor = BrickColor.new("Institutional white")
- TextLabel21.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel21.BackgroundTransparency = 1
- TextLabel21.BorderSizePixel = 0
- TextLabel21.ClipsDescendants = true
- TextLabel21.Font = Enum.Font.Fantasy
- TextLabel21.FontSize = Enum.FontSize.Size14
- TextLabel21.Text = "Joofil"
- TextLabel21.TextColor = BrickColor.new("Institutional white")
- TextLabel21.TextColor3 = Color3.new(1, 1, 1)
- TextLabel21.TextScaled = true
- TextLabel21.TextSize = 14
- TextLabel21.TextWrap = true
- TextLabel21.TextWrapped = true
- TextLabel22.Name = "HP"
- TextLabel22.Parent = BillboardGui20
- TextLabel22.Position = UDim2.new(0, 0, 0.25, 0)
- TextLabel22.Size = UDim2.new(1, 0, 0.100000001, 0)
- TextLabel22.BackgroundColor = BrickColor.new("Institutional white")
- TextLabel22.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel22.BackgroundTransparency = 1
- TextLabel22.BorderSizePixel = 0
- TextLabel22.ClipsDescendants = true
- TextLabel22.Font = Enum.Font.Fantasy
- TextLabel22.FontSize = Enum.FontSize.Size48
- TextLabel22.Text = "0/0"
- TextLabel22.TextColor = BrickColor.new("Mint")
- TextLabel22.TextColor3 = Color3.new(0.686275, 1, 0.686275)
- TextLabel22.TextScaled = true
- TextLabel22.TextSize = 45
- TextLabel22.TextWrap = true
- TextLabel22.TextWrapped = true
- Script23.Parent = BillboardGui20
- table.insert(cors,sandbox(Script23,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))
- Part24.Name = "HumanoidRootPart"
- Part24.Parent = Model9
- Part24.CFrame = CFrame.new(-544.792542, 88.583168, 50.760788, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part24.Position = Vector3.new(-544.792542, 88.583168, 50.760788)
- Part24.Color = Color3.new(0.937255, 0.721569, 0.219608)
- Part24.Transparency = 1
- Part24.Size = Vector3.new(2, 2, 1)
- Part24.Anchored = true
- Part24.BottomSurface = Enum.SurfaceType.Smooth
- Part24.BrickColor = BrickColor.new("Gold")
- Part24.Material = Enum.Material.SmoothPlastic
- Part24.TopSurface = Enum.SurfaceType.Smooth
- Part24.brickColor = BrickColor.new("Gold")
- Sound25.Name = "Chuckle"
- Sound25.Parent = Part24
- Sound25.MaxDistance = 300
- Sound25.EmitterSize = 35
- Sound25.MinDistance = 35
- Sound25.SoundId = "rbxassetid://2545010175"
- Sound25.Volume = 5
- Sound26.Name = "ByeBye"
- Sound26.Parent = Part24
- Sound26.MaxDistance = 300
- Sound26.EmitterSize = 35
- Sound26.MinDistance = 35
- Sound26.SoundId = "rbxassetid://2545211516"
- Sound26.Volume = 5
- Sound27.Name = "ChaosChaos"
- Sound27.Parent = Part24
- Sound27.MaxDistance = 300
- Sound27.EmitterSize = 35
- Sound27.MinDistance = 35
- Sound27.SoundId = "rbxassetid://2545008459"
- Sound27.Volume = 5
- Sound28.Name = "Ha2"
- Sound28.Parent = Part24
- Sound28.MaxDistance = 300
- Sound28.EmitterSize = 35
- Sound28.MinDistance = 35
- Sound28.SoundId = "rbxassetid://2606662454"
- Sound28.Volume = 5
- Sound29.Name = "Ha1"
- Sound29.Parent = Part24
- Sound29.MaxDistance = 300
- Sound29.EmitterSize = 35
- Sound29.MinDistance = 35
- Sound29.SoundId = "rbxassetid://2606661976"
- Sound29.Volume = 5
- Sound30.Name = "Neo"
- Sound30.Parent = Part24
- Sound30.MaxDistance = 300
- Sound30.EmitterSize = 35
- Sound30.MinDistance = 35
- Sound30.SoundId = "rbxassetid://2545018472"
- Sound30.Volume = 5
- Sound31.Name = "MeDoAnything"
- Sound31.Parent = Part24
- Sound31.MaxDistance = 300
- Sound31.EmitterSize = 35
- Sound31.MinDistance = 35
- Sound31.SoundId = "rbxassetid://2544975373"
- Sound31.Volume = 5
- Sound32.Name = "OH"
- Sound32.Parent = Part24
- Sound32.MaxDistance = 300
- Sound32.EmitterSize = 35
- Sound32.MinDistance = 35
- Sound32.SoundId = "rbxassetid://2545012765"
- Sound32.Volume = 5
- Sound33.Name = "Laugh"
- Sound33.Parent = Part24
- Sound33.MaxDistance = 300
- Sound33.EmitterSize = 35
- Sound33.MinDistance = 35
- Sound33.SoundId = "rbxassetid://2545211765"
- Sound33.Volume = 5
- Sound34.Name = "Metamorph"
- Sound34.Parent = Part24
- Sound34.MaxDistance = 300
- Sound34.EmitterSize = 35
- Sound34.MinDistance = 35
- Sound34.SoundId = "rbxassetid://2545011398"
- Sound34.Volume = 5
- Sound35.Name = "Deathed"
- Sound35.Parent = Part24
- Sound35.MaxDistance = 300
- Sound35.EmitterSize = 35
- Sound35.MinDistance = 35
- Sound35.SoundId = "rbxassetid://2637401925"
- Sound35.Volume = 2
- Motor6D36.Name = "Root"
- Motor6D36.Parent = Part24
- Motor6D36.C1 = CFrame.new(3.9100647e-05, -4.17232513e-05, -2.28881836e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D36.Part0 = Part24
- Motor6D36.Part1 = UnionOperation10
- Motor6D36.part1 = UnionOperation10
- MeshPart37.Name = "Left Arm"
- MeshPart37.Parent = Model9
- MeshPart37.CFrame = CFrame.new(-546.292542, 88.583107, 50.760788, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- MeshPart37.Position = Vector3.new(-546.292542, 88.583107, 50.760788)
- MeshPart37.Color = Color3.new(0.937255, 0.721569, 0.219608)
- MeshPart37.Size = Vector3.new(1.00004005, 2.00002551, 1)
- MeshPart37.BrickColor = BrickColor.new("Gold")
- MeshPart37.Material = Enum.Material.SmoothPlastic
- MeshPart37.brickColor = BrickColor.new("Gold")
- MeshPart38.Name = "Right Arm"
- MeshPart38.Parent = Model9
- MeshPart38.CFrame = CFrame.new(-543.292542, 88.583107, 50.760788, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- MeshPart38.Position = Vector3.new(-543.292542, 88.583107, 50.760788)
- MeshPart38.Color = Color3.new(0.937255, 0.721569, 0.219608)
- MeshPart38.Size = Vector3.new(1.00004005, 2.00002551, 1)
- MeshPart38.BrickColor = BrickColor.new("Gold")
- MeshPart38.Material = Enum.Material.SmoothPlastic
- MeshPart38.brickColor = BrickColor.new("Gold")
- MeshPart39.Name = "Right Leg"
- MeshPart39.Parent = Model9
- MeshPart39.CFrame = CFrame.new(-544.292542, 86.583107, 50.760788, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- MeshPart39.Position = Vector3.new(-544.292542, 86.583107, 50.760788)
- MeshPart39.Color = Color3.new(0.294118, 0.592157, 0.294118)
- MeshPart39.Size = Vector3.new(1.00004005, 2.00002551, 1)
- MeshPart39.BrickColor = BrickColor.new("Bright green")
- MeshPart39.Material = Enum.Material.SmoothPlastic
- MeshPart39.brickColor = BrickColor.new("Bright green")
- MeshPart40.Name = "Left Leg"
- MeshPart40.Parent = Model9
- MeshPart40.CFrame = CFrame.new(-545.292542, 86.583107, 50.760788, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- MeshPart40.Position = Vector3.new(-545.292542, 86.583107, 50.760788)
- MeshPart40.Color = Color3.new(0.294118, 0.592157, 0.294118)
- MeshPart40.Size = Vector3.new(1.00004005, 2.00002551, 1)
- MeshPart40.BrickColor = BrickColor.new("Bright green")
- MeshPart40.Material = Enum.Material.SmoothPlastic
- MeshPart40.brickColor = BrickColor.new("Bright green")
- Script41.Name = "REOOFING"
- Script41.Parent = Model9
- table.insert(cors,sandbox(Script41,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))
- Sound42.Name = "Music"
- Sound42.Parent = Script41
- Sound42.Looped = true
- Sound42.SoundId = "rbxassetid://2701520256"
- Sound42.Volume = 2.5
- MeshPart43.Name = "Hat"
- MeshPart43.Parent = Model9
- MeshPart43.CFrame = CFrame.new(-544.792542, 90.7830505, 51.2608185, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- MeshPart43.Position = Vector3.new(-544.792542, 90.7830505, 51.2608185)
- MeshPart43.Color = Color3.new(0.129412, 0.329412, 0.72549)
- MeshPart43.Size = Vector3.new(2.75788856, 1.64599526, 2.41334939)
- MeshPart43.BrickColor = BrickColor.new("Deep blue")
- MeshPart43.CanCollide = false
- MeshPart43.Material = Enum.Material.SmoothPlastic
- MeshPart43.brickColor = BrickColor.new("Deep blue")
- Weld44.Name = "Joint"
- Weld44.Parent = MeshPart43
- Weld44.C0 = CFrame.new(0, -0.699880123, -0.500030518, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld44.Part0 = MeshPart43
- Weld44.Part1 = UnionOperation18
- Weld44.part1 = UnionOperation18
- MeshPart45.Name = "Tail"
- MeshPart45.Parent = Model9
- MeshPart45.CFrame = CFrame.new(-544.792542, 87.0130463, 52.3607712, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- MeshPart45.Position = Vector3.new(-544.792542, 87.0130463, 52.3607712)
- MeshPart45.Color = Color3.new(0.129412, 0.329412, 0.72549)
- MeshPart45.Size = Vector3.new(0.462002546, 1.40317202, 2.49498963)
- MeshPart45.BrickColor = BrickColor.new("Deep blue")
- MeshPart45.CanCollide = false
- MeshPart45.Material = Enum.Material.SmoothPlastic
- MeshPart45.brickColor = BrickColor.new("Deep blue")
- Weld46.Name = "Joint"
- Weld46.Parent = MeshPart45
- Weld46.C0 = CFrame.new(-3.81469727e-05, 1.57016039, -1.59996033, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld46.Part0 = MeshPart45
- Weld46.Part1 = UnionOperation10
- Weld46.part1 = UnionOperation10
- Humanoid47.Parent = Model9
- Humanoid47.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
- Humanoid47.Health = 6500
- Humanoid47.LeftLeg = MeshPart40
- Humanoid47.MaxHealth = 6500
- Humanoid47.MaxSlopeAngle = 89.900001525879
- Humanoid47.RightLeg = MeshPart39
- Humanoid47.Torso = Part24
- Humanoid47.maxHealth = 6500
- Part48.Name = "Wheelchair"
- Part48.Parent = Model9
- Part48.CFrame = CFrame.new(-544.792542, 87.6830444, 50.7607727, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part48.Position = Vector3.new(-544.792542, 87.6830444, 50.7607727)
- Part48.Transparency = 1
- Part48.Size = Vector3.new(0.0500000007, 0.0500000007, 0.0500000007)
- Part48.Anchored = true
- Part48.BottomSurface = Enum.SurfaceType.Smooth
- Part48.CanCollide = false
- Part48.Material = Enum.Material.SmoothPlastic
- Part48.TopSurface = Enum.SurfaceType.Smooth
- SpecialMesh49.Parent = Part48
- SpecialMesh49.MeshId = "rbxassetid://1226669573"
- SpecialMesh49.Scale = Vector3.new(2, 2, 2)
- SpecialMesh49.TextureId = "rbxassetid://1226669284"
- SpecialMesh49.MeshType = Enum.MeshType.FileMesh
- 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
- end))
- Model3.Name = "CompiledScripts"
- Model3.Parent = mas
- Script4.Name = "Script1"
- Script4.Parent = Model3
- table.insert(cors,sandbox(Script4,function()
- --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")
- SpawnLocation1 = Instance.new("SpawnLocation")
- Model2 = Instance.new("Model")
- UnionOperation3 = Instance.new("UnionOperation")
- Beam4 = Instance.new("Beam")
- Sound5 = Instance.new("Sound")
- Motor6D6 = Instance.new("Motor6D")
- Motor6D7 = Instance.new("Motor6D")
- Motor6D8 = Instance.new("Motor6D")
- Motor6D9 = Instance.new("Motor6D")
- Motor6D10 = Instance.new("Motor6D")
- UnionOperation11 = Instance.new("UnionOperation")
- Decal12 = Instance.new("Decal")
- BillboardGui13 = Instance.new("BillboardGui")
- TextLabel14 = Instance.new("TextLabel")
- TextLabel15 = Instance.new("TextLabel")
- Script16 = Instance.new("Script")
- Part17 = Instance.new("Part")
- Sound18 = Instance.new("Sound")
- Sound19 = Instance.new("Sound")
- Sound20 = Instance.new("Sound")
- Sound21 = Instance.new("Sound")
- 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")
- Motor6D29 = Instance.new("Motor6D")
- MeshPart30 = Instance.new("MeshPart")
- MeshPart31 = Instance.new("MeshPart")
- MeshPart32 = Instance.new("MeshPart")
- MeshPart33 = Instance.new("MeshPart")
- Script34 = Instance.new("Script")
- Sound35 = Instance.new("Sound")
- MeshPart36 = Instance.new("MeshPart")
- Weld37 = Instance.new("Weld")
- MeshPart38 = Instance.new("MeshPart")
- Weld39 = Instance.new("Weld")
- Humanoid40 = Instance.new("Humanoid")
- Part41 = Instance.new("Part")
- SpecialMesh42 = Instance.new("SpecialMesh")
- Model43 = Instance.new("Model")
- LocalScript44 = Instance.new("LocalScript")
- Camera0.Parent = mas
- Camera0.CFrame = CFrame.new(-532.752136, 96.776268, 32.397644, -0.896999061, -0.229961351, 0.377505511, -0, 0.854022264, 0.520236433, -0.442032397, 0.466651589, -0.766057193)
- Camera0.CoordinateFrame = CFrame.new(-532.752136, 96.776268, 32.397644, -0.896999061, -0.229961351, 0.377505511, -0, 0.854022264, 0.520236433, -0.442032397, 0.466651589, -0.766057193)
- Camera0.Focus = CFrame.new(-536.401794, 91.7467117, 39.8037529, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Camera0.focus = CFrame.new(-536.401794, 91.7467117, 39.8037529, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- SpawnLocation1.Parent = mas
- SpawnLocation1.CFrame = CFrame.new(-522.671448, 85.6833878, 81.3869476, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- SpawnLocation1.Orientation = Vector3.new(0, 180, 0)
- SpawnLocation1.Position = Vector3.new(-522.671448, 85.6833878, 81.3869476)
- SpawnLocation1.Rotation = Vector3.new(-180, 0, -180)
- SpawnLocation1.Transparency = 1
- SpawnLocation1.Size = Vector3.new(6, 0.200000048, 6)
- SpawnLocation1.Anchored = true
- SpawnLocation1.BackSurface = Enum.SurfaceType.Weld
- SpawnLocation1.BottomSurface = Enum.SurfaceType.Weld
- SpawnLocation1.FrontSurface = Enum.SurfaceType.Weld
- SpawnLocation1.LeftSurface = Enum.SurfaceType.Weld
- SpawnLocation1.RightSurface = Enum.SurfaceType.Weld
- SpawnLocation1.TopSurface = Enum.SurfaceType.Smooth
- Model2.Name = "Joofil"
- Model2.Parent = mas
- Model2.PrimaryPart = Part17
- UnionOperation3.Name = "Torso"
- UnionOperation3.Parent = Model2
- UnionOperation3.CFrame = CFrame.new(-544.792603, 88.5832062, 50.7608109, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- UnionOperation3.Position = Vector3.new(-544.792603, 88.5832062, 50.7608109)
- UnionOperation3.Color = Color3.new(0.129412, 0.329412, 0.72549)
- UnionOperation3.Size = Vector3.new(2.00003052, 2.00002933, 1.00000763)
- UnionOperation3.BrickColor = BrickColor.new("Deep blue")
- UnionOperation3.Material = Enum.Material.SmoothPlastic
- UnionOperation3.brickColor = BrickColor.new("Deep blue")
- UnionOperation3.UsePartColor = true
- Beam4.Name = "Neck"
- Beam4.Parent = UnionOperation3
- Beam4.Attachment0 = nil
- Beam4.Attachment1 = nil
- Beam4.FaceCamera = true
- Beam4.LightEmission = 1
- Beam4.LightInfluence = 1
- Beam4.Segments = 50
- Beam4.Texture = "rbxassetid://1134824633"
- Beam4.TextureLength = 5
- Beam4.TextureMode = Enum.TextureMode.Static
- Beam4.TextureSpeed = 2
- Beam4.Transparency = NumberSequence.new(0.20000000298023,0.20000000298023)
- Beam4.Width0 = 0.5
- Beam4.Width1 = 0.5
- Sound5.Name = "Die"
- Sound5.Parent = UnionOperation3
- Sound5.MaxDistance = 300
- Sound5.EmitterSize = 35
- Sound5.MinDistance = 35
- Sound5.SoundId = "rbxassetid://2150821806"
- Sound5.Volume = 2
- Motor6D6.Name = "Head"
- Motor6D6.Parent = UnionOperation3
- Motor6D6.C1 = CFrame.new(-3.9100647e-05, -1.49995828, 2.28881836e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D6.Part0 = UnionOperation3
- Motor6D6.Part1 = UnionOperation11
- Motor6D6.part1 = UnionOperation11
- Motor6D7.Name = "RArm"
- Motor6D7.Parent = UnionOperation3
- Motor6D7.C1 = CFrame.new(-1.50003719, 0.000101089478, 2.28881836e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D7.Part0 = UnionOperation3
- Motor6D7.Part1 = MeshPart31
- Motor6D7.part1 = MeshPart31
- Motor6D8.Name = "LArm"
- Motor6D8.Parent = UnionOperation3
- Motor6D8.C1 = CFrame.new(1.49996281, 0.000101089478, 2.28881836e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D8.Part0 = UnionOperation3
- Motor6D8.Part1 = MeshPart30
- Motor6D8.part1 = MeshPart30
- Motor6D9.Name = "RLeg"
- Motor6D9.Parent = UnionOperation3
- Motor6D9.C1 = CFrame.new(-0.500037193, 2.00010109, 2.28881836e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D9.Part0 = UnionOperation3
- Motor6D9.Part1 = MeshPart32
- Motor6D9.part1 = MeshPart32
- Motor6D10.Name = "LLeg"
- Motor6D10.Parent = UnionOperation3
- Motor6D10.C1 = CFrame.new(0.499962807, 2.00010109, 2.28881836e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D10.Part0 = UnionOperation3
- Motor6D10.Part1 = MeshPart33
- Motor6D10.part1 = MeshPart33
- UnionOperation11.Name = "Head"
- UnionOperation11.Parent = Model2
- UnionOperation11.CFrame = CFrame.new(-544.792542, 90.083168, 50.760788, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- UnionOperation11.Position = Vector3.new(-544.792542, 90.083168, 50.760788)
- UnionOperation11.Color = Color3.new(0.937255, 0.721569, 0.219608)
- UnionOperation11.Size = Vector3.new(1.20000005, 1.20000005, 1.20000005)
- UnionOperation11.BrickColor = BrickColor.new("Gold")
- UnionOperation11.Material = Enum.Material.SmoothPlastic
- UnionOperation11.brickColor = BrickColor.new("Gold")
- UnionOperation11.UsePartColor = true
- Decal12.Name = "Smile"
- Decal12.Parent = UnionOperation11
- Decal12.Texture = "http://www.roblox.com/asset/?id=288072938"
- BillboardGui13.Name = "Nametag"
- BillboardGui13.Parent = UnionOperation11
- BillboardGui13.Size = UDim2.new(4, 0, 4, 0)
- BillboardGui13.AlwaysOnTop = true
- BillboardGui13.StudsOffset = Vector3.new(0, 2, 0)
- TextLabel14.Name = "Title"
- TextLabel14.Parent = BillboardGui13
- TextLabel14.Size = UDim2.new(1, 0, 0.25, 0)
- TextLabel14.BackgroundColor = BrickColor.new("Institutional white")
- TextLabel14.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel14.BackgroundTransparency = 1
- TextLabel14.BorderSizePixel = 0
- TextLabel14.ClipsDescendants = true
- TextLabel14.Font = Enum.Font.Fantasy
- TextLabel14.FontSize = Enum.FontSize.Size14
- TextLabel14.Text = "Joofil"
- TextLabel14.TextColor = BrickColor.new("Institutional white")
- TextLabel14.TextColor3 = Color3.new(1, 1, 1)
- TextLabel14.TextScaled = true
- TextLabel14.TextSize = 14
- TextLabel14.TextWrap = true
- TextLabel14.TextWrapped = true
- TextLabel15.Name = "HP"
- TextLabel15.Parent = BillboardGui13
- TextLabel15.Position = UDim2.new(0, 0, 0.25, 0)
- TextLabel15.Size = UDim2.new(1, 0, 0.100000001, 0)
- TextLabel15.BackgroundColor = BrickColor.new("Institutional white")
- TextLabel15.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel15.BackgroundTransparency = 1
- TextLabel15.BorderSizePixel = 0
- TextLabel15.ClipsDescendants = true
- TextLabel15.Font = Enum.Font.Fantasy
- TextLabel15.FontSize = Enum.FontSize.Size48
- TextLabel15.Text = "0/0"
- TextLabel15.TextColor = BrickColor.new("Mint")
- TextLabel15.TextColor3 = Color3.new(0.686275, 1, 0.686275)
- TextLabel15.TextScaled = true
- TextLabel15.TextSize = 45
- TextLabel15.TextWrap = true
- TextLabel15.TextWrapped = true
- Script16.Parent = BillboardGui13
- table.insert(cors,sandbox(Script16,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))
- Part17.Name = "HumanoidRootPart"
- Part17.Parent = Model2
- Part17.CFrame = CFrame.new(-544.792542, 88.583168, 50.760788, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part17.Position = Vector3.new(-544.792542, 88.583168, 50.760788)
- Part17.Color = Color3.new(0.937255, 0.721569, 0.219608)
- Part17.Transparency = 1
- Part17.Size = Vector3.new(2, 2, 1)
- Part17.Anchored = true
- Part17.BottomSurface = Enum.SurfaceType.Smooth
- Part17.BrickColor = BrickColor.new("Gold")
- Part17.Material = Enum.Material.SmoothPlastic
- Part17.TopSurface = Enum.SurfaceType.Smooth
- Part17.brickColor = BrickColor.new("Gold")
- Sound18.Name = "Chuckle"
- Sound18.Parent = Part17
- Sound18.MaxDistance = 300
- Sound18.EmitterSize = 35
- Sound18.MinDistance = 35
- Sound18.SoundId = "rbxassetid://2545010175"
- Sound18.Volume = 5
- Sound19.Name = "ByeBye"
- Sound19.Parent = Part17
- Sound19.MaxDistance = 300
- Sound19.EmitterSize = 35
- Sound19.MinDistance = 35
- Sound19.SoundId = "rbxassetid://2545211516"
- Sound19.Volume = 5
- Sound20.Name = "ChaosChaos"
- Sound20.Parent = Part17
- Sound20.MaxDistance = 300
- Sound20.EmitterSize = 35
- Sound20.MinDistance = 35
- Sound20.SoundId = "rbxassetid://2545008459"
- Sound20.Volume = 5
- Sound21.Name = "Ha2"
- Sound21.Parent = Part17
- Sound21.MaxDistance = 300
- Sound21.EmitterSize = 35
- Sound21.MinDistance = 35
- Sound21.SoundId = "rbxassetid://2606662454"
- Sound21.Volume = 5
- Sound22.Name = "Ha1"
- Sound22.Parent = Part17
- Sound22.MaxDistance = 300
- Sound22.EmitterSize = 35
- Sound22.MinDistance = 35
- Sound22.SoundId = "rbxassetid://2606661976"
- Sound22.Volume = 5
- Sound23.Name = "Neo"
- Sound23.Parent = Part17
- Sound23.MaxDistance = 300
- Sound23.EmitterSize = 35
- Sound23.MinDistance = 35
- Sound23.SoundId = "rbxassetid://2545018472"
- Sound23.Volume = 5
- Sound24.Name = "MeDoAnything"
- Sound24.Parent = Part17
- Sound24.MaxDistance = 300
- Sound24.EmitterSize = 35
- Sound24.MinDistance = 35
- Sound24.SoundId = "rbxassetid://2544975373"
- Sound24.Volume = 5
- Sound25.Name = "OH"
- Sound25.Parent = Part17
- Sound25.MaxDistance = 300
- Sound25.EmitterSize = 35
- Sound25.MinDistance = 35
- Sound25.SoundId = "rbxassetid://2545012765"
- Sound25.Volume = 5
- Sound26.Name = "Laugh"
- Sound26.Parent = Part17
- Sound26.MaxDistance = 300
- Sound26.EmitterSize = 35
- Sound26.MinDistance = 35
- Sound26.SoundId = "rbxassetid://2545211765"
- Sound26.Volume = 5
- Sound27.Name = "Metamorph"
- Sound27.Parent = Part17
- Sound27.MaxDistance = 300
- Sound27.EmitterSize = 35
- Sound27.MinDistance = 35
- Sound27.SoundId = "rbxassetid://2545011398"
- Sound27.Volume = 5
- Sound28.Name = "Deathed"
- Sound28.Parent = Part17
- Sound28.MaxDistance = 300
- Sound28.EmitterSize = 35
- Sound28.MinDistance = 35
- Sound28.SoundId = "rbxassetid://2637401925"
- Sound28.Volume = 2
- Motor6D29.Name = "Root"
- Motor6D29.Parent = Part17
- Motor6D29.C1 = CFrame.new(3.9100647e-05, -4.17232513e-05, -2.28881836e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D29.Part0 = Part17
- Motor6D29.Part1 = UnionOperation3
- Motor6D29.part1 = UnionOperation3
- MeshPart30.Name = "Left Arm"
- MeshPart30.Parent = Model2
- MeshPart30.CFrame = CFrame.new(-546.292542, 88.583107, 50.760788, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- MeshPart30.Position = Vector3.new(-546.292542, 88.583107, 50.760788)
- MeshPart30.Color = Color3.new(0.937255, 0.721569, 0.219608)
- MeshPart30.Size = Vector3.new(1.00004005, 2.00002551, 1)
- MeshPart30.BrickColor = BrickColor.new("Gold")
- MeshPart30.Material = Enum.Material.SmoothPlastic
- MeshPart30.brickColor = BrickColor.new("Gold")
- MeshPart31.Name = "Right Arm"
- MeshPart31.Parent = Model2
- MeshPart31.CFrame = CFrame.new(-543.292542, 88.583107, 50.760788, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- MeshPart31.Position = Vector3.new(-543.292542, 88.583107, 50.760788)
- MeshPart31.Color = Color3.new(0.937255, 0.721569, 0.219608)
- MeshPart31.Size = Vector3.new(1.00004005, 2.00002551, 1)
- MeshPart31.BrickColor = BrickColor.new("Gold")
- MeshPart31.Material = Enum.Material.SmoothPlastic
- MeshPart31.brickColor = BrickColor.new("Gold")
- MeshPart32.Name = "Right Leg"
- MeshPart32.Parent = Model2
- MeshPart32.CFrame = CFrame.new(-544.292542, 86.583107, 50.760788, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- MeshPart32.Position = Vector3.new(-544.292542, 86.583107, 50.760788)
- MeshPart32.Color = Color3.new(0.294118, 0.592157, 0.294118)
- MeshPart32.Size = Vector3.new(1.00004005, 2.00002551, 1)
- MeshPart32.BrickColor = BrickColor.new("Bright green")
- MeshPart32.Material = Enum.Material.SmoothPlastic
- MeshPart32.brickColor = BrickColor.new("Bright green")
- MeshPart33.Name = "Left Leg"
- MeshPart33.Parent = Model2
- MeshPart33.CFrame = CFrame.new(-545.292542, 86.583107, 50.760788, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- MeshPart33.Position = Vector3.new(-545.292542, 86.583107, 50.760788)
- MeshPart33.Color = Color3.new(0.294118, 0.592157, 0.294118)
- MeshPart33.Size = Vector3.new(1.00004005, 2.00002551, 1)
- MeshPart33.BrickColor = BrickColor.new("Bright green")
- MeshPart33.Material = Enum.Material.SmoothPlastic
- MeshPart33.brickColor = BrickColor.new("Bright green")
- Script34.Name = "REOOFING"
- Script34.Parent = Model2
- table.insert(cors,sandbox(Script34,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))
- Sound35.Name = "Music"
- Sound35.Parent = Script34
- Sound35.Looped = true
- Sound35.SoundId = "rbxassetid://2701520256"
- Sound35.Volume = 2.5
- MeshPart36.Name = "Hat"
- MeshPart36.Parent = Model2
- MeshPart36.CFrame = CFrame.new(-544.792542, 90.7830505, 51.2608185, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- MeshPart36.Position = Vector3.new(-544.792542, 90.7830505, 51.2608185)
- MeshPart36.Color = Color3.new(0.129412, 0.329412, 0.72549)
- MeshPart36.Size = Vector3.new(2.75788856, 1.64599526, 2.41334939)
- MeshPart36.BrickColor = BrickColor.new("Deep blue")
- MeshPart36.CanCollide = false
- MeshPart36.Material = Enum.Material.SmoothPlastic
- MeshPart36.brickColor = BrickColor.new("Deep blue")
- Weld37.Name = "Joint"
- Weld37.Parent = MeshPart36
- Weld37.C0 = CFrame.new(0, -0.699880123, -0.500030518, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld37.Part0 = MeshPart36
- Weld37.Part1 = UnionOperation11
- Weld37.part1 = UnionOperation11
- MeshPart38.Name = "Tail"
- MeshPart38.Parent = Model2
- MeshPart38.CFrame = CFrame.new(-544.792542, 87.0130463, 52.3607712, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- MeshPart38.Position = Vector3.new(-544.792542, 87.0130463, 52.3607712)
- MeshPart38.Color = Color3.new(0.129412, 0.329412, 0.72549)
- MeshPart38.Size = Vector3.new(0.462002546, 1.40317202, 2.49498963)
- MeshPart38.BrickColor = BrickColor.new("Deep blue")
- MeshPart38.CanCollide = false
- MeshPart38.Material = Enum.Material.SmoothPlastic
- MeshPart38.brickColor = BrickColor.new("Deep blue")
- Weld39.Name = "Joint"
- Weld39.Parent = MeshPart38
- Weld39.C0 = CFrame.new(-3.81469727e-05, 1.57016039, -1.59996033, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld39.Part0 = MeshPart38
- Weld39.Part1 = UnionOperation3
- Weld39.part1 = UnionOperation3
- Humanoid40.Parent = Model2
- Humanoid40.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
- Humanoid40.Health = 6500
- Humanoid40.LeftLeg = MeshPart33
- Humanoid40.MaxHealth = 6500
- Humanoid40.MaxSlopeAngle = 89.900001525879
- Humanoid40.RightLeg = MeshPart32
- Humanoid40.Torso = Part17
- Humanoid40.maxHealth = 6500
- Part41.Name = "Wheelchair"
- Part41.Parent = Model2
- Part41.CFrame = CFrame.new(-544.792542, 87.6830444, 50.7607727, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part41.Position = Vector3.new(-544.792542, 87.6830444, 50.7607727)
- Part41.Transparency = 1
- Part41.Size = Vector3.new(0.0500000007, 0.0500000007, 0.0500000007)
- Part41.Anchored = true
- Part41.BottomSurface = Enum.SurfaceType.Smooth
- Part41.CanCollide = false
- Part41.Material = Enum.Material.SmoothPlastic
- Part41.TopSurface = Enum.SurfaceType.Smooth
- SpecialMesh42.Parent = Part41
- SpecialMesh42.MeshId = "rbxassetid://1226669573"
- SpecialMesh42.Scale = Vector3.new(2, 2, 2)
- SpecialMesh42.TextureId = "rbxassetid://1226669284"
- SpecialMesh42.MeshType = Enum.MeshType.FileMesh
- Model43.Name = "CompiledScripts"
- Model43.Parent = mas
- LocalScript44.Name = "Script1"
- LocalScript44.Parent = Model43
- table.insert(cors,sandbox(LocalScript44,function()
- --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")
- Part3 = Instance.new("Part")
- UnionOperation4 = Instance.new("UnionOperation")
- Part5 = Instance.new("Part")
- PointLight6 = Instance.new("PointLight")
- RotateV7 = Instance.new("RotateV")
- SpawnLocation8 = Instance.new("SpawnLocation")
- Model9 = Instance.new("Model")
- UnionOperation10 = Instance.new("UnionOperation")
- Beam11 = Instance.new("Beam")
- Sound12 = Instance.new("Sound")
- Motor6D13 = Instance.new("Motor6D")
- Motor6D14 = Instance.new("Motor6D")
- Motor6D15 = Instance.new("Motor6D")
- Motor6D16 = Instance.new("Motor6D")
- Motor6D17 = Instance.new("Motor6D")
- UnionOperation18 = Instance.new("UnionOperation")
- Decal19 = Instance.new("Decal")
- BillboardGui20 = Instance.new("BillboardGui")
- TextLabel21 = Instance.new("TextLabel")
- TextLabel22 = Instance.new("TextLabel")
- Script23 = Instance.new("Script")
- Part24 = Instance.new("Part")
- 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")
- Sound33 = Instance.new("Sound")
- Sound34 = Instance.new("Sound")
- Sound35 = Instance.new("Sound")
- Motor6D36 = Instance.new("Motor6D")
- MeshPart37 = Instance.new("MeshPart")
- MeshPart38 = Instance.new("MeshPart")
- MeshPart39 = Instance.new("MeshPart")
- MeshPart40 = Instance.new("MeshPart")
- Script41 = Instance.new("Script")
- Sound42 = Instance.new("Sound")
- MeshPart43 = Instance.new("MeshPart")
- Weld44 = Instance.new("Weld")
- MeshPart45 = Instance.new("MeshPart")
- Weld46 = Instance.new("Weld")
- Humanoid47 = Instance.new("Humanoid")
- Part48 = Instance.new("Part")
- SpecialMesh49 = Instance.new("SpecialMesh")
- Camera0.Parent = mas
- Camera0.CFrame = CFrame.new(-541.142883, 93.6241302, 44.4250946, -0.896999061, -0.229961351, 0.377505511, -0, 0.854022264, 0.520236433, -0.442032397, 0.466651589, -0.766057193)
- Camera0.CoordinateFrame = CFrame.new(-541.142883, 93.6241302, 44.4250946, -0.896999061, -0.229961351, 0.377505511, -0, 0.854022264, 0.520236433, -0.442032397, 0.466651589, -0.766057193)
- Camera0.Focus = CFrame.new(-544.792542, 88.594574, 51.8312035, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Camera0.focus = CFrame.new(-544.792542, 88.594574, 51.8312035, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Model1.Parent = mas
- Part2.Parent = Model1
- Part2.CFrame = CFrame.new(-542.362, 84.453186, 64.4654312, 0, -1, 0, 1, 0, -0, 0, 0, 1)
- Part2.Orientation = Vector3.new(0, 0, 90)
- Part2.Position = Vector3.new(-542.362, 84.453186, 64.4654312)
- Part2.Rotation = Vector3.new(0, 0, 90)
- Part2.Transparency = 1
- Part2.Size = Vector3.new(2.05412745, 77.9478531, 77.9478531)
- Part2.Anchored = true
- Part2.BottomSurface = Enum.SurfaceType.Smooth
- Part2.Material = Enum.Material.SmoothPlastic
- Part2.TopSurface = Enum.SurfaceType.Smooth
- Part2.Shape = Enum.PartType.Cylinder
- Part3.Parent = Model1
- Part3.CFrame = CFrame.new(-542.737, 95.8481674, 63.9203873, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part3.Position = Vector3.new(-542.737, 95.8481674, 63.9203873)
- Part3.Color = Color3.new(0, 0, 1)
- Part3.Transparency = 1
- Part3.Size = Vector3.new(11.8312006, 21.6499958, 12.28965)
- Part3.Anchored = true
- Part3.BottomSurface = Enum.SurfaceType.Smooth
- Part3.BrickColor = BrickColor.new("Really blue")
- Part3.TopSurface = Enum.SurfaceType.Smooth
- Part3.brickColor = BrickColor.new("Really blue")
- UnionOperation4.Parent = Model1
- UnionOperation4.CFrame = CFrame.new(-542.859009, 95.8502197, 64.923317, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- UnionOperation4.Orientation = Vector3.new(0, 90, 0)
- UnionOperation4.Position = Vector3.new(-542.859009, 95.8502197, 64.923317)
- UnionOperation4.Rotation = Vector3.new(0, 90, 0)
- UnionOperation4.Color = Color3.new(0, 0, 1)
- UnionOperation4.Size = Vector3.new(78.035202, 28.0076447, 76.9837036)
- UnionOperation4.BrickColor = BrickColor.new("Really blue")
- UnionOperation4.CanCollide = false
- UnionOperation4.brickColor = BrickColor.new("Really blue")
- Part5.Parent = Model1
- Part5.CFrame = CFrame.new(-542.731995, 80.3513184, 63.8854446, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part5.Position = Vector3.new(-542.731995, 80.3513184, 63.8854446)
- Part5.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part5.Size = Vector3.new(86.9104919, 2.91001558, 85.2406006)
- Part5.Anchored = true
- Part5.BottomSurface = Enum.SurfaceType.Smooth
- Part5.BrickColor = BrickColor.new("Really black")
- Part5.TopParamA = -0.10000000149012
- Part5.TopParamB = 0.10000000149012
- Part5.TopSurface = Enum.SurfaceType.Motor
- Part5.TopSurfaceInput = Enum.InputType.Constant
- Part5.brickColor = BrickColor.new("Really black")
- PointLight6.Parent = Part5
- PointLight6.Range = 45
- PointLight6.Brightness = 0.60000002384186
- RotateV7.Parent = Part5
- RotateV7.C0 = CFrame.new(0, 1.45500779, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- RotateV7.C1 = CFrame.new(1.03999996, -14.04, 0.129999995, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- RotateV7.Part0 = Part5
- RotateV7.Part1 = UnionOperation4
- RotateV7.part1 = UnionOperation4
- RotateV7.BaseAngle = 1.5707963705063
- SpawnLocation8.Parent = mas
- SpawnLocation8.CFrame = CFrame.new(-522.671448, 85.6833878, 81.3869476, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- SpawnLocation8.Orientation = Vector3.new(0, 180, 0)
- SpawnLocation8.Position = Vector3.new(-522.671448, 85.6833878, 81.3869476)
- SpawnLocation8.Rotation = Vector3.new(-180, 0, -180)
- SpawnLocation8.Transparency = 1
- SpawnLocation8.Size = Vector3.new(6, 0.200000048, 6)
- SpawnLocation8.Anchored = true
- SpawnLocation8.BackSurface = Enum.SurfaceType.Weld
- SpawnLocation8.BottomSurface = Enum.SurfaceType.Weld
- SpawnLocation8.FrontSurface = Enum.SurfaceType.Weld
- SpawnLocation8.LeftSurface = Enum.SurfaceType.Weld
- SpawnLocation8.RightSurface = Enum.SurfaceType.Weld
- SpawnLocation8.TopSurface = Enum.SurfaceType.Smooth
- Model9.Name = "Joofil"
- Model9.Parent = mas
- Model9.PrimaryPart = Part24
- UnionOperation10.Name = "Torso"
- UnionOperation10.Parent = Model9
- UnionOperation10.CFrame = CFrame.new(-544.792603, 88.5832062, 50.7608109, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- UnionOperation10.Position = Vector3.new(-544.792603, 88.5832062, 50.7608109)
- UnionOperation10.Color = Color3.new(0.129412, 0.329412, 0.72549)
- UnionOperation10.Size = Vector3.new(2.00003052, 2.00002933, 1.00000763)
- UnionOperation10.BrickColor = BrickColor.new("Deep blue")
- UnionOperation10.Material = Enum.Material.SmoothPlastic
- UnionOperation10.brickColor = BrickColor.new("Deep blue")
- UnionOperation10.UsePartColor = true
- Beam11.Name = "Neck"
- Beam11.Parent = UnionOperation10
- Beam11.Attachment0 = nil
- Beam11.Attachment1 = nil
- Beam11.FaceCamera = true
- Beam11.LightEmission = 1
- Beam11.LightInfluence = 1
- Beam11.Segments = 50
- Beam11.Texture = "rbxassetid://1134824633"
- Beam11.TextureLength = 5
- Beam11.TextureMode = Enum.TextureMode.Static
- Beam11.TextureSpeed = 2
- Beam11.Transparency = NumberSequence.new(0.20000000298023,0.20000000298023)
- Beam11.Width0 = 0.5
- Beam11.Width1 = 0.5
- Sound12.Name = "Die"
- Sound12.Parent = UnionOperation10
- Sound12.MaxDistance = 300
- Sound12.EmitterSize = 35
- Sound12.MinDistance = 35
- Sound12.SoundId = "rbxassetid://2150821806"
- Sound12.Volume = 2
- Motor6D13.Name = "Head"
- Motor6D13.Parent = UnionOperation10
- Motor6D13.C1 = CFrame.new(-3.9100647e-05, -1.49995828, 2.28881836e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D13.Part0 = UnionOperation10
- Motor6D13.Part1 = UnionOperation18
- Motor6D13.part1 = UnionOperation18
- Motor6D14.Name = "RArm"
- Motor6D14.Parent = UnionOperation10
- Motor6D14.C1 = CFrame.new(-1.50003719, 0.000101089478, 2.28881836e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D14.Part0 = UnionOperation10
- Motor6D14.Part1 = MeshPart38
- Motor6D14.part1 = MeshPart38
- Motor6D15.Name = "LArm"
- Motor6D15.Parent = UnionOperation10
- Motor6D15.C1 = CFrame.new(1.49996281, 0.000101089478, 2.28881836e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D15.Part0 = UnionOperation10
- Motor6D15.Part1 = MeshPart37
- Motor6D15.part1 = MeshPart37
- Motor6D16.Name = "RLeg"
- Motor6D16.Parent = UnionOperation10
- Motor6D16.C1 = CFrame.new(-0.500037193, 2.00010109, 2.28881836e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D16.Part0 = UnionOperation10
- Motor6D16.Part1 = MeshPart39
- Motor6D16.part1 = MeshPart39
- Motor6D17.Name = "LLeg"
- Motor6D17.Parent = UnionOperation10
- Motor6D17.C1 = CFrame.new(0.499962807, 2.00010109, 2.28881836e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D17.Part0 = UnionOperation10
- Motor6D17.Part1 = MeshPart40
- Motor6D17.part1 = MeshPart40
- UnionOperation18.Name = "Head"
- UnionOperation18.Parent = Model9
- UnionOperation18.CFrame = CFrame.new(-544.792542, 90.083168, 50.760788, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- UnionOperation18.Position = Vector3.new(-544.792542, 90.083168, 50.760788)
- UnionOperation18.Color = Color3.new(0.937255, 0.721569, 0.219608)
- UnionOperation18.Size = Vector3.new(1.20000005, 1.20000005, 1.20000005)
- UnionOperation18.BrickColor = BrickColor.new("Gold")
- UnionOperation18.Material = Enum.Material.SmoothPlastic
- UnionOperation18.brickColor = BrickColor.new("Gold")
- UnionOperation18.UsePartColor = true
- Decal19.Name = "Smile"
- Decal19.Parent = UnionOperation18
- Decal19.Texture = "http://www.roblox.com/asset/?id=288072938"
- BillboardGui20.Name = "Nametag"
- BillboardGui20.Parent = UnionOperation18
- BillboardGui20.Size = UDim2.new(4, 0, 4, 0)
- BillboardGui20.AlwaysOnTop = true
- BillboardGui20.StudsOffset = Vector3.new(0, 2, 0)
- TextLabel21.Name = "Title"
- TextLabel21.Parent = BillboardGui20
- TextLabel21.Size = UDim2.new(1, 0, 0.25, 0)
- TextLabel21.BackgroundColor = BrickColor.new("Institutional white")
- TextLabel21.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel21.BackgroundTransparency = 1
- TextLabel21.BorderSizePixel = 0
- TextLabel21.ClipsDescendants = true
- TextLabel21.Font = Enum.Font.Fantasy
- TextLabel21.FontSize = Enum.FontSize.Size14
- TextLabel21.Text = "Joofil"
- TextLabel21.TextColor = BrickColor.new("Institutional white")
- TextLabel21.TextColor3 = Color3.new(1, 1, 1)
- TextLabel21.TextScaled = true
- TextLabel21.TextSize = 14
- TextLabel21.TextWrap = true
- TextLabel21.TextWrapped = true
- TextLabel22.Name = "HP"
- TextLabel22.Parent = BillboardGui20
- TextLabel22.Position = UDim2.new(0, 0, 0.25, 0)
- TextLabel22.Size = UDim2.new(1, 0, 0.100000001, 0)
- TextLabel22.BackgroundColor = BrickColor.new("Institutional white")
- TextLabel22.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel22.BackgroundTransparency = 1
- TextLabel22.BorderSizePixel = 0
- TextLabel22.ClipsDescendants = true
- TextLabel22.Font = Enum.Font.Fantasy
- TextLabel22.FontSize = Enum.FontSize.Size48
- TextLabel22.Text = "0/0"
- TextLabel22.TextColor = BrickColor.new("Mint")
- TextLabel22.TextColor3 = Color3.new(0.686275, 1, 0.686275)
- TextLabel22.TextScaled = true
- TextLabel22.TextSize = 45
- TextLabel22.TextWrap = true
- TextLabel22.TextWrapped = true
- Script23.Parent = BillboardGui20
- table.insert(cors,sandbox(Script23,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))
- Part24.Name = "HumanoidRootPart"
- Part24.Parent = Model9
- Part24.CFrame = CFrame.new(-544.792542, 88.583168, 50.760788, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part24.Position = Vector3.new(-544.792542, 88.583168, 50.760788)
- Part24.Color = Color3.new(0.937255, 0.721569, 0.219608)
- Part24.Transparency = 1
- Part24.Size = Vector3.new(2, 2, 1)
- Part24.Anchored = true
- Part24.BottomSurface = Enum.SurfaceType.Smooth
- Part24.BrickColor = BrickColor.new("Gold")
- Part24.Material = Enum.Material.SmoothPlastic
- Part24.TopSurface = Enum.SurfaceType.Smooth
- Part24.brickColor = BrickColor.new("Gold")
- Sound25.Name = "Chuckle"
- Sound25.Parent = Part24
- Sound25.MaxDistance = 300
- Sound25.EmitterSize = 35
- Sound25.MinDistance = 35
- Sound25.SoundId = "rbxassetid://2545010175"
- Sound25.Volume = 5
- Sound26.Name = "ByeBye"
- Sound26.Parent = Part24
- Sound26.MaxDistance = 300
- Sound26.EmitterSize = 35
- Sound26.MinDistance = 35
- Sound26.SoundId = "rbxassetid://2545211516"
- Sound26.Volume = 5
- Sound27.Name = "ChaosChaos"
- Sound27.Parent = Part24
- Sound27.MaxDistance = 300
- Sound27.EmitterSize = 35
- Sound27.MinDistance = 35
- Sound27.SoundId = "rbxassetid://2545008459"
- Sound27.Volume = 5
- Sound28.Name = "Ha2"
- Sound28.Parent = Part24
- Sound28.MaxDistance = 300
- Sound28.EmitterSize = 35
- Sound28.MinDistance = 35
- Sound28.SoundId = "rbxassetid://2606662454"
- Sound28.Volume = 5
- Sound29.Name = "Ha1"
- Sound29.Parent = Part24
- Sound29.MaxDistance = 300
- Sound29.EmitterSize = 35
- Sound29.MinDistance = 35
- Sound29.SoundId = "rbxassetid://2606661976"
- Sound29.Volume = 5
- Sound30.Name = "Neo"
- Sound30.Parent = Part24
- Sound30.MaxDistance = 300
- Sound30.EmitterSize = 35
- Sound30.MinDistance = 35
- Sound30.SoundId = "rbxassetid://2545018472"
- Sound30.Volume = 5
- Sound31.Name = "MeDoAnything"
- Sound31.Parent = Part24
- Sound31.MaxDistance = 300
- Sound31.EmitterSize = 35
- Sound31.MinDistance = 35
- Sound31.SoundId = "rbxassetid://2544975373"
- Sound31.Volume = 5
- Sound32.Name = "OH"
- Sound32.Parent = Part24
- Sound32.MaxDistance = 300
- Sound32.EmitterSize = 35
- Sound32.MinDistance = 35
- Sound32.SoundId = "rbxassetid://2545012765"
- Sound32.Volume = 5
- Sound33.Name = "Laugh"
- Sound33.Parent = Part24
- Sound33.MaxDistance = 300
- Sound33.EmitterSize = 35
- Sound33.MinDistance = 35
- Sound33.SoundId = "rbxassetid://2545211765"
- Sound33.Volume = 5
- Sound34.Name = "Metamorph"
- Sound34.Parent = Part24
- Sound34.MaxDistance = 300
- Sound34.EmitterSize = 35
- Sound34.MinDistance = 35
- Sound34.SoundId = "rbxassetid://2545011398"
- Sound34.Volume = 5
- Sound35.Name = "Deathed"
- Sound35.Parent = Part24
- Sound35.MaxDistance = 300
- Sound35.EmitterSize = 35
- Sound35.MinDistance = 35
- Sound35.SoundId = "rbxassetid://2637401925"
- Sound35.Volume = 2
- Motor6D36.Name = "Root"
- Motor6D36.Parent = Part24
- Motor6D36.C1 = CFrame.new(3.9100647e-05, -4.17232513e-05, -2.28881836e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D36.Part0 = Part24
- Motor6D36.Part1 = UnionOperation10
- Motor6D36.part1 = UnionOperation10
- MeshPart37.Name = "Left Arm"
- MeshPart37.Parent = Model9
- MeshPart37.CFrame = CFrame.new(-546.292542, 88.583107, 50.760788, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- MeshPart37.Position = Vector3.new(-546.292542, 88.583107, 50.760788)
- MeshPart37.Color = Color3.new(0.937255, 0.721569, 0.219608)
- MeshPart37.Size = Vector3.new(1.00004005, 2.00002551, 1)
- MeshPart37.BrickColor = BrickColor.new("Gold")
- MeshPart37.Material = Enum.Material.SmoothPlastic
- MeshPart37.brickColor = BrickColor.new("Gold")
- MeshPart38.Name = "Right Arm"
- MeshPart38.Parent = Model9
- MeshPart38.CFrame = CFrame.new(-543.292542, 88.583107, 50.760788, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- MeshPart38.Position = Vector3.new(-543.292542, 88.583107, 50.760788)
- MeshPart38.Color = Color3.new(0.937255, 0.721569, 0.219608)
- MeshPart38.Size = Vector3.new(1.00004005, 2.00002551, 1)
- MeshPart38.BrickColor = BrickColor.new("Gold")
- MeshPart38.Material = Enum.Material.SmoothPlastic
- MeshPart38.brickColor = BrickColor.new("Gold")
- MeshPart39.Name = "Right Leg"
- MeshPart39.Parent = Model9
- MeshPart39.CFrame = CFrame.new(-544.292542, 86.583107, 50.760788, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- MeshPart39.Position = Vector3.new(-544.292542, 86.583107, 50.760788)
- MeshPart39.Color = Color3.new(0.294118, 0.592157, 0.294118)
- MeshPart39.Size = Vector3.new(1.00004005, 2.00002551, 1)
- MeshPart39.BrickColor = BrickColor.new("Bright green")
- MeshPart39.Material = Enum.Material.SmoothPlastic
- MeshPart39.brickColor = BrickColor.new("Bright green")
- MeshPart40.Name = "Left Leg"
- MeshPart40.Parent = Model9
- MeshPart40.CFrame = CFrame.new(-545.292542, 86.583107, 50.760788, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- MeshPart40.Position = Vector3.new(-545.292542, 86.583107, 50.760788)
- MeshPart40.Color = Color3.new(0.294118, 0.592157, 0.294118)
- MeshPart40.Size = Vector3.new(1.00004005, 2.00002551, 1)
- MeshPart40.BrickColor = BrickColor.new("Bright green")
- MeshPart40.Material = Enum.Material.SmoothPlastic
- MeshPart40.brickColor = BrickColor.new("Bright green")
- Script41.Name = "REOOFING"
- Script41.Parent = Model9
- table.insert(cors,sandbox(Script41,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))
- Sound42.Name = "Music"
- Sound42.Parent = Script41
- Sound42.Looped = true
- Sound42.SoundId = "rbxassetid://2701520256"
- Sound42.Volume = 2.5
- MeshPart43.Name = "Hat"
- MeshPart43.Parent = Model9
- MeshPart43.CFrame = CFrame.new(-544.792542, 90.7830505, 51.2608185, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- MeshPart43.Position = Vector3.new(-544.792542, 90.7830505, 51.2608185)
- MeshPart43.Color = Color3.new(0.129412, 0.329412, 0.72549)
- MeshPart43.Size = Vector3.new(2.75788856, 1.64599526, 2.41334939)
- MeshPart43.BrickColor = BrickColor.new("Deep blue")
- MeshPart43.CanCollide = false
- MeshPart43.Material = Enum.Material.SmoothPlastic
- MeshPart43.brickColor = BrickColor.new("Deep blue")
- Weld44.Name = "Joint"
- Weld44.Parent = MeshPart43
- Weld44.C0 = CFrame.new(0, -0.699880123, -0.500030518, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld44.Part0 = MeshPart43
- Weld44.Part1 = UnionOperation18
- Weld44.part1 = UnionOperation18
- MeshPart45.Name = "Tail"
- MeshPart45.Parent = Model9
- MeshPart45.CFrame = CFrame.new(-544.792542, 87.0130463, 52.3607712, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- MeshPart45.Position = Vector3.new(-544.792542, 87.0130463, 52.3607712)
- MeshPart45.Color = Color3.new(0.129412, 0.329412, 0.72549)
- MeshPart45.Size = Vector3.new(0.462002546, 1.40317202, 2.49498963)
- MeshPart45.BrickColor = BrickColor.new("Deep blue")
- MeshPart45.CanCollide = false
- MeshPart45.Material = Enum.Material.SmoothPlastic
- MeshPart45.brickColor = BrickColor.new("Deep blue")
- Weld46.Name = "Joint"
- Weld46.Parent = MeshPart45
- Weld46.C0 = CFrame.new(-3.81469727e-05, 1.57016039, -1.59996033, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld46.Part0 = MeshPart45
- Weld46.Part1 = UnionOperation10
- Weld46.part1 = UnionOperation10
- Humanoid47.Parent = Model9
- Humanoid47.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
- Humanoid47.Health = 6500
- Humanoid47.LeftLeg = MeshPart40
- Humanoid47.MaxHealth = 6500
- Humanoid47.MaxSlopeAngle = 89.900001525879
- Humanoid47.RightLeg = MeshPart39
- Humanoid47.Torso = Part24
- Humanoid47.maxHealth = 6500
- Part48.Name = "Wheelchair"
- Part48.Parent = Model9
- Part48.CFrame = CFrame.new(-544.792542, 87.6830444, 50.7607727, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part48.Position = Vector3.new(-544.792542, 87.6830444, 50.7607727)
- Part48.Transparency = 1
- Part48.Size = Vector3.new(0.0500000007, 0.0500000007, 0.0500000007)
- Part48.Anchored = true
- Part48.BottomSurface = Enum.SurfaceType.Smooth
- Part48.CanCollide = false
- Part48.Material = Enum.Material.SmoothPlastic
- Part48.TopSurface = Enum.SurfaceType.Smooth
- SpecialMesh49.Parent = Part48
- SpecialMesh49.MeshId = "rbxassetid://1226669573"
- SpecialMesh49.Scale = Vector3.new(2, 2, 2)
- SpecialMesh49.TextureId = "rbxassetid://1226669284"
- SpecialMesh49.MeshType = Enum.MeshType.FileMesh
- 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
- end))
- 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
- end))
- Model5.Name = "TOP Half-time"
- Model5.Parent = mas
- MeshPart6.Name = "Cone"
- MeshPart6.Parent = Model5
- MeshPart6.CFrame = CFrame.new(-556.311157, 296.972107, 81.4345856, 0, 0, -1, 0, -1, -0, -1, 0, -0)
- MeshPart6.Orientation = Vector3.new(0, -90, 180)
- MeshPart6.Position = Vector3.new(-556.311157, 296.972107, 81.4345856)
- MeshPart6.Rotation = Vector3.new(-180, -90, 0)
- MeshPart6.Color = Color3.new(0.890196, 0.815686, 0.639216)
- MeshPart6.Size = Vector3.new(1098.82141, 422.377502, 1098.82141)
- MeshPart6.Anchored = true
- MeshPart6.BrickColor = BrickColor.new("Light brick yellow")
- MeshPart6.Material = Enum.Material.Concrete
- MeshPart6.brickColor = BrickColor.new("Light brick yellow")
- Decal7.Parent = MeshPart6
- Decal7.Texture = "rbxassetid://2197350753"
- Decal7.Color3 = Color3.new(0.772549, 0.772549, 0.772549)
- Decal8.Parent = MeshPart6
- Decal8.Texture = "rbxassetid://2197350753"
- Decal8.Face = Enum.NormalId.Right
- Decal8.Color3 = Color3.new(0.772549, 0.772549, 0.772549)
- Decal9.Parent = MeshPart6
- Decal9.Texture = "rbxassetid://2197350753"
- Decal9.Face = Enum.NormalId.Left
- Decal9.Color3 = Color3.new(0.772549, 0.772549, 0.772549)
- Decal10.Parent = MeshPart6
- Decal10.Texture = "rbxassetid://2197350753"
- Decal10.Face = Enum.NormalId.Back
- Decal10.Color3 = Color3.new(0.772549, 0.772549, 0.772549)
- UnionOperation11.Parent = Model5
- UnionOperation11.CFrame = CFrame.new(-556.921265, 588.843933, 81.4262238, 1, 0, 0, 0, -1, 0, 0, 0, -1)
- UnionOperation11.Orientation = Vector3.new(0, 180, 180)
- UnionOperation11.Position = Vector3.new(-556.921265, 588.843933, 81.4262238)
- UnionOperation11.Rotation = Vector3.new(-180, 0, 0)
- UnionOperation11.Color = Color3.new(0.843137, 0.772549, 0.603922)
- UnionOperation11.Size = Vector3.new(53.062912, 561.879272, 53.0633583)
- UnionOperation11.Anchored = true
- UnionOperation11.BrickColor = BrickColor.new("Brick yellow")
- UnionOperation11.Material = Enum.Material.Concrete
- UnionOperation11.brickColor = BrickColor.new("Brick yellow")
- UnionOperation12.Parent = Model5
- UnionOperation12.CFrame = CFrame.new(-556.921265, 95.0540466, 81.4262238, 0, -0.999999821, -0.000488311052, 0.99999994, 0, -2.91038305e-11, -2.91038305e-11, -0.000488311052, 0.999999881)
- UnionOperation12.Orientation = Vector3.new(0, -0.0299999993, 90)
- UnionOperation12.Position = Vector3.new(-556.921265, 95.0540466, 81.4262238)
- UnionOperation12.Rotation = Vector3.new(0, -0.0299999993, 90)
- UnionOperation12.Color = Color3.new(0.403922, 0.45098, 0.509804)
- UnionOperation12.Size = Vector3.new(425.650848, 53.063076, 53.0636597)
- UnionOperation12.Anchored = true
- UnionOperation12.BrickColor = BrickColor.new("Dark grey")
- UnionOperation12.Material = Enum.Material.Concrete
- UnionOperation12.brickColor = BrickColor.new("Dark grey")
- UnionOperation13.Parent = Model5
- UnionOperation13.CFrame = CFrame.new(-556.921265, 388.159149, 81.4262238, 1, 0, 0, 0, -1, 0, 0, 0, -1)
- UnionOperation13.Orientation = Vector3.new(0, 180, 180)
- UnionOperation13.Position = Vector3.new(-556.921265, 388.159149, 81.4262238)
- UnionOperation13.Rotation = Vector3.new(-180, 0, 0)
- UnionOperation13.Color = Color3.new(0.403922, 0.45098, 0.509804)
- UnionOperation13.Size = Vector3.new(53.0629539, 401.355591, 53.0632401)
- UnionOperation13.Anchored = true
- UnionOperation13.BrickColor = BrickColor.new("Dark grey")
- UnionOperation13.Material = Enum.Material.Concrete
- UnionOperation13.brickColor = BrickColor.new("Dark grey")
- UnionOperation14.Parent = Model5
- UnionOperation14.CFrame = CFrame.new(-556.91272, 548.082092, 81.4253693, 1, 0, 0, 0, -1, 0, 0, 0, -1)
- UnionOperation14.Orientation = Vector3.new(0, 180, 180)
- UnionOperation14.Position = Vector3.new(-556.91272, 548.082092, 81.4253693)
- UnionOperation14.Rotation = Vector3.new(-180, 0, 0)
- UnionOperation14.Color = Color3.new(0.843137, 0.772549, 0.603922)
- UnionOperation14.Size = Vector3.new(1102.73926, 81.6980743, 1102.73889)
- UnionOperation14.Anchored = true
- UnionOperation14.BrickColor = BrickColor.new("Brick yellow")
- UnionOperation14.Material = Enum.Material.Concrete
- UnionOperation14.brickColor = BrickColor.new("Brick yellow")
- UnionOperation15.Parent = Model5
- UnionOperation15.CFrame = CFrame.new(-556.91272, 548.318665, 81.4253082, 1, 0, 0, 0, -1, 0, 0, 0, -1)
- UnionOperation15.Orientation = Vector3.new(0, 180, 180)
- UnionOperation15.Position = Vector3.new(-556.91272, 548.318665, 81.4253082)
- UnionOperation15.Rotation = Vector3.new(-180, 0, 0)
- UnionOperation15.Color = Color3.new(0.486275, 0.447059, 0.345098)
- UnionOperation15.Size = Vector3.new(1071.78406, 81.6402588, 1071.78418)
- UnionOperation15.Anchored = true
- UnionOperation15.BrickColor = BrickColor.new("Gun metallic")
- UnionOperation15.Material = Enum.Material.Concrete
- UnionOperation15.brickColor = BrickColor.new("Gun metallic")
- MeshPart16.Name = "Meshes/Rock"
- MeshPart16.Parent = Model5
- MeshPart16.CFrame = CFrame.new(-657.149048, 614.061829, 471.819214, 0.965926826, 0.129427612, 0.224129096, -2.99140811e-05, 0.866036654, -0.499980479, -0.258815289, 0.482937843, 0.836531937)
- MeshPart16.Orientation = Vector3.new(30, 15, 0)
- MeshPart16.Position = Vector3.new(-657.149048, 614.061829, 471.819214)
- MeshPart16.Rotation = Vector3.new(30.8700008, 12.9499998, -7.63000011)
- MeshPart16.Color = Color3.new(0.486275, 0.447059, 0.345098)
- MeshPart16.Size = Vector3.new(78.8275986, 137.381149, 64.940773)
- MeshPart16.Anchored = true
- MeshPart16.BrickColor = BrickColor.new("Gun metallic")
- MeshPart16.Material = Enum.Material.Concrete
- MeshPart16.brickColor = BrickColor.new("Gun metallic")
- MeshPart17.Name = "Meshes/Rock"
- MeshPart17.Parent = Model5
- MeshPart17.CFrame = CFrame.new(-194.329254, 609.250488, -113.019272, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- MeshPart17.Position = Vector3.new(-194.329254, 609.250488, -113.019272)
- MeshPart17.Color = Color3.new(0.486275, 0.447059, 0.345098)
- MeshPart17.Size = Vector3.new(202.755081, 53.6307259, 222.96994)
- MeshPart17.Anchored = true
- MeshPart17.BrickColor = BrickColor.new("Gun metallic")
- MeshPart17.Material = Enum.Material.Concrete
- MeshPart17.brickColor = BrickColor.new("Gun metallic")
- UnionOperation18.Parent = Model5
- UnionOperation18.CFrame = CFrame.new(-559.805847, 569.609314, 81.4253082, 0, 1, 0, 0, 0, -1, -1, 0, 0)
- UnionOperation18.Orientation = Vector3.new(90, 90, 0)
- UnionOperation18.Position = Vector3.new(-559.805847, 569.609314, 81.4253082)
- UnionOperation18.Rotation = Vector3.new(90, 0, -90)
- UnionOperation18.Color = Color3.new(0.596078, 0.407843, 0.282353)
- UnionOperation18.Size = Vector3.new(519.856323, 514.069336, 38.5281067)
- UnionOperation18.Anchored = true
- UnionOperation18.BrickColor = BrickColor.new("Red flip/flop")
- UnionOperation18.Material = Enum.Material.Concrete
- UnionOperation18.brickColor = BrickColor.new("Red flip/flop")
- UnionOperation19.Parent = Model5
- UnionOperation19.CFrame = CFrame.new(-556.912476, 548.417542, 81.4253082, 0, 1, 0, 0, 0, -1, -1, 0, 0)
- UnionOperation19.Orientation = Vector3.new(90, 90, 0)
- UnionOperation19.Position = Vector3.new(-556.912476, 548.417542, 81.4253082)
- UnionOperation19.Rotation = Vector3.new(90, 0, -90)
- UnionOperation19.Color = Color3.new(0.403922, 0.45098, 0.509804)
- UnionOperation19.Size = Vector3.new(1152.94543, 1152.94556, 80.9315491)
- UnionOperation19.Anchored = true
- UnionOperation19.BrickColor = BrickColor.new("Dark grey")
- UnionOperation19.Material = Enum.Material.Concrete
- UnionOperation19.brickColor = BrickColor.new("Dark grey")
- UnionOperation20.Parent = Model5
- UnionOperation20.CFrame = CFrame.new(-566.0849, 569.64093, 81.4290314, 1, 0, 0, 0, -1, 0, 0, 0, -1)
- UnionOperation20.Orientation = Vector3.new(0, 180, 180)
- UnionOperation20.Position = Vector3.new(-566.0849, 569.64093, 81.4290314)
- UnionOperation20.Rotation = Vector3.new(-180, 0, 0)
- UnionOperation20.Color = Color3.new(0.596078, 0.407843, 0.282353)
- UnionOperation20.Size = Vector3.new(494.191437, 38.4646378, 513.744263)
- UnionOperation20.Anchored = true
- UnionOperation20.BrickColor = BrickColor.new("Red flip/flop")
- UnionOperation20.Material = Enum.Material.Concrete
- UnionOperation20.brickColor = BrickColor.new("Red flip/flop")
- MeshPart21.Name = "Meshes/Rock"
- MeshPart21.Parent = Model5
- MeshPart21.CFrame = CFrame.new(-912.981323, 586.005188, -247.059494, 0.707080603, -0.182993919, -0.683044851, -3.00034881e-05, 0.96592772, -0.258811921, 0.707132995, 0.183021426, 0.682983279)
- MeshPart21.Orientation = Vector3.new(15, -45, 0)
- MeshPart21.Position = Vector3.new(-912.981323, 586.005188, -247.059494)
- MeshPart21.Rotation = Vector3.new(20.75, -43.0800018, 14.5100002)
- MeshPart21.Color = Color3.new(0.486275, 0.447059, 0.345098)
- MeshPart21.Size = Vector3.new(151.406845, 72.8633423, 222.96994)
- MeshPart21.Anchored = true
- MeshPart21.BrickColor = BrickColor.new("Gun metallic")
- MeshPart21.Material = Enum.Material.Concrete
- MeshPart21.brickColor = BrickColor.new("Gun metallic")
- MeshPart22.Name = "Meshes/Rock"
- MeshPart22.Parent = Model5
- MeshPart22.CFrame = CFrame.new(-399.449371, 586.023865, 453.038452, 0.965926826, 0.129427612, 0.224129096, -2.99140811e-05, 0.866036654, -0.499980479, -0.258815289, 0.482937843, 0.836531937)
- MeshPart22.Orientation = Vector3.new(30, 15, 0)
- MeshPart22.Position = Vector3.new(-399.449371, 586.023865, 453.038452)
- MeshPart22.Rotation = Vector3.new(30.8700008, 12.9499998, -7.63000011)
- MeshPart22.Color = Color3.new(0.486275, 0.447059, 0.345098)
- MeshPart22.Size = Vector3.new(78.8275986, 137.381149, 64.940773)
- MeshPart22.Anchored = true
- MeshPart22.BrickColor = BrickColor.new("Gun metallic")
- MeshPart22.Material = Enum.Material.Concrete
- MeshPart22.brickColor = BrickColor.new("Gun metallic")
- MeshPart23.Name = "Meshes/Rock"
- MeshPart23.Parent = Model5
- MeshPart23.CFrame = CFrame.new(-735.242554, 624.273926, -144.089523, 0.948590219, 0.307931036, -0.0731787384, -0.249986559, 0.870729566, 0.423481792, 0.194122046, -0.383416981, 0.902944088)
- MeshPart23.Orientation = Vector3.new(-25.0499992, -4.63000011, -16.0200005)
- MeshPart23.Position = Vector3.new(-735.242554, 624.273926, -144.089523)
- MeshPart23.Rotation = Vector3.new(-25.1299992, -4.19999981, -17.9799995)
- MeshPart23.Color = Color3.new(0.486275, 0.447059, 0.345098)
- MeshPart23.Size = Vector3.new(78.8275986, 137.381149, 64.940773)
- MeshPart23.Anchored = true
- MeshPart23.BrickColor = BrickColor.new("Gun metallic")
- MeshPart23.Material = Enum.Material.Concrete
- MeshPart23.brickColor = BrickColor.new("Gun metallic")
- MeshPart24.Name = "Meshes/Rock"
- MeshPart24.Parent = Model5
- MeshPart24.CFrame = CFrame.new(-730.316772, 594.558533, -239.428085, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- MeshPart24.Position = Vector3.new(-730.316772, 594.558533, -239.428085)
- MeshPart24.Color = Color3.new(0.486275, 0.447059, 0.345098)
- MeshPart24.Size = Vector3.new(26.9495564, 13.0489311, 29.6364441)
- MeshPart24.Anchored = true
- MeshPart24.BrickColor = BrickColor.new("Gun metallic")
- MeshPart24.Material = Enum.Material.Concrete
- MeshPart24.brickColor = BrickColor.new("Gun metallic")
- MeshPart25.Name = "Meshes/Rock"
- MeshPart25.Parent = Model5
- MeshPart25.CFrame = CFrame.new(-880.491089, 588.001221, 528.221802, -0.68706274, -0.527242839, -0.499960542, -0.60877341, 0.7933442, -3.96519899e-05, 0.396661758, 0.304335356, -0.866048694)
- MeshPart25.Orientation = Vector3.new(0, -150, -37.5)
- MeshPart25.Position = Vector3.new(-880.491089, 588.001221, 528.221802)
- MeshPart25.Rotation = Vector3.new(180, -30, 142.5)
- MeshPart25.Color = Color3.new(0.486275, 0.447059, 0.345098)
- MeshPart25.Size = Vector3.new(78.8275986, 85.4082413, 86.6867905)
- MeshPart25.Anchored = true
- MeshPart25.BrickColor = BrickColor.new("Gun metallic")
- MeshPart25.Material = Enum.Material.Concrete
- MeshPart25.brickColor = BrickColor.new("Gun metallic")
- MeshPart26.Name = "Meshes/Rock"
- MeshPart26.Parent = Model5
- MeshPart26.CFrame = CFrame.new(-358.436401, 545.292725, 134.908646, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- MeshPart26.Orientation = Vector3.new(0, -90, 0)
- MeshPart26.Position = Vector3.new(-358.436401, 545.292725, 134.908646)
- MeshPart26.Rotation = Vector3.new(0, -90, 0)
- MeshPart26.Color = Color3.new(0.486275, 0.447059, 0.345098)
- MeshPart26.Size = Vector3.new(133.012711, 64.4045029, 146.274155)
- MeshPart26.Anchored = true
- MeshPart26.BrickColor = BrickColor.new("Gun metallic")
- MeshPart26.Material = Enum.Material.Concrete
- MeshPart26.brickColor = BrickColor.new("Gun metallic")
- MeshPart27.Name = "Meshes/Rock"
- MeshPart27.Parent = Model5
- MeshPart27.CFrame = CFrame.new(-178.49649, 556.782166, 255.420792, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- MeshPart27.Orientation = Vector3.new(0, -90, 0)
- MeshPart27.Position = Vector3.new(-178.49649, 556.782166, 255.420792)
- MeshPart27.Rotation = Vector3.new(0, -90, 0)
- MeshPart27.Color = Color3.new(0.486275, 0.447059, 0.345098)
- MeshPart27.Size = Vector3.new(133.012711, 64.4045029, 146.274155)
- MeshPart27.Anchored = true
- MeshPart27.BrickColor = BrickColor.new("Gun metallic")
- MeshPart27.Material = Enum.Material.Concrete
- MeshPart27.brickColor = BrickColor.new("Gun metallic")
- MeshPart28.Name = "Meshes/Rock"
- MeshPart28.Parent = Model5
- MeshPart28.CFrame = CFrame.new(-539.393433, 590.585999, -479.363892, 0.499959469, -0, -0.866048813, 0, 1, -0, 0.866048813, 0, 0.499959469)
- MeshPart28.Orientation = Vector3.new(0, -60, 0)
- MeshPart28.Position = Vector3.new(-539.393433, 590.585999, -479.363892)
- MeshPart28.Rotation = Vector3.new(0, -60, 0)
- MeshPart28.Color = Color3.new(0.486275, 0.447059, 0.345098)
- MeshPart28.Size = Vector3.new(19.3454304, 9.36702633, 21.2741871)
- MeshPart28.Anchored = true
- MeshPart28.BrickColor = BrickColor.new("Gun metallic")
- MeshPart28.Material = Enum.Material.Concrete
- MeshPart28.brickColor = BrickColor.new("Gun metallic")
- MeshPart29.Name = "Meshes/Rock"
- MeshPart29.Parent = Model5
- MeshPart29.CFrame = CFrame.new(-518.598511, 598.666809, 157.102188, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- MeshPart29.Orientation = Vector3.new(0, -90, 0)
- MeshPart29.Position = Vector3.new(-518.598511, 598.666809, 157.102188)
- MeshPart29.Rotation = Vector3.new(0, -90, 0)
- MeshPart29.Color = Color3.new(0.486275, 0.447059, 0.345098)
- MeshPart29.Size = Vector3.new(50.7788429, 24.5870228, 55.8415413)
- MeshPart29.Anchored = true
- MeshPart29.BrickColor = BrickColor.new("Gun metallic")
- MeshPart29.Material = Enum.Material.Concrete
- MeshPart29.brickColor = BrickColor.new("Gun metallic")
- MeshPart30.Name = "Meshes/Rock"
- MeshPart30.Parent = Model5
- MeshPart30.CFrame = CFrame.new(-635.455933, 598.666809, 5.07441711, 0.499959469, -0, -0.866048813, 0, 1, -0, 0.866048813, 0, 0.499959469)
- MeshPart30.Orientation = Vector3.new(0, -60, 0)
- MeshPart30.Position = Vector3.new(-635.455933, 598.666809, 5.07441711)
- MeshPart30.Rotation = Vector3.new(0, -60, 0)
- MeshPart30.Color = Color3.new(0.486275, 0.447059, 0.345098)
- MeshPart30.Size = Vector3.new(50.7788429, 24.5870228, 55.8415413)
- MeshPart30.Anchored = true
- MeshPart30.BrickColor = BrickColor.new("Gun metallic")
- MeshPart30.Material = Enum.Material.Concrete
- MeshPart30.brickColor = BrickColor.new("Gun metallic")
- MeshPart31.Name = "Meshes/Rock"
- MeshPart31.Parent = Model5
- MeshPart31.CFrame = CFrame.new(-934.546387, 561.482117, 86.853714, 0.499995053, -0.331392288, -0.800115168, 1.80453062e-05, 0.923894227, -0.382648051, 0.866028368, 0.191307738, 0.461948514)
- MeshPart31.Orientation = Vector3.new(22.5, -60, 0)
- MeshPart31.Position = Vector3.new(-934.546387, 561.482117, 86.853714)
- MeshPart31.Rotation = Vector3.new(39.6399994, -53.1399994, 33.5400009)
- MeshPart31.Color = Color3.new(0.486275, 0.447059, 0.345098)
- MeshPart31.Size = Vector3.new(62.7076874, 30.3629436, 68.9597092)
- MeshPart31.Anchored = true
- MeshPart31.BrickColor = BrickColor.new("Gun metallic")
- MeshPart31.Material = Enum.Material.Concrete
- MeshPart31.brickColor = BrickColor.new("Gun metallic")
- MeshPart32.Name = "Meshes/Rock"
- MeshPart32.Parent = Model5
- MeshPart32.CFrame = CFrame.new(-566.543823, 591.282654, 374.131958, 0.499959469, -0, -0.866048813, 0, 1, -0, 0.866048813, 0, 0.499959469)
- MeshPart32.Orientation = Vector3.new(0, -60, 0)
- MeshPart32.Position = Vector3.new(-566.543823, 591.282654, 374.131958)
- MeshPart32.Rotation = Vector3.new(0, -60, 0)
- MeshPart32.Color = Color3.new(0.486275, 0.447059, 0.345098)
- MeshPart32.Size = Vector3.new(78.8275986, 48.941967, 86.6867905)
- MeshPart32.Anchored = true
- MeshPart32.BrickColor = BrickColor.new("Gun metallic")
- MeshPart32.Material = Enum.Material.Concrete
- MeshPart32.brickColor = BrickColor.new("Gun metallic")
- MeshPart33.Name = "Meshes/Rock"
- MeshPart33.Parent = Model5
- MeshPart33.CFrame = CFrame.new(-791.928833, 610.846008, 302.648376, 0.499959469, -0, -0.866048813, 0, 1, -0, 0.866048813, 0, 0.499959469)
- MeshPart33.Orientation = Vector3.new(0, -60, 0)
- MeshPart33.Position = Vector3.new(-791.928833, 610.846008, 302.648376)
- MeshPart33.Rotation = Vector3.new(0, -60, 0)
- MeshPart33.Color = Color3.new(0.486275, 0.447059, 0.345098)
- MeshPart33.Size = Vector3.new(78.8275986, 48.941967, 86.6867905)
- MeshPart33.Anchored = true
- MeshPart33.BrickColor = BrickColor.new("Gun metallic")
- MeshPart33.Material = Enum.Material.Concrete
- MeshPart33.brickColor = BrickColor.new("Gun metallic")
- MeshPart34.Name = "Meshes/Rock"
- MeshPart34.Parent = Model5
- MeshPart34.CFrame = CFrame.new(-341.018219, 591.282654, -255.756271, -0.866007447, 0, -0.500031412, 0, 1, 0, 0.500031412, 0, -0.866007447)
- MeshPart34.Orientation = Vector3.new(0, -150, 0)
- MeshPart34.Position = Vector3.new(-341.018219, 591.282654, -255.756271)
- MeshPart34.Rotation = Vector3.new(-180, -30, -180)
- MeshPart34.Color = Color3.new(0.486275, 0.447059, 0.345098)
- MeshPart34.Size = Vector3.new(78.8275986, 48.941967, 86.6867905)
- MeshPart34.Anchored = true
- MeshPart34.BrickColor = BrickColor.new("Gun metallic")
- MeshPart34.Material = Enum.Material.Concrete
- MeshPart34.brickColor = BrickColor.new("Gun metallic")
- MeshPart35.Name = "Meshes/Rock"
- MeshPart35.Parent = Model5
- MeshPart35.CFrame = CFrame.new(-455.77359, 591.282654, 565.991577, -0.866007447, 0, -0.500031412, 0, 1, 0, 0.500031412, 0, -0.866007447)
- MeshPart35.Orientation = Vector3.new(0, -150, 0)
- MeshPart35.Position = Vector3.new(-455.77359, 591.282654, 565.991577)
- MeshPart35.Rotation = Vector3.new(-180, -30, -180)
- MeshPart35.Color = Color3.new(0.486275, 0.447059, 0.345098)
- MeshPart35.Size = Vector3.new(78.8275986, 48.941967, 86.6867905)
- MeshPart35.Anchored = true
- MeshPart35.BrickColor = BrickColor.new("Gun metallic")
- MeshPart35.Material = Enum.Material.Concrete
- MeshPart35.brickColor = BrickColor.new("Gun metallic")
- MeshPart36.Name = "Meshes/Rock"
- MeshPart36.Parent = Model5
- MeshPart36.CFrame = CFrame.new(-476.207428, 585.530945, -148.972336, 0.499959469, -0, -0.866048813, 0, 1, -0, 0.866048813, 0, 0.499959469)
- MeshPart36.Orientation = Vector3.new(0, -60, 0)
- MeshPart36.Position = Vector3.new(-476.207428, 585.530945, -148.972336)
- MeshPart36.Rotation = Vector3.new(0, -60, 0)
- MeshPart36.Color = Color3.new(0.486275, 0.447059, 0.345098)
- MeshPart36.Size = Vector3.new(104.29612, 72.5693665, 114.694527)
- MeshPart36.Anchored = true
- MeshPart36.BrickColor = BrickColor.new("Gun metallic")
- MeshPart36.Material = Enum.Material.Concrete
- MeshPart36.brickColor = BrickColor.new("Gun metallic")
- MeshPart37.Name = "Meshes/Rock"
- MeshPart37.Parent = Model5
- MeshPart37.CFrame = CFrame.new(-254.235001, 586.005188, 411.687134, 0.145163059, -0.183046266, -0.972328007, -0.157566026, 0.96591866, -0.205363393, 0.976780713, 0.183017045, 0.111373842)
- MeshPart37.Orientation = Vector3.new(11.8500004, -83.4700012, -9.26000023)
- MeshPart37.Position = Vector3.new(-254.235001, 586.005188, 411.687134)
- MeshPart37.Rotation = Vector3.new(61.5299988, -76.4899979, 51.5800018)
- MeshPart37.Color = Color3.new(0.486275, 0.447059, 0.345098)
- MeshPart37.Size = Vector3.new(151.406845, 72.8633423, 222.96994)
- MeshPart37.Anchored = true
- MeshPart37.BrickColor = BrickColor.new("Gun metallic")
- MeshPart37.Material = Enum.Material.Concrete
- MeshPart37.brickColor = BrickColor.new("Gun metallic")
- MeshPart38.Name = "Meshes/Rock"
- MeshPart38.Parent = Model5
- MeshPart38.CFrame = CFrame.new(-745.43811, 633.091064, 404.919067, 0.499959469, -0, -0.866048813, 0, 1, -0, 0.866048813, 0, 0.499959469)
- MeshPart38.Orientation = Vector3.new(0, -60, 0)
- MeshPart38.Position = Vector3.new(-745.43811, 633.091064, 404.919067)
- MeshPart38.Rotation = Vector3.new(0, -60, 0)
- MeshPart38.Color = Color3.new(0.486275, 0.447059, 0.345098)
- MeshPart38.Size = Vector3.new(78.8275986, 93.4334717, 64.940773)
- MeshPart38.Anchored = true
- MeshPart38.BrickColor = BrickColor.new("Gun metallic")
- MeshPart38.Material = Enum.Material.Concrete
- MeshPart38.brickColor = BrickColor.new("Gun metallic")
- MeshPart39.Name = "Meshes/Rock"
- MeshPart39.Parent = Model5
- MeshPart39.CFrame = CFrame.new(-795.842407, 619.992249, 146.560013, 0.948587477, 0.129430503, -0.288841814, -0.250013053, 0.866027355, -0.43300131, 0.194101334, 0.482953817, 0.853861988)
- MeshPart39.Orientation = Vector3.new(25.6599998, -18.6900005, -16.1000004)
- MeshPart39.Position = Vector3.new(-795.842407, 619.992249, 146.560013)
- MeshPart39.Rotation = Vector3.new(26.8899994, -16.7900009, -7.76999998)
- MeshPart39.Color = Color3.new(0.486275, 0.447059, 0.345098)
- MeshPart39.Size = Vector3.new(78.8275986, 137.381149, 64.940773)
- MeshPart39.Anchored = true
- MeshPart39.BrickColor = BrickColor.new("Gun metallic")
- MeshPart39.Material = Enum.Material.Concrete
- MeshPart39.brickColor = BrickColor.new("Gun metallic")
- MeshPart40.Name = "Meshes/Rock"
- MeshPart40.Parent = Model5
- MeshPart40.CFrame = CFrame.new(-485.847565, 600.978516, -344.780884, 0.948590219, 0.307931036, -0.0731787384, -0.249986559, 0.870729566, 0.423481792, 0.194122046, -0.383416981, 0.902944088)
- MeshPart40.Orientation = Vector3.new(-25.0499992, -4.63000011, -16.0200005)
- MeshPart40.Position = Vector3.new(-485.847565, 600.978516, -344.780884)
- MeshPart40.Rotation = Vector3.new(-25.1299992, -4.19999981, -17.9799995)
- MeshPart40.Color = Color3.new(0.486275, 0.447059, 0.345098)
- MeshPart40.Size = Vector3.new(78.8275986, 137.381149, 64.940773)
- MeshPart40.Anchored = true
- MeshPart40.BrickColor = BrickColor.new("Gun metallic")
- MeshPart40.Material = Enum.Material.Concrete
- MeshPart40.brickColor = BrickColor.new("Gun metallic")
- MeshPart41.Name = "Meshes/Rock"
- MeshPart41.Parent = Model5
- MeshPart41.CFrame = CFrame.new(-745.980347, 590.585999, -444.622559, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- MeshPart41.Position = Vector3.new(-745.980347, 590.585999, -444.622559)
- MeshPart41.Color = Color3.new(0.486275, 0.447059, 0.345098)
- MeshPart41.Size = Vector3.new(19.3454304, 9.36702633, 21.2741871)
- MeshPart41.Anchored = true
- MeshPart41.BrickColor = BrickColor.new("Gun metallic")
- MeshPart41.Material = Enum.Material.Concrete
- MeshPart41.brickColor = BrickColor.new("Gun metallic")
- MeshPart42.Name = "Meshes/Rock"
- MeshPart42.Parent = Model5
- MeshPart42.CFrame = CFrame.new(-20.1160889, 581.989868, 134.90834, -5.19752502e-05, 0.793352008, -0.608763099, 2.56597996e-05, 0.608763099, 0.793352008, 1, 2.56597996e-05, -5.19752502e-05)
- MeshPart42.Orientation = Vector3.new(-52.5, -90, 0)
- MeshPart42.Position = Vector3.new(-20.1160889, 581.989868, 134.90834)
- MeshPart42.Rotation = Vector3.new(-90, -37.5, -90)
- MeshPart42.Color = Color3.new(0.486275, 0.447059, 0.345098)
- MeshPart42.Size = Vector3.new(133.012711, 183.7173, 103.906502)
- MeshPart42.Anchored = true
- MeshPart42.BrickColor = BrickColor.new("Gun metallic")
- MeshPart42.Material = Enum.Material.Concrete
- MeshPart42.brickColor = BrickColor.new("Gun metallic")
- Part43.Name = "Smooth Block Model"
- Part43.Parent = Model5
- Part43.CFrame = CFrame.new(-544.43512, 588.331604, 78.7675934, 0, 0, 1, 1, 0, 0, 0, 1, 0)
- Part43.Orientation = Vector3.new(0, 90, 90)
- Part43.Position = Vector3.new(-544.43512, 588.331604, 78.7675934)
- Part43.Rotation = Vector3.new(90, 90, 0)
- Part43.Color = Color3.new(0.27451, 0.403922, 0.643137)
- Part43.Transparency = 40
- Part43.Size = Vector3.new(1, 1141.85034, 1123.23999)
- Part43.Anchored = true
- Part43.BrickColor = BrickColor.new("Royal blue")
- Part43.brickColor = BrickColor.new("Royal blue")
- Model44.Name = "Spawns"
- Model44.Parent = Model5
- SpawnLocation45.Parent = Model44
- SpawnLocation45.CFrame = CFrame.new(-864.438721, 628.780579, -198.585205, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- SpawnLocation45.Position = Vector3.new(-864.438721, 628.780579, -198.585205)
- SpawnLocation45.Size = Vector3.new(6, 1, 6)
- SpawnLocation45.Anchored = true
- SpawnLocation45.BottomSurface = Enum.SurfaceType.Smooth
- SpawnLocation45.TopSurface = Enum.SurfaceType.Smooth
- Decal46.Parent = SpawnLocation45
- Decal46.Texture = "rbxasset://textures/SpawnLocation.png"
- Decal46.Face = Enum.NormalId.Top
- SpawnLocation47.Parent = Model44
- SpawnLocation47.CFrame = CFrame.new(-864.438721, 628.780579, -191.585327, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- SpawnLocation47.Position = Vector3.new(-864.438721, 628.780579, -191.585327)
- 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 = Model44
- SpawnLocation49.CFrame = CFrame.new(-871.438721, 628.780579, -198.585205, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- SpawnLocation49.Position = Vector3.new(-871.438721, 628.780579, -198.585205)
- 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
- Part51.Parent = Model44
- Part51.CFrame = CFrame.new(-864.438721, 628.780579, -187.585327, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part51.Position = Vector3.new(-864.438721, 628.780579, -187.585327)
- Part51.Size = Vector3.new(24, 1, 2)
- Part51.BottomSurface = Enum.SurfaceType.Smooth
- Part51.TopSurface = Enum.SurfaceType.Smooth
- SpawnLocation52.Parent = Model44
- SpawnLocation52.CFrame = CFrame.new(-857.438721, 628.780579, -191.585327, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- SpawnLocation52.Position = Vector3.new(-857.438721, 628.780579, -191.585327)
- SpawnLocation52.Size = Vector3.new(6, 1, 6)
- SpawnLocation52.Anchored = true
- SpawnLocation52.BottomSurface = Enum.SurfaceType.Smooth
- SpawnLocation52.TopSurface = Enum.SurfaceType.Smooth
- Decal53.Parent = SpawnLocation52
- Decal53.Texture = "rbxasset://textures/SpawnLocation.png"
- Decal53.Face = Enum.NormalId.Top
- SpawnLocation54.Parent = Model44
- SpawnLocation54.CFrame = CFrame.new(-857.438721, 628.780579, -205.585327, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- SpawnLocation54.Position = Vector3.new(-857.438721, 628.780579, -205.585327)
- 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 = Model44
- SpawnLocation56.CFrame = CFrame.new(-857.438721, 628.780579, -198.585205, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- SpawnLocation56.Position = Vector3.new(-857.438721, 628.780579, -198.585205)
- 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
- Part58.Parent = Model44
- Part58.CFrame = CFrame.new(-864.438721, 628.780579, -209.585327, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part58.Position = Vector3.new(-864.438721, 628.780579, -209.585327)
- Part58.Size = Vector3.new(24, 1, 2)
- Part58.BottomSurface = Enum.SurfaceType.Smooth
- Part58.TopSurface = Enum.SurfaceType.Smooth
- Part59.Parent = Model44
- Part59.CFrame = CFrame.new(-875.438721, 628.780579, -198.585205, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Part59.Orientation = Vector3.new(0, -90, 0)
- Part59.Position = Vector3.new(-875.438721, 628.780579, -198.585205)
- Part59.Rotation = Vector3.new(0, -90, 0)
- Part59.Size = Vector3.new(20, 1, 2)
- Part59.BottomSurface = Enum.SurfaceType.Smooth
- Part59.TopSurface = Enum.SurfaceType.Smooth
- SpawnLocation60.Parent = Model44
- SpawnLocation60.CFrame = CFrame.new(-871.438721, 628.780579, -205.585327, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- SpawnLocation60.Position = Vector3.new(-871.438721, 628.780579, -205.585327)
- SpawnLocation60.Size = Vector3.new(6, 1, 6)
- SpawnLocation60.Anchored = true
- SpawnLocation60.BottomSurface = Enum.SurfaceType.Smooth
- SpawnLocation60.TopSurface = Enum.SurfaceType.Smooth
- Decal61.Parent = SpawnLocation60
- Decal61.Texture = "rbxasset://textures/SpawnLocation.png"
- Decal61.Face = Enum.NormalId.Top
- SpawnLocation62.Parent = Model44
- SpawnLocation62.CFrame = CFrame.new(-871.438721, 628.780579, -191.585327, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- SpawnLocation62.Position = Vector3.new(-871.438721, 628.780579, -191.585327)
- 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
- Part64.Parent = Model44
- Part64.CFrame = CFrame.new(-853.438721, 628.780579, -198.585205, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Part64.Orientation = Vector3.new(0, -90, 0)
- Part64.Position = Vector3.new(-853.438721, 628.780579, -198.585205)
- Part64.Rotation = Vector3.new(0, -90, 0)
- Part64.Size = Vector3.new(20, 1, 2)
- Part64.BottomSurface = Enum.SurfaceType.Smooth
- Part64.TopSurface = Enum.SurfaceType.Smooth
- SpawnLocation65.Parent = Model44
- SpawnLocation65.CFrame = CFrame.new(-864.438721, 628.780579, -205.585327, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- SpawnLocation65.Position = Vector3.new(-864.438721, 628.780579, -205.585327)
- SpawnLocation65.Size = Vector3.new(6, 1, 6)
- SpawnLocation65.Anchored = true
- SpawnLocation65.BottomSurface = Enum.SurfaceType.Smooth
- SpawnLocation65.TopSurface = Enum.SurfaceType.Smooth
- Decal66.Parent = SpawnLocation65
- Decal66.Texture = "rbxasset://textures/SpawnLocation.png"
- Decal66.Face = Enum.NormalId.Top
- Sound67.Name = "Dragon Ball Super Opening"
- Sound67.Parent = Model5
- Sound67.SoundId = "rbxassetid://433054111"
- Sound67.Volume = 8
- 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