Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function CreateStuff()
- 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"))
- StringValue0 = Instance.new("StringValue")
- NumberValue1 = Instance.new("NumberValue")
- NumberValue2 = Instance.new("NumberValue")
- BoolValue3 = Instance.new("BoolValue")
- NumberValue4 = Instance.new("NumberValue")
- NumberValue5 = Instance.new("NumberValue")
- NumberValue6 = Instance.new("NumberValue")
- StringValue7 = Instance.new("StringValue")
- StringValue8 = Instance.new("StringValue")
- StringValue9 = Instance.new("StringValue")
- StringValue10 = Instance.new("StringValue")
- StringValue11 = Instance.new("StringValue")
- StringValue12 = Instance.new("StringValue")
- StringValue13 = Instance.new("StringValue")
- StringValue14 = Instance.new("StringValue")
- StringValue15 = Instance.new("StringValue")
- StringValue16 = Instance.new("StringValue")
- BoolValue17 = Instance.new("BoolValue")
- BoolValue18 = Instance.new("BoolValue")
- BoolValue19 = Instance.new("BoolValue")
- BoolValue20 = Instance.new("BoolValue")
- BoolValue21 = Instance.new("BoolValue")
- BoolValue22 = Instance.new("BoolValue")
- BoolValue23 = Instance.new("BoolValue")
- BoolValue24 = Instance.new("BoolValue")
- BoolValue25 = Instance.new("BoolValue")
- BoolValue26 = Instance.new("BoolValue")
- LocalScript27 = Instance.new("LocalScript")
- Part28 = Instance.new("Part")
- BillboardGui29 = Instance.new("BillboardGui")
- Frame30 = Instance.new("Frame")
- TextLabel31 = Instance.new("TextLabel")
- ScreenGui32 = Instance.new("ScreenGui")
- Frame33 = Instance.new("Frame")
- Frame34 = Instance.new("Frame")
- TextLabel35 = Instance.new("TextLabel")
- Frame36 = Instance.new("Frame")
- Frame37 = Instance.new("Frame")
- TextLabel38 = Instance.new("TextLabel")
- Frame39 = Instance.new("Frame")
- Frame40 = Instance.new("Frame")
- TextLabel41 = Instance.new("TextLabel")
- Frame42 = Instance.new("Frame")
- Frame43 = Instance.new("Frame")
- TextLabel44 = Instance.new("TextLabel")
- Frame45 = Instance.new("Frame")
- Frame46 = Instance.new("Frame")
- TextLabel47 = Instance.new("TextLabel")
- Frame48 = Instance.new("Frame")
- Frame49 = Instance.new("Frame")
- TextLabel50 = Instance.new("TextLabel")
- Frame51 = Instance.new("Frame")
- Frame52 = Instance.new("Frame")
- TextLabel53 = Instance.new("TextLabel")
- Frame54 = Instance.new("Frame")
- Frame55 = Instance.new("Frame")
- TextLabel56 = Instance.new("TextLabel")
- Frame57 = Instance.new("Frame")
- Frame58 = Instance.new("Frame")
- TextLabel59 = Instance.new("TextLabel")
- Script60 = Instance.new("Script")
- UnionOperation61 = Instance.new("UnionOperation")
- StringValue0.Name = "Stats"
- StringValue0.Parent = mas
- StringValue0.Value = "Stats"
- NumberValue1.Name = "Energy"
- NumberValue1.Parent = StringValue0
- NumberValue2.Name = "Mana"
- NumberValue2.Parent = StringValue0
- BoolValue3.Name = "Frozen"
- BoolValue3.Parent = StringValue0
- NumberValue4.Name = "Defense"
- NumberValue4.Parent = StringValue0
- NumberValue4.Value = 1
- NumberValue5.Name = "Attack"
- NumberValue5.Parent = StringValue0
- NumberValue5.Value = 1
- NumberValue6.Name = "Speed"
- NumberValue6.Parent = StringValue0
- NumberValue6.Value = 1
- StringValue7.Name = "Staleness"
- StringValue7.Parent = mas
- StringValue8.Name = "1"
- StringValue8.Parent = StringValue7
- StringValue9.Name = "2"
- StringValue9.Parent = StringValue7
- StringValue10.Name = "3"
- StringValue10.Parent = StringValue7
- StringValue11.Name = "4"
- StringValue11.Parent = StringValue7
- StringValue12.Name = "7"
- StringValue12.Parent = StringValue7
- StringValue13.Name = "5"
- StringValue13.Parent = StringValue7
- StringValue14.Name = "8"
- StringValue14.Parent = StringValue7
- StringValue15.Name = "6"
- StringValue15.Parent = StringValue7
- StringValue16.Name = "9"
- StringValue16.Parent = StringValue7
- BoolValue17.Name = "StalenessChecker"
- BoolValue17.Parent = mas
- BoolValue18.Name = "1"
- BoolValue18.Parent = BoolValue17
- BoolValue19.Name = "2"
- BoolValue19.Parent = BoolValue17
- BoolValue20.Name = "3"
- BoolValue20.Parent = BoolValue17
- BoolValue21.Name = "4"
- BoolValue21.Parent = BoolValue17
- BoolValue22.Name = "5"
- BoolValue22.Parent = BoolValue17
- BoolValue23.Name = "6"
- BoolValue23.Parent = BoolValue17
- BoolValue24.Name = "7"
- BoolValue24.Parent = BoolValue17
- BoolValue25.Name = "8"
- BoolValue25.Parent = BoolValue17
- BoolValue26.Name = "9"
- BoolValue26.Parent = BoolValue17
- LocalScript27.Name = "Freeze"
- LocalScript27.Parent = mas
- table.insert(cors,sandbox(LocalScript27,function()
- local Torso = game.Players.LocalPlayer:FindFirstChild("Torso")
- local Rbx = LoadLibrary("RbxUtility")
- local Create = Rbx.Create
- local BodPos = Create("BodyPosition"){
- P = 50000,
- D = 1000,
- maxForce = Vector3.new(math.huge, math.huge, math.huge),
- position = Torso.Position,
- Parent = Torso
- }
- game:GetService("Debris"):AddItem(BodPos,1.5)
- for i=math.random(3,6),1,-1 do
- if Torso then
- local p = Create("Part"){
- Size = Vector3.new(math.random(3,5),math.random(3,5),math.random(3,5)),
- Reflectance = 0.5,
- Transparency = 0.5,
- BrickColor = BrickColor.new("Pastel blue"),
- Material = "Ice",
- Anchored = true,
- CanCollide = true,
- Locked = true,
- Parent = Torso.Parent,
- CFrame = Torso.CFrame * CFrame.new(0,-1.5,0)
- }
- Torso.Anchored = true
- game:GetService("Debris"):AddItem(p,1.65)
- end
- end
- wait(1.5)
- Torso.Anchored = false
- script:Destroy()
- end))
- LocalScript27.Disabled = true
- Part28.Name = "Label"
- Part28.Parent = mas
- Part28.CFrame = CFrame.new(2742.92993, 125.424095, -99.8500366, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part28.Position = Vector3.new(2742.92993, 125.424095, -99.8500366)
- Part28.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part28.Transparency = 1
- Part28.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part28.Anchored = true
- Part28.BackSurface = Enum.SurfaceType.Unjoinable
- Part28.BottomSurface = Enum.SurfaceType.Unjoinable
- Part28.BrickColor = BrickColor.new("Really black")
- Part28.CanCollide = false
- Part28.FrontSurface = Enum.SurfaceType.Unjoinable
- Part28.LeftSurface = Enum.SurfaceType.Unjoinable
- Part28.Locked = true
- Part28.Material = Enum.Material.SmoothPlastic
- Part28.RightSurface = Enum.SurfaceType.Unjoinable
- Part28.TopSurface = Enum.SurfaceType.Unjoinable
- Part28.brickColor = BrickColor.new("Really black")
- BillboardGui29.Name = "GUI"
- BillboardGui29.Parent = Part28
- BillboardGui29.Size = UDim2.new(0, 200, 0, 50)
- Frame30.Name = "Main"
- Frame30.Parent = BillboardGui29
- Frame30.Size = UDim2.new(0, 100, 0, 100)
- Frame30.BackgroundColor = BrickColor.new("Institutional white")
- Frame30.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame30.BackgroundTransparency = 1
- Frame30.BorderSizePixel = 0
- TextLabel31.Name = "Label"
- TextLabel31.Parent = Frame30
- TextLabel31.Size = UDim2.new(1, 0, 1, 0)
- TextLabel31.BackgroundColor = BrickColor.new("Institutional white")
- TextLabel31.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel31.BackgroundTransparency = 1
- TextLabel31.BorderSizePixel = 0
- TextLabel31.Font = Enum.Font.SourceSans
- TextLabel31.FontSize = Enum.FontSize.Size14
- TextLabel31.Text = "0"
- TextLabel31.TextColor = BrickColor.new("Institutional white")
- TextLabel31.TextColor3 = Color3.new(1, 1, 1)
- TextLabel31.TextScaled = true
- TextLabel31.TextSize = 14
- TextLabel31.TextStrokeTransparency = 0
- TextLabel31.TextWrap = true
- TextLabel31.TextWrapped = true
- ScreenGui32.Name = "WeaponGUI"
- ScreenGui32.Parent = mas
- Frame33.Name = "Skill3"
- Frame33.Parent = ScreenGui32
- Frame33.Position = UDim2.new(0.230000004, 0, 0.925000012, 0)
- Frame33.Size = UDim2.new(0.25999999, 0, 0.0599999987, 0)
- Frame33.BackgroundColor = BrickColor.new("Institutional white")
- Frame33.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame33.BackgroundTransparency = 0.69999998807907
- Frame33.BorderSizePixel = 0
- Frame34.Name = "Cover"
- Frame34.Parent = Frame33
- Frame34.Size = UDim2.new(1.00222218, 0, 1, 0)
- Frame34.BackgroundColor = BrickColor.new("Institutional white")
- Frame34.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame34.BackgroundTransparency = 0.5
- Frame34.BorderSizePixel = 0
- TextLabel35.Name = "Label"
- TextLabel35.Parent = Frame33
- TextLabel35.Size = UDim2.new(1, 0, 1, 0)
- TextLabel35.BackgroundTransparency = 1
- TextLabel35.BorderSizePixel = 0
- TextLabel35.Font = Enum.Font.SourceSansBold
- TextLabel35.FontSize = Enum.FontSize.Size32
- TextLabel35.Text = "[C] Skill3"
- TextLabel35.TextColor = BrickColor.new("Institutional white")
- TextLabel35.TextColor3 = Color3.new(1, 1, 1)
- TextLabel35.TextScaled = true
- TextLabel35.TextSize = 32
- TextLabel35.TextStrokeTransparency = 0
- TextLabel35.TextWrap = true
- TextLabel35.TextWrapped = true
- Frame36.Name = "Skill4"
- Frame36.Parent = ScreenGui32
- Frame36.Position = UDim2.new(0.5, 0, 0.925000012, 0)
- Frame36.Size = UDim2.new(0.25999999, 0, 0.0599999987, 0)
- Frame36.BackgroundColor = BrickColor.new("Institutional white")
- Frame36.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame36.BackgroundTransparency = 0.69999998807907
- Frame36.BorderSizePixel = 0
- Frame37.Name = "Cover"
- Frame37.Parent = Frame36
- Frame37.Size = UDim2.new(1.00222218, 0, 1, 0)
- Frame37.BackgroundColor = BrickColor.new("Institutional white")
- Frame37.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame37.BackgroundTransparency = 0.5
- Frame37.BorderSizePixel = 0
- TextLabel38.Name = "Label"
- TextLabel38.Parent = Frame36
- TextLabel38.Size = UDim2.new(1, 0, 1, 0)
- TextLabel38.BackgroundTransparency = 1
- TextLabel38.BorderSizePixel = 0
- TextLabel38.Font = Enum.Font.SourceSansBold
- TextLabel38.FontSize = Enum.FontSize.Size32
- TextLabel38.Text = "[4] Skill4"
- TextLabel38.TextColor = BrickColor.new("Institutional white")
- TextLabel38.TextColor3 = Color3.new(1, 1, 1)
- TextLabel38.TextScaled = true
- TextLabel38.TextSize = 32
- TextLabel38.TextStrokeTransparency = 0
- TextLabel38.TextWrap = true
- TextLabel38.TextWrapped = true
- Frame39.Name = "Skill2"
- Frame39.Parent = ScreenGui32
- Frame39.Position = UDim2.new(0.5, 0, 0.860000014, 0)
- Frame39.Size = UDim2.new(0.25999999, 0, 0.0599999987, 0)
- Frame39.BackgroundColor = BrickColor.new("Institutional white")
- Frame39.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame39.BackgroundTransparency = 0.69999998807907
- Frame39.BorderSizePixel = 0
- Frame40.Name = "Cover"
- Frame40.Parent = Frame39
- Frame40.Size = UDim2.new(1.00222218, 0, 1, 0)
- Frame40.BackgroundColor = BrickColor.new("Institutional white")
- Frame40.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame40.BackgroundTransparency = 0.5
- Frame40.BorderSizePixel = 0
- TextLabel41.Name = "Label"
- TextLabel41.Parent = Frame39
- TextLabel41.Size = UDim2.new(1, 0, 1, 0)
- TextLabel41.BackgroundTransparency = 1
- TextLabel41.BorderSizePixel = 0
- TextLabel41.Font = Enum.Font.SourceSansBold
- TextLabel41.FontSize = Enum.FontSize.Size32
- TextLabel41.Text = "[X] Skill2"
- TextLabel41.TextColor = BrickColor.new("Institutional white")
- TextLabel41.TextColor3 = Color3.new(1, 1, 1)
- TextLabel41.TextScaled = true
- TextLabel41.TextSize = 32
- TextLabel41.TextStrokeTransparency = 0
- TextLabel41.TextWrap = true
- TextLabel41.TextWrapped = true
- Frame42.Name = "Skill1"
- Frame42.Parent = ScreenGui32
- Frame42.Position = UDim2.new(0.230000004, 0, 0.860000014, 0)
- Frame42.Size = UDim2.new(0.25999999, 0, 0.0599999987, 0)
- Frame42.BackgroundColor = BrickColor.new("Institutional white")
- Frame42.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame42.BackgroundTransparency = 0.69999998807907
- Frame42.BorderSizePixel = 0
- Frame43.Name = "Cover"
- Frame43.Parent = Frame42
- Frame43.Size = UDim2.new(1.00199997, 0, 1, 0)
- Frame43.BackgroundColor = BrickColor.new("Institutional white")
- Frame43.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame43.BackgroundTransparency = 0.5
- Frame43.BorderSizePixel = 0
- TextLabel44.Name = "Label"
- TextLabel44.Parent = Frame42
- TextLabel44.Size = UDim2.new(1, 0, 1, 0)
- TextLabel44.BackgroundTransparency = 1
- TextLabel44.BorderSizePixel = 0
- TextLabel44.Font = Enum.Font.SourceSansBold
- TextLabel44.FontSize = Enum.FontSize.Size32
- TextLabel44.Text = "[Z] Skill1"
- TextLabel44.TextColor = BrickColor.new("Institutional white")
- TextLabel44.TextColor3 = Color3.new(1, 1, 1)
- TextLabel44.TextScaled = true
- TextLabel44.TextSize = 32
- TextLabel44.TextStrokeTransparency = 0
- TextLabel44.TextWrap = true
- TextLabel44.TextWrapped = true
- Frame45.Name = "Bar1"
- Frame45.Parent = ScreenGui32
- Frame45.Position = UDim2.new(0.230000004, 0, 0.800000012, 0)
- Frame45.Size = UDim2.new(0.25999999, 0, 0.0500000007, 0)
- Frame45.BackgroundColor = BrickColor.new("Institutional white")
- Frame45.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame45.BackgroundTransparency = 0.69999998807907
- Frame45.BorderSizePixel = 0
- Frame46.Name = "Cover"
- Frame46.Parent = Frame45
- Frame46.Size = UDim2.new(1, 0, 1, 0)
- Frame46.BackgroundColor = BrickColor.new("Institutional white")
- Frame46.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame46.BackgroundTransparency = 0.5
- Frame46.BorderSizePixel = 0
- TextLabel47.Name = "Label"
- TextLabel47.Parent = Frame45
- TextLabel47.Size = UDim2.new(1, 0, 1, 0)
- TextLabel47.BackgroundTransparency = 1
- TextLabel47.BorderSizePixel = 0
- TextLabel47.Font = Enum.Font.SourceSansBold
- TextLabel47.FontSize = Enum.FontSize.Size32
- TextLabel47.Text = "Mana ~{#}~"
- TextLabel47.TextColor = BrickColor.new("Institutional white")
- TextLabel47.TextColor3 = Color3.new(1, 1, 1)
- TextLabel47.TextScaled = true
- TextLabel47.TextSize = 32
- TextLabel47.TextStrokeTransparency = 0
- TextLabel47.TextWrap = true
- TextLabel47.TextWrapped = true
- Frame48.Name = "Bar2"
- Frame48.Parent = ScreenGui32
- Frame48.Position = UDim2.new(0.5, 0, 0.800000012, 0)
- Frame48.Size = UDim2.new(0.25999999, 0, 0.0500000007, 0)
- Frame48.BackgroundColor = BrickColor.new("Institutional white")
- Frame48.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame48.BackgroundTransparency = 0.69999998807907
- Frame48.BorderSizePixel = 0
- Frame49.Name = "Cover"
- Frame49.Parent = Frame48
- Frame49.Size = UDim2.new(1, 0, 1, 0)
- Frame49.BackgroundColor = BrickColor.new("Institutional white")
- Frame49.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame49.BackgroundTransparency = 0.5
- Frame49.BorderSizePixel = 0
- TextLabel50.Name = "Label"
- TextLabel50.Parent = Frame48
- TextLabel50.Size = UDim2.new(1, 0, 1, 0)
- TextLabel50.BackgroundTransparency = 1
- TextLabel50.BorderSizePixel = 0
- TextLabel50.Font = Enum.Font.SourceSansBold
- TextLabel50.FontSize = Enum.FontSize.Size32
- TextLabel50.Text = "Energy ~{#}~"
- TextLabel50.TextColor = BrickColor.new("Institutional white")
- TextLabel50.TextColor3 = Color3.new(1, 1, 1)
- TextLabel50.TextScaled = true
- TextLabel50.TextSize = 32
- TextLabel50.TextStrokeTransparency = 0
- TextLabel50.TextWrap = true
- TextLabel50.TextWrapped = true
- Frame51.Name = "Speed"
- Frame51.Parent = ScreenGui32
- Frame51.Position = UDim2.new(0.239999995, 0, 0.720000029, 0)
- Frame51.Size = UDim2.new(0.150000006, 0, 0.0700000003, 0)
- Frame51.BackgroundColor = BrickColor.new("Neon green")
- Frame51.BackgroundColor3 = Color3.new(0.87451, 1, 0.313726)
- Frame51.BackgroundTransparency = 0.69999998807907
- Frame51.BorderSizePixel = 0
- Frame52.Name = "Cover"
- Frame52.Parent = Frame51
- Frame52.Size = UDim2.new(1, 0, 1, 0)
- Frame52.BackgroundColor = BrickColor.new("Neon green")
- Frame52.BackgroundColor3 = Color3.new(0.87451, 1, 0.313726)
- Frame52.BackgroundTransparency = 0.5
- Frame52.BorderSizePixel = 0
- TextLabel53.Name = "Label"
- TextLabel53.Parent = Frame51
- TextLabel53.Size = UDim2.new(1, 0, 1, 0)
- TextLabel53.BackgroundTransparency = 1
- TextLabel53.BorderSizePixel = 0
- TextLabel53.Font = Enum.Font.SourceSansBold
- TextLabel53.FontSize = Enum.FontSize.Size32
- TextLabel53.Text = "Speed {#}"
- TextLabel53.TextColor = BrickColor.new("Institutional white")
- TextLabel53.TextColor3 = Color3.new(1, 1, 1)
- TextLabel53.TextScaled = true
- TextLabel53.TextSize = 32
- TextLabel53.TextStrokeTransparency = 0
- TextLabel53.TextWrap = true
- TextLabel53.TextWrapped = true
- Frame54.Name = "Defense"
- Frame54.Parent = ScreenGui32
- Frame54.Position = UDim2.new(0.610000014, 0, 0.720000029, 0)
- Frame54.Size = UDim2.new(0.150000006, 0, 0.0700000003, 0)
- Frame54.BackgroundColor = BrickColor.new("Pastel blue-green")
- Frame54.BackgroundColor3 = Color3.new(0.643137, 0.941177, 1)
- Frame54.BackgroundTransparency = 0.69999998807907
- Frame54.BorderSizePixel = 0
- Frame55.Name = "Cover"
- Frame55.Parent = Frame54
- Frame55.Size = UDim2.new(1, 0, 1, 0)
- Frame55.BackgroundColor = BrickColor.new("Pastel blue-green")
- Frame55.BackgroundColor3 = Color3.new(0.643137, 0.941177, 1)
- Frame55.BackgroundTransparency = 0.5
- Frame55.BorderSizePixel = 0
- TextLabel56.Name = "Label"
- TextLabel56.Parent = Frame54
- TextLabel56.Size = UDim2.new(1, 0, 1, 0)
- TextLabel56.BackgroundTransparency = 1
- TextLabel56.BorderSizePixel = 0
- TextLabel56.Font = Enum.Font.SourceSansBold
- TextLabel56.FontSize = Enum.FontSize.Size32
- TextLabel56.Text = "Defense {#}"
- TextLabel56.TextColor = BrickColor.new("Institutional white")
- TextLabel56.TextColor3 = Color3.new(1, 1, 1)
- TextLabel56.TextScaled = true
- TextLabel56.TextSize = 32
- TextLabel56.TextStrokeTransparency = 0
- TextLabel56.TextWrap = true
- TextLabel56.TextWrapped = true
- Frame57.Name = "Attack"
- Frame57.Parent = ScreenGui32
- Frame57.Position = UDim2.new(0.425000012, 0, 0.720000029, 0)
- Frame57.Size = UDim2.new(0.150000006, 0, 0.0700000003, 0)
- Frame57.BackgroundColor = BrickColor.new("Salmon")
- Frame57.BackgroundColor3 = Color3.new(1, 0.501961, 0.509804)
- Frame57.BackgroundTransparency = 0.69999998807907
- Frame57.BorderSizePixel = 0
- Frame58.Name = "Cover"
- Frame58.Parent = Frame57
- Frame58.Size = UDim2.new(1, 0, 1, 0)
- Frame58.BackgroundColor = BrickColor.new("Salmon")
- Frame58.BackgroundColor3 = Color3.new(1, 0.501961, 0.509804)
- Frame58.BackgroundTransparency = 0.5
- Frame58.BorderSizePixel = 0
- TextLabel59.Name = "Label"
- TextLabel59.Parent = Frame57
- TextLabel59.Size = UDim2.new(1, 0, 1, 0)
- TextLabel59.BackgroundTransparency = 1
- TextLabel59.BorderSizePixel = 0
- TextLabel59.Font = Enum.Font.SourceSansBold
- TextLabel59.FontSize = Enum.FontSize.Size32
- TextLabel59.Text = "Attack {#}"
- TextLabel59.TextColor = BrickColor.new("Institutional white")
- TextLabel59.TextColor3 = Color3.new(1, 1, 1)
- TextLabel59.TextScaled = true
- TextLabel59.TextSize = 32
- TextLabel59.TextStrokeTransparency = 0
- TextLabel59.TextWrap = true
- TextLabel59.TextWrapped = true
- Script60.Name = "Deleter"
- Script60.Parent = mas
- table.insert(cors,sandbox(Script60,function()
- wait(7)
- script.Parent:Destroy()
- end))
- Script60.Disabled = true
- UnionOperation61.Name = "Blades"
- UnionOperation61.Parent = mas
- UnionOperation61.CFrame = CFrame.new(2820.84375, -397.057983, 123.994339, -1.00000012, -0.000293178018, 0.000269000971, 0.000119509743, -0.866171181, -0.499747783, 0.000379515899, -0.499747694, 0.866171122)
- UnionOperation61.Orientation = Vector3.new(29.9799995, 0.0199999996, 179.98999)
- UnionOperation61.Position = Vector3.new(2820.84375, -397.057983, 123.994339)
- UnionOperation61.Rotation = Vector3.new(29.9799995, 0.0199999996, 179.979996)
- UnionOperation61.Color = Color3.new(0.294118, 0.592157, 0.294118)
- UnionOperation61.Size = Vector3.new(0.300962001, 2.50051451, 7.39995384)
- UnionOperation61.BrickColor = BrickColor.new("Bright green")
- UnionOperation61.CanCollide = false
- UnionOperation61.Material = Enum.Material.Neon
- UnionOperation61.brickColor = BrickColor.new("Bright green")
- UnionOperation61.UsePartColor = true
- 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
- CreateStuff()
- wait(2)
- --[[CUSTOMIZATION]]--
- Frames = 1 / 60
- Base_Speed = 16
- Base_Speed_Value = 1.6
- Base_Attack_Value = 0.7
- Base_Defense_Value = 0.7
- Skill1cooldown = 4
- Skill2cooldown = 6
- Skill3cooldown = 7
- Skill4cooldown = 9
- Recover_Mana = 1
- MaxMana = 100
- Recover_Energy = 1
- MaxEnergy = 75
- ManaInterval = 15
- EnergyInterval = 22
- Text1 = "[Z] Birth"
- Text2 = "[X] Adolescense"
- Text3 = "[C] Age"
- Text4 = "[V] Death"
- ManaBar_Color = BrickColor.new("Institutional white")
- EnergyBar_Color = BrickColor.new("Medium green")
- Primary_Color = BrickColor.new("Mid gray")
- Secondary_Color = BrickColor.new("Really black")
- --[[Variables]]--
- Rbx = LoadLibrary("RbxUtility")
- Create = Rbx.Create
- m=Instance.new('Model',game.Players.LocalPlayer.Character)
- Arm_Held = game.Players.LocalPlayer.Character["Right Arm"]
- Stat = script.Stats
- Mana = Stat.Mana
- Energy = Stat.Energy
- Frozen = Stat.Frozen
- Attack = Stat.Attack
- Defense = Stat.Defense
- Speed = Stat.Speed
- GUI = script.WeaponGUI
- Bar1 = GUI.Bar1
- Bar2 = GUI.Bar2
- Skill1 = GUI.Skill1
- Skill2 = GUI.Skill2
- Skill3 = GUI.Skill3
- Skill4 = GUI.Skill4
- Bar1Cover = Bar1.Cover
- Bar2Cover = Bar2.Cover
- Cover1 = Skill1.Cover
- Cover2 = Skill2.Cover
- Cover3 = Skill3.Cover
- Cover4 = Skill4.Cover
- Bar1.BackgroundColor3 = ManaBar_Color.Color
- Bar1Cover.BackgroundColor3 = ManaBar_Color.Color
- Bar2.BackgroundColor3 = EnergyBar_Color.Color
- Bar2Cover.BackgroundColor3 = EnergyBar_Color.Color
- Skill1.BackgroundColor3 = Primary_Color.Color
- Cover1.BackgroundColor3 = Primary_Color.Color
- Skill2.BackgroundColor3 = Primary_Color.Color
- Cover2.BackgroundColor3 = Primary_Color.Color
- Skill3.BackgroundColor3 = Primary_Color.Color
- Cover3.BackgroundColor3 = Primary_Color.Color
- Skill4.BackgroundColor3 = Primary_Color.Color
- Cover4.BackgroundColor3 = Primary_Color.Color
- Skill1text = Skill1.Label
- Skill2text = Skill2.Label
- Skill3text = Skill3.Label
- Skill4text = Skill4.Label
- Skill1text.Text = Text1
- Skill2text.Text = Text2
- Skill3text.Text = Text3
- Skill4text.Text = Text4
- function NoOutline(part)
- part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
- end
- Weapon = Instance.new("Model",game.Players.LocalPlayer.Character)
- Weapon.Name = "Weapon"
- Handle = Create("Part"){
- Parent = Weapon,
- Name = "ShieldHandle",
- Size = Vector3.new(0.3, 3, 3),
- Material = "Neon",
- Anchored = false,
- CanCollide = false,
- Locked = true,
- BrickColor = BrickColor.new("Bright green")
- }
- Mesh = Create("SpecialMesh"){
- MeshType = "Cylinder",
- Parent = Handle
- }
- NoOutline(Handle)
- Hitbox = Create("Part"){
- Parent = Weapon,
- Name = "Hitbox",
- Size = Vector3.new(0.25, 3.5, 3.5),
- Material = "Granite",
- Anchored = false,
- CanCollide = false,
- Locked = true,
- BrickColor = BrickColor.new("Institutional white")
- }
- Mesh = Create("SpecialMesh"){
- MeshType = "Cylinder",
- Parent = Hitbox
- }
- NoOutline(Hitbox)
- Blades = script.Blades:Clone()
- Blades.Parent = Weapon
- Part1 = Create("Part"){
- Parent = Weapon,
- Name = "Part1",
- Size = Vector3.new(0.2, 4, 4),
- Material = "Slate",
- Anchored = false,
- CanCollide = false,
- Locked = true,
- BrickColor = BrickColor.new("Institutional white")
- }
- Mesh = Create("SpecialMesh"){
- MeshType = "Cylinder",
- Parent = Part1
- }
- NoOutline(Part1)
- Gunhandle = Create("Part"){
- Parent = Weapon,
- Name = "GunHandle",
- Size = Vector3.new(0.4, 0.9, 0.5),
- Material = "DiamondPlate",
- Anchored = false,
- CanCollide = false,
- Locked = true,
- BrickColor = BrickColor.new("Bright green")
- }
- NoOutline(Gunhandle)
- Barrel = Create("Part"){
- Parent = Weapon,
- Name = "Barrel",
- Size = Vector3.new(0.25, 0.2, 0.25),
- Material = "Neon",
- Anchored = false,
- CanCollide = false,
- Locked = true,
- BrickColor = BrickColor.new("Bright green")
- }
- NoOutline(Barrel)
- GunPart1 = Create("Part"){
- Parent = Weapon,
- Name = "GunPart1",
- Size = Vector3.new(0.5, 0.85, 0.65),
- Material = "Concrete",
- Anchored = false,
- CanCollide = false,
- Locked = true,
- BrickColor = BrickColor.new("Really black")
- }
- NoOutline(GunPart1)
- GunPart2 = Create("Part"){
- Parent = Weapon,
- Name = "GunPart2",
- Size = Vector3.new(0.4, 0.35, 0.85),
- Material = "SmoothPlastic",
- Anchored = false,
- CanCollide = false,
- Locked = true,
- BrickColor = BrickColor.new("Black")
- }
- NoOutline(GunPart2)
- GunPart3 = Create("Part"){
- Parent = Weapon,
- Name = "GunPart3",
- Size = Vector3.new(0.5, 0.6, 1),
- Material = "Concrete",
- Anchored = false,
- CanCollide = false,
- Locked = true,
- BrickColor = BrickColor.new("Really black")
- }
- NoOutline(GunPart3)
- GunPart4 = Create("Part"){
- Parent = Weapon,
- Name = "GunPart4",
- Size = Vector3.new(0.4, 0.7, 0.85),
- Material = "DiamondPlate",
- Anchored = false,
- CanCollide = false,
- Locked = true,
- BrickColor = BrickColor.new("Bright green")
- }
- NoOutline(GunPart4)
- Scarf = Create("Part"){
- Parent = Weapon,
- Name = "Part1",
- Size = Vector3.new(2, 2, 1),
- Material = "Plastic",
- Anchored = false,
- CanCollide = false,
- Locked = true,
- BrickColor = BrickColor.new("Medium green")
- }
- Mesh = Create("SpecialMesh"){
- MeshType = "FileMesh",
- MeshId = "http://www.roblox.com/asset/?id=448710145",
- Scale = Vector3.new(1,1.3,1),
- Parent = Scarf
- }
- NoOutline(Scarf)
- Spin = Create("Sound"){
- Parent = Handle,
- SoundId = "rbxassetid://143301643",
- Volume = 0.25,
- Pitch = 1.4,
- Looped = true,
- }
- Spin2 = Create("Sound"){
- Parent = Handle,
- SoundId = "rbxassetid://149560784",
- Volume =0.5,
- Pitch = 0.4,
- Looped = true,
- }
- Spin:Play()
- Spin2:Play()
- Speed.Value = Base_Speed_Value
- Attack.Value = Base_Attack_Value
- Defense.Value = Base_Defense_Value
- Staleness = script.Staleness
- Stale1 = Staleness["1"]
- Stale2 = Staleness["2"]
- Stale3 = Staleness["3"]
- Stale4 = Staleness["4"]
- Stale5 = Staleness["5"]
- Stale6 = Staleness["6"]
- Stale7 = Staleness["7"]
- Stale8 = Staleness["8"]
- Stale9 = Staleness["9"]
- StaleCheck = script.StalenessChecker
- StaleCheck1 = StaleCheck["1"]
- StaleCheck2 = StaleCheck["2"]
- StaleCheck3 = StaleCheck["3"]
- StaleCheck4 = StaleCheck["4"]
- StaleCheck5 = StaleCheck["5"]
- StaleCheck6 = StaleCheck["6"]
- StaleCheck7 = StaleCheck["7"]
- StaleCheck8 = StaleCheck["8"]
- StaleCheck9 = StaleCheck["9"]
- Lag = false
- Player = game.Players.LocalPlayer
- Character = Player.Character
- PlayerGui = Player.PlayerGui
- Backpack = Player.Backpack
- Torso = Character.Torso
- Head = Character.Head
- Humanoid = Character.Humanoid
- LeftArm = Character["Left Arm"]
- LeftLeg = Character["Left Leg"]
- RightArm = Character["Right Arm"]
- RightLeg = Character["Right Leg"]
- Character = Player.Character
- PlayerGui = Player.PlayerGui
- GUI.Parent = PlayerGui
- Backpack = Player.Backpack
- Torso = Character.Torso
- Head = Character.Head
- Humanoid = Character.Humanoid
- LeftArm = Character["Left Arm"]
- LeftLeg = Character["Left Leg"]
- RightArm = Character["Right Arm"]
- RightLeg = Character["Right Leg"]
- LS = Torso["Left Shoulder"]
- LH = Torso["Left Hip"]
- RS = Torso["Right Shoulder"]
- RH = Torso["Right Hip"]
- Neck = Torso.Neck
- attacktype = 1
- vt = Vector3.new
- cf = CFrame.new
- euler = CFrame.fromEulerAnglesXYZ
- angles = CFrame.Angles
- Sheathed = false
- necko = cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- necko2 = cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- LHC0 = cf(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- LHC1 = cf(-0.5, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- RootPart = Character.HumanoidRootPart
- RootJoint = RootPart.RootJoint
- RootCF = euler(-1.57, 0, 3.14)
- attack = false
- equipped = true
- local Anim = "Idle"
- local Effects = {}
- cam = workspace.CurrentCamera
- ZTarget = nil
- RocketTarget = nil
- local CurrentMove = "[BLANK]"
- mouse = Player:GetMouse()
- RSH, LSH = nil, nil
- LH = Torso["Left Hip"]
- RH = Torso["Right Hip"]
- RSH = Torso["Right Shoulder"]
- LSH = Torso["Left Shoulder"]
- StaledNum = 0
- local spin = 0
- Spinning = false
- RSH.Parent = nil
- LSH.Parent = nil
- RW = Create("Weld"){
- Name = "Right Shoulder",
- Part0 = Torso ,
- C0 = cf(1.5, 0.5, 0),
- C1 = cf(0, 0.5, 0),
- Part1 = RightArm ,
- Parent = Torso ,
- }
- LW = Create("Weld"){
- Name = "Left Shoulder",
- Part0 = Torso ,
- C0 = cf(-1.5, 0.5, 0),
- C1 = cf(0, 0.5, 0) ,
- Part1 = LeftArm ,
- Parent = Torso ,
- }
- --[[Functions]]--
- function NoOutline(Part)
- Part.TopSurface, Part.BottomSurface, Part.LeftSurface, Part.RightSurface, Part.FrontSurface, Part.BackSurface = 10, 10, 10, 10, 10, 10
- end
- function nooutline(part)
- part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
- end
- function part(formfactor, parent, material, reflectance, transparency, brickcolor, name, size)
- local fp = Create("Part"){
- formFactor = formfactor,
- Parent = parent,
- Reflectance = reflectance,
- Transparency = transparency,
- CanCollide = false,
- Locked = true,
- BrickColor = BrickColor.new(tostring(brickcolor)),
- Name = name,
- Size = size,
- Position = Character.Torso.Position,
- Material = material,
- }
- nooutline(fp)
- return fp
- end
- function mesh(Mesh, part, meshtype, meshid, offset, scale)
- local Msh = Create(Mesh){
- Parent = part,
- Offset = offset,
- Scale = scale,
- }
- if Mesh == "SpecialMesh" then
- Msh.MeshType = meshtype
- Msh.MeshId = meshid
- end
- return Msh
- end
- function weld(parent, part0, part1, c0, c1)
- local Weld = Create("Weld"){
- Parent = parent,
- Part0 = part0,
- Part1 = part1,
- C0 = c0,
- C1 = c1,
- }
- return Weld
- end
- local nr=NumberRange.new
- local ns=NumberSequence.new
- local cs=ColorSequence.new
- local nsk=NumberSequenceKeypoint.new
- function particle(parent,col1,col2,lightemis,size,texture,transparency,zoffset,accel,drag,ltp,velinher,emisdir,enabled,lifetime,rate,rotation,rotspeed,speed,velspread)
- local fp=Instance.new("ParticleEmitter")
- fp.Parent=parent
- fp.Color= cs(col1,col2)
- fp.LightEmission=lightemis
- fp.Size=size
- fp.Texture=texture
- fp.Transparency=transparency
- fp.ZOffset=zoffset
- fp.Acceleration=accel
- fp.Drag=drag
- fp.LockedToPart=ltp
- fp.VelocityInheritance=velinher
- fp.EmissionDirection=emisdir
- fp.Enabled=enabled
- fp.Lifetime=lifetime
- fp.Rate=rate
- fp.Rotation=rotation
- fp.RotSpeed=rotspeed
- fp.Speed=speed
- fp.VelocitySpread=velspread
- return fp
- end
- sizeseq=ns({nsk(0,4),nsk(.027,8.5),nsk(.184,9),nsk(1,10)})
- transseq=ns({nsk(0,.375),nsk(.4,1),nsk(1,1)})
- local icicleparti1=particle(Torso,Color3.new(255/255,255/255,255/255),Color3.new(100/255,100/255,255/255),.2,sizeseq,"http://www.roblox.com/asset/?id=329766994",transseq,0,vt(0,-.5,0),0,false,0,"Bottom",false,nr(7,10),15,nr(-360,360),nr(-30,30),nr(3),20)
- sizeseq=ns({nsk(0,5),nsk(.025,7.7),nsk(.192,9),nsk(1,10)})
- transseq=ns({nsk(0,.8),nsk(.3,1),nsk(1,1)})
- local icicleparti2=particle(Torso,Color3.new(255/255,255/255,255/255),Color3.new(100/255,100/255,255/255),.3,sizeseq,"http://www.roblox.com/asset/?id=241594419",transseq,0,vt(0,-.5,0),0,false,0,"Bottom",false,nr(7,10),80,nr(-360,360),nr(-30,30),nr(3),20)
- sizeseq=ns({nsk(0,.328),nsk(.075,3.11),nsk(.206,4.97),nsk(1,10)})
- transseq=ns({nsk(0,.363),nsk(.107,1),nsk(1,1)})
- handleweld = weld(m,Arm_Held,Handle,CFrame.new(0,0,0),CFrame.new(0,0,0))
- bladeweld = weld(m,Handle,Blades,CFrame.new(0,0,0),CFrame.new(0,0,0))
- hitboxweld = weld(m,Handle,Hitbox,CFrame.new(0,0,0),CFrame.new(0,0,0))
- partweld = weld(m,Handle,Part1,CFrame.new(0,0,0),CFrame.new(0,0,0))
- scarfweld = weld(m,Torso,Scarf,CFrame.new(-0.1,0,0)*CFrame.Angles(0,math.rad(180),math.rad(-5)),CFrame.new(0,0,0))
- gunweld = weld(m,LeftArm,Gunhandle,CFrame.new(0,2,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(90)),CFrame.new(0,0,0))
- barrelweld = weld(m,Gunhandle,Barrel,CFrame.new(-1,0.8,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),CFrame.new(0,0,0))
- partweld = weld(m,Gunhandle,GunPart1,CFrame.new(0.33,0.65,0)*CFrame.Angles(math.rad(90),math.rad(90),math.rad(90)),CFrame.new(0,0,0))
- partweld = weld(m,Gunhandle,GunPart2,CFrame.new(-0.6,0.6,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),CFrame.new(0,0,0))
- partweld = weld(m,Gunhandle,GunPart3,CFrame.new(-0.6,0.8,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),CFrame.new(0,0,0))
- partweld = weld(m,Gunhandle,GunPart4,CFrame.new(0.225,0.65,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),CFrame.new(0,0,0))
- local function CFrameFromTopBack(at, top, back)
- local right = top:Cross(back)
- return CFrame.new(at.x, at.y, at.z,
- right.x, top.x, back.x,
- right.y, top.y, back.y,
- right.z, top.z, back.z)
- end
- function Triangle(a, b, c)
- local edg1 = (c - a):Dot((b - a).unit)
- local edg2 = (a - b):Dot((c - b).unit)
- local edg3 = (b - c):Dot((a - c).unit)
- if edg1 <= (b - a).magnitude and edg1 >= 0 then
- a, b, c = a, b, c
- elseif edg2 <= (c - b).magnitude and edg2 >= 0 then
- a, b, c = b, c, a
- elseif edg3 <= (a - c).magnitude and edg3 >= 0 then
- a, b, c = c, a, b
- else
- assert(false, "unreachable")
- end
- local len1 = (c - a):Dot((b - a).unit)
- local len2 = (b - a).magnitude - len1
- local width = (a + (b - a).unit * len1 - c).magnitude
- local maincf = CFrameFromTopBack(a, (b - a):Cross(c - b).unit, -(b - a).unit)
- local list = {}
- local Color = BrickColor.new("Dark stone grey")
- if len1 > 0.01 then
- local w1 = Create('WedgePart', m){
- Material = "SmoothPlastic",
- FormFactor = 'Custom',
- BrickColor = Color,
- Transparency = 0,
- Reflectance = 0,
- Material = "SmoothPlastic",
- CanCollide = false,
- Anchored = true,
- Parent = workspace,
- Transparency = 0.3,
- }
- game:GetService("Debris"):AddItem(w1, 5)
- NoOutline(w1)
- local sz = Vector3.new(0.2, width, len1)
- w1.Size = sz
- local sp = Create("SpecialMesh"){
- Parent = w1,
- MeshType = "Wedge",
- Scale = Vector3.new(0, 1, 1) * sz / w1.Size,
- }
- w1:BreakJoints()
- table.insert(Effects, {
- w1,
- "Disappear",
- .03
- })
- w1.CFrame = maincf * CFrame.Angles(math.pi, 0, math.pi / 2) * CFrame.new(0, width / 2, len1 / 2)
- table.insert(list, w1)
- end
- if len2 > 0.01 then
- local w2 = Create('WedgePart', m){
- Material = "SmoothPlastic",
- FormFactor = 'Custom',
- BrickColor = Color,
- Transparency = 0,
- Reflectance = 0,
- Material = "SmoothPlastic",
- CanCollide = false,
- Anchored = true,
- Parent = workspace,
- Transparency = 0.3,
- }
- game:GetService("Debris"):AddItem(w2, 5)
- NoOutline(w2)
- local sz = Vector3.new(0.2, width, len2)
- w2.Size = sz
- local sp = Create("SpecialMesh"){
- Parent = w2,
- MeshType = "Wedge",
- Scale = Vector3.new(0, 1, 1) * sz / w2.Size,
- }
- w2:BreakJoints()
- table.insert(Effects, {
- w2,
- "Disappear",
- .03
- })
- w2.CFrame = maincf * CFrame.Angles(math.pi, math.pi, -math.pi / 2) * CFrame.new(0, width / 2, -len1 - len2 / 2)
- table.insert(list, w2)
- end
- return unpack(list)
- end
- function so(id, par, vol, pit)
- coroutine.resume(coroutine.create(function()
- local sou = Instance.new("Sound", par)
- sou.Volume = vol
- sou.Pitch = pit
- sou.SoundId = id
- swait()
- sou:play()
- local clo = script.Deleter:Clone()
- clo.Parent = sou
- clo.Disabled = false
- end))
- end
- function clerp(a, b, t)
- return a:lerp(b, t)
- end
- ArtificialHB = Instance.new("BindableEvent", script)
- ArtificialHB.Name = "Heartbeat"
- script:WaitForChild("Heartbeat")
- tf = 0
- allowframeloss = false
- tossremainder = false
- lastframe = tick()
- script.Heartbeat:Fire()
- game:GetService("RunService").Heartbeat:connect(function(s, p)
- tf = tf + s
- if tf >= Frames then
- if allowframeloss then
- script.Heartbeat:Fire()
- lastframe = tick()
- else
- for i = 1, math.floor(tf / Frames) do
- script.Heartbeat:Fire()
- end
- lastframe = tick()
- end
- if tossremainder then
- tf = 0
- else
- tf = tf - Frames * math.floor(tf / Frames)
- end
- end
- end)
- function swait(num)
- if num == 0 or num == nil then
- ArtificialHB.Event:wait()
- else
- for i = 0, num do
- ArtificialHB.Event:wait()
- end
- end
- end
- function rayCast(Pos, Dir, Max, Ignore)
- return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
- end
- Asset = "http://www.roblox.com/asset/?id="
- Damagefunc = function(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch,DefenseHexCheck,DefenseHex,SpeedHexCheck,SpeedHex,AttackHexCheck,AttackHex)
- if hit.Parent == nil then
- return
- end
- local h = hit.Parent:FindFirstChild("Humanoid")
- for _, v in pairs(hit.Parent:children()) do
- if v:IsA("Humanoid") then
- h = v
- end
- end
- if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
- if hit.Parent:findFirstChild("DebounceHit") ~= nil then
- if hit.Parent.DebounceHit.Value == true then
- return
- end
- end
- if h.MaxHealth >= math.huge then
- hit:BreakJoints()
- end
- --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
- return
- end]]
- -- hs(hit,1.2)
- local c = Create("ObjectValue"){
- Name = "creator",
- Value = game:service("Players").LocalPlayer,
- Parent = h,
- }
- game:GetService("Debris"):AddItem(c, .5)
- if HitSound ~= nil and HitPitch ~= nil then
- so(HitSound, hit, 1, HitPitch)
- end
- local Damage = math.floor((math.random(minim, maxim))*Attack.Value)
- local hitpar = game.Players:FindFirstChild(hit.Parent.Name)
- if hitpar ~= nil then
- if hitpar:FindFirstChild("Backpack") ~= nil then
- for i,v in pairs(hitpar:GetChildren()) do
- if v.className == "LocalScript" then
- for c,b in pairs(v:GetChildren()) do
- if b.Name == "Stats" then
- if b.Stats:FindFirstChild("Defense") then
- def = b.Stats.Defense
- Damage = Damage / def.Value
- if DefenseHexCheck == true then
- def.Value = def.Value - DefenseHex
- ShowStat((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Secondary_Color.BrickColor.Color, "-", "Defense["..DefenseHex.."]")
- end
- end
- if b.Stats:FindFirstChild("Attack") then
- if AttackHexCheck == true then
- b.Stats.Attack.Value = b.Stats.Attack.Value - AttackHex
- ShowStat((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Secondary_Color.BrickColor.Color, "-", "Attack["..AttackHex.."]")
- end
- end
- if b.Stats:FindFirstChild("Speed") then
- if SpeedHexCheck == true then
- b.Stats.Speed.Value = b.Stats.Speed.Value - SpeedHex
- ShowStat((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Secondary_Color.BrickColor.Color, "-", "Speed["..SpeedHex.."]")
- end
- end
- end
- end
- end
- end
- end
- end
- local blocked = false
- local block = hit.Parent:findFirstChild("Block")
- if block ~= nil then
- if block.className == "IntValue" then
- if block.Value > 0 then
- blocked = true
- block.Value = block.Value - 1
- print(block.Value)
- end
- end
- end
- local Stalenum = 1
- if Stale1.Value == CurrentMove then
- StaleCheck1.Value = true
- Stalenum = Stalenum + 1
- end
- if Stale2.Value == CurrentMove then
- StaleCheck2.Value = true
- Stalenum = Stalenum + 1
- end
- if Stale3.Value == CurrentMove then
- StaleCheck3.Value = true
- Stalenum = Stalenum + 1
- end
- if Stale4.Value == CurrentMove then
- StaleCheck4.Value = true
- Stalenum = Stalenum + 1
- end
- if Stale5.Value == CurrentMove then
- StaleCheck5.Value = true
- Stalenum = Stalenum + 1
- end
- if Stale6.Value == CurrentMove then
- StaleCheck6.Value = true
- Stalenum = Stalenum + 1
- end
- if Stale7.Value == CurrentMove then
- StaleCheck7.Value = true
- Stalenum = Stalenum + 1
- end
- if Stale8.Value == CurrentMove then
- StaleCheck8.Value = true
- Stalenum = Stalenum + 1
- end
- if Stale9.Value == CurrentMove then
- StaleCheck9.Value = true
- Stalenum = Stalenum + 1
- end
- if StaledNum >= 9 then
- StaledNum = 0
- end
- StaledNum = StaledNum + 1
- if StaledNum == 1 then
- Stale1.Value = CurrentMove
- elseif StaledNum == 2 then
- Stale2.Value = CurrentMove
- elseif StaledNum == 3 then
- Stale3.Value = CurrentMove
- elseif StaledNum == 4 then
- Stale4.Value = CurrentMove
- elseif StaledNum == 5 then
- Stale5.Value = CurrentMove
- elseif StaledNum == 6 then
- Stale6.Value = CurrentMove
- elseif StaledNum == 7 then
- Stale7.Value = CurrentMove
- elseif StaledNum == 8 then
- Stale8.Value = CurrentMove
- elseif StaledNum == 9 then
- Stale9.Value = CurrentMove
- end
- Damage = Damage - (Stalenum/5)
- if blocked == false then
- -- h:TakeDamage(Damage)
- h.Health = h.Health - Damage
- ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), math.floor(-Damage), 1.5, Secondary_Color.Color)
- else
- h.Health = h.Health - (Damage / 2)
- ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), math.floor(-Damage), 1.5, Part.BrickColor.Color)
- end
- if Type == "Knockdown" then
- local hum = hit.Parent.Humanoid
- hum.PlatformStand = true
- coroutine.resume(coroutine.create(function(HHumanoid)
- swait(1)
- HHumanoid.PlatformStand = false
- end), hum)
- local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
- local bodvol = Create("BodyVelocity"){
- velocity = angle * (knockback - (StaledNum/5)),
- P = 5000,
- maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
- Parent = hit,
- }
- local rl = Create("BodyAngularVelocity"){
- P = 3000,
- maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
- angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
- Parent = hit,
- }
- game:GetService("Debris"):AddItem(bodvol, .5)
- game:GetService("Debris"):AddItem(rl, .5)
- elseif Type == "Normal" then
- local vp = Create("BodyVelocity"){
- P = 500,
- maxForce = Vector3.new(math.huge, 0, math.huge),
- velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
- }
- if knockback > 0 then
- vp.Parent = hit.Parent.Torso
- end
- game:GetService("Debris"):AddItem(vp, .5)
- elseif Type == "Up" then
- local bodyVelocity = Create("BodyVelocity"){
- velocity = vt(0, 20, 0),
- P = 5000,
- maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
- Parent = hit,
- }
- game:GetService("Debris"):AddItem(bodyVelocity, .5)
- elseif Type == "Snare" then
- local bp = Create("BodyPosition"){
- P = 2000,
- D = 100,
- maxForce = Vector3.new(math.huge, math.huge, math.huge),
- position = hit.Parent.Torso.Position,
- Parent = hit.Parent.Torso,
- }
- game:GetService("Debris"):AddItem(bp, 1)
- elseif Type == "Freeze" then
- if hitpar ~= nil then
- if hitpar:FindFirstChild("Backpack") ~= nil then
- for i,v in pairs(hitpar:GetChildren()) do
- if v.className == "LocalScript" then
- for c,b in pairs(v:GetChildren()) do
- if b.Name == "Stats" then
- if b.Stats:FindFirstChild("Frozen") then
- b.Stats.Frozen.Value = true
- coroutine.resume(coroutine.create(function()
- wait(1.5)
- b.Stats.Frozen.Value = false
- end))
- end
- end
- end
- end
- end
- end
- end
- local clo = script.Freeze:Clone()
- clo.Parent = hit.Parent
- clo.Disabled = false
- elseif Type == "Stun" then
- local BodPos = Create("BodyPosition"){
- P = 50000,
- D = 1000,
- maxForce = Vector3.new(math.huge, math.huge, math.huge),
- position = hit.Parent.Torso.Position,
- Parent = hit.Parent.Torso,
- }
- local BodGy = Create("BodyGyro") {
- maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
- P = 20e+003,
- Parent = hit.Parent.Torso,
- cframe = hit.Parent.Torso.CFrame,
- }
- hit.Parent.Torso.Anchored = true
- coroutine.resume(coroutine.create(function(Part)
- swait(1.5)
- Part.Anchored = false
- end), hit.Parent.Torso)
- game:GetService("Debris"):AddItem(BodPos, 3)
- game:GetService("Debris"):AddItem(BodGy, 3)
- end
- local debounce = Create("BoolValue"){
- Name = "DebounceHit",
- Parent = hit.Parent,
- Value = true,
- }
- game:GetService("Debris"):AddItem(debounce, Delay)
- c = Instance.new("ObjectValue")
- c.Name = "creator"
- c.Value = Player
- c.Parent = h
- game:GetService("Debris"):AddItem(c, .5)
- end
- end
- function ShowDamage(Pos, Text, Time, Color)
- local Rate = (1 / 30)
- local Pos = (Pos or Vector3.new(0, 0, 0))
- local Text = (Text or "")
- local Time = (Time or 2)
- local Color = (Color or Color3.new(1, 0, 0))
- local EffectPart = script.Label:Clone()
- local TextLabel = EffectPart.GUI.Main.Label
- TextLabel.Text = Text
- EffectPart.Parent = game:GetService("Workspace")
- delay(0, function()
- local Frames = (Time / Rate)
- for Frame = 1, Frames do
- wait(Rate)
- local Percent = (Frame / Frames)
- EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
- TextLabel.TextTransparency = Percent
- end
- if EffectPart and EffectPart.Parent then
- EffectPart:Destroy()
- end
- end)
- end
- function ShowStat(Pos, Text, Time, Color, Check, StatChange)
- local Rate = (1 / 30)
- local Pos = (Pos or Vector3.new(0, 0, 0))
- local Text = (Text or "")
- local Time = (Time or 2)
- local Color = (Color or Color3.new(1, 0, 0))
- local EffectPart = script.Label:Clone()
- local TextLabel = EffectPart.GUI.Main.Label
- TextLabel.Text = Check..StatChange
- EffectPart.Parent = game:GetService("Workspace")
- delay(0, function()
- local Frames = (Time / Rate)
- for Frame = 1, Frames do
- wait(Rate)
- local Percent = (Frame / Frames)
- EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
- TextLabel.TextTransparency = Percent
- end
- if EffectPart and EffectPart.Parent then
- EffectPart:Destroy()
- end
- end)
- end
- function MagniDamage(Hit,Part,magni,mindam,maxdam,knock,Type)
- for _,c in pairs(workspace:children()) do
- local hum=c:findFirstChild("Humanoid")
- if hum~=nil then
- local head=c:findFirstChild("Torso")
- if head~=nil then
- local targ=head.Position-Part.Position
- local mag=targ.magnitude
- if mag<=magni and c.Name~=Player.Name then
- Damagefunc(Hit,head,mindam,maxdam,knock,Type,RootPart,.2,"Hit1",1)
- end
- end
- end
- end
- end
- function AerialLag(Delay,Time)
- if Lag == false then
- if Floor == nil then
- if Anim == "Fall" then
- swait(Delay)
- HitFloor = false
- coroutine.resume(coroutine.create(function()
- while true do
- wait(0.05)
- if Floor ~= nil then
- HitFloor = true
- break
- end
- end
- end))
- if HitFloor == true then
- Lag = true
- attack = true
- local wat = Speed.Value
- Speed.Value = 0
- swait(Time)
- Speed.Value = wat
- Lag = false
- attack = false
- end
- end
- end
- end
- end
- --[[Effect Functions]]--
- effect = Create("Model"){
- Parent = Character
- }
- Effects = {}
- CreatePart = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
- local Part = Create("Part")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material})
- NoOutline(Part)
- return Part
- end
- CreateMesh = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
- local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
- if Mesh == "SpecialMesh" then
- Msh.MeshType = MeshType
- Msh.MeshId = MeshId
- end
- return Msh
- end
- SlashEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
- local prt = CreatePart(effect, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
- prt.Anchored = true
- prt.CFrame = cframe
- msh = CreateMesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=448386996", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 2)
- coroutine.resume(coroutine.create(function(Part, Mesh, num)
- for i = 0, 1, delay do
- swait()
- Part.Transparency = i
- Mesh.Scale = Mesh.Scale + Vector3.new(x3, y3, z3)
- end
- Part.Parent = nil
- end
- ), prt, msh, (math.random(0, 1) + math.random()) / 5)
- end
- BlockEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
- local prt = CreatePart(effect, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- if Type == 1 or Type == nil then
- table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
- else
- if Type == 2 then
- table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
- end
- end
- end
- SphereEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
- local prt = CreatePart(effect, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
- end
- RingEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
- local prt = CreatePart(effect, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
- prt.Anchored = true
- prt.CFrame = cframe * CFrame.new(x1, y1, z1)
- local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
- end
- CylinderEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
- local prt = CreatePart(effect, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
- end
- WaveEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
- local prt = CreatePart(effect, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
- end
- function ExplosionEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
- local prt = CreatePart(effect, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://15170610", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {prt,"Block1",delay,x3,y3,z3,msh})
- end
- function OpenHandEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
- local prt = CreatePart(effect, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://73031750", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {prt,"Cylinder",delay,x3,y3,z3,msh})
- end
- function CloseHandEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
- local prt = CreatePart(effect, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://90718752", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {prt,"Cylinder",delay,x3,y3,z3,msh})
- end
- function HeadEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
- local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = CreateMesh("SpecialMesh", prt, "Head", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {prt,"Cylinder",delay,x3,y3,z3,msh})
- end
- SpecialEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
- local prt = CreatePart(effect, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
- end
- function BreakEffect(brickcolor, cframe, x1, y1, z1)
- local prt = CreatePart(effect, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
- prt.Anchored = true
- prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
- local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- local num = math.random(10, 50) / 1000
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {prt,"Shatter",num,prt.CFrame,math.random() - math.random(),0,math.random(50, 100) / 100})
- end
- CloudEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
- local prt = CreatePart(effect, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://1095708", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
- end
- function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,ne)
- if ne == nil or ne == false then
- prt=part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt())
- else
- prt=part(3,workspace,"Neon",0,0,brickcolor,"Effect",vt())
- end
- prt.Anchored=true
- prt.CFrame=cframe
- msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
- game:GetService("Debris"):AddItem(prt,5)
- table.insert(Effects,{prt,"Block1",delay,x3,y3,z3}) --part, type, delay
- end
- function MagicCylinder2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
- local prt=part(3,Character,"SmoothPlastic",0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
- prt.Anchored=true
- prt.CFrame=cframe
- msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
- game:GetService("Debris"):AddItem(prt,5)
- Effects[#Effects+1]={prt,"Cylinder",delay,x3,y3,z3} --part, type, delay
- end
- function MagicHead(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
- local prt=part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt())
- prt.Anchored=true
- prt.CFrame=cframe
- local msh=mesh("SpecialMesh",prt,"Head","",vt(0,0,0),vt(x1,y1,z1))
- game:GetService("Debris"):AddItem(prt,2)
- table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
- end
- function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
- local prt=part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
- prt.Anchored=true
- prt.CFrame=cframe
- msh=mesh("SpecialMesh",prt,"Head","",vt(0,0,0),vt(x1,y1,z1))
- game:GetService("Debris"):AddItem(prt,2)
- coroutine.resume(coroutine.create(function(Part,Mesh)
- for i=0,1,delay do
- swait()
- Part.CFrame=Part.CFrame
- Part.Transparency=i
- Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
- end
- Part.Parent=nil
- end),prt,msh)
- end
- function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
- local prt=part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
- prt.Anchored=true
- prt.CFrame=cframe
- prt.CanCollide = false
- msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
- game:GetService("Debris"):AddItem(prt,2)
- coroutine.resume(coroutine.create(function(Part,Mesh)
- for i=0,1,delay do
- swait()
- Part.CFrame=Part.CFrame
- Part.Transparency=i
- Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
- end
- Part.Parent=nil
- end),prt,msh)
- end
- function MagicRing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
- local prt=part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
- prt.Anchored=true
- prt.CFrame=cframe
- msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
- game:GetService("Debris"):AddItem(prt,2)
- coroutine.resume(coroutine.create(function(Part,Mesh,num)
- for i=0,1,delay do
- swait()
- Part.Transparency=i
- Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
- end
- Part.Parent=nil
- end),prt,msh,(math.random(0,1)+math.random())/5)
- end
- function Laser(Part,Color1,Color2,LaserSize1,LaserSize2,Size1,Size2,Magnitude,Mindam,Maxdam,Knock,Type)
- sp = Part.Position
- dirr = Part.CFrame * CFrame.fromEulerAnglesXYZ(0,0,0)
- local hit,pos = rayCast(sp,dirr.lookVector,100,Character)
- local las=Instance.new("Part",Character)
- las.Material = "SmoothPlastic"
- las.Anchored=true
- las.Locked=true
- las.CanCollide=false
- las.TopSurface=0
- las.BottomSurface=0
- rootlook=RootPart.CFrame
- las.FormFactor = "Custom"
- las.BrickColor=BrickColor.new(Color1)
- las.Size=Vector3.new(1,1,1)
- las.CFrame=CFrame.new((Part.Position+pos)/2,pos) *CFrame.Angles(math.rad(90),0,0)
- local msh=Instance.new("SpecialMesh",las)
- mag = (Part.Position-pos).magnitude
- msh.Scale=Vector3.new(0.1,mag,0.1)
- so("rbxassetid://263610152",Part,1,1.5)
- coroutine.resume(coroutine.create(function(Part,Mesh)
- for i = 0,1,0.1 do
- wait()
- Part.Transparency = Part.Transparency + 0.1
- Mesh.Scale = Mesh.Scale + Vector3.new(LaserSize1,LaserSize2,LaserSize1)
- end
- Part.Parent = nil
- end),las,msh)
- if pos ~= nil then
- MagicBlock(BrickColor.new(Color1),cf(pos)*angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)),Size1,Size1,Size1,Size1,Size1,Size1,.07)
- CloudEffect(BrickColor.new(Color2),cf(pos),Size2,Size2,Size2,Size2,Size2,Size2,.07)
- end
- if hit ~= nil and pos ~= nil then
- if(hit.Parent:findFirstChild("Humanoid")~= nil)then
- if hit.Parent:FindFirstChild("Torso") ~= nil and hit.Name ~= "Base" and hit.Parent.Name ~= Player.Name then
- MagniDamage(hit.Parent.Torso,hit.Parent.Torso,Magnitude,Mindam,Maxdam,Knock,Type)
- end
- end
- end
- end
- function Shot(Part,Color1,Color2,LaserSize1,LaserSize2,Size1,Size2,Magnitude,Mindam,Maxdam,Knock,Type)
- sp = Part.Position
- dirr = Part.CFrame * CFrame.fromEulerAnglesXYZ(0,0,0)
- local hit,pos = rayCast(sp,dirr.lookVector,100,Character)
- local las=Instance.new("Part",Character)
- las.Material = "SmoothPlastic"
- las.Anchored=true
- las.Locked=true
- las.CanCollide=false
- las.TopSurface=0
- las.BottomSurface=0
- rootlook=RootPart.CFrame
- las.FormFactor = "Custom"
- las.BrickColor=BrickColor.new(Color1)
- las.Size=Vector3.new(1,1,1)
- las.CFrame=CFrame.new((Part.Position+pos)/2,pos) *CFrame.Angles(math.rad(90),0,0)
- local msh=Instance.new("SpecialMesh",las)
- mag = (Part.Position-pos).magnitude
- msh.Scale=Vector3.new(0.1,mag,0.1)
- so("rbxassetid://263610152",Part,1,1.5)
- coroutine.resume(coroutine.create(function(Part,Mesh)
- for i = 0,1,0.1 do
- wait()
- Part.Transparency = Part.Transparency + 0.1
- Mesh.Scale = Mesh.Scale + Vector3.new(LaserSize1,LaserSize2,LaserSize1)
- end
- Part.Parent = nil
- end),las,msh)
- if hit ~= nil and pos ~= nil then
- if(hit.Parent:findFirstChild("Humanoid")~= nil)then
- if hit.Parent:FindFirstChild("Torso") ~= nil and hit.Name ~= "Base" and hit.Parent.Name ~= Player.Name then
- end
- end
- end
- end
- --[[Left Click Combo]]--
- function Shoot()
- attack = true
- for i = 0, 1, 0.1 do
- swait()
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(50)), 0.3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(5), math.rad(0), math.rad(-50)), 0.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(50)), 0.3)
- RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(50), math.rad(0)), 0.3)
- LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-120), math.rad(10)), 0.3)
- end
- so("http://www.roblox.com/asset/?id=169445602", Barrel, 0.7, 1.5)
- so("http://www.roblox.com/asset/?id=169445602", Barrel, 0.7, 1.5)
- so("http://www.roblox.com/asset/?id=169380505", Barrel, 0.7, 1.1)
- so("http://www.roblox.com/asset/?id=169380505", Barrel, 0.7, 1.1)
- Laser(Barrel,"Medium green","Medium green",0.15,0.7,5,1,15,6,8,0,"Normal",false,0,true,0.05,false,0)
- for i = 0, 1, 0.05 do
- swait()
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(50)), 0.3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-5), math.rad(5), math.rad(-50)), 0.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(30), math.rad(10)), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(110), math.rad(0), math.rad(50)), 0.3)
- RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(50), math.rad(0)), 0.3)
- LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-120), math.rad(10)), 0.3)
- end
- attack = false
- end
- --[[Skills]]--
- function Z()
- attack = true
- for i = 0,1,0.05 do
- swait()
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(50)),.3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-50)),.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -.5) * angles(math.rad(30), math.rad(0), math.rad(-90)), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-130), math.rad(30)), 0.3)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(140),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-70),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
- handleweld.C0 = clerp(handleweld.C0, CFrame.new(0.5, 0, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 0.3)
- end
- local Hit1 = Hitbox.Touched:connect(function(hit)
- Damagefunc(Hitbox,hit,10,12,-5,"Knockdown",Hitbox,0.2,"Hit1",1,false,0,false,0,true,0.05)
- end)
- Spinning = true
- Mana.Value = Mana.Value - 10
- for x=0,10 do
- swait()
- MagicBlock("Medium green",Hitbox.CFrame,3,3,3,3,3,3,0.05,true)
- MagniDamage(Hitbox,Hitbox,25,5,10,0,"Knockdown")
- so("rbxassetid://557322360",Hitbox,1,1)
- Energy.Value = Energy.Value - 2
- if Energy.Value <= 0 then
- break
- end
- for i = 0, 1, 0.05 do
- swait()
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-0.5), math.rad(0), math.rad(80)), 0.3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * CFrame.Angles(math.rad(5), math.rad(0), math.rad(-80)), 0.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-20)), 0.3)
- RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0.3) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(-0.5)), 0.3)
- LH.C0 = clerp(LH.C0, CFrame.new(-0.9, -1, -0.2) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(-0.5)), 0.3)
- handleweld.C0 = clerp(handleweld.C0, CFrame.new(0, -15, 0) * CFrame.Angles(math.rad(90), math.rad(90), math.rad(90)), 0.3)
- bladeweld.C0 = clerp(bladeweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-spin), math.rad(0), math.rad(0)), 0.3)
- end
- end
- Spinning = false
- Hit1:disconnect()
- attack = false
- end
- function X()
- attack = true
- for i = 0,1,.1 do
- swait()
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1) * angles(math.rad(50), math.rad(-50), math.rad(-50)), .3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-50), math.rad(0), math.rad(60)), .3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.5) * angles(math.rad(0), math.rad(0), math.rad(50)), .3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(10), math.rad(0)), .3)
- RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(50)), .3)
- LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(20), math.rad(5)), .3)
- end
- for i = 0,1,.1 do
- swait()
- if i == .4 then
- coroutine.resume(coroutine.create(function()
- for i, v in pairs(Character:children()) do
- if (v:IsA("BasePart") and v.Name~="HumanoidRootPart") then
- v.Transparency=1
- end
- if (v:IsA("Accessory")) then
- v.Handle.Transparency=1
- end
- Head.face.Transparency=1
- end
- for i, v in pairs(m:children()) do
- if (v:IsA("BasePart")) then
- v.Transparency=1
- end
- end
- end))
- RingEffect(BrickColor.new("Bright green"),Torso.CFrame*angles(math.rad(50),math.rad(0),math.rad(0)),2,2,1,1,1,0,0.07)
- end
- Torso.Velocity=RootPart.CFrame.lookVector*75
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1) * angles(math.rad(50), math.rad(0), math.rad(0)), .3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-50), math.rad(0), math.rad(0)), .3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.5) * angles(math.rad(0), math.rad(0), math.rad(50)), .3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(10), math.rad(0)), .3)
- RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(50)), .3)
- LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(20), math.rad(5)), .3)
- end
- for i = 1,8,1 do
- local ef=CreatePart(workspace,"SmoothPlastic",0,1,BrickColor.new("White"),"Effect",vt())
- ef.Anchored=true
- ef.CFrame=RootPart.CFrame*cf(0,0,-7.5*i)
- so("http://www.roblox.com/asset/?id=231917788",ef,1,1)
- MagniDamage(ef,ef,12,20,35,10,"Knockdown")
- game:GetService("Debris"):AddItem(ef,.5)
- SphereEffect(BrickColor.new("Bright green"),ef.CFrame*angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,5,1,.5,5,.5,0.03)
- for i=10,1,-1 do
- BreakEffect(BrickColor.new("Bright green"),ef.CFrame*angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,5,1,.5,5,.5,0.03)
- end
- BlockEffect(BrickColor.new("White"),ef.CFrame*angles(math.random(1,360),math.random(1,360),math.random(1,360)),3,3,3,3,3,3,0.05)
- BlockEffect(BrickColor.new("White"),ef.CFrame*angles(math.random(1,360),math.random(1,360),math.random(1,360)),3,3,3,3,3,3,0.05)
- end
- RootPart.CFrame=RootPart.CFrame*cf(0,0,-35)
- coroutine.resume(coroutine.create(function()
- for i, v in pairs(Character:children()) do
- if (v:IsA("BasePart") and v.Name~="HumanoidRootPart") then
- v.Transparency=0
- end
- if (v:IsA("Accessory")) then
- v.Handle.Transparency=0
- end
- Head.face.Transparency=0
- end
- for i, v in pairs(m:children()) do
- if (v:IsA("BasePart")) and v ~= Handle then
- v.Transparency=0
- end
- end
- Hitbox.Transparency=1
- end))
- RootPart.CFrame=RootPart.CFrame*cf(0,0,-35)
- for i = 0,1,.1 do
- swait()
- if i == .1 then
- coroutine.resume(coroutine.create(function()
- for i, v in pairs(Character:children()) do
- if (v:IsA("BasePart") and v.Name~="HumanoidRootPart") then
- v.Transparency=0
- end
- if (v:IsA("Accessory")) then
- v.Handle.Transparency=0
- end
- Head.face.Transparency=0
- end
- for i, v in pairs(m:children()) do
- if (v:IsA("BasePart")) and v ~= Handle then
- v.Transparency=0
- end
- Hitbox.Transparency=1
- end
- end))
- RingEffect(BrickColor.new("Black"),Torso.CFrame*angles(math.rad(50),math.rad(0),math.rad(0)),2,2,1,1,1,0,0.07)
- end
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -5, -1) * angles(math.rad(50), math.rad(0), math.rad(0)), .3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-50), math.rad(0), math.rad(0)), .3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.5) * angles(math.rad(0), math.rad(0), math.rad(50)), .3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(10), math.rad(0)), .3)
- RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(50)), .3)
- LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(20), math.rad(5)), .3)
- end
- Mana.Value = Mana.Value - 12
- Energy.Value = Energy.Value - 7
- attack = false
- end
- function C()
- attack = true
- local Hit1 = Hitbox.Touched:connect(function(hit)
- Damagefunc(Hitbox,hit,9,12,5,"Knockdown",RootPart,0.2,"Hit1",1,false,0,false,0,false,0)
- end)
- for i = 0,1,0.05 do
- swait()
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-15),math.rad(0),math.rad(0)),.2)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(15),math.rad(0),math.rad(0)),.2)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.7, 0) * angles(math.rad(205), math.rad(0), math.rad(0)),.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)),.2)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(-20)),.2)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(10)),.2)
- handleweld.C0 = clerp(handleweld.C0, CFrame.new(0, -1.6, 0) * CFrame.Angles(math.rad(0), math.rad(180), math.rad(0)), 0.3)
- end
- so("http://www.roblox.com/asset/?id=203691447",Hitbox,1,1)
- for i = 0,1,0.05 do
- swait()
- MagicBlock("Medium green",Hitbox.CFrame*CFrame.new(2,0,0)*CFrame.Angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),0.5,0.5,0.5,0.5,0.5,0.5,0.05,true)
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(15),math.rad(0),math.rad(0)),.2)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-15),math.rad(0),math.rad(0)),.2)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.7, 0) * angles(math.rad(45), math.rad(0), math.rad(0)),.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)),.2)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(30)),.2)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(20)),.2)
- handleweld.C0 = clerp(handleweld.C0, CFrame.new(0, -5, 0) * CFrame.Angles(math.rad(0), math.rad(180), math.rad(0)), 0.3)
- end
- swait()
- so("rbxassetid://110284742",Hitbox,1,5)
- Energy.Value = Energy.Value - 15
- MagicBlock("Medium green",Hitbox.CFrame*CFrame.Angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),12,12,12,12,12,12,0.05,true)
- MagicBlock("Medium green",Hitbox.CFrame*CFrame.Angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),12,12,12,12,12,12,0.05,true)
- MagniDamage(Hitbox,Hitbox,35,10,18,5,"Knockdown",true,0.1,false,0,false,0)
- MagniDamage(Hitbox,Hitbox,45,5,7,8,"Normal",false,0,false,0,false,0)
- Hit1:disconnect()
- Mana.Value = Mana.Value - 15
- Energy.Value = Energy.Value - 20
- attack = false
- end
- function V()
- attack = true
- for i = 0, 1, 0.1 do
- swait()
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(50)), 0.3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(5), math.rad(0), math.rad(-50)), 0.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(90), math.rad(10)), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-190)), 0.3)
- RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(50), math.rad(0)), 0.3)
- LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-120), math.rad(10)), 0.3)
- end
- so("http://www.roblox.com/asset/?id=169445602", Barrel, 0.7, 1.5)
- Shot(Barrel,"Really black","Really black",0.15,0.7,5,1,15,6,8,0,"Normal",false,0,true,0.05,false,0)
- for i = 0, 1, 0.2 do
- swait()
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(50)), 0.3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-5), math.rad(5), math.rad(-50)), 0.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(90), math.rad(10)), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-190)), 0.3)
- RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(50), math.rad(0)), 0.3)
- LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-120), math.rad(10)), 0.3)
- end
- attack = false
- Mana.Value = Mana.Value - 25
- for i=1,8 do
- local dacf=Torso.CFrame*angles(-1.57+math.random(100,150)/100,0,math.random(-80,80)/100)
- local dacf2=Torso.CFrame*angles(-1.57+math.random(100,150)/100,0,math.random(-80,80)/100)
- local dacf3=Torso.CFrame*angles(-1.57+math.random(100,150)/100,0,math.random(-80,80)/100)
- local icepart1=CreatePart(effect,"SmoothPlastic",0,0,BrickColor.new("Really black"),"Ice",vt()) icepart1.Anchored=true
- i1msh=CreateMesh("SpecialMesh",icepart1,"Sphere","nil",vt(0,0,0),vt(100,100,100))
- icepart1.CFrame=dacf
- local partic1=icicleparti2:Clone() partic1.Parent=icepart1 partic1.Enabled=true
- for i=0,1,0.1 do
- swait()
- icepart1.CFrame=dacf
- dacf=dacf*cf(0,math.random(400,800)/10,0)
- end
- local spread=vt((math.random(-1,0)+math.random())*16,(math.random(-1,0)+math.random())*16,(math.random(-1,0)+math.random())*16)*(icepart1.Position-(icepart1.Position+vt(0,-1,0))).magnitude/100
- local TheHit=mouse.Hit.p
- local MouseLook=cf((icepart1.Position+TheHit)/2,TheHit+spread)
- local hit,pos = rayCast(icepart1.Position,MouseLook.lookVector,999,Character)
- local target1,distance1=rayCast(icepart1.Position,MouseLook.lookVector,999,Character)
- --local target1,distance1=findNearestTorso(icepart1.Position)
- local test1,dist1=mouse.Hit.p
- local pos1=nil
- local refpart1=CreatePart(effect,"SmoothPlastic",0,1,BrickColor.new("Really black"),"Ref",vt()) refpart1.Anchored=true
- if target1~=nil then
- --pos1=target1.Position
- refpart1.CFrame=cf(pos)*cf(math.random(-5,5),5,math.random(-5,5))
- end
- local move=40
- for i=0,1,0.1 do
- swait()
- move=40-40*i
- if hit~=nil then
- refpart1.CFrame=cf(refpart1.Position,pos)
- SphereEffect(BrickColor.new("Really black"),icepart1.CFrame*angles(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cf(0,60,0),15,40,15,-1,20,-1,.1,-5)
- icepart1.CFrame=dacf
- dacf=dacf*cf(0,move,0)
- end
- end
- local laser1=CreatePart(effect,"SmoothPlastic",0,0,BrickColor.new("Really black"),"Effect",vt())
- laser1.Anchored=true
- local lmsh1=CreateMesh("SpecialMesh",laser1,"Head","",vt(0,0,0),vt(10,1,10))
- local ref=CreatePart(effect,"SmoothPlastic",0,1,BrickColor.new("Black"),"Reference",vt())
- ref.Anchored=true
- ref.CFrame=cf(0,0,0)
- game:GetService("Debris"):AddItem(ref,1)
- local ref1=CreatePart(effect,"SmoothPlastic",0,1,BrickColor.new("Black"),"Reference",vt())
- ref1.Anchored=true
- ref1.CFrame=cf(0,0,0)
- game:GetService("Debris"):AddItem(ref1,5)
- local ice1=0
- for i=0,3,0.05 do
- swait()
- ice1=ice1+1
- if hit~=nil then
- if i>1 then
- refpart1.CFrame=refpart1.CFrame*cf(0,0,-1.5)
- end
- local cfnew=cf(icepart1.Position,refpart1.Position)
- local hit1,pos1=rayCast(icepart1.Position,cfnew.lookVector,9999,Character)
- local mag1=(icepart1.Position-pos).magnitude
- laser1.CFrame=CFrame.new((icepart1.Position+pos1)/2,pos1)*angles(1.57,0,0)
- lmsh1.Scale=vt(10,mag1*5,10)
- BlockEffect(BrickColor.new("Really black"),cf(pos1),5,5,5,5,5,5,.1,1)
- ref.CFrame=cf(pos1)
- MagniDamage(ref,ref,5,8,14,0,"Normal")
- ref1.CFrame=cf(ref.Position)
- if ice1%2==0 then
- so("http://www.roblox.com/asset/?id=333476017",ref1,.3,1.4)
- end
- end
- end
- if hit~=nil then
- local pos1=laser1.CFrame
- local x1=lmsh1.Scale.X local y1=lmsh1.Scale.Y local z1=lmsh1.Scale.Z
- HeadEffect(BrickColor.new("Really black"),pos1,x1,y1,z1,1,1,1,.1)
- end
- SphereEffect(BrickColor.new("Really black"),cf(icepart1.Position),100,100,100,5,5,5,.2)
- icepart1.Parent=nil
- refpart1.Parent=nil
- laser1.Parent=nil
- ref.Parent=nil
- Energy.Value = Energy.Value - 4
- if Energy.Value <= 0 then
- break
- end
- end
- end
- --[[Key Functions]]--
- local cd1 = false
- local cd2 = false
- local cd3 = false
- local cd4 = false
- local Block = false
- mouse.Button1Down:connect(function()
- if attack == true then return end
- Shoot()
- end)
- mouse.KeyDown:connect(function(key)
- key = key:lower()
- if attack == true then return end
- if Sheathed == false then
- if key == "z" and cd1 == false and Mana.Value >= 10 and Energy.Value >= 20 then
- cd1 = true
- Cover1.Size = UDim2.new(0,0,1,0)
- Z()
- Cover1:TweenSize(UDim2.new(1,0,1,0),'Out','Linear',Skill1cooldown)
- repeat wait() until Cover1.Size == UDim2.new(1,0,1,0)
- cd1 = false
- elseif key == "x" and cd2 == false and Mana.Value >= 12 and Energy.Value >= 7 then
- cd2 = true
- Cover2.Size = UDim2.new(0,0,1,0)
- X()
- Cover2:TweenSize(UDim2.new(1,0,1,0),'Out','Linear',Skill2cooldown)
- repeat wait() until Cover2.Size == UDim2.new(1,0,1,0)
- cd2 = false
- elseif key == "c" and cd3 == false and Mana.Value >= 15 and Energy.Value >= 20 then
- cd3 = true
- Cover3.Size = UDim2.new(0,0,1,0)
- C()
- Cover3:TweenSize(UDim2.new(1,0,1,0),'Out','Linear',Skill3cooldown)
- repeat wait() until Cover3.Size == UDim2.new(1,0,1,0)
- cd3 = false
- elseif key == "v" and cd4 == false and Mana.Value >= 25 and Energy.Value >= 32 then
- cd4 = true
- Cover4.Size = UDim2.new(0,0,1,0)
- V()
- Cover4:TweenSize(UDim2.new(1,0,1,0),'Out','Linear',Skill4cooldown)
- repeat wait() until Cover4.Size == UDim2.new(1,0,1,0)
- cd4 = false
- elseif key == "e" then
- attack = true
- Block = true
- Defense.Value = Defense.Value + 1.7
- Speed.Value = Speed.Value - 1.1
- Humanoid.WalkSpeed = Base_Speed * Speed.Value
- while Block == true do
- swait()
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -0.7) * CFrame.Angles(math.rad(90), math.rad(0) ,math.rad(-79)), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -0.6) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(79)), 0.3)
- RH.C0 = clerp(RH.C0, CFrame.new(1, -1, -0.5) * RHCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
- LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(25)), 0.3)
- handleweld.C0 = clerp(handleweld.C0, CFrame.new(0.5, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
- bladeweld.C0 = clerp(bladeweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-spin), math.rad(0), math.rad(0)), 0.3)
- gunweld.C0 = clerp(gunweld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-90), math.rad(0)), 0.3)
- end
- end
- elseif Sheathed == true then
- end
- end)
- mouse.KeyUp:connect(function(key)
- key = key:lower()
- if key == "e" then
- Block = false
- Defense.Value = Defense.Value - 1.7
- Speed.Value = Speed.Value + 1.1
- Humanoid.WalkSpeed = Base_Speed * Speed.Value
- attack = false
- end
- end)
- --[[Engine]]--
- local sine = 0
- local change = 1
- local val = 0
- local Mananum = 0
- local Energynum = 0
- local idle = 0
- LHCF = CFrame.Angles(0, math.rad(-90), 0)
- RHCF = CFrame.Angles(0, math.rad(90), 0)
- Humanoid.WalkSpeed = Base_Speed * Speed.Value
- while true do
- swait()
- if spin >= 360 or spin < 0 then
- spin = 0
- else
- if Block == true then
- spin = spin + 7
- elseif Spinning == true then
- spin = spin + 12
- else
- spin = spin + 3
- end
- end
- if attack == false and Frozen == false then
- Humanoid.WalkSpeed = Base_Speed * Speed.Value
- end
- if Mana.Value >= MaxMana then
- Mana.Value = MaxMana
- else
- if Mananum <= ManaInterval then
- Mananum = Mananum + 1
- else
- Mananum = 0
- Mana.Value = math.floor(Mana.Value) + Recover_Mana
- end
- end
- if Energy.Value >= MaxEnergy then
- Energy.Value = MaxEnergy
- else
- if Energynum <= EnergyInterval then
- Energynum = Energynum + 1
- else
- Energynum = 0
- Energy.Value = math.floor(Energy.Value) + Recover_Energy
- end
- end
- Bar1.Label.Text = "Mana ~{"..Mana.Value.."}~"
- Bar2.Label.Text = "Synergy ~{"..Energy.Value.."}~"
- Bar1Cover:TweenSize(UDim2.new(1 * (Mana.Value / MaxMana), 0, 1, 0), "Out", "Linear", 0.5)
- Bar2Cover:TweenSize(UDim2.new(1 * (Energy.Value / MaxEnergy), 0, 1, 0), "Out", "Linear", 0.5)
- GUI.Speed.Label.Text = "Speed {"..Speed.Value.."}"
- GUI.Attack.Label.Text = "Attack {"..Attack.Value.."}"
- GUI.Defense.Label.Text = "Defense {"..Defense.Value.."}"
- sine = sine + change
- local torvel = (RootPart.Velocity * Vector3.new(1,0,1)).magnitude
- local velderp = RootPart.Velocity.y
- Floor,FloorPosition = rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
- if equipped == true or equipped == false then
- if attack == false then
- idle = idle + 1
- else
- idle = 0
- end
- if RootPart.Velocity.y > 1 and Floor == nil then
- Anim = "Jump"
- if attack == false and Lag == false then
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -0.7) * CFrame.Angles(math.rad(73), math.rad(0) ,math.rad(-57)), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(-7), math.rad(0), math.rad(-10)), 0.3)
- RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
- LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
- handleweld.C0 = clerp(handleweld.C0, CFrame.new(0.5, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
- bladeweld.C0 = clerp(bladeweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-spin), math.rad(0), math.rad(0)), 0.3)
- gunweld.C0 = clerp(gunweld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-90), math.rad(90)), 0.3)
- end
- elseif RootPart.Velocity.y < -1 and Floor == nil then
- Anim = "Fall"
- if attack == false and Lag == false then
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -0.7) * CFrame.Angles(math.rad(73), math.rad(0) ,math.rad(-57)), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(-7), math.rad(0), math.rad(-7.5)), 0.3)
- RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
- LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
- handleweld.C0 = clerp(handleweld.C0, CFrame.new(0.5, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
- bladeweld.C0 = clerp(bladeweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-spin), math.rad(0), math.rad(0)), 0.3)
- gunweld.C0 = clerp(gunweld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-90), math.rad(90)), 0.3)
- end
- elseif torvel < 1 and Floor ~= nil then
- Anim = "Idle"
- if attack == false and Lag == false then
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(45)), 0.3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-45)), 0.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(53), math.rad(0) ,math.rad(0)), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.5, -0.3) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(42)), 0.3)
- RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(0), math.rad(-25), math.rad(4)), 0.3)
- LH.C0 = clerp(LH.C0, CFrame.new(-1.1, -1, 0.1) * LHCF * CFrame.Angles(math.rad(-15), math.rad(-10), math.rad(10)), 0.3)
- handleweld.C0 = clerp(handleweld.C0, CFrame.new(0.5, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
- bladeweld.C0 = clerp(bladeweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-spin), math.rad(0), math.rad(0)), 0.3)
- gunweld.C0 = clerp(gunweld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-90), math.rad(90)), 0.3)
- end
- elseif torvel > 2 and Floor ~= nil then
- Anim = "Walk"
- if attack == false and Lag == false then
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -0.7) * CFrame.Angles(math.rad(73), math.rad(0) ,math.rad(-57)), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(-7), math.rad(0), math.rad(-5)), 0.3)
- RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
- LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
- handleweld.C0 = clerp(handleweld.C0, CFrame.new(0.5, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
- bladeweld.C0 = clerp(bladeweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-spin), math.rad(0), math.rad(0)), 0.3)
- gunweld.C0 = clerp(gunweld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-90), math.rad(90)), 0.3)
- end
- elseif Floor ~= nil then
- Anim = "Lag"
- if attack == true and Lag == true then
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0) ,math.rad(0)), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
- RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
- LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
- handleweld.C0 = clerp(handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
- bladeweld.C0 = clerp(bladeweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-spin), math.rad(0), math.rad(0)), 0.3)
- end
- end
- end
- if #Effects > 0 then
- for e=1,#Effects do
- if Effects[e] ~= nil then
- local Effect = Effects[e]
- if Effect ~= nil then
- local Part = Effect[1]
- local Mode = Effect[2]
- local Delay = Effect[3]
- local IncX = Effect[4]
- local IncY = Effect[5]
- local IncZ = Effect[6]
- if Effect[1].Transparency<=1 then
- if Effect[2] == "Block1" then
- Effect[1].CFrame = Effect[1].CFrame * euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
- Mesh = Effect[1].Mesh
- Mesh.Scale = Mesh.Scale + vt(Effect[4],Effect[5],Effect[6])
- Effect[1].Transparency = Effect[1].Transparency + Effect[3]
- elseif Effect[2] == "Cylinder" then
- Mesh = Effect[1].Mesh
- Mesh.Scale = Mesh.Scale + vt(Effect[4],Effect[5],Effect[6])
- Effect[1].Transparency = Effect[1].Transparency + Effect[3]
- elseif Effect[2] == "Blood" then
- Mesh = Effect[7]
- Effect[1].CFrame = Effect[1].CFrame*cf(0,.5,0)
- Mesh.Scale = Mesh.Scale + vt(Effect[4],Effect[5],Effect[6])
- Effect[1].Transparency = Effect[1].Transparency + Effect[3]
- elseif Effect[2] == "Elec" then
- Mesh = Effect[1].Mesh
- Mesh.Scale = Mesh.Scale + vt(Effect[7],Effect[8],Effect[9])
- Effect[1].Transparency = Effect[1].Transparency + Effect[3]
- elseif Effect[2] == "Disappear" then
- Effect[1].Transparency = Effect[1].Transparency + Effect[3]
- elseif Effect[2] == "Shatter" then
- Effect[1].Transparency = Effect[1].Transparency + Effect[3]
- Effect[4] = Effect[4] * CFrame.new(0, Effect[7], 0)
- Effect[1].CFrame = Effect[4] * CFrame.fromEulerAnglesXYZ(Effect[6], 0, 0)
- Effect[6] = Effect[6] + Effect[5]
- end
- end
- else
- Part.Parent = nil
- table.remove(Effects,e)
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement