Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wait(2)
- local plrs = game.Players:GetChildren()
- function espstart()
- for i=1,#plrs do
- local plr = plrs[i]
- local player = plr.Name
- local chr = game.Workspace[player]
- local bodyparts = {
- [1]=chr.Torso,
- [2]=chr.Head,
- [3]=chr["Right Arm"],
- [4]=chr["Left Arm"],
- [5]=chr["Right Leg"],
- [6]=chr["Left Leg"]
- }
- for i,v in pairs(bodyparts) do
- local esp = Instance.new("SurfaceGui", v)
- esp.AlwaysOnTop = true
- esp.Active = true
- local espb = Instance.new("SurfaceGui", v)
- espb.AlwaysOnTop = true
- espb.Active = true
- espb.Face = "Back"
- local espl = Instance.new("SurfaceGui", v)
- espl.AlwaysOnTop = true
- espl.Active = true
- espl.Face = "Left"
- local espr = Instance.new("SurfaceGui", v)
- espr.AlwaysOnTop = true
- espr.Active = true
- espr.Face = "Right"
- local espt = Instance.new("SurfaceGui", v)
- espt.AlwaysOnTop = true
- espt.Active = true
- espt.Face = "Top"
- local espbo = Instance.new("SurfaceGui", v)
- espbo.AlwaysOnTop = true
- espbo.Active = true
- espbo.Face = "Bottom"
- local Aesp = Instance.new("Frame", esp)
- Aesp.Active = true
- Aesp.BackgroundColor3 = Color3.new(0,255,128)
- Aesp.Size = UDim2.new(1,0,1,0)
- local Aespb = Instance.new("Frame", espb)
- Aespb.Active = true
- Aespb.BackgroundColor3 = Color3.new(0,255,128)
- Aespb.Size = UDim2.new(1,0,1,0)
- local Aespl = Instance.new("Frame", espl)
- Aespl.Active = true
- Aespl.BackgroundColor3 = Color3.new(0,255,128)
- Aespl.Size = UDim2.new(1,0,1,0)
- local Aespr = Instance.new("Frame", espr)
- Aespr.Active = true
- Aespr.BackgroundColor3 = Color3.new(0,255,128)
- Aespr.Size = UDim2.new(1,0,1,0)
- local Aespt = Instance.new("Frame", espt)
- Aespt.Active = true
- Aespt.BackgroundColor3 = Color3.new(0,255,128)
- Aespt.Size = UDim2.new(1,0,1,0)
- local Aespbo = Instance.new("Frame", espbo)
- Aespbo.Active = true
- Aespbo.BackgroundColor3 = Color3.new(0,255,128)
- Aespbo.Size = UDim2.new(1,0,1,0)
- Aesp.BorderSizePixel = 0
- Aespb.BorderSizePixel = 0
- Aespbo.BorderSizePixel = 0
- Aespl.BorderSizePixel = 0
- Aespr.BorderSizePixel = 0
- Aespt.BorderSizePixel = 0
- end
- end
- end
- function join(plr)
- print(plr.Name .. " has Joined!")
- game.Workspace:WaitForChild(plr.Name)
- local player = plr.Name
- local chr = game.Workspace[player]
- local bodyparts = {
- [1]=chr.Torso,
- [2]=chr.Head,
- [3]=chr["Right Arm"],
- [4]=chr["Left Arm"],
- [5]=chr["Right Leg"],
- [6]=chr["Left Leg"]
- }
- for i,v in pairs(bodyparts) do
- local esp = Instance.new("SurfaceGui", v)
- esp.AlwaysOnTop = true
- esp.Active = true
- esp.Name = "Front"
- local espb = Instance.new("SurfaceGui", v)
- espb.AlwaysOnTop = true
- espb.Active = true
- espb.Face = "Back"
- espb.Name = "Back"
- local espl = Instance.new("SurfaceGui", v)
- espl.AlwaysOnTop = true
- espl.Active = true
- espl.Face = "Left"
- espl.Name = "Left"
- local espr = Instance.new("SurfaceGui", v)
- espr.AlwaysOnTop = true
- espr.Active = true
- espr.Face = "Right"
- espr.Name = "Right"
- local espt = Instance.new("SurfaceGui", v)
- espt.AlwaysOnTop = true
- espt.Active = true
- espt.Face = "Top"
- espt.Name = "Top"
- local espbo = Instance.new("SurfaceGui", v)
- espbo.AlwaysOnTop = true
- espbo.Active = true
- espbo.Face = "Bottom"
- espbo.Name = "Bottom"
- local Aesp = Instance.new("Frame", esp)
- Aesp.Active = true
- Aesp.BackgroundColor3 = Color3.new(0,255,128)
- Aesp.Size = UDim2.new(1,0,1,0)
- local Aespb = Instance.new("Frame", espb)
- Aespb.Active = true
- Aespb.BackgroundColor3 = Color3.new(0,255,128)
- Aespb.Size = UDim2.new(1,0,1,0)
- local Aespl = Instance.new("Frame", espl)
- Aespl.Active = true
- Aespl.BackgroundColor3 = Color3.new(0,255,128)
- Aespl.Size = UDim2.new(1,0,1,0)
- local Aespr = Instance.new("Frame", espr)
- Aespr.Active = true
- Aespr.BackgroundColor3 = Color3.new(0,255,128)
- Aespr.Size = UDim2.new(1,0,1,0)
- local Aespt = Instance.new("Frame", espt)
- Aespt.Active = true
- Aespt.BackgroundColor3 = Color3.new(0,255,128)
- Aespt.Size = UDim2.new(1,0,1,0)
- local Aespbo = Instance.new("Frame", espbo)
- Aespbo.Active = true
- Aespbo.BackgroundColor3 = Color3.new(0,255,128)
- Aespbo.Size = UDim2.new(1,0,1,0)
- Aesp.BorderSizePixel = 0
- Aespb.BorderSizePixel = 0
- Aespbo.BorderSizePixel = 0
- Aespl.BorderSizePixel = 0
- Aespr.BorderSizePixel = 0
- Aespt.BorderSizePixel = 0
- end
- end
- espstart()
- game.Players.PlayerAdded:connect(join)
- while true do
- wait(1)
- local players = game.Players:GetChildren()
- for i =1, #players do
- name = players[i].Name
- game.Workspace:WaitForChild(name)
- local game1 = game.Workspace[name]
- game1:WaitForChild("Head")
- chr = game.Workspace[name]
- if game.Workspace[name].Head:FindFirstChild("Top", true) then
- fillinlmao = 1
- else
- local bodyparts = {
- [1]=chr.Torso,
- [2]=chr.Head,
- [3]=chr["Right Arm"],
- [4]=chr["Left Arm"],
- [5]=chr["Right Leg"],
- [6]=chr["Left Leg"]
- }
- for i,v in pairs(bodyparts) do
- local esp = Instance.new("SurfaceGui", v)
- esp.AlwaysOnTop = true
- esp.Active = true
- esp.Name = "Front"
- local espb = Instance.new("SurfaceGui", v)
- espb.AlwaysOnTop = true
- espb.Active = true
- espb.Face = "Back"
- espb.Name = "Back"
- local espl = Instance.new("SurfaceGui", v)
- espl.AlwaysOnTop = true
- espl.Active = true
- espl.Face = "Left"
- espl.Name = "Left"
- local espr = Instance.new("SurfaceGui", v)
- espr.AlwaysOnTop = true
- espr.Active = true
- espr.Face = "Right"
- espr.Name = "Right"
- local espt = Instance.new("SurfaceGui", v)
- espt.AlwaysOnTop = true
- espt.Active = true
- espt.Face = "Top"
- espt.Name = "Top"
- local espbo = Instance.new("SurfaceGui", v)
- espbo.AlwaysOnTop = true
- espbo.Active = true
- espbo.Face = "Bottom"
- espbo.Name = "Bottom"
- local Aesp = Instance.new("Frame", esp)
- Aesp.Active = true
- Aesp.BackgroundColor3 = Color3.new(0,255,128)
- Aesp.Size = UDim2.new(1,0,1,0)
- local Aespb = Instance.new("Frame", espb)
- Aespb.Active = true
- Aespb.BackgroundColor3 = Color3.new(0,255,128)
- Aespb.Size = UDim2.new(1,0,1,0)
- local Aespl = Instance.new("Frame", espl)
- Aespl.Active = true
- Aespl.BackgroundColor3 = Color3.new(0,255,128)
- Aespl.Size = UDim2.new(1,0,1,0)
- local Aespr = Instance.new("Frame", espr)
- Aespr.Active = true
- Aespr.BackgroundColor3 = Color3.new(0,255,128)
- Aespr.Size = UDim2.new(1,0,1,0)
- local Aespt = Instance.new("Frame", espt)
- Aespt.Active = true
- Aespt.BackgroundColor3 = Color3.new(0,255,128)
- Aespt.Size = UDim2.new(1,0,1,0)
- local Aespbo = Instance.new("Frame", espbo)
- Aespbo.Active = true
- Aespbo.BackgroundColor3 = Color3.new(0,255,128)
- Aespbo.Size = UDim2.new(1,0,1,0)
- Aesp.BorderSizePixel = 0
- Aespb.BorderSizePixel = 0
- Aespbo.BorderSizePixel = 0
- Aespl.BorderSizePixel = 0
- Aespr.BorderSizePixel = 0
- Aespt.BorderSizePixel = 0
- end
- end
- end
- end
Add Comment
Please, Sign In to add comment