Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Player = game:GetService("Players").LocalPlayer
- local Character = Player.Character
- local Head = Character.Head
- local Torso = Character.Torso
- local Right_Arm = Character["Right Arm"]
- local Right_Leg = Character["Right Leg"]
- local Left_Arm = Character["Left Arm"]
- local Left_Leg = Character["Left Leg"]
- local Humanoid = Character.Humanoid
- local Animation = "Idle"
- local Damage = 0
- local Mouse = Player:GetMouse()
- local LeftShoulder = Torso["Left Shoulder"]
- local Left_Hip = Torso["Left Hip"]
- local RightShoulder = Torso["Right Shoulder"]
- local Right_Hip = Torso["Right Hip"]
- local Root = Character.HumanoidRootPart
- local RootJoint = Root.RootJoint
- local Attacking = false
- local RootCFrame = CFrame.fromEulerAnglesXYZ(-1.57,0,3.14)
- local WakeMeUp = false
- local cf = CFrame.new
- local WalkForward = false
- local Effects = {}
- local Color = "White"
- 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)
- Right_Hip_C1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- Left_Hip_C1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Movemment = 1
- Walk = 0
- local Services = {
- SoundService = game:GetService("SoundService");
- Players = game:GetService("Players");
- Debris = game:GetService("Debris");
- Workspace = game:GetService("Workspace");
- Lighting = game:GetService("Lighting");
- HttpService = game:GetService("HttpService");
- InsertService = game:GetService("InsertService");
- }
- MaxCooldown1 = 1
- MaxCooldown2 = 1
- MaxCooldown3 = 1
- MaxCooldown4 = 1
- MaxCooldownE = 1
- Cooldown1 = MaxCooldown1
- Cooldown2 = MaxCooldown2
- Cooldown3 = MaxCooldown3
- Cooldown4 = MaxCooldown4
- CooldownE = MaxCooldownE
- cf = CFrame.new
- local RootCFrame = CFrame.fromEulerAnglesXYZ(-1.57,0,3.14)
- Necko = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- Necko2 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- Right_Hip_C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- Left_Hip_C1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Movemment = 1
- Walk = 0
- Left_Shoulder = Instance.new("Weld", Torso)
- Left_Shoulder.Part0 = Torso
- Left_Shoulder.Part1 = Left_Arm
- Left_Shoulder.Name = "Left Shoulder"
- Left_Shoulder.C0 = CFrame.new(-1.5,0,0)
- Right_Shoulder = Instance.new("Weld", Torso)
- Right_Shoulder.Part0 = Torso
- Right_Shoulder.Part1 = Right_Arm
- Right_Shoulder.Name = "Right Shoulder"
- Right_Shoulder.C0 = CFrame.new(1.5,0,0)
- wait()
- LeftShoulder.Parent = nil
- RightShoulder.Parent = nil
- wait(0.1)
- local HealthBarGUI = Instance.new("ScreenGui", Player.PlayerGui)
- HealthBarGUI.Name = "HealthBarGUI"
- local HealthBarP1 = Instance.new("Frame", HealthBarGUI)
- HealthBarP1.Name = "HealthBarPart1"
- HealthBarP1.Size = UDim2.new(0,300,0,40)
- HealthBarP1.Position = UDim2.new(0,350,0,550)
- HealthBarP1.Style = "RobloxRound"
- local HealthBarP2 = Instance.new("Frame", HealthBarP1)
- HealthBarP2.Name = "HealthBarPart2"
- HealthBarP2.Size = UDim2.new(0,285,0,20)
- HealthBarP2.Position = UDim2.new(0,0,0,0)
- local HealthBarText = Instance.new("TextLabel", HealthBarP1)
- HealthBarText.Name = "HealthBarText"
- HealthBarText.Size = UDim2.new(0,285,0,20)
- HealthBarText.Position = UDim2.new(0,0,0,0)
- HealthBarText.BackgroundColor3 = Color3.new(0,1,0)
- HealthBarText.TextScaled = true
- HealthBarText.Text = "Health"
- HealthBarText.TextTransparency = 0
- HealthBarText.TextStrokeTransparency = 0
- HealthBarText.BackgroundTransparency = 1
- HealthBarText.TextStrokeColor3 = Color3.new(1,1,1)
- HealthBarText.TextColor3 = Color3.new(0,0,0)
- HealthBarText.Font = "SciFi"
- local CoolDownGUI = Instance.new("ScreenGui", Player.PlayerGui)
- CoolDownGUI.Name = "CoolDownGUI"
- local CoolDowns = Instance.new("Frame", CoolDownGUI)
- CoolDowns.Name = "CoolDowns"
- CoolDowns.Size = UDim2.new(0,200,0,200)
- CoolDowns.Position = UDim2.new(0.81,0,0.68,0)
- CoolDowns.Style = "RobloxRound"
- local CoolDown1Frame = Instance.new("Frame", CoolDowns)
- CoolDown1Frame.Name = "CoolDown1Frame"
- CoolDown1Frame.Size = UDim2.new(0,80,0,50)
- CoolDown1Frame.Position = UDim2.new(0,0,0,0)
- CoolDown1Frame.BackgroundTransparency = 0.5
- CoolDown1Frame.BackgroundColor3 = BrickColor.White().Color
- local CoolDown1Bar = Instance.new("Frame", CoolDown1Frame)
- CoolDown1Bar.Name = "CoolDown1Bar"
- CoolDown1Bar.Size = UDim2.new(0,80,0,50)
- CoolDown1Bar.Position = UDim2.new(0,0,0,0)
- CoolDown1Bar.BackgroundColor3 = BrickColor.White().Color
- local CoolDown1Text = Instance.new("TextLabel", CoolDown1Frame)
- CoolDown1Text.Name = "CoolDown1Text"
- CoolDown1Text.Size = UDim2.new(0,80,0,50)
- CoolDown1Text.Position = UDim2.new(0,0,0,0)
- CoolDown1Text.BackgroundTransparency = 1
- CoolDown1Text.TextScaled = true
- CoolDown1Text.Text = "z - WAKE ME UP INSIDE"
- CoolDown1Text.TextStrokeTransparency = 0
- CoolDown1Text.TextStrokeColor3 = Color3.new(1,1,1)
- CoolDown1Text.TextColor3 = Color3.new(0,0,0)
- CoolDown1Text.Font = "SciFi"
- local CoolDown2Frame = Instance.new("Frame", CoolDowns)
- CoolDown2Frame.Name = "CoolDown2Frame"
- CoolDown2Frame.Size = UDim2.new(0,80,0,50)
- CoolDown2Frame.Position = UDim2.new(0.55,0,0,0)
- CoolDown2Frame.BackgroundTransparency = 0.5
- CoolDown2Frame.BackgroundColor3 = BrickColor.White().Color
- local CoolDown2Bar = Instance.new("Frame", CoolDown2Frame)
- CoolDown2Bar.Name = "CoolDown2Bar"
- CoolDown2Bar.Size = UDim2.new(0,80,0,50)
- CoolDown2Bar.Position = UDim2.new(0,0,0,0)
- CoolDown2Bar.BackgroundColor3 = BrickColor.White().Color
- local CoolDown2Text = Instance.new("TextLabel", CoolDown2Frame)
- CoolDown2Text.Name = "CoolDown2Text"
- CoolDown2Text.Size = UDim2.new(0,80,0,50)
- CoolDown2Text.Position = UDim2.new(0,0,0,0)
- CoolDown2Text.BackgroundTransparency = 1
- CoolDown2Text.TextScaled = true
- CoolDown2Text.Text = "x - meme launch"
- CoolDown2Text.TextStrokeTransparency = 0
- CoolDown2Text.TextStrokeColor3 = Color3.new(1,1,1)
- CoolDown2Text.TextColor3 = Color3.new(0,0,0)
- CoolDown2Text.Font = "SciFi"
- local CoolDown3Frame = Instance.new("Frame", CoolDowns)
- CoolDown3Frame.Name = "CoolDown3Frame"
- CoolDown3Frame.Size = UDim2.new(0,80,0,50)
- CoolDown3Frame.Position = UDim2.new(0,0,0.4,0)
- CoolDown3Frame.BackgroundTransparency = 0.5
- CoolDown3Frame.BackgroundColor3 = BrickColor.White().Color
- local CoolDown3Bar = Instance.new("Frame", CoolDown3Frame)
- CoolDown3Bar.Name = "CoolDown3Bar"
- CoolDown3Bar.Size = UDim2.new(0,80,0,50)
- CoolDown3Bar.Position = UDim2.new(0,0,0,0)
- CoolDown3Bar.BackgroundColor3 = BrickColor.White().Color
- local CoolDown3Text = Instance.new("TextLabel", CoolDown3Frame)
- CoolDown3Text.Name = "CoolDown3Text"
- CoolDown3Text.Size = UDim2.new(0,80,0,50)
- CoolDown3Text.Position = UDim2.new(0,0,0,0)
- CoolDown3Text.BackgroundTransparency = 1
- CoolDown3Text.TextScaled = true
- CoolDown3Text.Text = "c - and his name is..."
- CoolDown3Text.TextStrokeTransparency = 0
- CoolDown3Text.TextStrokeColor3 = Color3.new(1,1,1)
- CoolDown3Text.TextColor3 = Color3.new(0,0,0)
- CoolDown3Text.Font = "SciFi"
- local CoolDown4Frame = Instance.new("Frame", CoolDowns)
- CoolDown4Frame.Name = "CoolDown4Frame"
- CoolDown4Frame.Size = UDim2.new(0,80,0,50)
- CoolDown4Frame.Position = UDim2.new(0.55,0,0.4,0)
- CoolDown4Frame.BackgroundTransparency = 0.5
- CoolDown4Frame.BackgroundColor3 = BrickColor.White().Color
- local CoolDown4Bar = Instance.new("Frame", CoolDown4Frame)
- CoolDown4Bar.Name = "CoolDown4Bar"
- CoolDown4Bar.Size = UDim2.new(0,80,0,50)
- CoolDown4Bar.Position = UDim2.new(0,0,0,0)
- CoolDown4Bar.BackgroundColor3 = BrickColor.White().Color
- local CoolDown4Text = Instance.new("TextLabel", CoolDown4Frame)
- CoolDown4Text.Name = "CoolDown4Text"
- CoolDown4Text.Size = UDim2.new(0,80,0,50)
- CoolDown4Text.Position = UDim2.new(0,0,0,0)
- CoolDown4Text.BackgroundTransparency = 1
- CoolDown4Text.TextScaled = true
- CoolDown4Text.Text = "v - allahuekber"
- CoolDown4Text.TextStrokeTransparency = 0
- CoolDown4Text.TextStrokeColor3 = Color3.new(1,1,1)
- CoolDown4Text.TextColor3 = Color3.new(0,0,0)
- CoolDown4Text.Font = "SciFi"
- local CoolDownEFrame = Instance.new("Frame", CoolDowns)
- CoolDownEFrame.Name = "CoolDownEFrame"
- CoolDownEFrame.Size = UDim2.new(0,180,0,50)
- CoolDownEFrame.Position = UDim2.new(0,0,0.74,0)
- CoolDownEFrame.BackgroundTransparency = 0.5
- CoolDownEFrame.BackgroundColor3 = BrickColor.White().Color
- local CoolDownEBar = Instance.new("Frame", CoolDownEFrame)
- CoolDownEBar.Name = "CoolDownEBar"
- CoolDownEBar.Size = UDim2.new(0,180,0,50)
- CoolDownEBar.Position = UDim2.new(0,0,0,0)
- CoolDownEBar.BackgroundColor3 = BrickColor.White().Color
- local CoolDownEText = Instance.new("TextLabel", CoolDownEFrame)
- CoolDownEText.Name = "CoolDownEText"
- CoolDownEText.Size = UDim2.new(0,180,0,50)
- CoolDownEText.Position = UDim2.new(0,0,0,0)
- CoolDownEText.BackgroundTransparency = 1
- CoolDownEText.TextScaled = true
- CoolDownEText.Text = "e - aaaa"
- CoolDownEText.TextStrokeTransparency = 0
- CoolDownEText.TextStrokeColor3 = Color3.new(1,1,1)
- CoolDownEText.TextColor3 = Color3.new(0,0,0)
- CoolDownEText.Font = "SciFi"
- --[[ transformixu ]]--
- Head.face.Texture = "http://www.roblox.com/asset/?id=176699876"
- for i,v in pairs(Character:children()) do
- if v:IsA("Hat") then
- v:Remove()
- end
- end
- --[[ perts andi effictiz fucktions ]]--
- function NoOutlines(Part)
- Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
- end
- local CreateVelocity = function(Parent,Velocity,Force)
- local BodyVelocity = Instance.new("BodyVelocity", Parent)
- BodyVelocity.Velocity = Velocity
- BodyVelocity.MaxForce = Force
- return BodyVelocity
- end
- local CreatePart = function(Parent, Name, Color, Size, Material, Transparency, Shape)
- local Part = Instance.new("Part", Parent)
- Part.Name = Name
- Part.BrickColor = BrickColor.new(Color)
- Part.Size = Size
- Part.Material = Material
- Part.Transparency = Transparency
- Part.Shape = Shape
- Part.CanCollide = false
- NoOutlines(Part)
- return Part
- end
- local MakeSFX = function(Parent, Id, Volume, Pitch)
- local SFX = Instance.new("Sound", Parent)
- SFX.SoundId = "http://www.roblox.com/asset?id=" .. Id
- SFX.Name = "SFX"
- SFX:Play()
- SFX.Volume = Volume
- SFX.Pitch = Pitch
- SFX.PlayOnRemove = true
- SFX:Remove()
- end
- CircleEffect = function(Position, Parent, SX, SY, SZ, Time, Brickcolor, Material, Transparency)
- local Part = Instance.new("Part", Parent)
- Part.Transparency = Transparency
- Part.Name = "CircleEffect"
- Part.Size = Vector3.new()
- Part.Anchored = true
- Part.CanCollide = false
- Part.Position = Position
- Part.BrickColor = BrickColor.new(Brickcolor)
- Part.Material = Material
- NoOutlines(Part)
- local Mesh = Instance.new("SpecialMesh", Part)
- Mesh.MeshType = "Sphere"
- Mesh.Scale = Vector3.new(0,0,0)
- Services.Debris:AddItem(Part, Time)
- table.insert(Effects, {Part, "Circle", Time, SX, SY, SZ})
- end
- BlockEffect = function(Position, Parent, DSX, DSY, DSZ, SX, SY, SZ, Time, Brickcolor, Material, Transparency)
- local Part = Instance.new("Part", Parent)
- Part.Transparency = Transparency
- Part.Name = "BlockEffect"
- Part.Size = Vector3.new()
- Part.Anchored = true
- Part.Position = Position
- Part.CanCollide = false
- Part.BrickColor = BrickColor.new(Brickcolor)
- Part.Material = Material
- NoOutlines(Part)
- local Mesh = Instance.new("BlockMesh", Part)
- Mesh.Scale = Vector3.new(DSX, DSY, DSZ)
- Services.Debris:AddItem(Part, Time)
- table.insert(Effects, {Part, "Block", Time, SX, SY, SZ})
- end
- --[[ customiz ]]--
- if Player:FindFirstChild("Custom") and Player.Custom.Customized.Value == true then
- CoolDown1Bar.BackgroundColor3 = BrickColor.new(Player.Custom.Co1.Value).Color
- CoolDown2Bar.BackgroundColor3 = BrickColor.new(Player.Custom.Co1.Value).Color
- CoolDown3Bar.BackgroundColor3 = BrickColor.new(Player.Custom.Co1.Value).Color
- CoolDown4Bar.BackgroundColor3 = BrickColor.new(Player.Custom.Co1.Value).Color
- CoolDownEBar.BackgroundColor3 = BrickColor.new(Player.Custom.Co1.Value).Color
- Color = Player.Custom.Co1.Value
- end
- --[[ soumdiz ]]--
- WakeMeUpInside = Instance.new("Sound", Character)
- WakeMeUpInside.SoundId = "http://www.roblox.com/asset?id=326429386"
- WakeMeUpInside.Name = "WAKE ME UP INSIDE!111!"
- WakeMeUpInside.Looped = true
- Sad = Instance.new("Sound", Character)
- Sad.SoundId = "http://www.roblox.com/asset?id=254352182"
- Sad.Name = "Sad"
- Sad.Looped = true
- JOHNCENAh = Instance.new("Sound", Character)
- JOHNCENAh.SoundId = "http://www.roblox.com/asset?id=272322032"
- JOHNCENAh.Name = "JOHNCENAh"
- --[[ crerp decaratius ]] --
- 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 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 = math.acos(cosTheta)
- local invSinTheta = 1/math.sin(theta)
- startInterp = math.sin((1-t)*theta)*invSinTheta
- finishInterp = math.sin(t*theta)*invSinTheta
- else
- startInterp = 1-t
- finishInterp = t
- end
- else
- if (1+cosTheta) > 0.0001 then
- local theta = math.acos(-cosTheta)
- local invSinTheta = 1/math.sin(theta)
- startInterp = math.sin((t-1)*theta)*invSinTheta
- finishInterp = math.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 RayCast(Pos, Dir, Max, Ignore)
- return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
- end
- --[[ debeigi fucktion ]]--
- function DamageFunction(Hit, Part, Type, HitSFX, Knockback, Min, Max)
- local HitHumanoid = Hit.Parent.Humanoid
- local Damage = math.random(Min, Max)
- coroutine.resume(coroutine.create(function()
- HitHumanoid:TakeDamage(Damage)
- end))
- if Type == "Normal" then
- local Push = CreateVelocity(Hit.Parent.Torso, Torso.CFrame.lookVector * Knockback, Vector3.new(math.huge,math.huge,math.huge))
- Services.Debris:AddItem(Push, 0)
- DamageLabel(Hit.Parent, Damage)
- elseif Type == "Ranged" then
- local Push = CreateVelocity(Hit.Parent.Torso, Part.CFrame.lookVector * Knockback, Vector3.new(math.huge,math.huge,math.huge))
- Services.Debris:AddItem(Push, 0)
- DamageLabel(Hit.Parent, Damage)
- elseif Type == "Knockdown" then
- local Push = CreateVelocity(Hit.Parent.Torso, Part.CFrame.lookVector * Knockback, Vector3.new(math.huge,math.huge,math.huge))
- DamageLabel(Hit.Parent, Damage)
- Services.Debris:AddItem(Push, 0.3)
- coroutine.resume(coroutine.create(function()
- HitHumanoid.PlatformStand = true
- wait(1)
- HitHumanoid.PlatformStand = false
- end))
- end
- if HitSFX == "Penetration" then
- MakeSFX(Hit, 199149269, 1 , 1)
- elseif HitSFX == "Punch" then
- MakeSFX(Hit, 278062209, 1 , 1)
- end
- end
- function DamageLabel(HitCharacter, DamageDealt)
- local DamageShowingPart = CreatePart(Services.Workspace, "ShowDamage", "Bright yellow", Vector3.new(0.8,0.8,0.8), "Neon", 1, "Block")
- DamageShowingPart.Position = HitCharacter.Head.Position
- local DamageGui = Instance.new("BillboardGui", DamageShowingPart)
- DamageGui.Name = "Damage"
- DamageGui.AlwaysOnTop = true
- DamageGui.Size = UDim2.new(5, 0, 5, 0)
- local DamageNumber = Instance.new("TextLabel", DamageGui)
- DamageNumber.Size = UDim2.new(1,0,1,0)
- DamageNumber.TextStrokeColor3 = BrickColor.White().Color
- DamageNumber.TextColor3 = BrickColor.Black().Color
- DamageNumber.TextStrokeTransparency = 0
- DamageNumber.BackgroundTransparency = 1
- DamageNumber.Font = "SciFi"
- DamageNumber.TextScaled = true
- DamageNumber.Text = DamageDealt
- local BodyVelocity = Instance.new("BodyVelocity", DamageShowingPart)
- BodyVelocity.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- BodyVelocity.Velocity = Vector3.new(0,2,0)
- Services.Debris:AddItem(DamageShowingPart, 3)
- end
- function ValidateDamage(Part, Distance ,Min , Max, Type, HitSFX, Knockback)
- for _,WorkspaceChildren in pairs(workspace:children()) do
- local HitHumanoid = WorkspaceChildren:findFirstChild("Humanoid")
- if HitHumanoid ~= nil then
- local Hit = WorkspaceChildren:findFirstChild("Torso")
- if Hit ~= nil then
- local Target = Hit.Position - Part.Position
- local Magnitude = Target.magnitude
- if Magnitude <= Distance and WorkspaceChildren.Name ~= Player.Name then
- local HitBlock = Hit.Parent:FindFirstChild("Block")
- if HitBlock ~= nil and HitBlock:FindFirstChild("BlockDurability") and HitBlock.Value == true then
- local HitBlock2 = Hit.Parent.Block.BlockDurability
- if HitBlock2.Value > 15 then
- local HitN = math.random(1,5)
- HitBlock2.Value = HitBlock2.Value - 15
- if HitN == 1 then
- MakeSFX(Hit ,199148971, 0.5, 1)
- end
- if HitN == 2 then
- MakeSFX(Hit ,199149025, 0.5, 1)
- end
- if HitN == 3 then
- MakeSFX(Hit ,199149072, 0.5, 1)
- end
- if HitN == 4 then
- MakeSFX(Hit ,199149109, 0.5, 1)
- end
- if HitN == 5 then
- MakeSFX(Hit ,199149119, 0.5, 1)
- end
- return
- end
- end
- DamageFunction(Hit, Part, Type, HitSFX, Knockback, Min, Max)
- end
- end
- end
- end
- end
- function Bars()
- --[[ Cooldowns Bars ]]--
- if Cooldown1 ~= MaxCooldown1 then
- Cooldown1 = Cooldown1 + 1
- end
- if Cooldown1 >= MaxCooldown1 then
- Cooldown1 = MaxCooldown1
- end
- if Cooldown2 ~= MaxCooldown2 then
- Cooldown2 = Cooldown2 + 0.1
- end
- if Cooldown2 >= MaxCooldown2 then
- Cooldown2 = MaxCooldown2
- end
- if Cooldown3 ~= MaxCooldown3 then
- Cooldown3 = Cooldown3 + 0.1
- end
- if Cooldown3 >= MaxCooldown3 then
- Cooldown3 = MaxCooldown3
- end
- if Cooldown4 ~= MaxCooldown4 then
- Cooldown4 = Cooldown4 + 0.1
- end
- if Cooldown4 >= MaxCooldown4 then
- Cooldown4 = MaxCooldown4
- end
- if CooldownE ~= MaxCooldownE then
- CooldownE = CooldownE + 0.1
- end
- if CooldownE >= MaxCooldownE then
- CooldownE = MaxCooldownE
- end
- --[[ Health Bar ]]--
- local YellowZone = Humanoid.MaxHealth / 2
- local RedZone = Humanoid.MaxHealth / 4
- if Humanoid.Health <= YellowZone then
- HealthBarP2.BackgroundColor3 = BrickColor.new("Gold").Color
- end
- if Humanoid.Health <= RedZone then
- HealthBarP2.BackgroundColor3 = BrickColor.new("Bright red").Color
- end
- if Humanoid.Health >= YellowZone then
- HealthBarP2.BackgroundColor3 = BrickColor.new("Lime green").Color
- end
- --[[ Resize All Bars ]]--
- CoolDown1Bar.Size = UDim2.new(Cooldown1 / MaxCooldown1,0,0,50)
- CoolDown2Bar.Size = UDim2.new(Cooldown2 / MaxCooldown2,0,0,50)
- CoolDown3Bar.Size = UDim2.new(Cooldown3 / MaxCooldown3,0,0,50)
- CoolDown4Bar.Size = UDim2.new(Cooldown4 / MaxCooldown4,0,0,50)
- CoolDownEBar.Size = UDim2.new(CooldownE / MaxCooldownE,0,0,50)
- HealthBarP2.Size = UDim2.new(Humanoid.Health / Humanoid.MaxHealth,0,0,25)
- end
- --[[ attakis ]]--
- function WAKEMEUPINSIDE()
- for i = 1,3 do
- wait()
- RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*cf(3,0,0)* CFrame.Angles(-0.2,0,0),0.2)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,cf(10,20,3) * CFrame.Angles(-0.5,0,0),0.3)
- Right_Shoulder.C0 = clerp(Right_Shoulder.C0, cf(3, 10, 0) * CFrame.Angles(-0.23,0.5,0.2), 0.3)
- Left_Shoulder.C0 = clerp(Left_Shoulder.C0, cf(3, 0.1, 0) * CFrame.Angles(0.3,0.2,2), 0.3)
- Right_Hip.C0=clerp(Right_Hip.C0,cf(3,-2,9)*CFrame.Angles(2,1.6,-0.2),0.2)
- Left_Hip.C0=clerp(Left_Hip.C0,cf(-0,-0,5)*CFrame.Angles(5,-1.6,0.2),0.2)
- end
- ValidateDamage(Torso, 20, 1, 5, "Normal", "Punch", 50)
- for i = 1,3 do
- wait()
- RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*cf(3,30,0)* CFrame.Angles(-0.3452,0,0),0.2)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,cf(12,56,5) * CFrame.Angles(-0.5,0,30),0.3)
- Right_Shoulder.C0 = clerp(Right_Shoulder.C0, cf(10, 30, 5) * CFrame.Angles(-0.23,0.5,0.2), 0.3)
- Left_Shoulder.C0 = clerp(Left_Shoulder.C0, cf(34, 1, 32) * CFrame.Angles(0.3,0.2,22), 0.3)
- Right_Hip.C0=clerp(Right_Hip.C0,cf(5,-3,3)*CFrame.Angles(2,1.6,-0.342),0.2)
- Left_Hip.C0=clerp(Left_Hip.C0,cf(-53,-0,25)*CFrame.Angles(5,-41.6,0.52),0.2)
- end
- ValidateDamage(Torso, 50, 1, 5, "Normal", "Punch", 50)
- for i = 1,3 do
- wait()
- RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*cf(-3,-30,0)* CFrame.Angles(0.3452,-0,-0),0.2)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,cf(-12,-56,5) * CFrame.Angles(0.5,-0,-30),0.3)
- Right_Shoulder.C0 = clerp(Right_Shoulder.C0, cf(-10, -30, -5) * CFrame.Angles(0.23,-0.5,-0.2), 0.3)
- Left_Shoulder.C0 = clerp(Left_Shoulder.C0, cf(-34, -1, -32) * CFrame.Angles(-0.3,-0.2,-22), 0.3)
- Right_Hip.C0=clerp(Right_Hip.C0,cf(-5,3,-3)*CFrame.Angles(-2,-1.6,0.342),0.2)
- Left_Hip.C0=clerp(Left_Hip.C0,cf(53,0,-25)*CFrame.Angles(-5,41.6,-0.52),0.2)
- end
- ValidateDamage(Torso, 50, 1, 5, "Normal", "Punch", 50)
- end
- function MemeLaunch()
- memis = {294841732,474498947,474494834,519973850,291736664,513363123,94349155,379915109,331385631,387197836,304460548,196819764}
- local meme = Instance.new("Part",game.Workspace)
- meme.Anchored = true
- meme.Position = Torso.Position + Vector3.new(0,5,0)
- meme.Rotation = Torso.Rotation + Vector3.new(0,-1,0)
- meme.Size = Vector3.new(5, 5, 0.2)
- meme.Transparency = 1
- meme.Touched:connect(function(hit)
- ValidateDamage(meme, 10, 1, 1, "Knockdown", "Punch", 130)
- end)
- game:GetService("Debris"):AddItem(meme, 30)
- local memedecal = Instance.new("Decal", meme)
- memedecal.Texture = "http://www.roblox.com/asset?id=" .. memis[math.random(1, #memis)]
- local memedecal2 = memedecal:Clone()
- memedecal2.Parent = meme
- memedecal2.Face = "Back"
- for i = 1,30 do
- wait()
- RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*cf(0,0,0)* CFrame.Angles(-0.2,0,0),0.2)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(-0.5,0,0),0.3)
- Right_Shoulder.C0 = clerp(Right_Shoulder.C0, cf(1.5, 1, 0) * CFrame.Angles(0,0,-3.1), 0.3)
- Left_Shoulder.C0 = clerp(Left_Shoulder.C0, cf(-1.5, 1, 0) * CFrame.Angles(0,0,3.1), 0.3)
- Right_Hip.C0=clerp(Right_Hip.C0,cf(1,-1,0)*CFrame.Angles(0,1.6,-0.2),0.2)
- Left_Hip.C0=clerp(Left_Hip.C0,cf(-1,-1,0)*CFrame.Angles(0,-1.6,0.2),0.2)
- end
- meme.Anchored = false
- meme.CFrame = CFrame.new(meme.Position, Mouse.Hit.p)
- local memevilocity = CreateVelocity(meme,meme.CFrame.lookVector * 250,Vector3.new(math.huge,math.huge,math.huge))
- for i = 1,30 do
- wait()
- ValidateDamage(meme, 1, 1, 33, "Knockdown", "Punch", 5)
- RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*cf(0,0,0)* CFrame.Angles(0.8,0,0),0.2)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(-0.5,0,0),0.3)
- Right_Shoulder.C0 = clerp(Right_Shoulder.C0, cf(1.5, 1, 0) * CFrame.Angles(0,0,-3.1), 0.3)
- Left_Shoulder.C0 = clerp(Left_Shoulder.C0, cf(-1.5, 1, 0) * CFrame.Angles(0,0,3.1), 0.3)
- Right_Hip.C0=clerp(Right_Hip.C0,cf(1,-1,0)*CFrame.Angles(0,1.6,0.8),0.2)
- Left_Hip.C0=clerp(Left_Hip.C0,cf(-1,-1,0)*CFrame.Angles(0,-1.6,-0.8),0.2)
- end
- Attacking = false
- end
- function JOHNCENA()
- JOHNCENAh:Play()
- Humanoid.WalkSpeed = 0
- Humanoid.JumpPower = 0
- for i = 1,60 do
- wait()
- RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*cf(0,0,10)* CFrame.Angles(1.6,1.6,1.6),0.8)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(0,0,-1),0.3)
- Right_Shoulder.C0 = clerp(Right_Shoulder.C0, cf(1.3, 0.5, -0.5) * CFrame.Angles(1.6,0,-0.5), 0.3)
- Left_Shoulder.C0 = clerp(Left_Shoulder.C0, cf(-1.3, 0.5, -0.5) * CFrame.Angles(1.6,0,0.3), 0.3)
- Right_Hip.C0=clerp(Right_Hip.C0,cf(0.5,-1,0.5)*CFrame.Angles(0,0,0),0.2)
- Left_Hip.C0=clerp(Left_Hip.C0,cf(-0.5,-1,0.5)*CFrame.Angles(0,0,0),0.2)
- end
- for i = 1,6 do
- wait()
- RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*cf(0,0,-2)* CFrame.Angles(1.6,1.6,1.6),0.8)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(0,0,-1),0.3)
- Right_Shoulder.C0 = clerp(Right_Shoulder.C0, cf(1.3, 0.5, -0.5) * CFrame.Angles(1.6,0,-0.5), 0.3)
- Left_Shoulder.C0 = clerp(Left_Shoulder.C0, cf(-1.3, 0.5, -0.5) * CFrame.Angles(1.6,0,0.3), 0.3)
- Right_Hip.C0=clerp(Right_Hip.C0,cf(0.5,-1,0.5)*CFrame.Angles(0,0,0),0.2)
- Left_Hip.C0=clerp(Left_Hip.C0,cf(-0.5,-1,0.5)*CFrame.Angles(0,0,0),0.2)
- end
- local Explosion = Instance.new("Explosion")
- Explosion.Parent = game.workspace.Terrain
- Explosion.Position = Right_Arm.Position
- Explosion.Name = "Boom!"
- Explosion.BlastRadius = 0
- Explosion.BlastPressure = 0
- Explosion.DestroyJointRadiusPercent = 0
- Explosion.ExplosionType = "NoCraters"
- local dmgreference = Instance.new("Part", Services.Workspace)
- dmgreference.CFrame = Torso.CFrame
- dmgreference.Transparency = 1
- dmgreference.Size = Vector3.new()
- dmgreference.CanCollide = false
- ValidateDamage(dmgreference, 1000, 10, 20, "Knockdown", "Penetration", 100)
- Humanoid.WalkSpeed = 16
- Humanoid.JumpPower = 50
- Attacking = false
- end
- function allahuekber()
- Attacking = true
- Sad:Remove()
- MakeSFX(Character,433848566, 1, 1)
- Humanoid.WalkSpeed = 0
- Humanoid.JumpPower = 0
- wait(5)
- MakeSFX(Character, 134854740, 1 , 0.4)
- BlockEffect(Torso.Position, Services.Workspace, 1,1,1, 10,10,10, 5, Color, "Neon", 0.5)
- BlockEffect(Torso.Position, Services.Workspace, 1,1,1, 10,10,10, 5, Color, "Neon", 0.5)
- BlockEffect(Torso.Position, Services.Workspace, 1,1,1, 10,10,10, 5, Color, "Neon", 0.5)
- BlockEffect(Torso.Position, Services.Workspace, 1,1,1, 10,10,10, 5, Color, "Neon", 0.5)
- BlockEffect(Torso.Position, Services.Workspace, 1,1,1, 10,10,10, 5, Color, "Neon", 0.5)
- BlockEffect(Torso.Position, Services.Workspace, 1,1,1, 10,10,10, 5, Color, "Neon", 0.5)
- BlockEffect(Torso.Position, Services.Workspace, 1,1,1, 10,10,10, 5, Color, "Neon", 0.5)
- ValidateDamage(Torso, 1000, 77, 89, "Knockdown", "Penetration", 0)
- wait(5)
- Character:BreakJoints()
- end
- Mouse.KeyDown:connect(function(kei)
- if not Attacking then
- if kei == "z" then
- WakeMeUp = true
- if JOHNCENAh.IsPlaying == false then
- WakeMeUpInside:Resume()
- end
- while WakeMeUp do
- WakeMeUp = true
- Attacking = true
- WAKEMEUPINSIDE()
- end
- end
- if kei == "x" then
- Attacking = true
- MemeLaunch()
- end
- if kei == "c" and JOHNCENAh.IsPlaying == false then
- Attacking = true
- JOHNCENA()
- end
- if kei == "v" then
- allahuekber()
- end
- end
- end)
- Mouse.KeyUp:connect(function(kei)
- if kei == "z" and WakeMeUp then
- Attacking = false
- WakeMeUp = false
- WakeMeUpInside:Pause()
- end
- end)
- Humanoid.Died:connect(function ()
- Sad:Play()
- end)
- --[[ crerp animaxius ]]--
- while true do
- wait()
- Bars()
- local Torvel = (Root.Velocity*Vector3.new(1,0,1)).magnitude
- local Velderp = Root.Velocity.y
- HitFloor,PosFloor = RayCast(Root.Position,(CFrame.new(Root.Position,Root.Position - Vector3.new(0,1,0))).lookVector,4,Character)
- if Torvel < 1 and HitFloor ~= nil and Attacking == false then
- Anim = "Idle"
- RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*cf(0,0,0)* CFrame.Angles(-0.2,0,0),0.2)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(-0.5,0,0),0.3)
- Right_Shoulder.C0 = clerp(Right_Shoulder.C0, cf(1.5, 0.1, 0) * CFrame.Angles(0,0,0.2), 0.3)
- Left_Shoulder.C0 = clerp(Left_Shoulder.C0, cf(-1.5, 0.1, 0) * CFrame.Angles(0,0,-0.2), 0.3)
- Right_Hip.C0=clerp(Right_Hip.C0,cf(1,-1,0)*CFrame.Angles(0,1.6,-0.2),0.2)
- Left_Hip.C0=clerp(Left_Hip.C0,cf(-1,-1,0)*CFrame.Angles(0,-1.6,0.2),0.2)
- end
- if 2 < Torvel and Torvel < 22 and HitFloor ~= nil and Attacking == false then
- Anim = "Walking"
- WalkForward = true
- Walk = Walk + 1
- if 15 - 5 * Movemment <= Walk then
- Walk = 0
- if WalkForward == true then
- WalkForward = false
- else
- if WalkForward == false then
- WalkForward = true
- end
- end
- end
- if Attacking == false then
- RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*cf(0,0,0)* CFrame.Angles(-0.2,0,0),0.2)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(-0.5,0,0),0.3)
- Right_Shoulder.C0 = clerp(Right_Shoulder.C0, cf(1.5, 0.5, 0.6) * CFrame.Angles(-1.6,0,0.2), 0.3)
- Left_Shoulder.C0 = clerp(Left_Shoulder.C0, cf(-1.5, 0.5, 0.6) * CFrame.Angles(-1.6,0,-0.2), 0.3)
- Right_Hip.C0=clerp(Right_Hip.C0,cf(1,-1,0)*CFrame.Angles(0,1.6,-0.2),0.2)
- Left_Hip.C0=clerp(Left_Hip.C0,cf(-1,-1,0)*CFrame.Angles(0,-1.6,0.2),0.2)
- end
- Right_Hip.C0=clerp(Right_Hip.C0,cf(1,-1,0) * CFrame.Angles(0,1.6,0),0.2)
- Left_Hip.C0=clerp(Left_Hip.C0,cf(-1,-1,0) * CFrame.Angles(0,-1.6,0),0.2)
- end
- if Root.Velocity.y > 1 and HitFloor == nil and Attacking == false then
- Anim = "Jump"
- RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*cf(0,0,0)* CFrame.Angles(-0.2,0,0),0.2)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(-0.5,0,0),0.3)
- Right_Shoulder.C0 = clerp(Right_Shoulder.C0, cf(1.5, 1, 0) * CFrame.Angles(0,0,-3.2), 0.3)
- Left_Shoulder.C0 = clerp(Left_Shoulder.C0, cf(-1.5, 1, 0) * CFrame.Angles(0,0,3.2), 0.3)
- Right_Hip.C0=clerp(Right_Hip.C0,cf(1,-1,0)*CFrame.Angles(0,1.6,-0.2),0.2)
- Left_Hip.C0=clerp(Left_Hip.C0,cf(-1,-1,0)*CFrame.Angles(0,-1.6,0.2),0.2)
- end
- if Root.Velocity.y < -1 and HitFloor == nil and Attacking == false then
- Anim = "Fall"
- RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*cf(0,0,0)* CFrame.Angles(-0.2,0,0),0.2)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(0.5,0,0),0.3)
- Right_Shoulder.C0 = clerp(Right_Shoulder.C0, cf(1.5, 1, 0) * CFrame.Angles(0,0,-3.2), 0.3)
- Left_Shoulder.C0 = clerp(Left_Shoulder.C0, cf(-1.5, 1, 0) * CFrame.Angles(0,0,3.2), 0.3)
- Right_Hip.C0=clerp(Right_Hip.C0,cf(1,-1,0)*CFrame.Angles(0,1.6,-0.2),0.2)
- Left_Hip.C0=clerp(Left_Hip.C0,cf(-1,-1,0)*CFrame.Angles(0,-1.6,0.2),0.2)
- 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 Time = Effect[3]
- local SizeX = Effect[4]
- local SizeY = Effect[5]
- local SizeZ = Effect[6]
- if Effect[1].Transparency <= 1 then
- if Effect[2] == "Block" then
- Effect[1].CFrame = Effect[1].CFrame * CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50))
- Mesh = Effect[1]:FindFirstChild("Mesh")
- if Mesh ~= nil then
- Mesh.Scale = Mesh.Scale + Vector3.new(Effect[4],Effect[5],Effect[6])
- end
- elseif Effect[2] == "Circle" then
- if Effect[1]:FindFirstChild("Mesh") ~= nil then
- Mesh=Effect[1].Mesh
- Mesh.Scale = Mesh.Scale + Vector3.new(Effect[4],Effect[5],Effect[6])
- end
- else
- Part.Parent=nil
- table.remove(Effects, E)
- end
- end
- end
- end
- end
- end
- end
- local time = tick()
- local plr = game:GetService("Players").LocalPlayer
- local mouse,char = plr:GetMouse(),plr.Character
- local amountGhosts = 5
- for i,v in pairs(game:GetService("Workspace").CurrentCamera:GetChildren()) do v:Destroy() end
- local toggle,cd,mcd = false,false,false
- local ghosts = {}
- local temptab = {}
- char:WaitForChild("Animate"):Destroy()
- char.Humanoid:WaitForChild("Animator"):Destroy()
- local state = "idle"
- local gt = false
- local gyro = Instance.new("BodyGyro",char:WaitForChild("HumanoidRootPart")) --Stops the character from glitching out on enter/exit
- gyro.MaxTorque = Vector3.new(0,0,0)
- gyro.D = 0
- gyro.P = 100000000
- local wCol = BrickColor.new("Really red")
- local wCol2 = BrickColor.new("Really black")
- local gCol = BrickColor.new("Toothpaste")
- local gCol2 = BrickColor.new("Institutional white")
- function searchAll(m,clear)
- if clear then
- if clear == true then
- for i,v in pairs(temptab) do
- table.remove(temptab,1)
- end
- end
- end
- for i,v in pairs(m:GetChildren()) do
- if v then
- local s = v:Clone()
- for _,b in pairs(s:GetChildren()) do
- b:Destroy()
- end
- if s:IsA("Part") or s:IsA("WedgePart") or s:IsA("TrussPart") or s:IsA("UnionOperation") then
- if s.Name ~= "HumanoidRootPart" then
- s.Anchored = true
- s.CanCollide = false
- s.Transparency = 0.95
- s.TopSurface = "Smooth"
- s.BottomSurface = "Smooth"
- s.FrontSurface = "Smooth"
- s.RightSurface = "Smooth"
- s.BackSurface = "Smooth"
- s.LeftSurface = "Smooth"
- if s.Material ~= Enum.Material.Neon then
- if gt == true then
- s.BrickColor = wCol2
- else
- s.BrickColor = gCol2
- end
- else
- if gt == true then
- s.BrickColor = wCol
- else
- s.BrickColor = gCol
- end
- end
- for _,c in pairs(v:GetChildren()) do
- if c:IsA("SpecialMesh") or c:IsA("CylinderMesh") then
- c:Clone().Parent = s
- end
- end
- local objValue = Instance.new("ObjectValue",s)
- objValue.Name = "Target"
- objValue.Value = v
- table.insert(temptab,s)
- end
- --elseif s:IsA("CharacterMesh") then
- --table.insert(temptab,s)
- end
- --searchAll(v)
- end
- end
- return temptab
- end
- function CreateGhost()
- local ghost = Instance.new("Model",game.Workspace)
- searchAll(char,true)
- ghost.Name = char.Name.."'s Ghost "..#ghosts..#plr.Name
- --Instance.new("Humanoid",ghost)
- for i,v in pairs(temptab) do
- v:Clone().Parent = ghost
- end
- table.insert(ghosts,ghost)
- end
- function ClearGhosts()
- for i,v in pairs(ghosts) do
- v:Destroy()
- end
- for i,v in pairs(ghosts) do
- table.remove(ghosts,1)
- end
- for i,v in pairs(game:GetService("Workspace"):GetChildren()) do
- if string.sub(v.Name,1,#plr.Name+9) == plr.Name.."'s Ghost " then
- v:Destroy()
- end
- end
- end
- Instance.new("ForceField",char).Visible = false
- local e1 = Instance.new("Part",char)
- e1.Size = Vector3.new(0.2,0.2,0.2)
- e1.TopSurface = "Smooth"
- e1.BottomSurface = "Smooth"
- e1.Material = "Neon"
- e1.Transparency = 1
- e1.Anchored = true
- e1.CanCollide = false
- e1.BrickColor = gCol
- e1.CFrame = char.Head.CFrame * CFrame.new(0.15,0.1,-0.6)
- local em1 = Instance.new("SpecialMesh",e1)
- em1.MeshType = "Sphere"
- local e2 = Instance.new("Part",char)
- e2.Size = Vector3.new(0.2,0.2,0.2)
- e2.TopSurface = "Smooth"
- e2.BottomSurface = "Smooth"
- e2.Transparency = 1
- e2.Material = "Neon"
- e2.Anchored = true
- e2.CanCollide = false
- e2.BrickColor = gCol
- e2.CFrame = char.Head.CFrame * CFrame.new(-0.15,0.1,-0.6)
- local em2 = Instance.new("SpecialMesh",e2)
- em2.MeshType = "Sphere"
- toggle = true
- for i=1,amountGhosts do
- CreateGhost()
- end
- char.Parent = game:GetService("Workspace").CurrentCamera
- char:FindFirstChild("Head").Transparency = 1
- char:FindFirstChild("Torso").Transparency = 1
- char:FindFirstChild("Right Arm").Transparency = 1
- char:FindFirstChild("Left Arm").Transparency = 1
- char:FindFirstChild("Right Leg").Transparency = 1
- char:FindFirstChild("Left Leg").Transparency = 1
- for i,v in pairs(char:GetChildren()) do
- if v:IsA("Accessory") then
- v:FindFirstChild("Handle").Transparency = 1
- end
- end
- char:FindFirstChild("Head"):FindFirstChild("face"):Destroy()
- local p1 = Instance.new("Part",workspace)
- local m1 = Instance.new("SpecialMesh",p1)
- m1.MeshType = "Sphere"
- m1.Scale = Vector3.new(5,5,5)
- p1.Size = Vector3.new(1,1,1)
- p1.Anchored = true
- p1.CanCollide = false
- p1.TopSurface = "Smooth"
- p1.BottomSurface = "Smooth"
- p1.BrickColor = gCol
- p1.Material = "Neon"
- local p2 = Instance.new("Part",workspace)
- local m2 = Instance.new("SpecialMesh",p2)
- m2.MeshType = "Sphere"
- m2.Scale = Vector3.new(8,8,8)
- p2.Size = Vector3.new(1,1,1)
- p2.Anchored = true
- p2.CanCollide = false
- p2.TopSurface = "Smooth"
- p2.BottomSurface = "Smooth"
- p2.BrickColor = gCol2
- p2.Material = "Neon"
- local p3 = Instance.new("Part",workspace)
- local m3 = Instance.new("BlockMesh",p3)
- m3.Scale = Vector3.new(7,7,7)
- p3.Size = Vector3.new(1,1,1)
- p3.Transparency = 0.4
- p3.Anchored = true
- p3.CanCollide = false
- p3.TopSurface = "Smooth"
- p3.BottomSurface = "Smooth"
- p3.BrickColor = gCol
- p3.Material = "Neon"
- local p4 = Instance.new("Part",workspace)
- local m4 = Instance.new("BlockMesh",p4)
- m4.Scale = Vector3.new(10,10,10)
- p4.Size = Vector3.new(1,1,1)
- p4.Transparency = 0.4
- p4.Anchored = true
- p4.CanCollide = false
- p4.TopSurface = "Smooth"
- p4.BottomSurface = "Smooth"
- p4.BrickColor = gCol2
- p4.Material = "Neon"
- local currentframe = 0
- local frmR
- frmR = game:GetService("RunService").RenderStepped:connect(function()
- currentframe = currentframe + 1
- if currentframe < 1*60 then
- p1.CFrame = char:WaitForChild("Torso").CFrame
- p2.CFrame = char:WaitForChild("Torso").CFrame
- p3.CFrame = char:WaitForChild("Torso").CFrame * CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
- p4.CFrame = char:WaitForChild("Torso").CFrame * CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
- m1.Scale = m1.Scale + Vector3.new(0.25,0.25,0.25)
- m2.Scale = m2.Scale + Vector3.new(0.25,0.25,0.25)
- m3.Scale = m3.Scale + Vector3.new(0.25,0.25,0.25)
- m4.Scale = m4.Scale + Vector3.new(0.25,0.25,0.25)
- p1.Transparency = p1.Transparency + (1/(1*60))
- p2.Transparency = p2.Transparency + (1/(1*60))
- p3.Transparency = p3.Transparency + (1/(1*60))
- p4.Transparency = p4.Transparency + (1/(1*60))
- else
- p1:Destroy()
- p2:Destroy()
- p3:Destroy()
- p4:Destroy()
- frmR:disconnect()
- end
- end)
- char.Humanoid.MaxHealth = math.huge
- wait()
- char.Humanoid.Health = math.huge
- --[[mouse.KeyDown:connect(function(key)
- if key == "r" then
- print("R!")
- if cd == false then
- print("No cooldown!")
- cd = true
- if toggle == false then
- print("Entering godmode")
- toggle = true
- Instance.new("ForceField",char)
- for i=1,amountGhosts do
- CreateGhost()
- end
- char.Parent = game:GetService("Workspace").CurrentCamera
- char:FindFirstChild("Head").Transparency = 1
- char:FindFirstChild("Torso").Transparency = 1
- char:FindFirstChild("Right Arm").Transparency = 1
- char:FindFirstChild("Left Arm").Transparency = 1
- char:FindFirstChild("Right Leg").Transparency = 1
- char:FindFirstChild("Left Leg").Transparency = 1
- for i,v in pairs(char:GetChildren()) do
- if v:IsA("Accessory") then
- v:FindFirstChild("Handle").Transparency = 1
- end
- end
- else
- print("Exiting godmode")
- toggle = false
- for i,v in pairs(ghosts) do
- v:Destroy()
- end
- char.Parent = game:GetService("Workspace")
- char:FindFirstChild("ForceField"):Destroy()
- char:FindFirstChild("Head").Transparency = 0
- char:FindFirstChild("Torso").Transparency = 0
- char:FindFirstChild("Right Arm").Transparency = 0
- char:FindFirstChild("Left Arm").Transparency = 0
- char:FindFirstChild("Right Leg").Transparency = 0
- char:FindFirstChild("Left Leg").Transparency = 0
- for i,v in pairs(char:GetChildren()) do
- if v:IsA("Accessory") then
- v:FindFirstChild("Handle").Transparency = 0
- end
- end
- end
- cd = false
- end
- end
- end)]]
- mouse.KeyDown:connect(function(key)
- spawn(function()
- if key == "f" and toggle == true and mcd == false then
- if #ghosts < amountGhosts then
- print(#ghosts.."<")
- mcd = true
- ClearGhosts()
- for i=1,amountGhosts do
- CreateGhost()
- end
- local p1 = Instance.new("Part",workspace)
- local m1 = Instance.new("SpecialMesh",p1)
- m1.MeshType = "Sphere"
- m1.Scale = Vector3.new(7,7,7)
- p1.Size = Vector3.new(1,1,1)
- p1.Anchored = true
- p1.CanCollide = false
- p1.TopSurface = "Smooth"
- p1.BottomSurface = "Smooth"
- if gt == false then
- p1.BrickColor = gCol
- else
- p1.BrickColor = wCol
- end
- p1.Material = "Neon"
- local p2 = Instance.new("Part",workspace)
- local m2 = Instance.new("SpecialMesh",p2)
- m2.MeshType = "Sphere"
- m2.Scale = Vector3.new(9,9,9)
- p2.Size = Vector3.new(1,1,1)
- p2.Anchored = true
- p2.CanCollide = false
- p2.TopSurface = "Smooth"
- p2.BottomSurface = "Smooth"
- if gt == false then
- p2.BrickColor = gCol2
- else
- p2.BrickColor = wCol2
- end
- p2.Material = "Neon"
- local currentframe = 0
- local frmR
- frmR = game:GetService("RunService").RenderStepped:connect(function()
- currentframe = currentframe + 1
- if currentframe < 0.25*60 then
- p1.CFrame = char:WaitForChild("Torso").CFrame
- p2.CFrame = char:WaitForChild("Torso").CFrame
- p1.Transparency = p1.Transparency + (1/(0.25*60))
- p2.Transparency = p2.Transparency + (1/(0.25*60))
- else
- p1:Destroy()
- p2:Destroy()
- mcd = false
- frmR:disconnect()
- end
- end)
- else
- mcd = true
- ClearGhosts()
- local p1 = Instance.new("Part",workspace)
- local m1 = Instance.new("SpecialMesh",p1)
- m1.MeshType = "Sphere"
- m1.Scale = Vector3.new(7,7,7)
- p1.Size = Vector3.new(1,1,1)
- p1.Anchored = true
- p1.CanCollide = false
- p1.TopSurface = "Smooth"
- p1.BottomSurface = "Smooth"
- if gt == false then
- p1.BrickColor = gCol
- else
- p1.BrickColor = wCol
- end
- p1.Material = "Neon"
- local p2 = Instance.new("Part",workspace)
- local m2 = Instance.new("SpecialMesh",p2)
- m2.MeshType = "Sphere"
- m2.Scale = Vector3.new(9,9,9)
- p2.Size = Vector3.new(1,1,1)
- p2.Anchored = true
- p2.CanCollide = false
- p2.TopSurface = "Smooth"
- p2.BottomSurface = "Smooth"
- if gt == false then
- p2.BrickColor = gCol2
- else
- p2.BrickColor = wCol2
- end
- p2.Material = "Neon"
- local currentframe = 0
- local frmR
- frmR = game:GetService("RunService").RenderStepped:connect(function()
- currentframe = currentframe + 1
- if currentframe < 0.25*60 then
- p1.CFrame = char:WaitForChild("Torso").CFrame
- p2.CFrame = char:WaitForChild("Torso").CFrame
- p1.Transparency = p1.Transparency + (1/(0.25*60))
- p2.Transparency = p2.Transparency + (1/(0.25*60))
- else
- p1:Destroy()
- p2:Destroy()
- mcd = false
- frmR:disconnect()
- end
- end)
- end
- elseif key == "g" and toggle == true and mcd == false then
- if gt == true then
- gt = false
- local p1 = Instance.new("Part",workspace)
- local m1 = Instance.new("SpecialMesh",p1)
- m1.MeshType = "Sphere"
- m1.Scale = Vector3.new(5,5,5)
- p1.Size = Vector3.new(1,1,1)
- p1.Anchored = true
- p1.CanCollide = false
- p1.TopSurface = "Smooth"
- p1.BottomSurface = "Smooth"
- p1.BrickColor = gCol
- p1.Material = "Neon"
- local p2 = Instance.new("Part",workspace)
- local m2 = Instance.new("SpecialMesh",p2)
- m2.MeshType = "Sphere"
- m2.Scale = Vector3.new(8,8,8)
- p2.Size = Vector3.new(1,1,1)
- p2.Anchored = true
- p2.CanCollide = false
- p2.TopSurface = "Smooth"
- p2.BottomSurface = "Smooth"
- p2.BrickColor = gCol2
- p2.Material = "Neon"
- local p3 = Instance.new("Part",workspace)
- local m3 = Instance.new("BlockMesh",p3)
- m3.Scale = Vector3.new(7,7,7)
- p3.Size = Vector3.new(1,1,1)
- p3.Transparency = 0.4
- p3.Anchored = true
- p3.CanCollide = false
- p3.TopSurface = "Smooth"
- p3.BottomSurface = "Smooth"
- p3.BrickColor = gCol
- p3.Material = "Neon"
- local p4 = Instance.new("Part",workspace)
- local m4 = Instance.new("BlockMesh",p4)
- m4.Scale = Vector3.new(10,10,10)
- p4.Size = Vector3.new(1,1,1)
- p4.Transparency = 0.4
- p4.Anchored = true
- p4.CanCollide = false
- p4.TopSurface = "Smooth"
- p4.BottomSurface = "Smooth"
- p4.BrickColor = gCol2
- p4.Material = "Neon"
- ClearGhosts()
- for i=1,amountGhosts do
- CreateGhost()
- end
- local currentframe = 0
- local frmR
- frmR = game:GetService("RunService").RenderStepped:connect(function()
- currentframe = currentframe + 1
- if currentframe < 1*60 then
- p1.CFrame = char:WaitForChild("Torso").CFrame
- p2.CFrame = char:WaitForChild("Torso").CFrame
- p3.CFrame = char:WaitForChild("Torso").CFrame * CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
- p4.CFrame = char:WaitForChild("Torso").CFrame * CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
- m1.Scale = m1.Scale + Vector3.new(0.25,0.25,0.25)
- m2.Scale = m2.Scale + Vector3.new(0.25,0.25,0.25)
- m3.Scale = m3.Scale + Vector3.new(0.25,0.25,0.25)
- m4.Scale = m4.Scale + Vector3.new(0.25,0.25,0.25)
- p1.Transparency = p1.Transparency + (1/(1*60))
- p2.Transparency = p2.Transparency + (1/(1*60))
- p3.Transparency = p3.Transparency + (1/(1*60))
- p4.Transparency = p4.Transparency + (1/(1*60))
- else
- p1:Destroy()
- p2:Destroy()
- p3:Destroy()
- p4:Destroy()
- frmR:disconnect()
- end
- end)
- else
- gt = true
- local p1 = Instance.new("Part",workspace)
- local m1 = Instance.new("SpecialMesh",p1)
- m1.MeshType = "Sphere"
- m1.Scale = Vector3.new(5,5,5)
- p1.Size = Vector3.new(1,1,1)
- p1.Anchored = true
- p1.CanCollide = false
- p1.TopSurface = "Smooth"
- p1.BottomSurface = "Smooth"
- p1.BrickColor = wCol
- p1.Material = "Neon"
- local p2 = Instance.new("Part",workspace)
- local m2 = Instance.new("SpecialMesh",p2)
- m2.MeshType = "Sphere"
- m2.Scale = Vector3.new(8,8,8)
- p2.Size = Vector3.new(1,1,1)
- p2.Anchored = true
- p2.CanCollide = false
- p2.TopSurface = "Smooth"
- p2.BottomSurface = "Smooth"
- p2.BrickColor = wCol2
- p2.Material = "Neon"
- local p3 = Instance.new("Part",workspace)
- local m3 = Instance.new("BlockMesh",p3)
- m3.Scale = Vector3.new(7,7,7)
- p3.Size = Vector3.new(1,1,1)
- p3.Transparency = 0.4
- p3.Anchored = true
- p3.CanCollide = false
- p3.TopSurface = "Smooth"
- p3.BottomSurface = "Smooth"
- p3.BrickColor = wCol
- p3.Material = "Neon"
- local p4 = Instance.new("Part",workspace)
- local m4 = Instance.new("BlockMesh",p4)
- m4.Scale = Vector3.new(10,10,10)
- p4.Size = Vector3.new(1,1,1)
- p4.Transparency = 0.4
- p4.Anchored = true
- p4.CanCollide = false
- p4.TopSurface = "Smooth"
- p4.BottomSurface = "Smooth"
- p4.BrickColor = wCol2
- p4.Material = "Neon"
- ClearGhosts()
- for i=1,amountGhosts do
- CreateGhost()
- end
- local currentframe = 0
- local frmR
- frmR = game:GetService("RunService").RenderStepped:connect(function()
- currentframe = currentframe + 1
- if currentframe < 1*60 then
- p1.CFrame = char:WaitForChild("Torso").CFrame
- p2.CFrame = char:WaitForChild("Torso").CFrame
- p3.CFrame = char:WaitForChild("Torso").CFrame * CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
- p4.CFrame = char:WaitForChild("Torso").CFrame * CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
- m1.Scale = m1.Scale + Vector3.new(0.25,0.25,0.25)
- m2.Scale = m2.Scale + Vector3.new(0.25,0.25,0.25)
- m3.Scale = m3.Scale + Vector3.new(0.25,0.25,0.25)
- m4.Scale = m4.Scale + Vector3.new(0.25,0.25,0.25)
- p1.Transparency = p1.Transparency + (1/(1*60))
- p2.Transparency = p2.Transparency + (1/(1*60))
- p3.Transparency = p3.Transparency + (1/(1*60))
- p4.Transparency = p4.Transparency + (1/(1*60))
- else
- p1:Destroy()
- p2:Destroy()
- p3:Destroy()
- p4:Destroy()
- frmR:disconnect()
- end
- end)
- end
- end
- end)
- end)
- local frm = 0
- local toRemove = {}
- game:GetService("RunService").RenderStepped:connect(function()
- frm = frm + 1
- if char.Parent == game:GetService("Workspace").CurrentCamera then
- e1.CFrame = char.Head.CFrame * CFrame.new(0.15,0.1,-0.55)
- e2.CFrame = char.Head.CFrame * CFrame.new(-0.15,0.1,-0.55)
- local delay = 0.9
- for i,v in pairs(ghosts) do
- for _,b in pairs(v:GetChildren()) do
- if b:IsA("Part") or b:IsA("WedgePart") or b:IsA("TrussPart") or b:IsA("UnionOperation") then
- b.CFrame = b.CFrame:lerp(b:FindFirstChild("Target").Value.CFrame,delay)
- end
- end
- delay = delay - (0.5/(#ghosts+1))
- end
- --[[if math.floor(frm/8) == frm/8 then
- local isub = 0
- for i,v in pairs(ghosts) do
- if #v:GetChildren() < 6 then
- v:Destroy()
- table.remove(ghosts,i - isub)
- isub = isub + 1
- CreateGhost()
- end
- end
- end]]
- end
- --Animation states
- local ray = Ray.new(char.HumanoidRootPart.CFrame.p, Vector3.new(0,-3,0).unit*4)
- local part,pos,normal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(ray,ghosts,false,true)
- if state ~= "busy" then
- if char.HumanoidRootPart.Velocity.Magnitude <= 0.5 then
- state = "idle"
- elseif char.HumanoidRootPart.Velocity.Magnitude > 0.5 then
- state = "running"
- --[[elseif char.HumanoidRootPart.Velocity.Y < 0.1 and not part then
- state = "falling"
- elseif char.HumanoidRootPart.Velocity.Y >= 0.1 and not part then
- state = "jumping"]]
- end
- char.Humanoid.WalkSpeed = 50
- char.Humanoid.JumpPower = 70
- end
- --Actual animations
- if state == "idle" then
- char.HumanoidRootPart.RootJoint.C0 = char.HumanoidRootPart.RootJoint.C0:lerp(CFrame.new(0,1 + (math.cos(tick())/5),0) * CFrame.Angles(math.rad(80 + math.cos(tick())*4),math.rad(180),math.rad(0)),0.06)
- char.Torso["Right Hip"].C0 = char.Torso["Right Hip"].C0:lerp(CFrame.new(0.5,-0.1 + (math.cos((tick())*2)/10),-0.2) * CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)),0.06)
- char.Torso["Left Hip"].C0 = char.Torso["Left Hip"].C0:lerp(CFrame.new(-0.5,-0.5 + (math.cos((tick()-0.5)*2)/6),0.3) * CFrame.Angles(math.rad(-10),math.rad(0),math.rad(0)),0.06)
- char.Torso["Right Shoulder"].C0 = char.Torso["Right Shoulder"].C0:lerp(CFrame.new(1.5,0.43 + (math.cos((tick()-0.5)*1.5)/30),-0.6) * CFrame.Angles(math.rad(math.cos((tick())*2)*10),math.rad(0),math.rad(math.cos(tick()/3)*3)),0.06)
- char.Torso["Left Shoulder"].C0 = char.Torso["Left Shoulder"].C0:lerp(CFrame.new(-1.5,0.3 + (math.cos((tick()-0.5)*1.5)/30),-0.6) * CFrame.Angles(math.rad(-15 + math.cos((tick()))*7),math.rad(0),math.rad(math.cos(tick()/2)*4)),0.06)
- char.Torso.Neck.C0 = char.Torso.Neck.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(math.rad(90 + math.cos(tick()*1.5)*6),math.rad(180),math.rad(0)),0.06)
- elseif state == "running" then
- char.HumanoidRootPart.RootJoint.C0 = char.HumanoidRootPart.RootJoint.C0:lerp(CFrame.new(0,1 + (math.cos(tick())/5),0) * CFrame.Angles(math.rad(65 + math.cos(tick())*4),math.rad(180),math.rad(-char.HumanoidRootPart.RotVelocity.Y*10)),0.06)
- char.Torso["Right Hip"].C0 = char.Torso["Right Hip"].C0:lerp(CFrame.new(0.5,-0.1 + (math.cos((tick())*2)/10),-0.2) * CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)),0.06)
- char.Torso["Left Hip"].C0 = char.Torso["Left Hip"].C0:lerp(CFrame.new(-0.5,-0.5 + (math.cos((tick()-0.5)*2)/6),0.3) * CFrame.Angles(math.rad(-10),math.rad(0),math.rad(0)),0.06)
- char.Torso["Right Shoulder"].C0 = char.Torso["Right Shoulder"].C0:lerp(CFrame.new(1.5,0.70 + (math.cos((tick()-0.5)*1.5)/30),-0.4) * CFrame.Angles(math.rad(50 + math.cos((tick())*2)*10),math.rad(0),math.rad(math.cos(tick()/3)*3)),0.06)
- char.Torso["Left Shoulder"].C0 = char.Torso["Left Shoulder"].C0:lerp(CFrame.new(-1.5,0.3 + (math.cos((tick()-0.5)*1.5)/30),-0.4) * CFrame.Angles(math.rad(-35 + math.cos((tick()))*7),math.rad(0),math.rad(math.cos(tick()/2)*4)),0.06)
- char.Torso.Neck.C0 = char.Torso.Neck.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(math.rad(90 + math.cos(tick()*1.5)*6),math.rad(180),math.rad(0)),0.06)
- end
- end)
- char.Humanoid.Died:connect(function()
- toggle = false
- ClearGhosts()
- char.Parent = game.Workspace
- char.Parent = game:GetService("Workspace")
- char:FindFirstChild("ForceField"):Destroy()
- char:FindFirstChild("Head").Transparency = 0
- char:FindFirstChild("Torso").Transparency = 0
- char:FindFirstChild("Right Arm").Transparency = 0
- char:FindFirstChild("Left Arm").Transparency = 0
- char:FindFirstChild("Right Leg").Transparency = 0
- char:FindFirstChild("Left Leg").Transparency = 0
- for i,v in pairs(char:GetChildren()) do
- if v:IsA("Accessory") then
- v:FindFirstChild("Handle").Transparency = 0
- end
- end
- for i,v in pairs(game:GetService("Workspace").CurrentCamera:GetChildren()) do v:Destroy() end
- plr:LoadCharacter()
- end)
- local msgidGlob = 0
- local state = true
- local font = "Arcade"
- local tcol = Color3.fromRGB(255,217,0)
- local tscol = Color3.fromRGB(0,0,0)
- local fsiz = 28
- local tr = true
- local tsr = false
- local fade = 2
- local p = Instance.new("Part",game.Workspace)
- p.Size = Vector3.new(0.2,0.2,0.2)
- p.Transparency = 1
- p.Anchored = true
- p.CanCollide = false
- p.Name = "Msg"
- p.CFrame = plr.Character:WaitForChild("Head").CFrame + Vector3.new(0,2.25,0)
- local r = 255
- local b = 0
- local g = 0
- plr.Chatted:connect(function(c)
- msgidGlob = msgidGlob + 1
- local curMsgId = msgidGlob
- if string.lower(c) == "!disable" then
- state = false
- elseif string.lower(c) == "!enable" then
- state = true
- elseif string.lower(string.sub(c,1,6)) == "!font " then
- local old = font
- font = string.sub(c,7,#c) or old
- elseif string.lower(string.sub(c,1,8)) == "!tcolor " then
- if string.lower(string.sub(c,9,#c)) == "rainbow" then
- tr = true
- else
- tr = false
- local old = tcol
- tcol = Color3.fromRGB(string.sub(c,9,11),string.sub(c,13,15),string.sub(c,17,19)) or old
- end
- elseif string.lower(string.sub(c,1,9)) == "!tscolor " then
- if string.sub(c,10,#c) == "rainbow" then
- tsr = true
- else
- tsr = false
- local old = tscol
- tscol = Color3.fromRGB(string.sub(c,10,12),string.sub(c,14,16),string.sub(c,18,20)) or old
- end
- elseif string.lower(string.sub(c,1,6)) == "!size " then
- local old = fsiz
- fsiz = string.sub(c,7,#c) or old
- elseif string.lower(string.sub(c,1,6)) == "!fade " then
- local old = fade
- fade = string.sub(c,7,#c) or old
- end
- if plr.Character and state == true then
- if plr.Character:FindFirstChild("Head") then
- for i,v in pairs(p:GetChildren()) do
- if v:IsA("BillboardGui") and v.Name == "J2CMSG" then
- v:Destroy()
- end
- end
- local bbgui = Instance.new("BillboardGui",p)
- bbgui.Name = "J2CMSG"
- bbgui.AlwaysOnTop = true
- bbgui.ExtentsOffsetWorldSpace = Vector3.new(0,4.5,0)
- bbgui.Size = UDim2.new(0.2,0,0.14,0)
- local tl = Instance.new("TextLabel",bbgui)
- tl.BackgroundTransparency = 1
- tl.BorderSizePixel = 0
- tl.Size = UDim2.new(1,0,10,0)
- tl.Position = UDim2.new(0,0,-5,0)
- tl.Font = font or "SciFi"
- tl.FontSize = "Size"..fsiz or "Size36"
- tl.TextColor3 = tcol
- tl.TextScaled = false
- tl.TextWrapped = false
- tl.TextStrokeColor3 = tscol
- tl.TextStrokeTransparency = 0
- game:GetService("RunService").RenderStepped:connect(function()
- if tr then
- if tl.Parent ~= nil then
- tl.TextColor3 = Color3.fromRGB(r,g,b)
- end
- end
- end)
- for i=1,#c do
- if msgidGlob == curMsgId then
- tl.Text = string.sub(c,1,i)
- if string.sub(c,i,i) ~= " " then
- local s = Instance.new("Sound",p)
- s.SoundId = "rbxassetid://418252437"
- s.Volume = 1
- s.Pitch = 1
- s:Play()
- game.Debris:AddItem(s,2)
- end
- wait()
- end
- end
- wait(fade)
- if msgidGlob == curMsgId then
- for i=1,10 do
- if msgidGlob == curMsgId then
- tl.TextTransparency = tl.TextTransparency + 0.1
- tl.TextStrokeTransparency = tl.TextStrokeTransparency + 0.1
- tl.Position = tl.Position + UDim2.new(0,0,0,-3)
- wait()
- end
- end
- if msgidGlob == curMsgId then
- bbgui:Destroy()
- end
- end
- end
- end
- end)
- coroutine.resume(coroutine.create(function()
- while wait() do
- for i=0,255,10 do g = i wait() end
- for i=255,0,-10 do r = i wait() end
- for i=0,255,10 do b = i wait() end
- for i=255,0,-10 do g = i wait() end
- for i=0,255,10 do r = i wait() end
- for i=255,0,-10 do b = i wait() end
- end
- end))
- game:GetService("RunService").RenderStepped:connect(function()
- if p.Parent ~= nil then
- p.CFrame = p.CFrame:lerp(plr.Character:WaitForChild("Head").CFrame + Vector3.new(0,2.25,0),0.16)
- else
- p = Instance.new("Part",game.Workspace)
- p.Size = Vector3.new(0.2,0.2,0.2)
- p.Transparency = 1
- p.Anchored = true
- p.CanCollide = false
- p.Name = "Msg"
- p.CFrame = plr.Character:WaitForChild("Head").CFrame + Vector3.new(0,2.25,0)
- end
- end)
- print("Ghost loaded! Time elapsed: "..tick() - time)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement