SHOW:
|
|
- or go back to the newest paste.
| 1 | - | local GuestWorldV1 = Instance.new("ScreenGui")
|
| 1 | + | wait(0.01) |
| 2 | ||
| 3 | game.StarterGui:SetCore("ChatMakeSystemMessage", {
| |
| 4 | Text = "[GuestWorldV1] : Loading!"; | |
| 5 | Color = Color3.new(0, 165, 0); | |
| 6 | Font = Enum.Font.SourceSansBold; | |
| 7 | FontSize = Enum.FontSize.Size24; | |
| 8 | }) | |
| 9 | wait(3) | |
| 10 | game.StarterGui:SetCore("ChatMakeSystemMessage", {
| |
| 11 | Text = "[GuestWorldV1] : Loaded!"; | |
| 12 | Color = Color3.new(0, 165, 0); | |
| 13 | Font = Enum.Font.SourceSansBold; | |
| 14 | FontSize = Enum.FontSize.Size24; | |
| 15 | }) | |
| 16 | ||
| 17 | wait(1) | |
| 18 | ||
| 19 | game.StarterGui:SetCore("SendNotification", {
| |
| 20 | Title = "Credits"; | |
| 21 | Text = "Made By baldiwrds Scripting by baliwrds Edit by baldiwrds"; | |
| 22 | }) | |
| 23 | ||
| 24 | --- Made by baldiwrds --- | |
| 25 | ||
| 26 | local GuestWorldV1 = Instance.new("ScreenGui")
| |
| 27 | local Main = Instance.new("Frame")
| |
| 28 | local Hide = Instance.new("TextLabel")
| |
| 29 | local Show = Instance.new("TextLabel")
| |
| 30 | local Gun1 = Instance.new("TextLabel")
| |
| 31 | local Gun2 = Instance.new("TextLabel")
| |
| 32 | local Gun3 = Instance.new("TextLabel")
| |
| 33 | local Gun4 = Instance.new("TextLabel")
| |
| 34 | local Gun5 = Instance.new("TextLabel")
| |
| 35 | local Survivor = Instance.new("TextLabel")
| |
| 36 | local Gun6 = Instance.new("TextLabel")
| |
| 37 | local HowUse = Instance.new("TextLabel")
| |
| 38 | local Text = Instance.new("TextLabel")
| |
| 39 | local Main2 = Instance.new("Frame")
| |
| 40 | local ESP = Instance.new("TextLabel")
| |
| 41 | local Bacon = Instance.new("TextLabel")
| |
| 42 | local GunText = Instance.new("TextLabel")
| |
| 43 | local EspText = Instance.new("TextLabel")
| |
| 44 | local GuestWorld = Instance.new("ImageLabel")
| |
| 45 | local Made = Instance.new("TextLabel")
| |
| 46 | local Scripting = Instance.new("TextLabel")
| |
| 47 | local Edit = Instance.new("TextLabel")
| |
| 48 | ||
| 49 | GuestWorldV1.Name = "GuestWorldV1" | |
| 50 | GuestWorldV1.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
| |
| 51 | GuestWorldV1.ResetOnSpawn = false | |
| 52 | ||
| 53 | Main.Name = "Main" | |
| 54 | Main.Parent = GuestWorldV1 | |
| 55 | Main.BackgroundColor3 = Color3.new(1, 1, 1) | |
| 56 | Main.BorderSizePixel = 0 | |
| 57 | Main.Position = UDim2.new(0, 0, 0.0813953504, 0) | |
| 58 | Main.Size = UDim2.new(0, 120, 0, 300) | |
| 59 | ||
| 60 | Hide.Name = "Hide" | |
| 61 | Hide.Parent = Main | |
| 62 | Hide.BackgroundColor3 = Color3.new(1, 1, 1) | |
| 63 | Hide.BackgroundTransparency = 1 | |
| 64 | Hide.BorderSizePixel = 0 | |
| 65 | Hide.Position = UDim2.new(0, 0, 0.122661255, 0) | |
| 66 | Hide.Size = UDim2.new(0, 120, 0, 31) | |
| 67 | Hide.Font = Enum.Font.Code | |
| 68 | Hide.Text = "/e Hide" | |
| 69 | Hide.TextColor3 = Color3.new(0, 0, 0) | |
| 70 | Hide.TextSize = 24 | |
| 71 | Hide.TextXAlignment = Enum.TextXAlignment.Left | |
| 72 | ||
| 73 | Show.Name = "Show" | |
| 74 | Show.Parent = Main | |
| 75 | Show.BackgroundColor3 = Color3.new(1, 1, 1) | |
| 76 | Show.BackgroundTransparency = 1 | |
| 77 | Show.BorderSizePixel = 0 | |
| 78 | Show.Position = UDim2.new(0, 0, 0.224870458, 0) | |
| 79 | Show.Size = UDim2.new(0, 120, 0, 34) | |
| 80 | Show.Font = Enum.Font.Code | |
| 81 | Show.Text = "/e Show" | |
| 82 | Show.TextColor3 = Color3.new(0, 0, 0) | |
| 83 | Show.TextSize = 24 | |
| 84 | Show.TextXAlignment = Enum.TextXAlignment.Left | |
| 85 | ||
| 86 | Gun1.Name = "Gun1" | |
| 87 | Gun1.Parent = Main | |
| 88 | Gun1.BackgroundColor3 = Color3.new(1, 1, 1) | |
| 89 | Gun1.BackgroundTransparency = 1 | |
| 90 | Gun1.BorderSizePixel = 0 | |
| 91 | Gun1.Position = UDim2.new(0, 0, 0.338494599, 0) | |
| 92 | Gun1.Size = UDim2.new(0, 120, 0, 35) | |
| 93 | Gun1.Font = Enum.Font.Code | |
| 94 | Gun1.Text = "/e Gun1" | |
| 95 | Gun1.TextColor3 = Color3.new(0, 0, 0) | |
| 96 | Gun1.TextSize = 24 | |
| 97 | Gun1.TextXAlignment = Enum.TextXAlignment.Left | |
| 98 | ||
| 99 | Gun2.Name = "Gun2" | |
| 100 | Gun2.Parent = Main | |
| 101 | Gun2.BackgroundColor3 = Color3.new(1, 1, 1) | |
| 102 | Gun2.BackgroundTransparency = 1 | |
| 103 | Gun2.BorderSizePixel = 0 | |
| 104 | Gun2.Position = UDim2.new(0, 0, 0.456005603, 0) | |
| 105 | Gun2.Size = UDim2.new(0, 120, 0, 35) | |
| 106 | Gun2.Font = Enum.Font.Code | |
| 107 | Gun2.Text = "/e Gun2" | |
| 108 | Gun2.TextColor3 = Color3.new(0, 0, 0) | |
| 109 | Gun2.TextSize = 24 | |
| 110 | Gun2.TextXAlignment = Enum.TextXAlignment.Left | |
| 111 | ||
| 112 | Gun3.Name = "Gun3" | |
| 113 | Gun3.Parent = Main | |
| 114 | Gun3.BackgroundColor3 = Color3.new(1, 1, 1) | |
| 115 | Gun3.BackgroundTransparency = 1 | |
| 116 | Gun3.BorderSizePixel = 0 | |
| 117 | Gun3.Position = UDim2.new(0, 0, 0.573465168, 0) | |
| 118 | Gun3.Size = UDim2.new(0, 120, 0, 35) | |
| 119 | Gun3.Font = Enum.Font.Code | |
| 120 | Gun3.Text = "/e Gun3" | |
| 121 | Gun3.TextColor3 = Color3.new(0, 0, 0) | |
| 122 | Gun3.TextSize = 24 | |
| 123 | Gun3.TextXAlignment = Enum.TextXAlignment.Left | |
| 124 | ||
| 125 | Gun4.Name = "Gun4" | |
| 126 | Gun4.Parent = Main | |
| 127 | Gun4.BackgroundColor3 = Color3.new(1, 1, 1) | |
| 128 | Gun4.BackgroundTransparency = 1 | |
| 129 | Gun4.BorderSizePixel = 0 | |
| 130 | Gun4.Position = UDim2.new(0, 0, 0.687591493, 0) | |
| 131 | Gun4.Size = UDim2.new(0, 120, 0, 35) | |
| 132 | Gun4.Font = Enum.Font.Code | |
| 133 | Gun4.Text = "/e Gun4" | |
| 134 | Gun4.TextColor3 = Color3.new(0, 0, 0) | |
| 135 | Gun4.TextSize = 24 | |
| 136 | Gun4.TextXAlignment = Enum.TextXAlignment.Left | |
| 137 | ||
| 138 | Gun5.Name = "Gun5" | |
| 139 | Gun5.Parent = Main | |
| 140 | Gun5.BackgroundColor3 = Color3.new(1, 1, 1) | |
| 141 | Gun5.BackgroundTransparency = 1 | |
| 142 | Gun5.BorderSizePixel = 0 | |
| 143 | Gun5.Position = UDim2.new(0, 0, 0.825318635, 0) | |
| 144 | Gun5.Size = UDim2.new(0, 120, 0, 16) | |
| 145 | Gun5.Font = Enum.Font.Code | |
| 146 | Gun5.Text = "/e Gun5" | |
| 147 | Gun5.TextColor3 = Color3.new(0, 0, 0) | |
| 148 | Gun5.TextSize = 24 | |
| 149 | Gun5.TextXAlignment = Enum.TextXAlignment.Left | |
| 150 | ||
| 151 | Survivor.Name = "Survivor" | |
| 152 | Survivor.Parent = Main | |
| 153 | Survivor.BackgroundColor3 = Color3.new(0.105882, 0.509804, 0.670588) | |
| 154 | Survivor.BorderSizePixel = 0 | |
| 155 | Survivor.Size = UDim2.new(0, 120, 0, 37) | |
| 156 | Survivor.Font = Enum.Font.Arcade | |
| 157 | Survivor.Text = "Survivor" | |
| 158 | Survivor.TextColor3 = Color3.new(0.188235, 0.713726, 0.831373) | |
| 159 | Survivor.TextSize = 24 | |
| 160 | ||
| 161 | Gun6.Name = "Gun6" | |
| 162 | Gun6.Parent = Main | |
| 163 | Gun6.BackgroundColor3 = Color3.new(1, 1, 1) | |
| 164 | Gun6.BackgroundTransparency = 1 | |
| 165 | Gun6.BorderSizePixel = 0 | |
| 166 | Gun6.Position = UDim2.new(0, 0, 0.932176888, 0) | |
| 167 | Gun6.Size = UDim2.new(0, 120, 0, 16) | |
| 168 | Gun6.Font = Enum.Font.Code | |
| 169 | Gun6.Text = "/e Gun6" | |
| 170 | Gun6.TextColor3 = Color3.new(0, 0, 0) | |
| 171 | Gun6.TextSize = 24 | |
| 172 | Gun6.TextXAlignment = Enum.TextXAlignment.Left | |
| 173 | ||
| 174 | HowUse.Name = "HowUse" | |
| 175 | HowUse.Parent = GuestWorldV1 | |
| 176 | HowUse.BackgroundColor3 = Color3.new(0.67451, 0.403922, 0.223529) | |
| 177 | HowUse.BorderSizePixel = 0 | |
| 178 | HowUse.Position = UDim2.new(0.2772277, 0, 0, 0) | |
| 179 | HowUse.Size = UDim2.new(0, 743, 0, 49) | |
| 180 | HowUse.Font = Enum.Font.Antique | |
| 181 | HowUse.Text = "First The Game Is Started, And Say Bacon Soldier Coming, And Have Times, The You Will Say /e Hide It Will Help You Win, Say /e Show Will Teleport You Back, And Say /e Gun1-5 Will Teleport You To Gun Chest" | |
| 182 | HowUse.TextColor3 = Color3.new(0.0823529, 0.360784, 0.603922) | |
| 183 | HowUse.TextScaled = true | |
| 184 | HowUse.TextSize = 20 | |
| 185 | HowUse.TextWrapped = true | |
| 186 | ||
| 187 | Text.Name = "Text" | |
| 188 | Text.Parent = GuestWorldV1 | |
| 189 | Text.BackgroundColor3 = Color3.new(0.67451, 0.403922, 0.223529) | |
| 190 | Text.BackgroundTransparency = 1 | |
| 191 | Text.BorderSizePixel = 0 | |
| 192 | Text.Size = UDim2.new(0, 365, 0, 56) | |
| 193 | Text.Font = Enum.Font.Highway | |
| 194 | Text.Text = "Guest World Orphanage" | |
| 195 | Text.TextColor3 = Color3.new(0.0823529, 0.360784, 0.603922) | |
| 196 | Text.TextScaled = true | |
| 197 | Text.TextSize = 20 | |
| 198 | Text.TextWrapped = true | |
| 199 | ||
| 200 | Main2.Name = "Main2" | |
| 201 | Main2.Parent = GuestWorldV1 | |
| 202 | Main2.BackgroundColor3 = Color3.new(1, 1, 1) | |
| 203 | Main2.BorderSizePixel = 0 | |
| 204 | Main2.Position = UDim2.new(0.118811883, 0, 0.0813953504, 0) | |
| 205 | Main2.Size = UDim2.new(0, 127, 0, 300) | |
| 206 | ||
| 207 | ESP.Name = "ESP" | |
| 208 | ESP.Parent = Main2 | |
| 209 | ESP.BackgroundColor3 = Color3.new(1, 1, 1) | |
| 210 | ESP.BackgroundTransparency = 1 | |
| 211 | ESP.BorderSizePixel = 0 | |
| 212 | ESP.Position = UDim2.new(0, 0, 0.119531989, 0) | |
| 213 | ESP.Size = UDim2.new(0, 127, 0, 31) | |
| 214 | ESP.Font = Enum.Font.Code | |
| 215 | ESP.Text = "/e Esp" | |
| 216 | ESP.TextColor3 = Color3.new(0, 0, 0) | |
| 217 | ESP.TextSize = 24 | |
| 218 | ESP.TextXAlignment = Enum.TextXAlignment.Left | |
| 219 | ||
| 220 | Bacon.Name = "Bacon" | |
| 221 | Bacon.Parent = Main2 | |
| 222 | Bacon.BackgroundColor3 = Color3.new(0.45098, 0.329412, 0.137255) | |
| 223 | Bacon.BorderSizePixel = 0 | |
| 224 | Bacon.Size = UDim2.new(0, 127, 0, 37) | |
| 225 | Bacon.Font = Enum.Font.Arcade | |
| 226 | Bacon.Text = "Bacon" | |
| 227 | Bacon.TextColor3 = Color3.new(0.313726, 0.196078, 0.113725) | |
| 228 | Bacon.TextSize = 24 | |
| 229 | ||
| 230 | GunText.Name = "GunText" | |
| 231 | GunText.Parent = GuestWorldV1 | |
| 232 | GunText.BackgroundColor3 = Color3.new(0.360784, 1, 0.572549) | |
| 233 | GunText.BorderSizePixel = 0 | |
| 234 | GunText.Position = UDim2.new(0.2772277, 0, 0.0988371819, 0) | |
| 235 | GunText.Size = UDim2.new(0, 179, 0, 49) | |
| 236 | GunText.Font = Enum.Font.Antique | |
| 237 | GunText.Text = "Gun Open Will Be 2 : 45!" | |
| 238 | GunText.TextColor3 = Color3.new(0.196078, 0.247059, 0.470588) | |
| 239 | GunText.TextScaled = true | |
| 240 | GunText.TextSize = 20 | |
| 241 | GunText.TextWrapped = true | |
| 242 | ||
| 243 | EspText.Name = "EspText" | |
| 244 | EspText.Parent = GuestWorldV1 | |
| 245 | EspText.BackgroundColor3 = Color3.new(0.47451, 0.301961, 0.160784) | |
| 246 | EspText.BorderSizePixel = 0 | |
| 247 | EspText.Position = UDim2.new(0.2772277, 0, 0.0494185761, 0) | |
| 248 | EspText.Size = UDim2.new(0, 277, 0, 49) | |
| 249 | EspText.Font = Enum.Font.Antique | |
| 250 | EspText.Text = "Say /e Esp Can See Any Survivors!" | |
| 251 | EspText.TextColor3 = Color3.new(0.854902, 0.505882, 0.27451) | |
| 252 | EspText.TextSize = 28 | |
| 253 | EspText.TextWrapped = true | |
| 254 | ||
| 255 | GuestWorld.Name = "GuestWorld" | |
| 256 | GuestWorld.Parent = GuestWorldV1 | |
| 257 | GuestWorld.BackgroundColor3 = Color3.new(1, 1, 1) | |
| 258 | GuestWorld.BackgroundTransparency = 1 | |
| 259 | GuestWorld.BorderSizePixel = 0 | |
| 260 | GuestWorld.Position = UDim2.new(0, 0, 0.463662773, 0) | |
| 261 | GuestWorld.Size = UDim2.new(0, 100, 0, 100) | |
| 262 | GuestWorld.Image = "rbxassetid://2496430968" | |
| 263 | ||
| 264 | Made.Name = "Made" | |
| 265 | Made.Parent = GuestWorld | |
| 266 | Made.BackgroundColor3 = Color3.new(1, 1, 1) | |
| 267 | Made.BackgroundTransparency = 1 | |
| 268 | Made.BorderSizePixel = 0 | |
| 269 | Made.Position = UDim2.new(0, 0, 1, 0) | |
| 270 | Made.Size = UDim2.new(0, 100, 0, 20) | |
| 271 | Made.Font = Enum.Font.Antique | |
| 272 | Made.Text = "Made by baldiwrds" | |
| 273 | Made.TextColor3 = Color3.new(0.227451, 0.270588, 0.545098) | |
| 274 | Made.TextScaled = true | |
| 275 | Made.TextSize = 18 | |
| 276 | Made.TextWrapped = true | |
| 277 | ||
| 278 | Scripting.Name = "Scripting" | |
| 279 | Scripting.Parent = GuestWorld | |
| 280 | Scripting.BackgroundColor3 = Color3.new(1, 1, 1) | |
| 281 | Scripting.BackgroundTransparency = 1 | |
| 282 | Scripting.BorderSizePixel = 0 | |
| 283 | Scripting.Position = UDim2.new(0, 0, 1.20000005, 0) | |
| 284 | Scripting.Size = UDim2.new(0, 100, 0, 20) | |
| 285 | Scripting.Font = Enum.Font.Antique | |
| 286 | Scripting.Text = "Scripting by baldiwrds" | |
| 287 | Scripting.TextColor3 = Color3.new(0.988235, 1, 0.145098) | |
| 288 | Scripting.TextScaled = true | |
| 289 | Scripting.TextSize = 18 | |
| 290 | Scripting.TextWrapped = true | |
| 291 | ||
| 292 | Edit.Name = "Edit" | |
| 293 | Edit.Parent = GuestWorld | |
| 294 | Edit.BackgroundColor3 = Color3.new(1, 1, 1) | |
| 295 | Edit.BackgroundTransparency = 1 | |
| 296 | Edit.BorderSizePixel = 0 | |
| 297 | Edit.Position = UDim2.new(0, 0, 1.4000001, 0) | |
| 298 | Edit.Size = UDim2.new(0, 100, 0, 20) | |
| 299 | Edit.Font = Enum.Font.Antique | |
| 300 | Edit.Text = "Edit by baldiwrds" | |
| 301 | Edit.TextColor3 = Color3.new(0.188235, 0.552941, 0.74902) | |
| 302 | Edit.TextScaled = true | |
| 303 | Edit.TextSize = 18 | |
| 304 | Edit.TextWrapped = true | |
| 305 | ||
| 306 | function SCRIPT_BFLZ81_FAKESCRIPT() | |
| 307 | local script = Instance.new('LocalScript')
| |
| 308 | script.Parent = Main | |
| 309 | function zigzag(X) return math.acos(math.cos(X*math.pi))/math.pi end | |
| 310 | ||
| 311 | counter = 0 | |
| 312 | ||
| 313 | while wait(0.1)do | |
| 314 | script.Parent.BackgroundColor3 = Color3.fromHSV(zigzag(counter),1,1) | |
| 315 | ||
| 316 | counter = counter + 0.01 | |
| 317 | end | |
| 318 | ||
| 319 | end | |
| 320 | coroutine.resume(coroutine.create(SCRIPT_BFLZ81_FAKESCRIPT)) | |
| 321 | function SCRIPT_JJUT86_FAKESCRIPT() | |
| 322 | local script = Instance.new('LocalScript')
| |
| 323 | script.Parent = Main2 | |
| 324 | function zigzag(X) return math.acos(math.cos(X*math.pi))/math.pi end | |
| 325 | ||
| 326 | counter = 0 | |
| 327 | ||
| 328 | while wait(0.1)do | |
| 329 | script.Parent.BackgroundColor3 = Color3.fromHSV(zigzag(counter),1,1) | |
| 330 | ||
| 331 | counter = counter + 0.01 | |
| 332 | end | |
| 333 | ||
| 334 | end | |
| 335 | coroutine.resume(coroutine.create(SCRIPT_JJUT86_FAKESCRIPT)) | |
| 336 | ||
| 337 | local Player = game.Players.LocalPlayer | |
| 338 | Char = Player.Character | |
| 339 | Hum = Char.Humanoid | |
| 340 | ||
| 341 | Player.Chatted:connect(function(cht) | |
| 342 | if cht:match("/e Hide") then
| |
| 343 | game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-828, 22, 1374) | |
| 344 | elseif cht:match("/e Show") then
| |
| 345 | game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-772, 3, 1442) | |
| 346 | elseif cht:match("/e Gun1") then
| |
| 347 | game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-768, 3, 1454) | |
| 348 | elseif cht:match("/e Gun2") then
| |
| 349 | game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-751, -11, 1542) | |
| 350 | elseif cht:match("/e Gun3") then
| |
| 351 | game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-876, 16, 1463) | |
| 352 | elseif cht:match("/e Gun4") then
| |
| 353 | game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-835, 16, 1531) | |
| 354 | elseif cht:match("/e Gun5") then
| |
| 355 | game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-865, 30, 1478) | |
| 356 | elseif cht:match("/e Gun6") then
| |
| 357 | game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-873, 4, 1521) | |
| 358 | elseif cht:match("/e Esp") then
| |
| 359 | -- Made by Clifford from Intriga Discord -- Edited by Foxxy#2439 -- | |
| 360 | ||
| 361 | local localPlayer=game.Players.LocalPlayer | |
| 362 | ||
| 363 | function highlightModel(objObject) | |
| 364 | for i,v in pairs(objObject:children())do | |
| 365 | if v:IsA'BasePart'and v.Name~='HumanoidRootPart'then | |
| 366 | local bHA=Instance.new('BoxHandleAdornment',v)
| |
| 367 | bHA.Adornee=v | |
| 368 | bHA.Size= v.Name=='Head' and Vector3.new(1.25,1.25,1.25) or v.Size | |
| 369 | bHA.Color3=v.Name=='Head'and Color3.new(1,0,0)or v.Name=='Torso'and Color3.new(0,1,0)or Color3.new(0,0,1) | |
| 370 | bHA.Transparency=.5 | |
| 371 | bHA.ZIndex=1 | |
| 372 | bHA.AlwaysOnTop=true | |
| 373 | end | |
| 374 | if #v:children()>0 then | |
| 375 | highlightModel(v) | |
| 376 | end | |
| 377 | end | |
| 378 | end | |
| 379 | ||
| 380 | function unHighlightModel(objObject) | |
| 381 | for i,v in pairs(objObject:children())do | |
| 382 | if v:IsA'BasePart' and v:findFirstChild'BoxHandleAdornment' then | |
| 383 | v.BoxHandleAdornment:Destroy() | |
| 384 | end | |
| 385 | if #v:children()>0 then | |
| 386 | unHighlightModel(v) | |
| 387 | end | |
| 388 | end | |
| 389 | end | |
| 390 | ||
| 391 | function sortTeamHighlights(objPlayer) | |
| 392 | repeat wait() until objPlayer.Character | |
| 393 | if objPlayer.TeamColor~=localPlayer.TeamColor then | |
| 394 | highlightModel(objPlayer.Character) | |
| 395 | else | |
| 396 | unHighlightModel(objPlayer.Character) | |
| 397 | end | |
| 398 | if objPlayer~=localPlayer then | |
| 399 | objPlayer.Changed:connect(function(strProp) | |
| 400 | if strProp=='TeamColor'then | |
| 401 | if objPlayer.TeamColor~=localPlayer.TeamColor then | |
| 402 | unHighlightModel(objPlayer.Character) | |
| 403 | highlightModel(objPlayer.Character) | |
| 404 | else | |
| 405 | unHighlightModel(objPlayer.Character) | |
| 406 | end | |
| 407 | end | |
| 408 | end) | |
| 409 | else | |
| 410 | objPlayer.Changed:connect(function(strProp) | |
| 411 | if strProp=='TeamColor'then | |
| 412 | wait(.5) | |
| 413 | for i,v in pairs(game.Players:GetPlayers())do | |
| 414 | unHighlightModel(v) | |
| 415 | if v.TeamColor~=localPlayer.TeamColor then | |
| 416 | highlightModel(v.Character) | |
| 417 | end | |
| 418 | end | |
| 419 | end | |
| 420 | end) | |
| 421 | end | |
| 422 | end | |
| 423 | ||
| 424 | for i,v in pairs(game.Players:GetPlayers())do | |
| 425 | v.CharacterAdded:connect(function() | |
| 426 | sortTeamHighlights(v) | |
| 427 | end) | |
| 428 | sortTeamHighlights(v) | |
| 429 | end | |
| 430 | game.Players.PlayerAdded:connect(function(objPlayer) | |
| 431 | objPlayer.CharacterAdded:connect(function(objChar) | |
| 432 | sortTeamHighlights(objPlayer) | |
| 433 | end) | |
| 434 | end) | |
| 435 | end | |
| 436 | end) |