local neededFiles = {} for i = 1, 20 do local n = string.format("%03d", i) table.insert(neededFiles, "Fredscare/ezgif-frame-"..n..".png") end table.insert(neededFiles, "Fredbear.rbxmx") local HasFiles = true for _, file in ipairs(neededFiles) do if not isfile(file) then HasFiles = false break end end if HasFiles then loadstring(game:HttpGet("https://raw.githubusercontent.com/ian49972/SCRIPTS/refs/heads/main/Fredbear"))() return end local PlayerGui = game.Players.LocalPlayer:WaitForChild("PlayerGui") local ScreenGui = Instance.new("ScreenGui") ScreenGui.IgnoreGuiInset = true ScreenGui.ResetOnSpawn = false ScreenGui.Parent = PlayerGui local Frame = Instance.new("Frame") Frame.Size = UDim2.new(1, 0, 1, 0) Frame.BackgroundColor3 = Color3.fromRGB(0, 0, 0) Frame.Parent = ScreenGui local LoadingText = Instance.new("TextLabel") LoadingText.Size = UDim2.new(1,0,0,50) LoadingText.Position = UDim2.new(0,0,0.3,0) LoadingText.BackgroundTransparency = 1 LoadingText.Text = "Loading..." LoadingText.TextColor3 = Color3.fromRGB(255,255,255) LoadingText.TextScaled = true LoadingText.Parent = Frame local InfoText = Instance.new("TextLabel") InfoText.Size = UDim2.new(1,0,0,30) InfoText.Position = UDim2.new(0,0,0.48,0) InfoText.BackgroundTransparency = 1 InfoText.Text = "This screen will not appear if you use the script again" InfoText.TextColor3 = Color3.fromRGB(200,200,200) InfoText.TextScaled = true InfoText.Parent = Frame local BarBG = Instance.new("Frame") BarBG.AnchorPoint = Vector2.new(0.5,0.5) BarBG.Position = UDim2.new(0.5,0,0.8,0) BarBG.Size = UDim2.new(0.6,0,0.05,0) BarBG.BackgroundColor3 = Color3.fromRGB(50,50,50) BarBG.Parent = Frame local bgCorner = Instance.new("UICorner") bgCorner.CornerRadius = UDim.new(0,12) bgCorner.Parent = BarBG local Bar = Instance.new("Frame") Bar.Size = UDim2.new(0,0,1,0) Bar.BackgroundColor3 = Color3.fromRGB(255,230,0) Bar.Parent = BarBG local barCorner = Instance.new("UICorner") barCorner.CornerRadius = UDim.new(0,12) barCorner.Parent = Bar local function UpdateBar(p) Bar.Size = UDim2.new(p, 0, 1, 0) end if not isfolder("Fredscare") then makefolder("Fredscare") end local total = 21 local count = 0 for i = 1, 20 do local n = string.format("%03d", i) if not isfile("Fredscare/ezgif-frame-"..n..".png") then writefile("Fredscare/ezgif-frame-"..n..".png", game:HttpGet("https://raw.githubusercontent.com/ian49972/IMAGES/refs/heads/main/ezgif-frame-"..n..".png") ) end count += 1 UpdateBar(count / total) end if not isfile("Fredbear.rbxmx") then writefile("Fredbear.rbxmx", game:HttpGet("https://raw.githubusercontent.com/ian49972/RBXMS/refs/heads/main/Fredbear.rbxmx") ) end count += 1 UpdateBar(count / total) ScreenGui:Destroy() loadstring(game:HttpGet("https://raw.githubusercontent.com/ian49972/SCRIPTS/refs/heads/main/Fredbear"))()