Advertisement
OskarMaDzika

Untitled

Aug 11th, 2020
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.91 KB | None | 0 0
  1. ALLYCOLOR={0,255,255}ENEMYCOLOR={255,0,0}TRANSPARENCY=0.5;HEALTHBAR_ACTIVATED=true;function createFlex()players=game:GetService("Players")faces={"Front","Back","Bottom","Left","Right","Top"}currentPlayer=nil;lplayer=players.LocalPlayer;players.PlayerAdded:Connect(function(k)currentPlayer=k;k.CharacterAdded:Connect(function(l)createESP(l)end)end)function checkPart(m)if(m:IsA("Part")or m:IsA("MeshPart"))and m.Name~="HumanoidRootPart"then return true end end;function actualESP(m)for n=0,5 do surface=Instance.new("SurfaceGui",m)surface.Face=Enum.NormalId[faces[n+1]]surface.AlwaysOnTop=true;frame=Instance.new("Frame",surface)frame.Size=UDim2.new(1,0,1,0)frame.BorderSizePixel=0;frame.BackgroundTransparency=TRANSPARENCY;if currentPlayer.Team==players.LocalPlayer.Team then frame.BackgroundColor3=Color3.new(ALLYCOLOR[1],ALLYCOLOR[2],ALLYCOLOR[3])else frame.BackgroundColor3=Color3.new(ENEMYCOLOR[1],ENEMYCOLOR[2],ENEMYCOLOR[3])end end end;function createHealthbar(o)board=Instance.new("BillboardGui",o)board.Name="total"board.Size=UDim2.new(1,0,1,0)board.StudsOffset=Vector3.new(3,1,0)board.AlwaysOnTop=true;bar=Instance.new("Frame",board)bar.BackgroundColor3=Color3.new(255,0,0)bar.BorderSizePixel=0;bar.Size=UDim2.new(0.2,0,4,0)bar.Name="total2"health=Instance.new("Frame",bar)health.BackgroundColor3=Color3.new(0,255,0)health.BorderSizePixel=0;health.Size=UDim2.new(1,0,o.Parent.Humanoid.Health/100,0)o.Parent.Humanoid.Changed:Connect(function(p)o.total.total2.Frame.Size=UDim2.new(1,0,o.Parent.Humanoid.Health/100,0)end)end;function createESP(q)bugfix=q:WaitForChild("Head")for n,r in pairs(q:GetChildren())do if checkPart(r)then actualESP(r)end end;if HEALTHBAR_ACTIVATED then createHealthbar(q:WaitForChild("HumanoidRootPart"))end end;for n,s in pairs(players:GetChildren())do if s~=players.LocalPlayer then currentPlayer=s;createESP(s.Character)s.CharacterAdded:Connect(function(l)createESP(l)end)end end end;createFlex()
  2. -- WALLHACK
  3. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement