How to make a ROBLOX like loading/joining effect?

Hey there,

I want to make a GUI/effect where I have a ROBLOX logo that rotates, just like the one that is just like the one when you join a game. Here’s what it looks like:
image

I’d appreciate it if anyone could help me!

Thanks,
Shield

3 Likes

For this, you can use TweenService and tween an ImageLabel (or button, who’s judging)’s “Rotation” property.

Example:

TweenService:Create(image,info,{
   Rotation = 180
}):Play()
3 Likes

Yeah, TweenService is on the top list for sure, but in my case, I would want to keep looping while I’m loading something into the game. So I’m not really sure if it’s efficient to loop Tweens or not, as it might possibly cause lag? (I haven’t tried it before, I just assume it might do that)

There is no problem, I made a loading screen before using TweenService for the rotation and I can re-assure you it will be fine. So something like:

coroutine.wrap(function()
   local animation = TweenService:Create(image,info,{
      Rotation = 360
   });

   while not game:IsLoaded() do
      animation:Play();
      animation.Completed:Wait();
   end;
end)();
2 Likes

Gotchu. I’ve managed to achieve what I wanted, and also thanks for the script example!

Thanks to @Jumpathy and @STORMGAMESYT7IP for all the help!

3 Likes

Hey @ShieldDevs. I got an effective solution for you. I would say it’s better than tweenservice because it doesn’t create a new instance every time.
Code:

local function RobloxLoading()
	for i = 0, 360, .01 do
		script.Parent.Rotation = i
	end
end

while not game:IsLoaded() do
	RobloxLoading()
end
1 Like

TweenService doesn’t create a new Instance every time. You only need to create it once and you can do :Play/.Completed

1 Like

TweenService doesn’t create a new instance every time either, if you’re talking about the loop.

1 Like

I guess I’m too familiar with tweenservice with parts. I still prefer my method though.

1 Like

I’ve tried this method before. It works absolutely fine but editing the timing and smoothness of it can be hard sometimes, that’s why I prefer TweenService over for looping. Thank you though, appreciate the help.

1 Like

No problem! I do have a timed lerp module that works on parts if you want it.

1 Like

That’d be great, might as well check it out if possible!