Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ----old roblox-----------------------
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Script0 = Instance.new("Script")
- ScreenGui1 = Instance.new("ScreenGui")
- Frame2 = Instance.new("Frame")
- TextLabel3 = Instance.new("TextLabel")
- Frame4 = Instance.new("Frame")
- TextLabel5 = Instance.new("TextLabel")
- Frame6 = Instance.new("Frame")
- Frame7 = Instance.new("Frame")
- TextLabel8 = Instance.new("TextLabel")
- TextLabel9 = Instance.new("TextLabel")
- ImageLabel10 = Instance.new("ImageLabel")
- TextButton11 = Instance.new("TextButton")
- TextLabel12 = Instance.new("TextLabel")
- TextLabel13 = Instance.new("TextLabel")
- ImageLabel14 = Instance.new("ImageLabel")
- TextButton15 = Instance.new("TextButton")
- TextLabel16 = Instance.new("TextLabel")
- TextLabel17 = Instance.new("TextLabel")
- ImageLabel18 = Instance.new("ImageLabel")
- TextButton19 = Instance.new("TextButton")
- TextLabel20 = Instance.new("TextLabel")
- TextLabel21 = Instance.new("TextLabel")
- ImageLabel22 = Instance.new("ImageLabel")
- TextButton23 = Instance.new("TextButton")
- TextLabel24 = Instance.new("TextLabel")
- TextLabel25 = Instance.new("TextLabel")
- ImageLabel26 = Instance.new("ImageLabel")
- TextButton27 = Instance.new("TextButton")
- TextLabel28 = Instance.new("TextLabel")
- TextLabel29 = Instance.new("TextLabel")
- ImageLabel30 = Instance.new("ImageLabel")
- TextButton31 = Instance.new("TextButton")
- TextLabel32 = Instance.new("TextLabel")
- TextLabel33 = Instance.new("TextLabel")
- ImageLabel34 = Instance.new("ImageLabel")
- TextButton35 = Instance.new("TextButton")
- TextLabel36 = Instance.new("TextLabel")
- TextLabel37 = Instance.new("TextLabel")
- ImageLabel38 = Instance.new("ImageLabel")
- TextButton39 = Instance.new("TextButton")
- TextLabel40 = Instance.new("TextLabel")
- TextLabel41 = Instance.new("TextLabel")
- ImageLabel42 = Instance.new("ImageLabel")
- TextButton43 = Instance.new("TextButton")
- TextLabel44 = Instance.new("TextLabel")
- TextButton45 = Instance.new("TextButton")
- ImageLabel46 = Instance.new("ImageLabel")
- TextLabel47 = Instance.new("TextLabel")
- Frame48 = Instance.new("Frame")
- TextBox49 = Instance.new("TextBox")
- Frame50 = Instance.new("Frame")
- TextButton51 = Instance.new("TextButton")
- ImageLabel52 = Instance.new("ImageLabel")
- LocalScript53 = Instance.new("LocalScript")
- TextLabel54 = Instance.new("TextLabel")
- Frame55 = Instance.new("Frame")
- TextLabel56 = Instance.new("TextLabel")
- TextLabel57 = Instance.new("TextLabel")
- Frame58 = Instance.new("Frame")
- TextLabel59 = Instance.new("TextLabel")
- Frame60 = Instance.new("Frame")
- TextLabel61 = Instance.new("TextLabel")
- TextLabel62 = Instance.new("TextLabel")
- Sound63 = Instance.new("Sound")
- Part64 = Instance.new("Part")
- RemoteFunction65 = Instance.new("RemoteFunction")
- Script66 = Instance.new("Script")
- LocalScript67 = Instance.new("LocalScript")
- SpecialMesh68 = Instance.new("SpecialMesh")
- Configuration69 = Instance.new("Configuration")
- BoolValue70 = Instance.new("BoolValue")
- BoolValue71 = Instance.new("BoolValue")
- BoolValue72 = Instance.new("BoolValue")
- BoolValue73 = Instance.new("BoolValue")
- Script74 = Instance.new("Script")
- Decal75 = Instance.new("Decal")
- Script0.Name = "2008 GUIs (and More!) README"
- Script0.Parent = mas
- table.insert(cors,sandbox(Script0,function()
- --[[
- script by newbleuguy Youtube
- --]]
- script:WaitForChild("ReceiveChat").Parent = workspace
- script:WaitForChild("Retro").Parent = game:GetService("StarterGui")
- script:WaitForChild("RetroManager").Parent = game:GetService("ServerScriptService")
- end))
- ScreenGui1.Name = "Retro"
- ScreenGui1.Parent = Script0
- Frame2.Name = "PlayerList"
- Frame2.Parent = ScreenGui1
- Frame2.Transparency = 0.40000000596046
- Frame2.Size = UDim2.new(0, 168, 0, 40)
- Frame2.Position = UDim2.new(1, -178, 0, 10)
- Frame2.BackgroundColor3 = Color3.new(0.6, 0.6, 0.6)
- Frame2.BackgroundTransparency = 0.40000000596046
- Frame2.BorderColor3 = Color3.new(0.6, 0.6, 0.6)
- Frame2.BorderSizePixel = 0
- Frame2.ZIndex = 8
- Frame2.ClipsDescendants = true
- TextLabel3.Name = "_Label1"
- TextLabel3.Parent = Frame2
- TextLabel3.Transparency = 1
- TextLabel3.Size = UDim2.new(0, 100, 0, 30)
- TextLabel3.Text = "Player List"
- TextLabel3.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel3.BackgroundTransparency = 1
- TextLabel3.BorderSizePixel = 0
- TextLabel3.ZIndex = 9
- TextLabel3.FontSize = Enum.FontSize.Size12
- TextLabel3.TextColor3 = Color3.new(1, 1, 1)
- TextLabel3.TextXAlignment = Enum.TextXAlignment.Left
- Frame4.Name = "Health"
- Frame4.Parent = ScreenGui1
- Frame4.Size = UDim2.new(0, 8, 0, 86)
- Frame4.Position = UDim2.new(1, -68, 0, 200)
- Frame4.BackgroundColor3 = Color3.new(1, 0, 0)
- Frame4.BorderColor3 = Color3.new(0.6, 0.6, 0.6)
- Frame4.BorderSizePixel = 0
- Frame4.ZIndex = 9
- TextLabel5.Name = "Label"
- TextLabel5.Parent = Frame4
- TextLabel5.Transparency = 1
- TextLabel5.Size = UDim2.new(0, 8, 0, 8)
- TextLabel5.Text = "Health"
- TextLabel5.Position = UDim2.new(0, 0, 1, 8)
- TextLabel5.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel5.BackgroundTransparency = 1
- TextLabel5.BorderSizePixel = 0
- TextLabel5.ZIndex = 9
- TextLabel5.FontSize = Enum.FontSize.Size12
- TextLabel5.TextColor3 = Color3.new(0, 0, 1)
- Frame6.Name = "Score"
- Frame6.Parent = Frame4
- Frame6.Size = UDim2.new(1, 0, 1, 0)
- Frame6.BackgroundColor3 = Color3.new(0.505882, 0.772549, 0.0862745)
- Frame6.BorderColor3 = Color3.new(0.498039, 0.498039, 0.498039)
- Frame6.BorderSizePixel = 0
- Frame6.ZIndex = 9
- Frame7.Name = "Inventory"
- Frame7.Parent = ScreenGui1
- Frame7.Transparency = 1
- Frame7.Size = UDim2.new(0, 780, 0, 91)
- Frame7.Position = UDim2.new(0, 0, 1, -111)
- Frame7.BackgroundColor3 = Color3.new(0.6, 0.6, 0.6)
- Frame7.BackgroundTransparency = 1
- Frame7.BorderColor3 = Color3.new(0.6, 0.6, 0.6)
- Frame7.BorderSizePixel = 0
- Frame7.ZIndex = 8
- TextLabel8.Name = "Slot1"
- TextLabel8.Parent = Frame7
- TextLabel8.Transparency = 0.40000000596046
- TextLabel8.Size = UDim2.new(0, 90, 1, 0)
- TextLabel8.Text = "Slot1"
- TextLabel8.Visible = false
- TextLabel8.BackgroundColor3 = Color3.new(0.6, 0.6, 0.6)
- TextLabel8.BackgroundTransparency = 0.40000000596046
- TextLabel8.BorderColor3 = Color3.new(0, 1, 0)
- TextLabel8.BorderSizePixel = 0
- TextLabel8.ZIndex = 8
- TextLabel8.ClipsDescendants = true
- TextLabel8.FontSize = Enum.FontSize.Size9
- TextLabel8.TextColor3 = Color3.new(1, 1, 1)
- TextLabel8.TextXAlignment = Enum.TextXAlignment.Left
- TextLabel9.Name = "NumberLabel"
- TextLabel9.Parent = TextLabel8
- TextLabel9.Size = UDim2.new(0, 16, 0, 16)
- TextLabel9.Text = "1"
- TextLabel9.Position = UDim2.new(0, 2, 1, -17)
- TextLabel9.BackgroundColor3 = Color3.new(0.705882, 0.705882, 0.705882)
- TextLabel9.BorderColor3 = Color3.new(0.705882, 0.705882, 0.705882)
- TextLabel9.BorderSizePixel = 0
- TextLabel9.ZIndex = 8
- TextLabel9.ClipsDescendants = true
- TextLabel9.FontSize = Enum.FontSize.Size9
- TextLabel9.TextColor3 = Color3.new(1, 1, 1)
- TextLabel9.TextWrapped = true
- ImageLabel10.Parent = TextLabel8
- ImageLabel10.Transparency = 1
- ImageLabel10.Size = UDim2.new(0, 70, 0, 71)
- ImageLabel10.Position = UDim2.new(0, 12, 0, 10)
- ImageLabel10.BackgroundColor3 = Color3.new(1, 1, 1)
- ImageLabel10.BackgroundTransparency = 1
- ImageLabel10.BorderSizePixel = 0
- ImageLabel10.ZIndex = 9
- TextButton11.Name = "Button"
- TextButton11.Parent = TextLabel8
- TextButton11.Transparency = 1
- TextButton11.Size = UDim2.new(1, 0, 1, 0)
- TextButton11.Text = ""
- TextButton11.BackgroundColor3 = Color3.new(1, 1, 1)
- TextButton11.BackgroundTransparency = 1
- TextButton11.BorderSizePixel = 0
- TextButton11.ZIndex = 9
- TextButton11.Font = Enum.Font.SourceSans
- TextButton11.FontSize = Enum.FontSize.Size14
- TextLabel12.Name = "Slot2"
- TextLabel12.Parent = Frame7
- TextLabel12.Transparency = 0.40000000596046
- TextLabel12.Size = UDim2.new(0, 90, 1, 0)
- TextLabel12.Text = "Slot2"
- TextLabel12.Position = UDim2.new(0, 90, 0, 0)
- TextLabel12.Visible = false
- TextLabel12.BackgroundColor3 = Color3.new(0.6, 0.6, 0.6)
- TextLabel12.BackgroundTransparency = 0.40000000596046
- TextLabel12.BorderColor3 = Color3.new(0, 1, 0)
- TextLabel12.BorderSizePixel = 0
- TextLabel12.ZIndex = 8
- TextLabel12.ClipsDescendants = true
- TextLabel12.FontSize = Enum.FontSize.Size9
- TextLabel12.TextColor3 = Color3.new(1, 1, 1)
- TextLabel12.TextXAlignment = Enum.TextXAlignment.Left
- TextLabel13.Name = "NumberLabel"
- TextLabel13.Parent = TextLabel12
- TextLabel13.Size = UDim2.new(0, 16, 0, 16)
- TextLabel13.Text = "2"
- TextLabel13.Position = UDim2.new(0, 2, 1, -17)
- TextLabel13.BackgroundColor3 = Color3.new(0.705882, 0.705882, 0.705882)
- TextLabel13.BorderColor3 = Color3.new(0.705882, 0.705882, 0.705882)
- TextLabel13.BorderSizePixel = 0
- TextLabel13.ZIndex = 8
- TextLabel13.ClipsDescendants = true
- TextLabel13.FontSize = Enum.FontSize.Size9
- TextLabel13.TextColor3 = Color3.new(1, 1, 1)
- TextLabel13.TextWrapped = true
- ImageLabel14.Parent = TextLabel12
- ImageLabel14.Transparency = 1
- ImageLabel14.Size = UDim2.new(0, 70, 0, 71)
- ImageLabel14.Position = UDim2.new(0, 12, 0, 10)
- ImageLabel14.BackgroundColor3 = Color3.new(1, 1, 1)
- ImageLabel14.BackgroundTransparency = 1
- ImageLabel14.BorderSizePixel = 0
- ImageLabel14.ZIndex = 9
- TextButton15.Name = "Button"
- TextButton15.Parent = TextLabel12
- TextButton15.Transparency = 1
- TextButton15.Size = UDim2.new(1, 0, 1, 0)
- TextButton15.Text = ""
- TextButton15.BackgroundColor3 = Color3.new(1, 1, 1)
- TextButton15.BackgroundTransparency = 1
- TextButton15.BorderSizePixel = 0
- TextButton15.ZIndex = 9
- TextButton15.Font = Enum.Font.SourceSans
- TextButton15.FontSize = Enum.FontSize.Size14
- TextLabel16.Name = "Slot3"
- TextLabel16.Parent = Frame7
- TextLabel16.Transparency = 0.40000000596046
- TextLabel16.Size = UDim2.new(0, 90, 1, 0)
- TextLabel16.Text = "Slot3"
- TextLabel16.Position = UDim2.new(0, 180, 0, 0)
- TextLabel16.Visible = false
- TextLabel16.BackgroundColor3 = Color3.new(0.6, 0.6, 0.6)
- TextLabel16.BackgroundTransparency = 0.40000000596046
- TextLabel16.BorderColor3 = Color3.new(0, 1, 0)
- TextLabel16.BorderSizePixel = 0
- TextLabel16.ZIndex = 8
- TextLabel16.ClipsDescendants = true
- TextLabel16.FontSize = Enum.FontSize.Size9
- TextLabel16.TextColor3 = Color3.new(1, 1, 1)
- TextLabel16.TextXAlignment = Enum.TextXAlignment.Left
- TextLabel17.Name = "NumberLabel"
- TextLabel17.Parent = TextLabel16
- TextLabel17.Size = UDim2.new(0, 16, 0, 16)
- TextLabel17.Text = "3"
- TextLabel17.Position = UDim2.new(0, 2, 1, -17)
- TextLabel17.BackgroundColor3 = Color3.new(0.705882, 0.705882, 0.705882)
- TextLabel17.BorderColor3 = Color3.new(0.705882, 0.705882, 0.705882)
- TextLabel17.BorderSizePixel = 0
- TextLabel17.ZIndex = 8
- TextLabel17.ClipsDescendants = true
- TextLabel17.FontSize = Enum.FontSize.Size9
- TextLabel17.TextColor3 = Color3.new(1, 1, 1)
- TextLabel17.TextWrapped = true
- ImageLabel18.Parent = TextLabel16
- ImageLabel18.Transparency = 1
- ImageLabel18.Size = UDim2.new(0, 70, 0, 71)
- ImageLabel18.Position = UDim2.new(0, 12, 0, 10)
- ImageLabel18.BackgroundColor3 = Color3.new(1, 1, 1)
- ImageLabel18.BackgroundTransparency = 1
- ImageLabel18.BorderSizePixel = 0
- ImageLabel18.ZIndex = 9
- TextButton19.Name = "Button"
- TextButton19.Parent = TextLabel16
- TextButton19.Transparency = 1
- TextButton19.Size = UDim2.new(1, 0, 1, 0)
- TextButton19.Text = ""
- TextButton19.BackgroundColor3 = Color3.new(1, 1, 1)
- TextButton19.BackgroundTransparency = 1
- TextButton19.BorderSizePixel = 0
- TextButton19.ZIndex = 9
- TextButton19.Font = Enum.Font.SourceSans
- TextButton19.FontSize = Enum.FontSize.Size14
- TextLabel20.Name = "Slot4"
- TextLabel20.Parent = Frame7
- TextLabel20.Transparency = 0.40000000596046
- TextLabel20.Size = UDim2.new(0, 90, 1, 0)
- TextLabel20.Text = "Slot4"
- TextLabel20.Position = UDim2.new(0, 270, 0, 0)
- TextLabel20.Visible = false
- TextLabel20.BackgroundColor3 = Color3.new(0.6, 0.6, 0.6)
- TextLabel20.BackgroundTransparency = 0.40000000596046
- TextLabel20.BorderColor3 = Color3.new(0, 1, 0)
- TextLabel20.BorderSizePixel = 0
- TextLabel20.ZIndex = 8
- TextLabel20.ClipsDescendants = true
- TextLabel20.FontSize = Enum.FontSize.Size9
- TextLabel20.TextColor3 = Color3.new(1, 1, 1)
- TextLabel20.TextXAlignment = Enum.TextXAlignment.Left
- TextLabel21.Name = "NumberLabel"
- TextLabel21.Parent = TextLabel20
- TextLabel21.Size = UDim2.new(0, 16, 0, 16)
- TextLabel21.Text = "4"
- TextLabel21.Position = UDim2.new(0, 2, 1, -17)
- TextLabel21.BackgroundColor3 = Color3.new(0.705882, 0.705882, 0.705882)
- TextLabel21.BorderColor3 = Color3.new(0.705882, 0.705882, 0.705882)
- TextLabel21.BorderSizePixel = 0
- TextLabel21.ZIndex = 8
- TextLabel21.ClipsDescendants = true
- TextLabel21.FontSize = Enum.FontSize.Size9
- TextLabel21.TextColor3 = Color3.new(1, 1, 1)
- TextLabel21.TextWrapped = true
- ImageLabel22.Parent = TextLabel20
- ImageLabel22.Transparency = 1
- ImageLabel22.Size = UDim2.new(0, 70, 0, 71)
- ImageLabel22.Position = UDim2.new(0, 12, 0, 10)
- ImageLabel22.BackgroundColor3 = Color3.new(1, 1, 1)
- ImageLabel22.BackgroundTransparency = 1
- ImageLabel22.BorderSizePixel = 0
- ImageLabel22.ZIndex = 9
- TextButton23.Name = "Button"
- TextButton23.Parent = TextLabel20
- TextButton23.Transparency = 1
- TextButton23.Size = UDim2.new(1, 0, 1, 0)
- TextButton23.Text = ""
- TextButton23.BackgroundColor3 = Color3.new(1, 1, 1)
- TextButton23.BackgroundTransparency = 1
- TextButton23.BorderSizePixel = 0
- TextButton23.ZIndex = 9
- TextButton23.Font = Enum.Font.SourceSans
- TextButton23.FontSize = Enum.FontSize.Size14
- TextLabel24.Name = "Slot5"
- TextLabel24.Parent = Frame7
- TextLabel24.Transparency = 0.40000000596046
- TextLabel24.Size = UDim2.new(0, 90, 1, 0)
- TextLabel24.Text = "Slot5"
- TextLabel24.Position = UDim2.new(0, 360, 0, 0)
- TextLabel24.Visible = false
- TextLabel24.BackgroundColor3 = Color3.new(0.6, 0.6, 0.6)
- TextLabel24.BackgroundTransparency = 0.40000000596046
- TextLabel24.BorderColor3 = Color3.new(0, 1, 0)
- TextLabel24.BorderSizePixel = 0
- TextLabel24.ZIndex = 8
- TextLabel24.ClipsDescendants = true
- TextLabel24.FontSize = Enum.FontSize.Size9
- TextLabel24.TextColor3 = Color3.new(1, 1, 1)
- TextLabel24.TextXAlignment = Enum.TextXAlignment.Left
- TextLabel25.Name = "NumberLabel"
- TextLabel25.Parent = TextLabel24
- TextLabel25.Size = UDim2.new(0, 16, 0, 16)
- TextLabel25.Text = "5"
- TextLabel25.Position = UDim2.new(0, 2, 1, -17)
- TextLabel25.BackgroundColor3 = Color3.new(0.705882, 0.705882, 0.705882)
- TextLabel25.BorderColor3 = Color3.new(0.705882, 0.705882, 0.705882)
- TextLabel25.BorderSizePixel = 0
- TextLabel25.ZIndex = 8
- TextLabel25.ClipsDescendants = true
- TextLabel25.FontSize = Enum.FontSize.Size9
- TextLabel25.TextColor3 = Color3.new(1, 1, 1)
- TextLabel25.TextWrapped = true
- ImageLabel26.Parent = TextLabel24
- ImageLabel26.Transparency = 1
- ImageLabel26.Size = UDim2.new(0, 70, 0, 71)
- ImageLabel26.Position = UDim2.new(0, 12, 0, 10)
- ImageLabel26.BackgroundColor3 = Color3.new(1, 1, 1)
- ImageLabel26.BackgroundTransparency = 1
- ImageLabel26.BorderSizePixel = 0
- ImageLabel26.ZIndex = 9
- TextButton27.Name = "Button"
- TextButton27.Parent = TextLabel24
- TextButton27.Transparency = 1
- TextButton27.Size = UDim2.new(1, 0, 1, 0)
- TextButton27.Text = ""
- TextButton27.BackgroundColor3 = Color3.new(1, 1, 1)
- TextButton27.BackgroundTransparency = 1
- TextButton27.BorderSizePixel = 0
- TextButton27.ZIndex = 9
- TextButton27.Font = Enum.Font.SourceSans
- TextButton27.FontSize = Enum.FontSize.Size14
- TextLabel28.Name = "Slot6"
- TextLabel28.Parent = Frame7
- TextLabel28.Transparency = 0.40000000596046
- TextLabel28.Size = UDim2.new(0, 90, 1, 0)
- TextLabel28.Text = "Slot6"
- TextLabel28.Position = UDim2.new(0, 450, 0, 0)
- TextLabel28.Visible = false
- TextLabel28.BackgroundColor3 = Color3.new(0.6, 0.6, 0.6)
- TextLabel28.BackgroundTransparency = 0.40000000596046
- TextLabel28.BorderColor3 = Color3.new(0, 1, 0)
- TextLabel28.BorderSizePixel = 0
- TextLabel28.ZIndex = 8
- TextLabel28.ClipsDescendants = true
- TextLabel28.FontSize = Enum.FontSize.Size9
- TextLabel28.TextColor3 = Color3.new(1, 1, 1)
- TextLabel28.TextXAlignment = Enum.TextXAlignment.Left
- TextLabel29.Name = "NumberLabel"
- TextLabel29.Parent = TextLabel28
- TextLabel29.Size = UDim2.new(0, 16, 0, 16)
- TextLabel29.Text = "6"
- TextLabel29.Position = UDim2.new(0, 2, 1, -17)
- TextLabel29.BackgroundColor3 = Color3.new(0.705882, 0.705882, 0.705882)
- TextLabel29.BorderColor3 = Color3.new(0.705882, 0.705882, 0.705882)
- TextLabel29.BorderSizePixel = 0
- TextLabel29.ZIndex = 8
- TextLabel29.ClipsDescendants = true
- TextLabel29.FontSize = Enum.FontSize.Size9
- TextLabel29.TextColor3 = Color3.new(1, 1, 1)
- TextLabel29.TextWrapped = true
- ImageLabel30.Parent = TextLabel28
- ImageLabel30.Transparency = 1
- ImageLabel30.Size = UDim2.new(0, 70, 0, 71)
- ImageLabel30.Position = UDim2.new(0, 12, 0, 10)
- ImageLabel30.BackgroundColor3 = Color3.new(1, 1, 1)
- ImageLabel30.BackgroundTransparency = 1
- ImageLabel30.BorderSizePixel = 0
- ImageLabel30.ZIndex = 9
- TextButton31.Name = "Button"
- TextButton31.Parent = TextLabel28
- TextButton31.Transparency = 1
- TextButton31.Size = UDim2.new(1, 0, 1, 0)
- TextButton31.Text = ""
- TextButton31.BackgroundColor3 = Color3.new(1, 1, 1)
- TextButton31.BackgroundTransparency = 1
- TextButton31.BorderSizePixel = 0
- TextButton31.ZIndex = 9
- TextButton31.Font = Enum.Font.SourceSans
- TextButton31.FontSize = Enum.FontSize.Size14
- TextLabel32.Name = "Slot7"
- TextLabel32.Parent = Frame7
- TextLabel32.Transparency = 0.40000000596046
- TextLabel32.Size = UDim2.new(0, 90, 1, 0)
- TextLabel32.Text = "Slot7"
- TextLabel32.Position = UDim2.new(0, 540, 0, 0)
- TextLabel32.Visible = false
- TextLabel32.BackgroundColor3 = Color3.new(0.6, 0.6, 0.6)
- TextLabel32.BackgroundTransparency = 0.40000000596046
- TextLabel32.BorderColor3 = Color3.new(0, 1, 0)
- TextLabel32.BorderSizePixel = 0
- TextLabel32.ZIndex = 8
- TextLabel32.ClipsDescendants = true
- TextLabel32.FontSize = Enum.FontSize.Size9
- TextLabel32.TextColor3 = Color3.new(1, 1, 1)
- TextLabel32.TextXAlignment = Enum.TextXAlignment.Left
- TextLabel33.Name = "NumberLabel"
- TextLabel33.Parent = TextLabel32
- TextLabel33.Size = UDim2.new(0, 16, 0, 16)
- TextLabel33.Text = "7"
- TextLabel33.Position = UDim2.new(0, 2, 1, -17)
- TextLabel33.BackgroundColor3 = Color3.new(0.705882, 0.705882, 0.705882)
- TextLabel33.BorderColor3 = Color3.new(0.705882, 0.705882, 0.705882)
- TextLabel33.BorderSizePixel = 0
- TextLabel33.ZIndex = 8
- TextLabel33.ClipsDescendants = true
- TextLabel33.FontSize = Enum.FontSize.Size9
- TextLabel33.TextColor3 = Color3.new(1, 1, 1)
- TextLabel33.TextWrapped = true
- ImageLabel34.Parent = TextLabel32
- ImageLabel34.Transparency = 1
- ImageLabel34.Size = UDim2.new(0, 70, 0, 71)
- ImageLabel34.Position = UDim2.new(0, 12, 0, 10)
- ImageLabel34.BackgroundColor3 = Color3.new(1, 1, 1)
- ImageLabel34.BackgroundTransparency = 1
- ImageLabel34.BorderSizePixel = 0
- ImageLabel34.ZIndex = 9
- TextButton35.Name = "Button"
- TextButton35.Parent = TextLabel32
- TextButton35.Transparency = 1
- TextButton35.Size = UDim2.new(1, 0, 1, 0)
- TextButton35.Text = ""
- TextButton35.BackgroundColor3 = Color3.new(1, 1, 1)
- TextButton35.BackgroundTransparency = 1
- TextButton35.BorderSizePixel = 0
- TextButton35.ZIndex = 9
- TextButton35.Font = Enum.Font.SourceSans
- TextButton35.FontSize = Enum.FontSize.Size14
- TextLabel36.Name = "Slot9"
- TextLabel36.Parent = Frame7
- TextLabel36.Transparency = 0.40000000596046
- TextLabel36.Size = UDim2.new(0, 90, 1, 0)
- TextLabel36.Text = "Slot9"
- TextLabel36.Position = UDim2.new(0, 720, 0, 0)
- TextLabel36.Visible = false
- TextLabel36.BackgroundColor3 = Color3.new(0.6, 0.6, 0.6)
- TextLabel36.BackgroundTransparency = 0.40000000596046
- TextLabel36.BorderColor3 = Color3.new(0, 1, 0)
- TextLabel36.BorderSizePixel = 0
- TextLabel36.ZIndex = 8
- TextLabel36.ClipsDescendants = true
- TextLabel36.FontSize = Enum.FontSize.Size9
- TextLabel36.TextColor3 = Color3.new(1, 1, 1)
- TextLabel36.TextXAlignment = Enum.TextXAlignment.Left
- TextLabel37.Name = "NumberLabel"
- TextLabel37.Parent = TextLabel36
- TextLabel37.Size = UDim2.new(0, 16, 0, 16)
- TextLabel37.Text = "9"
- TextLabel37.Position = UDim2.new(0, 2, 1, -17)
- TextLabel37.BackgroundColor3 = Color3.new(0.705882, 0.705882, 0.705882)
- TextLabel37.BorderColor3 = Color3.new(0.705882, 0.705882, 0.705882)
- TextLabel37.BorderSizePixel = 0
- TextLabel37.ZIndex = 8
- TextLabel37.ClipsDescendants = true
- TextLabel37.FontSize = Enum.FontSize.Size9
- TextLabel37.TextColor3 = Color3.new(1, 1, 1)
- TextLabel37.TextWrapped = true
- ImageLabel38.Parent = TextLabel36
- ImageLabel38.Transparency = 1
- ImageLabel38.Size = UDim2.new(0, 70, 0, 71)
- ImageLabel38.Position = UDim2.new(0, 12, 0, 10)
- ImageLabel38.BackgroundColor3 = Color3.new(1, 1, 1)
- ImageLabel38.BackgroundTransparency = 1
- ImageLabel38.BorderSizePixel = 0
- ImageLabel38.ZIndex = 9
- TextButton39.Name = "Button"
- TextButton39.Parent = TextLabel36
- TextButton39.Transparency = 1
- TextButton39.Size = UDim2.new(1, 0, 1, 0)
- TextButton39.Text = ""
- TextButton39.BackgroundColor3 = Color3.new(1, 1, 1)
- TextButton39.BackgroundTransparency = 1
- TextButton39.BorderSizePixel = 0
- TextButton39.ZIndex = 9
- TextButton39.Font = Enum.Font.SourceSans
- TextButton39.FontSize = Enum.FontSize.Size14
- TextLabel40.Name = "Slot8"
- TextLabel40.Parent = Frame7
- TextLabel40.Transparency = 0.40000000596046
- TextLabel40.Size = UDim2.new(0, 90, 1, 0)
- TextLabel40.Text = "Slot8"
- TextLabel40.Position = UDim2.new(0, 630, 0, 0)
- TextLabel40.Visible = false
- TextLabel40.BackgroundColor3 = Color3.new(0.6, 0.6, 0.6)
- TextLabel40.BackgroundTransparency = 0.40000000596046
- TextLabel40.BorderColor3 = Color3.new(0, 1, 0)
- TextLabel40.BorderSizePixel = 0
- TextLabel40.ZIndex = 8
- TextLabel40.ClipsDescendants = true
- TextLabel40.FontSize = Enum.FontSize.Size9
- TextLabel40.TextColor3 = Color3.new(1, 1, 1)
- TextLabel40.TextXAlignment = Enum.TextXAlignment.Left
- TextLabel41.Name = "NumberLabel"
- TextLabel41.Parent = TextLabel40
- TextLabel41.Size = UDim2.new(0, 16, 0, 16)
- TextLabel41.Text = "8"
- TextLabel41.Position = UDim2.new(0, 2, 1, -17)
- TextLabel41.BackgroundColor3 = Color3.new(0.705882, 0.705882, 0.705882)
- TextLabel41.BorderColor3 = Color3.new(0.705882, 0.705882, 0.705882)
- TextLabel41.BorderSizePixel = 0
- TextLabel41.ZIndex = 8
- TextLabel41.ClipsDescendants = true
- TextLabel41.FontSize = Enum.FontSize.Size9
- TextLabel41.TextColor3 = Color3.new(1, 1, 1)
- TextLabel41.TextWrapped = true
- ImageLabel42.Parent = TextLabel40
- ImageLabel42.Transparency = 1
- ImageLabel42.Size = UDim2.new(0, 70, 0, 71)
- ImageLabel42.Position = UDim2.new(0, 12, 0, 10)
- ImageLabel42.BackgroundColor3 = Color3.new(1, 1, 1)
- ImageLabel42.BackgroundTransparency = 1
- ImageLabel42.BorderSizePixel = 0
- ImageLabel42.ZIndex = 9
- TextButton43.Name = "Button"
- TextButton43.Parent = TextLabel40
- TextButton43.Transparency = 1
- TextButton43.Size = UDim2.new(1, 0, 1, 0)
- TextButton43.Text = ""
- TextButton43.BackgroundColor3 = Color3.new(1, 1, 1)
- TextButton43.BackgroundTransparency = 1
- TextButton43.BorderSizePixel = 0
- TextButton43.ZIndex = 9
- TextButton43.Font = Enum.Font.SourceSans
- TextButton43.FontSize = Enum.FontSize.Size14
- TextLabel44.Name = "Slot0"
- TextLabel44.Parent = Frame7
- TextLabel44.Transparency = 0.40000000596046
- TextLabel44.Size = UDim2.new(0, 90, 1, 0)
- TextLabel44.Text = "Slot0"
- TextLabel44.Position = UDim2.new(0, 810, 0, 0)
- TextLabel44.Visible = false
- TextLabel44.BackgroundColor3 = Color3.new(0.6, 0.6, 0.6)
- TextLabel44.BackgroundTransparency = 0.40000000596046
- TextLabel44.BorderColor3 = Color3.new(0, 1, 0)
- TextLabel44.BorderSizePixel = 0
- TextLabel44.ZIndex = 8
- TextLabel44.ClipsDescendants = true
- TextLabel44.FontSize = Enum.FontSize.Size9
- TextLabel44.TextColor3 = Color3.new(1, 1, 1)
- TextLabel44.TextXAlignment = Enum.TextXAlignment.Left
- TextButton45.Name = "Button"
- TextButton45.Parent = TextLabel44
- TextButton45.Transparency = 1
- TextButton45.Size = UDim2.new(1, 0, 1, 0)
- TextButton45.Text = ""
- TextButton45.BackgroundColor3 = Color3.new(1, 1, 1)
- TextButton45.BackgroundTransparency = 1
- TextButton45.BorderSizePixel = 0
- TextButton45.ZIndex = 9
- TextButton45.Font = Enum.Font.SourceSans
- TextButton45.FontSize = Enum.FontSize.Size14
- ImageLabel46.Parent = TextLabel44
- ImageLabel46.Transparency = 1
- ImageLabel46.Size = UDim2.new(0, 70, 0, 71)
- ImageLabel46.Position = UDim2.new(0, 12, 0, 10)
- ImageLabel46.BackgroundColor3 = Color3.new(1, 1, 1)
- ImageLabel46.BackgroundTransparency = 1
- ImageLabel46.BorderSizePixel = 0
- ImageLabel46.ZIndex = 9
- TextLabel47.Name = "NumberLabel"
- TextLabel47.Parent = TextLabel44
- TextLabel47.Size = UDim2.new(0, 16, 0, 16)
- TextLabel47.Text = "0"
- TextLabel47.Position = UDim2.new(0, 2, 1, -17)
- TextLabel47.BackgroundColor3 = Color3.new(0.705882, 0.705882, 0.705882)
- TextLabel47.BorderColor3 = Color3.new(0.705882, 0.705882, 0.705882)
- TextLabel47.BorderSizePixel = 0
- TextLabel47.ZIndex = 8
- TextLabel47.ClipsDescendants = true
- TextLabel47.FontSize = Enum.FontSize.Size9
- TextLabel47.TextColor3 = Color3.new(1, 1, 1)
- TextLabel47.TextWrapped = true
- Frame48.Name = "ChatList"
- Frame48.Parent = ScreenGui1
- Frame48.Transparency = 1
- Frame48.Size = UDim2.new(1, -34, 0, 86)
- Frame48.Position = UDim2.new(0, 34, 0, 30)
- Frame48.BackgroundColor3 = Color3.new(0.498039, 0.498039, 0.498039)
- Frame48.BackgroundTransparency = 1
- Frame48.BorderColor3 = Color3.new(0.498039, 0.498039, 0.498039)
- Frame48.BorderSizePixel = 0
- Frame48.ZIndex = 8
- TextBox49.Name = "Chat"
- TextBox49.Parent = ScreenGui1
- TextBox49.Size = UDim2.new(1, 0, 0, 20)
- TextBox49.Text = "To chat click here or press the "/" key"
- TextBox49.Position = UDim2.new(0, 0, 1, -20)
- TextBox49.BackgroundColor3 = Color3.new(0.25098, 0.25098, 0.25098)
- TextBox49.BorderColor3 = Color3.new(0.25098, 0.25098, 0.25098)
- TextBox49.BorderSizePixel = 0
- TextBox49.ZIndex = 8
- TextBox49.Font = Enum.Font.SourceSansBold
- TextBox49.FontSize = Enum.FontSize.Size14
- TextBox49.TextColor3 = Color3.new(1, 1, 0.784314)
- TextBox49.TextXAlignment = Enum.TextXAlignment.Left
- TextBox49.TextYAlignment = Enum.TextYAlignment.Top
- Frame50.Name = "Filler"
- Frame50.Parent = TextBox49
- Frame50.Size = UDim2.new(0, 60, 1, 0)
- Frame50.Position = UDim2.new(0, -60, 0, 0)
- Frame50.BackgroundColor3 = Color3.new(0.25098, 0.25098, 0.25098)
- Frame50.BorderColor3 = Color3.new(0.25098, 0.25098, 0.25098)
- Frame50.BorderSizePixel = 0
- Frame50.ZIndex = 8
- TextButton51.Name = "ClickDetect"
- TextButton51.Parent = TextBox49
- TextButton51.Transparency = 1
- TextButton51.Size = UDim2.new(1, 0, 1, 0)
- TextButton51.Text = ""
- TextButton51.Active = false
- TextButton51.BackgroundColor3 = Color3.new(1, 1, 1)
- TextButton51.BackgroundTransparency = 1
- TextButton51.BorderSizePixel = 0
- TextButton51.ZIndex = 9
- TextButton51.Font = Enum.Font.SourceSans
- TextButton51.FontSize = Enum.FontSize.Size14
- ImageLabel52.Name = "Cursor"
- ImageLabel52.Parent = ScreenGui1
- ImageLabel52.Transparency = 1
- ImageLabel52.Size = UDim2.new(0, 80, 0, 80)
- ImageLabel52.Position = UDim2.new(1, 0, 1, 0)
- ImageLabel52.BackgroundColor3 = Color3.new(1, 1, 1)
- ImageLabel52.BackgroundTransparency = 1
- ImageLabel52.BorderSizePixel = 0
- ImageLabel52.ZIndex = 10
- ImageLabel52.Image = "rbxassetid://199228706"
- LocalScript53.Parent = ScreenGui1
- table.insert(cors,sandbox(LocalScript53,function()
- for k, v in pairs(workspace.CurrentCamera:GetChildren()) do
- if v.Name == "walkdisc" then
- v:Destroy()
- end
- end
- localplayer = game:GetService("Players").LocalPlayer
- repeat wait() until localplayer.Character
- repeat wait() until localplayer.Character:IsDescendantOf(game)
- mouse = localplayer:GetMouse()
- sendchat = Instance.new("RemoteFunction")
- sendchat.Name = "SendChat"
- sendchat.Parent = script
- gui = script.Parent
- walkdisc = script:WaitForChild("walkdisc")
- walkdisc.Parent = workspace.CurrentCamera
- m = Instance.new("CylinderMesh",walkdisc)
- m.Scale = Vector3.new(1,0.4,1)
- mouse.TargetFilter = walkdisc
- health = gui:WaitForChild("Health")
- inventory = gui:WaitForChild("Inventory")
- playerlist = gui:WaitForChild("PlayerList")
- chat = gui:WaitForChild("Chat")
- chatlist = gui:WaitForChild("ChatList")
- ChatColors = {BrickColor.new("Bright red"),BrickColor.new("Bright blue"),BrickColor.new("Earth green"),BrickColor.new("Bright violet"),BrickColor.new("Bright orange"),BrickColor.new("Bright yellow"),BrickColor.new("Light reddish violet"),BrickColor.new("Brick yellow")}
- inv = {"1","2","3","4","5","6","7","8","9","0"}
- players = {}
- tools = {}
- cursel = ""
- function spairs(t, order)
- local keys = {}
- for k in pairs(t) do keys[#keys+1] = k end
- if order then
- table.sort(keys, function(a,b) return order(t, a, b) end)
- else
- table.sort(keys)
- end
- local i = 0
- return function()
- i = i + 1
- if keys[i] then
- return keys[i], t[keys[i]]
- end
- end
- end
- function GetNameValue(name)
- local value = 0
- for index = 1, #name do
- local cValue = string.byte(string.sub(name, index, index))
- local reverseIndex = #name - index + 1
- if #name % 2 == 1 then
- reverseIndex = reverseIndex - 1
- end
- if reverseIndex % 4 >= 2 then
- cValue = -cValue
- end
- value = value + cValue
- end
- return value % 8
- end
- function indexcheck(v)
- for i=1,#tools do
- if tools[i] == v then
- return i
- end
- end
- return false
- end
- function updateplist()
- local fplayers = game:GetService("Players"):GetChildren()
- local fteams = game:GetService("Teams"):GetChildren()
- players = {}
- teams = {}
- local get = playerlist:GetChildren()
- for i=1,#get do
- if not string.find(get[i].Name,"_Label") then
- get[i]:Destroy()
- end
- end
- for i=1,#fplayers do
- if fplayers[i].ClassName == "Player" then
- table.insert(players,#players+1,fplayers[i])
- end
- end
- for i=1,#fteams do
- if fteams[i].ClassName == "Team" then
- table.insert(teams,#teams+1,fteams[i])
- end
- end
- if #teams > 0 then --Player Names
- playerlist:WaitForChild("_Label1").Text = "Team"
- local teamspace = 0
- for i2=1,#teams do
- local labelt = script.Team:Clone()
- labelt:WaitForChild("_Label2").Text = teams[i2].Name
- labelt:WaitForChild("_Label2").TextColor3 = teams[i2].TeamColor.Color
- labelt:WaitForChild("_Label3").BackgroundColor3 = teams[i2].TeamColor.Color
- local vplayers = {}
- for i=1,#players do
- if not players[i].Neutral and players[i].TeamColor == teams[i2].TeamColor then
- table.insert(vplayers,#vplayers+1,players[i])
- end
- end
- for i=1,#vplayers do
- local label = script:WaitForChild("Player"):Clone()
- label.Text = vplayers[i].Name
- label.Position = UDim2.new(0,0,0,30+(20*(i-1)))
- label.Parent = labelt
- label.TextColor3 = vplayers[i].TeamColor.Color
- end
- labelt.Position = UDim2.new(0,5,0,20+teamspace)
- labelt.Size = UDim2.new(1,0,0,40+(20*#vplayers))
- teamspace = teamspace + labelt.Size.Y.Offset
- labelt.Parent = playerlist
- end
- playerlist.Size = UDim2.new(0,168,0,40+teamspace)
- else
- for i=1,#players do
- local label = script:WaitForChild("Player"):Clone()
- label.Text = fplayers[i].Name
- label.Position = UDim2.new(0,0,0,40+(20*(i-1)))
- label.Parent = playerlist
- label.TextColor3 = ChatColors[GetNameValue(fplayers[i].Name) + 1].Color
- end
- playerlist.Size = UDim2.new(0,168,0,40+(20*#players))
- end
- local lslabels = {} --Player Scores
- for i=1,#players do
- if players[i]:FindFirstChild("leaderstats") then
- local get = players[i].leaderstats:GetChildren()
- for i2=1,#get do
- if get[i2].ClassName == "IntValue" or get[i2].ClassName == "NumberValue" then
- local ret = false
- for i3=1,#lslabels do
- if lslabels[i3].Name == get[i2].Name then
- ret = true
- end
- end
- if ret == false then
- table.insert(lslabels,#lslabels+1,get[i2])
- end
- for i3=1,#lslabels do
- if lslabels[i3].Name == get[i2].Name then
- local nslabel = script:WaitForChild("ScoreLabel"):Clone()
- nslabel.Text = tostring(get[i2].Value)
- if i3 == 1 then
- nslabel.Position = UDim2.new(0,155,0,0)
- else
- nslabel.Position = UDim2.new(0,155+(80/(i3-1)),0,0)
- end
- local get2 = playerlist:GetChildren()
- for i4=1,#get2 do
- if get2[i4].Name == "Team" then
- local get3 = get2[i4]:GetChildren()
- for i5=1,#get3 do
- if get3[i5].Name == "Player" and get3[i5].Text == players[i].Name then
- nslabel.TextColor3 = get3[i5].TextColor3
- nslabel.Parent = get3[i5]
- end
- end
- elseif get2[i4].Name == "Player" and get2[i4].Text == players[i].Name then
- nslabel.Parent = get2[i4]
- end
- end
- end
- end
- end
- end
- end
- end
- local get = playerlist:GetChildren() --Team Scores
- if #teams > 0 then
- for i=1,#get do
- if get[i].Name == "Team" then
- local valtable = {}
- local get2 = get[i]:GetChildren()
- for i2=1,#get2 do
- if get2[i2].Name == "Player" then
- local get3 = get2[i2]:GetChildren()
- for i3=1,#get3 do
- if valtable[i3] then
- valtable[i3] = valtable[i3] + tonumber(get3[i3].Text)
- else
- valtable[i3] = tonumber(get3[i3].Text)
- end
- end
- end
- end
- for i2=1,#valtable do
- local nslabel = script:WaitForChild("ScoreLabel"):Clone()
- nslabel.Text = tostring(valtable[i2])
- if i2 == 1 then
- nslabel.Position = UDim2.new(0,155,0,0)
- else
- nslabel.Position = UDim2.new(0,155+(80/(i2-1)),0,0)
- end
- nslabel.TextColor3 = get[i]:FindFirstChild("_Label2").TextColor3
- nslabel.TextStrokeTransparency = 0.5
- nslabel.Parent = get[i]
- end
- end
- end
- end
- local function sorter(tosort) --Sorting
- local sorted = {}
- local get2 = tosort:GetChildren()
- for i=1,#get2 do
- if get2[i].Name == "Player" then
- if get2[i]:FindFirstChild("ScoreLabel") then
- sorted[get2[i]] = tonumber(get2[i]:FindFirstChild("ScoreLabel").Text)
- else
- sorted[get2[i]] = -math.huge
- end
- end
- end
- local i = 0
- for k,v in spairs(sorted, function(t,a,b) return t[b] < t[a] end) do
- i = i + 1
- k.Position = UDim2.new(0,0,0,30+(20*(i-1)))
- end
- end
- if #teams > 0 then
- for i=1,#get do
- if get[i].Name == "Team" then
- sorter(get[i])
- end
- end
- else
- sorter(playerlist)
- end
- if #lslabels > 0 then --Titles
- playerlist.Position = UDim2.new(1,-330,0,10)
- playerlist.Size = UDim2.new(playerlist.Size.X,320,playerlist.Size.Y,playerlist.Size.Y.Offset)
- for i=1,#lslabels do
- local nslabel = script:WaitForChild("LSLabel"):Clone()
- nslabel.Text = lslabels[i].Name
- if i == 1 then
- nslabel.Position = UDim2.new(0,160,0,0)
- else
- nslabel.Position = UDim2.new(0,160+(80/(i-1)),0,0)
- end
- nslabel.Parent = playerlist
- end
- elseif #teams > 0 then
- playerlist:WaitForChild("_Label1").Text = ""
- for i=1,#get do
- if get[i].Name == "Team" then
- get[i].Position = UDim2.new(get[i].Position.X,get[i].Position.X.Offset,get[i].Position.Y,get[i].Position.Y.Offset-20)
- end
- end
- playerlist.Size = UDim2.new(playerlist.Size.X,playerlist.Size.X.Offset,playerlist.Size.Y,playerlist.Size.Y.Offset-20)
- end
- end
- function updatetlist()
- local f1 = localplayer.Character:GetChildren()
- local f2 = localplayer.Backpack:GetChildren()
- local get = inventory:GetChildren()
- for i=1,#get do
- get[i].Visible = false
- end
- for i=1,#f1 do
- if f1[i].ClassName == "Tool" and indexcheck(f1[i]) == false then
- table.insert(tools,#tools+1,f1[i])
- end
- end
- for i=1,#f2 do
- if f2[i].ClassName == "Tool" and indexcheck(f2[i]) == false then
- table.insert(tools,#tools+1,f2[i])
- end
- end
- for i=1,#tools do
- if i >= 1 and i <= 10 then
- local ret = inv[i]
- if tools[i].TextureId ~= "" then
- inventory["Slot"..ret].ImageLabel.Image = tools[i].TextureId
- inventory["Slot"..ret].Text = ""
- else
- inventory["Slot"..ret].ImageLabel.Image = ""
- inventory["Slot"..ret].Text = " " .. tools[i].Name
- end
- inventory["Slot"..ret].Visible = true
- end
- end
- end
- function updateclist()
- local chats = chatlist:GetChildren()
- for i=1,#chats do
- chats[i].Position = UDim2.new(0,0,0,(i*14)-14)
- end
- end
- function createchat(text)
- workspace.ReceiveChat:InvokeServer(text)
- end
- function activatetool(number)
- local get = localplayer.Character:GetChildren()
- for i=1,#get do
- if get[i].ClassName == "Tool" then
- get[i].Parent = localplayer.Backpack
- end
- end
- if cursel ~= number then
- cursel = number
- inventory["Slot1"].BorderSizePixel = 0
- inventory["Slot2"].BorderSizePixel = 0
- inventory["Slot3"].BorderSizePixel = 0
- inventory["Slot4"].BorderSizePixel = 0
- inventory["Slot5"].BorderSizePixel = 0
- inventory["Slot6"].BorderSizePixel = 0
- inventory["Slot7"].BorderSizePixel = 0
- inventory["Slot8"].BorderSizePixel = 0
- inventory["Slot9"].BorderSizePixel = 0
- inventory["Slot0"].BorderSizePixel = 0
- if tonumber(cursel) <= 10 then
- local ret = inv[tonumber(cursel)]
- inventory["Slot"..ret].BorderSizePixel = 1
- end
- local select = tools[tonumber(number)]
- if select then
- select.Parent = localplayer.Character
- end
- else
- cursel = ""
- inventory["Slot1"].BorderSizePixel = 0
- inventory["Slot2"].BorderSizePixel = 0
- inventory["Slot3"].BorderSizePixel = 0
- inventory["Slot4"].BorderSizePixel = 0
- inventory["Slot5"].BorderSizePixel = 0
- inventory["Slot6"].BorderSizePixel = 0
- inventory["Slot7"].BorderSizePixel = 0
- inventory["Slot8"].BorderSizePixel = 0
- inventory["Slot9"].BorderSizePixel = 0
- inventory["Slot0"].BorderSizePixel = 0
- end
- end
- function sendchat.OnClientInvoke(tuple)
- local username = tuple[1]
- local message = tuple[2]
- local timeout = tuple[3]
- if game:GetService("Players"):FindFirstChild(username) then
- local newchat = script.Chat:Clone()
- newchat.Parent = script
- newchat.Message.Text = " " .. message
- newchat.Username.Text = username .. ":"
- local wid1 = newchat.Message.TextBounds.X
- local wid2 = newchat.Username.TextBounds.X
- local wid3 = wid1 + wid2
- newchat.Message.Size = UDim2.new(0,wid1,0,14)
- newchat.Message.Position = UDim2.new(0,wid2,0,0)
- newchat.Username.Size = UDim2.new(0,wid2,0,14)
- newchat.Size = UDim2.new(0,wid3,0,16)
- if game:GetService("Players"):FindFirstChild(username).Neutral then
- newchat.Username.TextColor3 = ChatColors[GetNameValue(username) + 1].Color
- else
- newchat.Username.TextColor3 = game:GetService("Players"):FindFirstChild(username).TeamColor.Color
- end
- local chats = chatlist:GetChildren()
- if #chats == 6 then
- chats[1]:Destroy()
- end
- newchat.Parent = chatlist
- delay(30-timeout,function()
- if newchat then
- newchat:Destroy()
- end
- end)
- end
- end
- chat.FocusLost:connect(function(enterPressed)
- if enterPressed then
- local text = chat.Text
- chat.ClearTextOnFocus = true
- chat.BackgroundColor3 = Color3.new(64/255,64/255,64/255)
- chat.Filler.BackgroundColor3 = Color3.new(64/255,64/255,64/255)
- chat.TextColor3 = Color3.new(1,1,200/255)
- chat.Text = 'To chat click here or press the "/" key'
- if string.len(text) ~= 0 then
- createchat(text)
- end
- elseif string.len(chat.Text) == 0 then
- chat.ClearTextOnFocus = true
- chat.BackgroundColor3 = Color3.new(64/255,64/255,64/255)
- chat.Filler.BackgroundColor3 = Color3.new(64/255,64/255,64/255)
- chat.TextColor3 = Color3.new(1,1,200/255)
- chat.Text = 'To chat click here or press the "/" key'
- else
- chat.BackgroundColor3 = Color3.new(64/255,64/255,64/255)
- chat.Filler.BackgroundColor3 = Color3.new(64/255,64/255,64/255)
- chat.TextColor3 = Color3.new(1,1,1)
- end
- end)
- chat:WaitForChild("ClickDetect").MouseButton1Click:connect(function()
- chat:CaptureFocus()
- chat.ClearTextOnFocus = false
- chat.BackgroundColor3 = Color3.new(1,1,1)
- chat.Filler.BackgroundColor3 = Color3.new(1,1,1)
- chat.TextColor3 = Color3.new(0,0,0)
- end)
- game:GetService("UserInputService").InputBegan:connect(function(key, gameProcessedEvent)
- local caller, error = pcall(function()
- key = key.KeyCode
- end)
- if not key or not caller or chat.TextColor3 == Color3.new(0,0,0) then
- return
- end
- if key == Enum.KeyCode.One then
- activatetool("1")
- elseif key == Enum.KeyCode.Two then
- activatetool("2")
- elseif key == Enum.KeyCode.Three then
- activatetool("3")
- elseif key == Enum.KeyCode.Four then
- activatetool("4")
- elseif key == Enum.KeyCode.Five then
- activatetool("5")
- elseif key == Enum.KeyCode.Six then
- activatetool("6")
- elseif key == Enum.KeyCode.Seven then
- activatetool("7")
- elseif key == Enum.KeyCode.Eight then
- activatetool("8")
- elseif key == Enum.KeyCode.Nine then
- activatetool("9")
- elseif key == Enum.KeyCode.Zero then
- activatetool("10")
- elseif key == Enum.KeyCode.Slash then
- chat:CaptureFocus()
- chat.ClearTextOnFocus = false
- chat.BackgroundColor3 = Color3.new(1,1,1)
- chat.Filler.BackgroundColor3 = Color3.new(1,1,1)
- chat.TextColor3 = Color3.new(0,0,0)
- elseif (key == Enum.KeyCode.I or key == Enum.KeyCode.O or key == Enum.KeyCode.Comma or key == Enum.KeyCode.Period) and chat.TextColor3 ~= Color3.new(0,0,0) then
- local s = script.SWITCH3:Clone()
- s.Parent = script
- s:Play()
- s:Destroy()
- elseif key == Enum.KeyCode.W or key == Enum.KeyCode.A or key == Enum.KeyCode.S or key == Enum.KeyCode.D or key == Enum.KeyCode.Up or key == Enum.KeyCode.Down then
- for k, v in pairs(walkdisc:GetChildren()) do
- if v.Name == "walkdisc" then
- v.Parent = nil
- end
- end
- end
- end)
- mouse.WheelForward:connect(function()
- local s = script.SWITCH3:Clone()
- s.Parent = script
- s:Play()
- s:Destroy()
- end)
- mouse.WheelBackward:connect(function()
- local s = script.SWITCH3:Clone()
- s.Parent = script
- s:Play()
- s:Destroy()
- end)
- mouse.Button1Down:connect(function()
- if walkdisc.Transparency == 0 and localplayer:DistanceFromCharacter(mouse.Hit.p) <= 50 then
- for k, v in pairs(walkdisc:GetChildren()) do
- if v.Name == "walkdisc" then
- v.Parent = nil
- end
- end
- local newwalk = walkdisc:Clone()
- newwalk.Parent = walkdisc
- while newwalk and localplayer.Character and localplayer.Character:FindFirstChild("Humanoid") and newwalk:IsDescendantOf(walkdisc) and localplayer:DistanceFromCharacter(newwalk.Position) > 5 do
- localplayer.Character.Humanoid:MoveTo(newwalk.Position, newwalk)
- wait()
- end
- newwalk:Destroy()
- end
- end)
- function leaderstatsconnectors(player)
- local children = player:GetChildren() --Connect Existing Leaderstats
- for i=1,#children do
- if children[i].Name == "leaderstats" then
- local children2 = children[i]:GetChildren()
- for i2=1,#children2 do
- if children2[i2].ClassName == "IntValue" or children2[i2].ClassName == "NumberValue" then
- children2[i2].Changed:connect(updateplist)
- end
- end
- children[i].ChildAdded:connect(function(child2)
- if child2.ClassName == "IntValue" or child2.ClassName == "NumberValue" then
- child2.Changed:connect(updateplist)
- updateplist()
- end
- end)
- children[i].ChildRemoved:connect(updateplist)
- updateplist()
- end
- end
- player.ChildAdded:connect(function(child) --Connect New Leaderstats
- if child.Name == "leaderstats" then
- local children2 = child:GetChildren()
- for i2=1,#children2 do
- if children2[i2].ClassName == "IntValue" or children2[i2].ClassName == "NumberValue" then
- children2[i2].Changed:connect(function()
- updateplist()
- end)
- end
- end
- child.ChildAdded:connect(function(child2)
- if child2.ClassName == "IntValue" or child2.ClassName == "NumberValue" then
- child2.Changed:connect(updateplist)
- updateplist()
- end
- end)
- child.ChildRemoved:connect(updateplist)
- updateplist()
- end
- end)
- player.ChildRemoved:connect(function(child) --Connect Removing Leaderstats
- if child.Name == "leaderstats" then
- updateplist()
- end
- end)
- end
- players = game:GetService("Players"):GetChildren() --Connect Existing Players
- for i=1,#players do
- if players[i].ClassName == "Player" then
- players[i].Changed:connect(updateplist)
- leaderstatsconnectors(players[i])
- end
- end
- game:GetService("Players").ChildAdded:connect(function(player) --Connect New Players
- if player.ClassName == "Player" then
- player.Changed:connect(updateplist)
- leaderstatsconnectors(player)
- updateplist()
- end
- end)
- game:GetService("Players").ChildRemoved:connect(function(player) --Connect Removing Players
- if player.ClassName == "Player" then
- updateplist()
- end
- end)
- teams = game:GetService("Teams"):GetChildren() --Connect Existing Teams
- for i=1,#teams do
- if teams[i].ClassName == "Team" then
- teams[i].Changed:connect(updateplist)
- end
- end
- game:GetService("Teams").ChildAdded:connect(function(team) --Connect New Teams
- if team.ClassName == "Team" then
- team.Changed:connect(updateplist)
- updateplist()
- end
- end)
- game:GetService("Teams").ChildRemoved:connect(function(team) --Connect Removing Teams
- if team.ClassName == "Team" then
- updateplist()
- end
- end)
- updateplist() --Player Update
- localplayer.Backpack.ChildAdded:connect(function(tool) --Connect New Tools
- if tool.ClassName == "Tool" then
- if indexcheck(tool) == false then
- tool.Changed:connect(updatetlist)
- end
- updatetlist()
- end
- end)
- localplayer.Backpack.ChildRemoved:connect(function(tool) --Connect Removing Tools
- if tool.ClassName == "Tool" then
- if tool.Parent == localplayer.Character then
- updatetlist()
- else
- table.remove(tools,indexcheck(tool))
- updatetlist()
- end
- end
- end)
- localplayer.Character.ChildAdded:connect(function(tool) --Connect New Tools By Character
- if tool.ClassName == "Tool" then
- local doac = false
- if indexcheck(tool) == false then
- doac = true
- tool.Changed:connect(updatetlist)
- end
- updatetlist()
- if doac == true then
- cursel = tostring(indexcheck(tool))
- inventory["Slot1"].BorderSizePixel = 0
- inventory["Slot2"].BorderSizePixel = 0
- inventory["Slot3"].BorderSizePixel = 0
- inventory["Slot4"].BorderSizePixel = 0
- inventory["Slot5"].BorderSizePixel = 0
- inventory["Slot6"].BorderSizePixel = 0
- inventory["Slot7"].BorderSizePixel = 0
- inventory["Slot8"].BorderSizePixel = 0
- inventory["Slot9"].BorderSizePixel = 0
- inventory["Slot0"].BorderSizePixel = 0
- if tonumber(cursel) <= 10 then
- inventory["Slot"..inv[tonumber(cursel)]].BorderSizePixel = 1
- end
- end
- end
- end)
- localplayer.Character.ChildRemoved:connect(function(tool) --Connect Removing Tools By Character
- if tool.ClassName == "Tool" then
- if tool.Parent == localplayer.Backpack then
- updatetlist()
- if indexcheck(tool) and cursel == tostring(indexcheck(tool)) and not tool.CanBeDropped then
- wait()
- if cursel == tostring(indexcheck(tool)) then
- cursel = ""
- inventory["Slot1"].BorderSizePixel = 0
- inventory["Slot2"].BorderSizePixel = 0
- inventory["Slot3"].BorderSizePixel = 0
- inventory["Slot4"].BorderSizePixel = 0
- inventory["Slot5"].BorderSizePixel = 0
- inventory["Slot6"].BorderSizePixel = 0
- inventory["Slot7"].BorderSizePixel = 0
- inventory["Slot8"].BorderSizePixel = 0
- inventory["Slot9"].BorderSizePixel = 0
- inventory["Slot0"].BorderSizePixel = 0
- end
- end
- else
- table.remove(tools,indexcheck(tool))
- updatetlist()
- cursel = ""
- inventory["Slot1"].BorderSizePixel = 0
- inventory["Slot2"].BorderSizePixel = 0
- inventory["Slot3"].BorderSizePixel = 0
- inventory["Slot4"].BorderSizePixel = 0
- inventory["Slot5"].BorderSizePixel = 0
- inventory["Slot6"].BorderSizePixel = 0
- inventory["Slot7"].BorderSizePixel = 0
- inventory["Slot8"].BorderSizePixel = 0
- inventory["Slot9"].BorderSizePixel = 0
- inventory["Slot0"].BorderSizePixel = 0
- end
- end
- end)
- buttons = inventory:GetChildren() --Connect Inventory Click Selection
- for i=1,#buttons do
- buttons[i].Button.MouseButton1Click:connect(function()
- if buttons[i].NumberLabel.Text == "0" then
- activatetool("10")
- else
- activatetool(buttons[i].NumberLabel.Text)
- end
- end)
- end
- updatetlist() --Tool Update
- chatlist.ChildAdded:connect(updateclist) --Connect Chat
- chatlist.ChildRemoved:connect(updateclist)
- function updateHealth(property) --Connect Health
- percentage = localplayer.Character.Humanoid.Health / localplayer.Character.Humanoid.MaxHealth
- if percentage < 0 then
- percentage = 0
- elseif percentage > 1 then
- percentage = 1
- end
- health:WaitForChild("Score").Position = UDim2.new(0,0,1-percentage,0)
- health:WaitForChild("Score").Size = UDim2.new(1,0,percentage,0)
- end
- localplayer.Character:WaitForChild("Humanoid").Changed:connect(updateHealth)
- localplayer.Character.Humanoid.Died:connect(function() updateHealth("Health") end)
- game:GetService("RunService").RenderStepped:connect(function()
- if cursel ~= "" then
- game:GetService("UserInputService").MouseIconEnabled = true
- gui.Cursor.Visible = false
- else
- game:GetService("UserInputService").MouseIconEnabled = false
- gui.Cursor.Visible = true
- end
- if gui.Cursor.Visible then
- gui.Cursor.Position = UDim2.new(0, mouse.X - 40, 0, mouse.Y - 40)
- if mouse.Target then
- gui.Cursor.Image = "rbxassetid://199228706"
- for k, v in pairs(mouse.Target:GetChildren()) do
- if v.ClassName == "ClickDetector" and localplayer:DistanceFromCharacter(mouse.Hit.p) <= v.MaxActivationDistance then
- gui.Cursor.Image = "rbxassetid://199232395"
- end
- end
- if localplayer:DistanceFromCharacter(mouse.Hit.p) <= 50 then
- walkdisc.CFrame = CFrame.new(mouse.Hit.p)
- walkdisc.Transparency = 0
- else
- walkdisc.Transparency = 1
- end
- else
- gui.Cursor.Image = "rbxassetid://199228762"
- walkdisc.Transparency = 1
- end
- else
- walkdisc.Transparency = 1
- end
- end)
- game:GetService("UserInputService").MouseIconEnabled = false
- game:GetService("StarterGui"):SetCoreGuiEnabled(Enum.CoreGuiType.All, false)
- end))
- TextLabel54.Name = "Player"
- TextLabel54.Parent = LocalScript53
- TextLabel54.Transparency = 1
- TextLabel54.Size = UDim2.new(0, 100, 0, 20)
- TextLabel54.Text = "Player1"
- TextLabel54.Position = UDim2.new(0, 0, 0, 40)
- TextLabel54.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel54.BackgroundTransparency = 1
- TextLabel54.BorderSizePixel = 0
- TextLabel54.ZIndex = 9
- TextLabel54.FontSize = Enum.FontSize.Size12
- TextLabel54.TextColor3 = Color3.new(1, 1, 1)
- TextLabel54.TextXAlignment = Enum.TextXAlignment.Left
- Frame55.Name = "Chat"
- Frame55.Parent = LocalScript53
- Frame55.Transparency = 0.40000000596046
- Frame55.Size = UDim2.new(0, 0, 0, 16)
- Frame55.BackgroundColor3 = Color3.new(0.6, 0.6, 0.6)
- Frame55.BackgroundTransparency = 0.40000000596046
- Frame55.BorderColor3 = Color3.new(0.6, 0.6, 0.6)
- Frame55.BorderSizePixel = 0
- Frame55.ZIndex = 8
- TextLabel56.Name = "Message"
- TextLabel56.Parent = Frame55
- TextLabel56.Transparency = 1
- TextLabel56.Size = UDim2.new(0, 0, 0, 14)
- TextLabel56.Text = "Hello World!"
- TextLabel56.BackgroundColor3 = Color3.new(0.498039, 0.498039, 0.498039)
- TextLabel56.BackgroundTransparency = 1
- TextLabel56.BorderColor3 = Color3.new(0.498039, 0.498039, 0.498039)
- TextLabel56.BorderSizePixel = 0
- TextLabel56.ZIndex = 9
- TextLabel56.FontSize = Enum.FontSize.Size10
- TextLabel56.TextColor3 = Color3.new(1, 1, 1)
- TextLabel56.TextXAlignment = Enum.TextXAlignment.Left
- TextLabel57.Name = "Username"
- TextLabel57.Parent = Frame55
- TextLabel57.Transparency = 1
- TextLabel57.Size = UDim2.new(0, 0, 0, 14)
- TextLabel57.Text = "hunte922:"
- TextLabel57.BackgroundColor3 = Color3.new(0.498039, 0.498039, 0.498039)
- TextLabel57.BackgroundTransparency = 1
- TextLabel57.BorderColor3 = Color3.new(0.498039, 0.498039, 0.498039)
- TextLabel57.BorderSizePixel = 0
- TextLabel57.ZIndex = 9
- TextLabel57.FontSize = Enum.FontSize.Size10
- TextLabel57.TextColor3 = Color3.new(1, 0, 0)
- TextLabel57.TextXAlignment = Enum.TextXAlignment.Left
- Frame58.Name = "Team"
- Frame58.Parent = LocalScript53
- Frame58.Transparency = 1
- Frame58.Size = UDim2.new(1, 0, 0, 40)
- Frame58.Position = UDim2.new(0, 5, 0, 20)
- Frame58.BackgroundColor3 = Color3.new(0.498039, 0.498039, 0.498039)
- Frame58.BackgroundTransparency = 1
- Frame58.BorderColor3 = Color3.new(0.498039, 0.498039, 0.498039)
- Frame58.BorderSizePixel = 0
- Frame58.ZIndex = 8
- TextLabel59.Name = "_Label2"
- TextLabel59.Parent = Frame58
- TextLabel59.Transparency = 1
- TextLabel59.Size = UDim2.new(0, 100, 0, 20)
- TextLabel59.Text = "Red Hawks"
- TextLabel59.Position = UDim2.new(0, -5, 0, 0)
- TextLabel59.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel59.BackgroundTransparency = 1
- TextLabel59.BorderSizePixel = 0
- TextLabel59.ZIndex = 9
- TextLabel59.FontSize = Enum.FontSize.Size12
- TextLabel59.TextColor3 = Color3.new(1, 0, 0)
- TextLabel59.TextStrokeTransparency = 0.5
- TextLabel59.TextXAlignment = Enum.TextXAlignment.Left
- Frame60.Name = "_Label3"
- Frame60.Parent = Frame58
- Frame60.Size = UDim2.new(1, -4, 0, 1)
- Frame60.Position = UDim2.new(0, -3, 0, 20)
- Frame60.BackgroundColor3 = Color3.new(1, 0, 0)
- Frame60.BorderSizePixel = 0
- Frame60.ZIndex = 9
- TextLabel61.Name = "LSLabel"
- TextLabel61.Parent = LocalScript53
- TextLabel61.Transparency = 1
- TextLabel61.Size = UDim2.new(0, 100, 0, 30)
- TextLabel61.Text = "KOs"
- TextLabel61.Position = UDim2.new(0, 160, 0, 0)
- TextLabel61.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel61.BackgroundTransparency = 1
- TextLabel61.BorderSizePixel = 0
- TextLabel61.ZIndex = 9
- TextLabel61.FontSize = Enum.FontSize.Size12
- TextLabel61.TextColor3 = Color3.new(1, 1, 1)
- TextLabel61.TextXAlignment = Enum.TextXAlignment.Left
- TextLabel62.Name = "ScoreLabel"
- TextLabel62.Parent = LocalScript53
- TextLabel62.Transparency = 1
- TextLabel62.Size = UDim2.new(0, 100, 0, 20)
- TextLabel62.Text = "0"
- TextLabel62.Position = UDim2.new(0, 155, 0, 0)
- TextLabel62.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel62.BackgroundTransparency = 1
- TextLabel62.BorderSizePixel = 0
- TextLabel62.ZIndex = 9
- TextLabel62.FontSize = Enum.FontSize.Size12
- TextLabel62.TextColor3 = Color3.new(1, 1, 1)
- TextLabel62.TextXAlignment = Enum.TextXAlignment.Left
- Sound63.Name = "SWITCH3"
- Sound63.Parent = LocalScript53
- Sound63.SoundId = "http://www.roblox.com/asset/?id=161252159"
- Part64.Name = "walkdisc"
- Part64.Parent = LocalScript53
- Part64.Material = Enum.Material.SmoothPlastic
- Part64.BrickColor = BrickColor.new("Lime green")
- Part64.Anchored = true
- Part64.CanCollide = false
- Part64.Locked = true
- Part64.FormFactor = Enum.FormFactor.Plate
- Part64.Size = Vector3.new(2, 0.400000006, 2)
- Part64.CFrame = CFrame.new(92, 130.199997, -106, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part64.Color = Color3.new(0, 1, 0)
- Part64.Position = Vector3.new(92, 130.199997, -106)
- Part64.Color = Color3.new(0, 1, 0)
- RemoteFunction65.Name = "ReceiveChat"
- RemoteFunction65.Parent = Script0
- Script66.Name = "RetroManager"
- Script66.Parent = Script0
- table.insert(cors,sandbox(Script66,function()
- receivechat = workspace:WaitForChild("ReceiveChat")
- script:WaitForChild("Settings")
- anims = script.Settings:WaitForChild("RetroCharacterAnimations").Value
- body = script.Settings:WaitForChild("RetroCharacterBody").Value
- sounds = script.Settings:WaitForChild("RetroCharacterSound").Value
- face = script.Settings:WaitForChild("RetroCharacterFace").Value
- namelog = {}
- chatlog = {}
- timelog = {}
- function trimLeft(s,n)
- return string.sub(s, n+1)
- end
- function trimRight(s,n)
- return string.sub(s, 1, -n-1)
- end
- function cropLeft(s,n)
- return string.sub(s, 1, n)
- end
- function cropRight(s,n)
- return string.sub(s, -n, -1)
- end
- function receivechat.OnServerInvoke(username, message)
- pcall(function()
- message = game:GetService("Chat"):FilterStringForPlayerAsync(message, username)
- end)
- if cropLeft(message, 1) ~= "%" then
- local players = game:GetService("Players"):GetChildren()
- for i = 1, #players do
- if players[i].ClassName == "Player" then
- spawn(function()
- pcall(function()
- message = game:GetService("Chat"):FilterStringForPlayerAsync(message, players[i])
- end)
- players[i]:WaitForChild("PlayerGui"):WaitForChild("Retro"):WaitForChild("LocalScript"):WaitForChild("SendChat"):InvokeClient(players[i],{username.Name,message,0})
- end)
- end
- end
- else
- local players = game:GetService("Players"):GetChildren()
- for i = 1, #players do
- if players[i].ClassName == "Player" then
- if players[i].TeamColor == username.TeamColor or players[i].Neutral then
- spawn(function()
- pcall(function()
- message = game:GetService("Chat"):FilterStringForPlayerAsync(message, username)
- end)
- players[i]:WaitForChild("PlayerGui"):WaitForChild("Retro"):WaitForChild("LocalScript"):WaitForChild("SendChat"):InvokeClient(players[i],{username.Name,"(TEAM) "..trimLeft(message,1),0})
- end)
- end
- end
- end
- end
- namelog[1] = namelog[2]
- namelog[2] = namelog[3]
- namelog[3] = namelog[4]
- namelog[4] = namelog[5]
- namelog[5] = namelog[6]
- namelog[6] = username.Name
- chatlog[1] = chatlog[2]
- chatlog[2] = chatlog[3]
- chatlog[3] = chatlog[4]
- chatlog[4] = chatlog[5]
- chatlog[5] = chatlog[6]
- chatlog[6] = message
- timelog[1] = timelog[2]
- timelog[2] = timelog[3]
- timelog[3] = timelog[4]
- timelog[4] = timelog[5]
- timelog[5] = timelog[6]
- timelog[6] = workspace.DistributedGameTime
- end
- function makeheadmesh(character)
- if character:IsDescendantOf(game) and character:WaitForChild("Head"):IsDescendantOf(game) then
- script.Mesh:Clone().Parent = character:WaitForChild("Head")
- end
- end
- function clean(item, character)
- if item.Name == "face" and face then
- item:Destroy()
- local f = script:WaitForChild("face2"):Clone()
- f.Parent = character.Head
- elseif item.ClassName == "CharacterMesh" and body then
- item:Destroy()
- elseif (item.ClassName == "SpecialMesh" or item.ClassName == "BlockMesh" or item.ClassName == "CylinderMesh") and not (item.ClassName == "SpecialMesh" and item.MeshType == Enum.MeshType.Head and item.Scale == Vector3.new(1.25,1.25,1.25)) and body then
- makeheadmesh(character)
- end
- end
- function pa(player)
- player.CharacterAdded:connect(function(character)
- if anims then
- character:WaitForChild("Animate"):Destroy()
- local a = script:WaitForChild("Animate"):clone()
- a.Parent = character
- a.Disabled = false
- end
- if sounds then
- character:WaitForChild("Sound"):Destroy()
- local s = script:WaitForChild("Sound"):clone()
- s.Parent = character
- s.Disabled = false
- end
- if body then
- character.ChildAdded:connect(function(item)
- wait()
- clean(item, character)
- end)
- local get = character:GetChildren()
- for i = 1, #get do
- clean(get[i], character)
- end
- character:WaitForChild("Head").ChildAdded:connect(function(item)
- wait()
- clean(item, character)
- end)
- local get = character.Head:GetChildren()
- for i = 1, #get do
- clean(get[i], character)
- end
- end
- for i = 1, 6 do
- if namelog[i] and chatlog[i] and timelog[i] and workspace.DistributedGameTime - timelog[i] < 30 then
- if cropLeft(chatlog[i], 1) ~= "%" then
- player:WaitForChild("PlayerGui"):WaitForChild("Retro"):WaitForChild("LocalScript"):WaitForChild("SendChat"):InvokeClient(player, {namelog[i], chatlog[i], workspace.DistributedGameTime - timelog[i]})
- end
- end
- end
- end)
- end
- game:GetService("Players").PlayerAdded:connect(pa)
- local get = game:GetService("Players"):GetChildren()
- for i = 1, #get do
- pa(get[i])
- end
- end))
- LocalScript67.Name = "Animate"
- LocalScript67.Parent = Script66
- LocalScript67.Disabled = true
- table.insert(cors,sandbox(LocalScript67,function()
- function waitForChild(parent, childName)
- local child = parent:findFirstChild(childName)
- if child then return child end
- while true do
- child = parent.ChildAdded:wait()
- if child.Name==childName then return child end
- end
- end
- -- ANIMATION
- -- declarations
- local Figure = script.Parent
- local Torso = waitForChild(Figure, "Torso")
- local RightShoulder = waitForChild(Torso, "Right Shoulder")
- local LeftShoulder = waitForChild(Torso, "Left Shoulder")
- local RightHip = waitForChild(Torso, "Right Hip")
- local LeftHip = waitForChild(Torso, "Left Hip")
- local Neck = waitForChild(Torso, "Neck")
- local Humanoid = waitForChild(Figure, "Humanoid")
- local pose = "Standing"
- local toolAnim = "None"
- local toolAnimTime = 0
- -- functions
- function onRunning(speed)
- if speed>0 then
- pose = "Running"
- else
- pose = "Standing"
- end
- end
- function onDied()
- pose = "Dead"
- end
- function onJumping()
- pose = "Jumping"
- end
- function onClimbing()
- pose = "Climbing"
- end
- function onGettingUp()
- pose = "GettingUp"
- end
- function onFreeFall()
- pose = "FreeFall"
- end
- function onFallingDown()
- pose = "FallingDown"
- end
- function onSeated()
- pose = "Seated"
- end
- function onPlatformStanding()
- pose = "PlatformStanding"
- end
- function moveJump()
- RightShoulder.MaxVelocity = 0.5
- LeftShoulder.MaxVelocity = 0.5
- RightShoulder.DesiredAngle = 3.14
- LeftShoulder.DesiredAngle = -3.14
- RightHip.DesiredAngle = 0
- LeftHip.DesiredAngle = 0
- end
- -- same as jump for now
- function moveFreeFall()
- RightShoulder.MaxVelocity = 0.5
- LeftShoulder.MaxVelocity = 0.5
- RightShoulder.DesiredAngle = 3.14
- LeftShoulder.DesiredAngle = -3.14
- RightHip.DesiredAngle = 0
- LeftHip.DesiredAngle = 0
- end
- function moveSit()
- RightShoulder.MaxVelocity = 0.15
- LeftShoulder.MaxVelocity = 0.15
- RightShoulder.DesiredAngle = 3.14 /2
- LeftShoulder.DesiredAngle = -3.14 /2
- RightHip.DesiredAngle = 3.14 /2
- LeftHip.DesiredAngle = -3.14 /2
- end
- function getTool()
- for _, kid in ipairs(Figure:GetChildren()) do
- if kid.className == "Tool" then return kid end
- end
- return nil
- end
- function getToolAnim(tool)
- for _, c in ipairs(tool:GetChildren()) do
- if c.Name == "toolanim" and c.className == "StringValue" then
- return c
- end
- end
- return nil
- end
- function animateTool()
- if (toolAnim == "None") then
- RightShoulder.DesiredAngle = 1.57
- return
- end
- if (toolAnim == "Slash") then
- RightShoulder.MaxVelocity = 0.5
- RightShoulder.DesiredAngle = 0
- return
- end
- if (toolAnim == "Lunge") then
- RightShoulder.MaxVelocity = 0.5
- LeftShoulder.MaxVelocity = 0.5
- RightHip.MaxVelocity = 0.5
- LeftHip.MaxVelocity = 0.5
- RightShoulder.DesiredAngle = 1.57
- LeftShoulder.DesiredAngle = 1.0
- RightHip.DesiredAngle = 1.57
- LeftHip.DesiredAngle = 1.0
- return
- end
- end
- function move(time)
- local amplitude
- local frequency
- if (pose == "Jumping") then
- moveJump()
- return
- end
- if (pose == "FreeFall") then
- moveFreeFall()
- return
- end
- if (pose == "Seated") then
- moveSit()
- return
- end
- local climbFudge = 0
- if (pose == "Running") then
- RightShoulder.MaxVelocity = 0.15
- LeftShoulder.MaxVelocity = 0.15
- amplitude = 1
- frequency = 9
- elseif (pose == "Climbing") then
- RightShoulder.MaxVelocity = 0.5
- LeftShoulder.MaxVelocity = 0.5
- amplitude = 1
- frequency = 9
- climbFudge = 3.14
- else
- amplitude = 0.1
- frequency = 1
- end
- desiredAngle = amplitude * math.sin(time*frequency)
- RightShoulder.DesiredAngle = desiredAngle + climbFudge
- LeftShoulder.DesiredAngle = desiredAngle - climbFudge
- RightHip.DesiredAngle = -desiredAngle
- LeftHip.DesiredAngle = -desiredAngle
- local tool = getTool()
- if tool then
- animStringValueObject = getToolAnim(tool)
- if animStringValueObject then
- toolAnim = animStringValueObject.Value
- -- message recieved, delete StringValue
- animStringValueObject.Parent = nil
- toolAnimTime = time + .3
- end
- if time > toolAnimTime then
- toolAnimTime = 0
- toolAnim = "None"
- end
- animateTool()
- else
- toolAnim = "None"
- toolAnimTime = 0
- end
- end
- -- connect events
- Humanoid.Died:connect(onDied)
- Humanoid.Running:connect(onRunning)
- Humanoid.Jumping:connect(onJumping)
- Humanoid.Climbing:connect(onClimbing)
- Humanoid.GettingUp:connect(onGettingUp)
- Humanoid.FreeFalling:connect(onFreeFall)
- Humanoid.FallingDown:connect(onFallingDown)
- Humanoid.Seated:connect(onSeated)
- Humanoid.PlatformStanding:connect(onPlatformStanding)
- -- main program
- local runService = game:service("RunService");
- while Figure.Parent~=nil do
- local _, time = wait(0.1)
- move(time)
- end
- end))
- SpecialMesh68.Parent = Script66
- SpecialMesh68.Scale = Vector3.new(1.25, 1.25, 1.25)
- SpecialMesh68.Scale = Vector3.new(1.25, 1.25, 1.25)
- Configuration69.Name = "Settings"
- Configuration69.Parent = Script66
- BoolValue70.Name = "RetroCharacterAnimations"
- BoolValue70.Parent = Configuration69
- BoolValue70.Value = true
- BoolValue71.Name = "RetroCharacterBody"
- BoolValue71.Parent = Configuration69
- BoolValue71.Value = true
- BoolValue72.Name = "RetroCharacterSound"
- BoolValue72.Parent = Configuration69
- BoolValue72.Value = true
- BoolValue73.Name = "RetroCharacterFace"
- BoolValue73.Parent = Configuration69
- BoolValue73.Value = true
- Script74.Name = "Sound"
- Script74.Parent = Script66
- Script74.Disabled = true
- table.insert(cors,sandbox(Script74,function()
- -- util
- function waitForChild(parent, childName)
- local child = parent:findFirstChild(childName)
- if child then return child end
- while true do
- child = parent.ChildAdded:wait()
- if child.Name==childName then return child end
- end
- end
- function newSound(id)
- local sound = Instance.new("Sound")
- sound.SoundId = id
- sound.archivable = false
- sound.Parent = script.Parent.Head
- return sound
- end
- -- declarations
- local sDied = newSound("rbxasset://sounds/uuhhh.wav")
- local sFallingDown = newSound("rbxasset://sounds/splat.wav")
- local sFreeFalling = newSound("rbxasset://sounds/swoosh.wav")
- local sGettingUp = newSound("rbxasset://sounds/hit.wav")
- local sJumping = newSound("rbxasset://sounds/button.wav")
- local sRunning = newSound("rbxasset://sounds/bfsl-minifigfoots1.mp3")
- sRunning.Looped = true
- local Figure = script.Parent
- local Head = waitForChild(Figure, "Head")
- local Humanoid = waitForChild(Figure, "Humanoid")
- -- functions
- function onDied()
- sDied:Play()
- end
- function onState(state, sound)
- if state then
- sound:Play()
- else
- sound:Pause()
- end
- end
- function onRunning(speed)
- if speed>0 then
- sRunning:Play()
- else
- sRunning:Pause()
- end
- end
- -- connect up
- Humanoid.Died:connect(onDied)
- Humanoid.Running:connect(onRunning)
- Humanoid.Jumping:connect(function(state) onState(state, sJumping) end)
- Humanoid.GettingUp:connect(function(state) onState(state, sGettingUp) end)
- Humanoid.FreeFalling:connect(function(state) onState(state, sFreeFalling) end)
- Humanoid.FallingDown:connect(function(state) onState(state, sFallingDown) end)
- end))
- Decal75.Name = "face2"
- Decal75.Parent = Script66
- Decal75.Texture = "rbxassetid://41420967"
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = workspace
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement