Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- banditpics = {160133287,160133243,117135218,117135561,117136102}
- banditnames= {"Marauder","Raider","Brigand","Highwayman","Bandit"}
- zombiepics ={160133348,160133314,117135313,117135692,117136250}
- zombienames= {"Nomad","Vagabond","Wanderer","Vagrant","Survivor"}
- content = game:GetService("ContentProvider")
- game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.PlayerList, false)
- LS = Instance.new("Script",script.Parent)
- C = Instance.new("StringValue",LS)
- C.Name = "Content"
- C.Value = "function enter() script.Parent.Profile.Visible=true end function leave() script.Parent.Profile.Visible=false end script.Parent.MouseEnter:connect(enter) script.Parent.MouseLeave:connect(leave)"
- LS.Disabled = true
- LSS = LS.Content.Value
- loadstring(LSS)()
- if script.Parent.ClassName~="ScreenGui" then
- local ScreenGui=Instance.new("ScreenGui",script.Parent)
- wait()
- script.Parent=ScreenGui
- wait()
- end
- if script.Parent.Parent.Parent:FindFirstChild("DatabaseForPlayerlist")==nil then
- local ChickenNoodleSoup=Instance.new("StringValue",script.Parent.Parent.Parent)
- ChickenNoodleSoup.Name="DatabaseForPlayerlist"
- end
- function CheckDatabaseForPlayerlist(Player)
- local Childran=(script.Parent.Parent.Parent.DatabaseForPlayerlist:GetChildren())
- --print(#Childran)
- if #Childran==0 then
- return false
- else
- for x=1,#Childran do
- if string.find(tostring(Childran[x].Name),tostring(Player))~=nil then
- return true
- end
- end
- return false
- end
- end
- function WaitForStats(ThatDudsName)
- local Blehs=script.Parent.Parent.Parent.DatabaseForPlayerlist:FindFirstChild(ThatDudsName)
- local Children=Blehs:GetChildren()
- if #Children==0 then
- return true
- else
- return false
- end
- end
- function StartUp()
- for i,Player in pairs(script.Parent.Parent.Parent.Parent:GetChildren()) do --List all players in server
- local NameLength=(string.len(tostring(Player))+1)
- if CheckDatabaseForPlayerlist(Player)==false then
- print('creating new profile for '..Player.Name)
- game:GetService("ContentProvider"):Preload("http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&Format=Png&username="..tostring(Player))
- repeat wait() until content.RequestQueueSize == 0
- local BadgeProfile=Instance.new("StringValue",script.Parent.Parent.Parent.DatabaseForPlayerlist)
- BadgeProfile.Name=tostring(Player)
- end --True means the player already has a profile
- if Player.Name~=script.Parent.Parent.Parent.Name then
- for poaspdowa,asdwpaosodw in pairs(Player:GetChildren()) do
- asdwpaosodw:Destroy()
- end
- end
- local Playa=Instance.new("TextLabel",script.Parent)
- script.Controls:Clone().Parent=Playa
- Playa.Visible=false
- Playa.Archivable=true
- if game.Players.NumPlayers>4 then
- Playa.BackgroundColor3=Color3.new(0,0,0)
- else
- Playa.BackgroundColor3=Color3.new(61/255,61/255,61/255)
- end
- Playa.BackgroundTransparency=.5
- Playa.BorderSizePixel=0
- Playa.Name=tostring(Player)
- Playa.Position=UDim2.new(1, -140, 0, (1+(16*NumPlayers)))
- Playa.Size=UDim2.new(0, 140, 0, 16)
- Playa.ZIndex=1
- Playa.Font="ArialBold"
- Playa.FontSize="Size14"
- Playa.Text="[P] "..tostring(Player).." "
- Playa.TextColor3=Color3.new(1,1,1)
- Playa.TextStrokeColor3=Color3.new(0,0,0)
- Playa.TextStrokeTransparency=0
- Playa.TextXAlignment="Center"
- NumPlayers=NumPlayers+1
- if tostring(Player) == "SuperiorSpringy" then
- Playa.Text = "[O] "..tostring(Player).." "
- Playa.TextColor3 = Color3.new(255/255,0,0)
- end
- local PF=Instance.new("Frame",Playa) --Creates a ProfileFrame
- PF.Position=UDim2.new(0, -200, 0, 0)
- PF.Size=UDim2.new(0,200,0,200)
- PF.ZIndex=2
- PF.Style="DropShadow"
- PF.Name="Profile"
- PF.Visible=false
- local Title=Instance.new("TextLabel",PF)
- Title.BackgroundTransparency=1
- Title.Position=UDim2.new(0,0,0,7)
- Title.Size=UDim2.new(1,0,0,0)
- Title.ZIndex=10
- Title.TextColor3=Color3.new(1,1,1)
- Title.TextStrokeColor3=Color3.new(0,0,0)
- Title.TextStrokeTransparency=0
- Title.TextXAlignment="Left"
- Title.Text=tostring(Player)
- Title.FontSize="Size24"
- Title.Font="SourceSans"
- if Player.userId<0 then
- ---------------------------------------------------------------
- local Person=Instance.new("ImageLabel",PF)
- Person.BackgroundTransparency=1
- Person.Image="rbxassetid://65732094"
- Person.Position=UDim2.new(0,-20,0,15)
- Person.Size=UDim2.new(0,100,0,100)
- Person.ZIndex=9
- Person.Name="Person"
- local BT=Instance.new("TextLabel",PF) --bandit text
- BT.BackgroundTransparency=1
- BT.Position=UDim2.new(0.5,0,1,-20)
- BT.Size=UDim2.new(0,0,0,0)
- BT.ZIndex=10
- BT.Font="ArialBold"
- BT.FontSize="Size18"
- BT.TextColor3=Color3.new(1,1,1)
- BT.TextStrokeColor3=Color3.new(0,0,0)
- BT.TextStrokeTransparency=0
- BT.Name="WahtM8"
- BT.Text="No Profile Available"
- else
- --------------------------------------------------------------
- local Person=Instance.new("ImageLabel",PF)
- Person.BackgroundTransparency=1
- Person.Image="http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&Format=Png&username="..tostring(Player)
- Person.Position=UDim2.new(0,-20,0,15)
- Person.Size=UDim2.new(0,100,0,100)
- Person.ZIndex=9
- Person.Name="Person"
- local BCFrame=Instance.new("Frame",Person)
- BCFrame.Position=UDim2.new(0,17,1,-25)
- BCFrame.Size=UDim2.new(0,66,0,19)
- BCFrame.BackgroundTransparency=1
- BCFrame.ZIndex=9
- BCFrame.ClipsDescendants=true
- local BC=Instance.new("ImageLabel",BCFrame)
- BC.BackgroundTransparency=1
- BC.Image="http://www.roblox.com/Thumbs/BCOverlay.ashx?username="..tostring(Player)
- BC.Name="BC"
- BC.Position=UDim2.new(0,-30,0,0)
- BC.Size=UDim2.new(0,66,0,19)
- BC.ZIndex=10
- local AT=Instance.new("TextLabel",Person) --Age Text
- AT.BackgroundTransparency=1
- AT.Position=UDim2.new(0,20,1,2)
- AT.Size=UDim2.new(0,0,0,0)
- AT.ZIndex=8
- AT.Font="SourceSans"
- AT.FontSize="Size18"
- AT.TextColor3=Color3.new(1,1,1)
- AT.TextStrokeColor3=Color3.new(0,0,0)
- AT.TextStrokeTransparency=0
- AT.TextXAlignment="Left"
- AT.TextYAlignment="Top"
- local years = math.floor(Player.AccountAge / 365.2425)
- local days = math.floor(Player.AccountAge % 365.2425)
- if tonumber(years)<1 then
- AT.Text="Account Age: "..days.." days"
- else
- AT.Text="Age: "..years.." years, "..days.." days"
- end
- local IDT=Instance.new("TextLabel",Person) --ID Text
- IDT.TextXAlignment="Left"
- IDT.TextYAlignment="Top"
- IDT.Size=UDim2.new(0,0,0,0)
- IDT.Position=UDim2.new(0,20,1,20)
- IDT.ZIndex=8
- IDT.Font="SourceSans"
- IDT.FontSize="Size18"
- IDT.TextColor3=Color3.new(1,1,1)
- IDT.TextStrokeColor3=Color3.new(0,0,0)
- IDT.TextStrokeTransparency=0
- IDT.Text="User ID: "..tostring(Player.userId)
- local bandit=Instance.new("ImageLabel",PF)
- bandit.Size=UDim2.new(0,125,0,125)
- bandit.Position=UDim2.new(1,-122,0,-3)
- bandit.ZIndex=9
- bandit.ImageTransparency=.2
- bandit.BackgroundTransparency=1
- bandit.Name="bandit"
- bandit.Image="rbxassetid://202135008"
- local zomkiller=Instance.new("ImageLabel",PF)
- zomkiller.Size=UDim2.new(0,75,0,75)
- zomkiller.Position=UDim2.new(0,0,1,-75)
- zomkiller.ZIndex=9
- zomkiller.ImageTransparency=.8
- zomkiller.BackgroundTransparency=1
- zomkiller.Name="zomkiller"
- zomkiller.Image="rbxassetid://202135008"
- local BT=Instance.new("TextLabel",PF) --bandit text
- BT.BackgroundTransparency=1
- BT.Position=UDim2.new(0,-3,1,-20)
- BT.Size=UDim2.new(0,95,0,20)
- BT.ZIndex=10
- BT.Font="ArialBold"
- BT.FontSize="Size18"
- BT.TextColor3=Color3.new(1,1,1)
- BT.TextStrokeColor3=Color3.new(0,0,0)
- BT.TextStrokeTransparency=0
- BT.Name="BanditText"
- BT.Text=""
- local ZT=Instance.new("TextLabel",PF) --zomkiller text
- ZT.BackgroundTransparency=1
- ZT.Position=UDim2.new(0,92,1,-20)
- ZT.Size=UDim2.new(0,95,0,20)
- ZT.ZIndex=10
- ZT.Font="ArialBold"
- ZT.FontSize="Size18"
- ZT.TextColor3=Color3.new(1,1,1)
- ZT.TextStrokeColor3=Color3.new(0,0,0)
- ZT.TextStrokeTransparency=0
- ZT.Name="ZomText"
- ZT.Text=""
- if Player.Neutral==false then
- Playa.BackgroundColor=Player.TeamColor
- else
- Playa.BackgroundColor3=Color3.new(61/255,61/255,61/255)
- end
- local Statistics=script.Parent.Parent.Parent.DatabaseForPlayerlist:FindFirstChild(Player.Name)
- if WaitForStats(Player.Name)==true then
- print('go')
- local asdp=script.Parent.Parent.Parent.DatabaseForPlayerlist:FindFirstChild(tostring(Player))
- local ChickenLittle=Instance.new("StringValue",asdp)
- local BadgeStats = game.Workspace.CheckBadges:InvokeServer(tostring(Player.Name))
- print("The BadgeStats are: "..BadgeStats)
- ChickenLittle.Name=tostring(BadgeStats)
- end
- local Counter=0
- while WaitForStats(Player.Name)==true do
- Counter=Counter+1 wait(.2)
- if Counter==25 then
- break
- end
- end --true means there are no stats yet
- local Stats=Statistics:GetChildren()
- if string.find(Stats[1].Name,"B")==nil then
- print('Getting badges again')
- Stats[1]:Destroy()
- local asdp=script.Parent.Parent.Parent.DatabaseForPlayerlist:FindFirstChild(tostring(Player))
- local ChickenLittle=Instance.new("StringValue",asdp)
- local BadgeStats = game.Workspace.CheckBadges:InvokeServer(tostring(Player.Name))
- print("The BadgeStats are: "..BadgeStats)
- ChickenLittle.Name=tostring(BadgeStats)
- wait(3)
- script:Clone().Parent=script.Parent
- wait()
- script:Destroy()
- end
- local BValue=2
- local ZValue=4
- print(string.sub(tostring(Stats[1].Name),BValue,BValue))
- print(string.sub(tostring(Stats[1].Name),ZValue,ZValue))
- local BanditStats=tonumber(string.sub(tostring(Stats[1].Name),BValue,BValue))
- local ZombieStats=tonumber(string.sub(tostring(Stats[1].Name),ZValue,ZValue))
- if BanditStats==0 then
- BT.Text=""
- bandit.Image=""
- else
- BT.Text=banditnames[BanditStats]
- bandit.Image="rbxassetid://"..banditpics[BanditStats]
- end
- if ZombieStats==0 then
- ZT.Text=""
- zomkiller.Image=""
- else
- ZT.Text=zombienames[ZombieStats]
- zomkiller.Image="rbxassetid://"..zombiepics[ZombieStats]
- end
- end
- end
- end
- function PlayersChanged()
- NumPlayers=0
- for i,v in pairs(script.Parent:GetChildren()) do
- if v.ClassName=="TextLabel" then
- --print('marked')
- v.Archivable=false
- end
- end
- wait(.1)
- StartUp()
- for i,v in pairs(script.Parent:GetChildren()) do
- if v.ClassName=="TextLabel" and v.Archivable==false then
- --print('cleared')
- v:Destroy()
- elseif v.ClassName=="TextLabel" and v.Archivable==true then
- v.Visible=true
- end
- end
- end
- PlayersChanged()
- script.Parent.Parent.Parent.Parent.ChildAdded:connect(PlayersChanged)
- script.Parent.Parent.Parent.Parent.ChildRemoved:connect(PlayersChanged)
Add Comment
Please, Sign In to add comment