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:
I’d appreciate it if anyone could help me!
Thanks,
Shield
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:
I’d appreciate it if anyone could help me!
Thanks,
Shield
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()
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)();
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!
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
TweenService doesn’t create a new Instance every time. You only need to create it once and you can do :Play/.Completed
TweenService doesn’t create a new instance every time either, if you’re talking about the loop.
I guess I’m too familiar with tweenservice with parts. I still prefer my method though.
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.
No problem! I do have a timed lerp module that works on parts if you want it.
That’d be great, might as well check it out if possible!