Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Why does it take so long for the picture to render?

So I have good internet. As in 20MB(megabyte)/s download speed and can upload at 5MB/s. I have good internet

Why does it take this script upwards of 15 seconds to grab an image and display it?

wait(1)
local ImageButton = game.Players.LocalPlayer.PlayerGui.Stuffiez.Background.Options.MapImage

script.Parent.MouseEnter:connect(function() --Sets up the function for when the mouse hovers over said GuiObject
ImageButton.Image = "rbxassetid://503430059" --Image here
print("Please dont dun break")
end) --Ends the function
script.Parent.MouseLeave:connect(function()
	ImageButton.Image = "rbxassetid://133293264"
	print("Please dont dun break#2")
end)

1 comment

1 answer

Your download/upload speed does not determine the speed at which the file is taken from the Roblox database, it is dependent on the speed of the server that is being run and how long it take for Roblox to fulfill the Http request. Then the server has to reach the client, if you don't live close the Roblox servers it might take longer to receive asset images.

This discussion is preserved as it was. New answers, comments, and votes are closed.