local plr = owner
local char = plr.Character
local torso = char:FindFirstChild("Torso") or char:FindFirstChild("HumanoidRootPart")
local hum = char.Humanoid
spawn(function()
char:FindFirstChild("Health"):Destroy()
end)
local maxhealth = 1
local OldHealth = maxhealth
local dir = 1
local dist = 8
local died = false
hum.MaxHealth = maxhealth
hum.Health = maxhealth
local effects = Instance.new("Folder")
effects.Parent = script
local tween = game:GetService("TweenService")
local theme = Instance.new("Sound")
theme.SoundId = "rbxassetid://0"
theme.Looped = true
theme.Volume = 1
theme.Parent = torso
theme:Play()
local sfx = Instance.new("Sound")
sfx.Volume = 1
sfx.SoundId = "rbxassetid://446961725"
sfx.Parent = torso
function get_vec(part)
local v = {}
v.Up = part.CFrame.UpVector
v.Down = v.Up * -1
v.Right= part.CFrame.RightVector
v.Left = v.Right * -1
v.Front=part.CFrame.LookVector
v.Back = v.Front * -1
return v
end
function cmiss(p)
local Part0 = Instance.new("Part")
local BillboardGui1 = Instance.new("BillboardGui")
local ImageLabel2 = Instance.new("ImageLabel")
local TextLabel3 = Instance.new("TextLabel")
Part0.Parent = script
Part0.Position = p
Part0.Transparency = 1
Part0.Size = Vector3.new()
Part0.Anchored = true
Part0.BottomSurface = Enum.SurfaceType.Smooth
Part0.CanCollide = false
Part0.Locked = true
Part0.TopSurface = Enum.SurfaceType.Smooth
BillboardGui1.Parent = Part0
BillboardGui1.Size = UDim2.new(5, 0, 2, 0)
BillboardGui1.Active = true
BillboardGui1.ClipsDescendants = true
BillboardGui1.ResetOnSpawn = false
BillboardGui1.Adornee = Part0
BillboardGui1.AlwaysOnTop = true
ImageLabel2.Name = "Frame"
ImageLabel2.Parent = BillboardGui1
ImageLabel2.Size = UDim2.new(1, 0, 1, 0)
ImageLabel2.BackgroundColor = BrickColor.new("Institutional white")
ImageLabel2.BackgroundColor3 = Color3.new(1, 1, 1)
ImageLabel2.BackgroundTransparency = 1
ImageLabel2.Image = "rbxassetid://3570695787"
ImageLabel2.ImageColor3 = Color3.new(1, 0.172549, 0.545098)
ImageLabel2.ScaleType = Enum.ScaleType.Slice
ImageLabel2.SliceCenter = Rect.new(100, 100, 100, 100)
TextLabel3.Parent = ImageLabel2
TextLabel3.Size = UDim2.new(1, 0, 1, 0)
TextLabel3.BackgroundColor = BrickColor.new("Institutional white")
TextLabel3.BackgroundColor3 = Color3.new(1, 1, 1)
TextLabel3.BackgroundTransparency = 1
TextLabel3.Font = Enum.Font.Cartoon
TextLabel3.FontSize = Enum.FontSize.Size14
TextLabel3.Text = "LOL MISS"
TextLabel3.TextColor = BrickColor.new("Really black")
TextLabel3.TextColor3 = Color3.new(0, 0, 0)
TextLabel3.TextScaled = true
TextLabel3.TextSize = 14
TextLabel3.TextWrap = true
TextLabel3.TextWrapped = true
tween:Create(ImageLabel2,TweenInfo.new(1),{ImageTransparency = 1}):Play()
tween:Create(TextLabel3,TweenInfo.new(1),{TextTransparency = 1}):Play()
game:GetService("Debris"):AddItem(BillboardGui1,1.1)
end
function ghost()
pcall(function()
cmiss(torso.Position)
for i,v in pairs(char:GetDescendants()) do
if v:IsA("BasePart") or v:IsA("UnionOperation") then
local c = v:Clone()
c.Transparency = 0.5
c.Material = Enum.Material.SmoothPlastic
c.Color = Color3.new(1,1,1)
c.Anchored = true
c.CanCollide = false
c.Locked = true
c.Massless = true
for i,v in pairs(c:GetChildren()) do
if not v:IsA("SpecialMesh") and not v:IsA("BlockMesh") and not v:IsA("CharacterMesh") then
v:Destroy()
end
end
c.Parent = effects
tween:Create(c,TweenInfo.new(1),{Transparency = 1}):Play()
game:GetService("Debris"):AddItem(c,1.1)
end
end
end)
end
function dodge(hit)
spawn(function()
local orgnpos = torso.CFrame
local oldpos = (orgnpos*CFrame.new(0.1,0,0)).p
local newpos = orgnpos.p
local ext = Vector3.new()
ghost()
if dir == 1 then
ext = Vector3.new(dist,0,dist)
elseif dir == 2 then
ext = Vector3.new(-dist,0,0)
elseif dir == 3 then
ext = Vector3.new(0,0,-dist)
elseif dir == 4 then
ext = Vector3.new(-dist,0,-dist)
elseif dir == 5 then
ext = Vector3.new(dist,0,-dist)
end
torso.CFrame = CFrame.new(oldpos,newpos)*CFrame.new(ext)
dir = dir + 1
if dir > 5 then
dir = 1
end
sfx:Play()
hum.MaxHealth = maxhealth
hum.Health = maxhealth
end)
end
hum.HealthChanged:Connect(function()
if not died then else return end
if OldHealth > hum.Health then
dodge()
end
OldHealth = hum.Health
end)
hum.Died:Connect(function()
died = true
end)