Okay, I think I found the problem, but dont know how to fix it. When I disabled this script, it didnt crash, Heres the script, I dont see anything in here that could crash it:
local player = game.Players.LocalPlayer
local bar = script.Parent.Bar
wait(5)
while game.ContentProvider.RequestQueueSize >= 0 do
local dec = game.ContentProvider.RequestQueueSize/100
local per = dec*100
print("Decimal: "..dec)
print("Percent: "..per.."%")
script.Parent.Bar:TweenSize(UDim2.new(dec,0,1,0),"Out","Quad",.1)
script.Parent.Text = per.."%"
wait()
end
wait(3)
local base = game.Workspace:FindFirstChild(player.Base.Value)
if base ~= nil then
player.Character:MoveTo(base.Spawn.Position+Vector3.new(0,5,0))
end
script.Parent.Text = "Done!"
wait(1)
for i = 0,1,.1 do
script.Parent.Parent.BackgroundTransparency = i
wait(.1)
end
script.Parent.Parent.Parent:Destroy() |