Hello, I am going to try to be as clear as possible.
I am making an anime game like anime fighters simulator or anime warriors 3 (or 2) to train my scripting skills, but I am encountering some problems when it comes to the summon UI since I need to use ViewportFrames.
Some notes: I mainly need help for the second problem, and appreciate if some people can give maybe another idea to fix the first and third problems
Here are the problems I encountered (each dots represent respectively the first, second, third problem):
-
The ViewportFrame takes some times to load when I change the main frame visibility (the frame that is the parent of all the ViewportFrames).
-
When I wanted to rotate a star when I summon for example, it rotated the stars but it was unsynchronized, which mean like it was not really synchronized, there was a little delay, and it is weird.
-
Sometimes, for no reason, when I change the main frame visibility, some viewportframes can go invisible
Here is what I did to try to fix those:
-
So for this first problem, I tried to iterate inside all the descendants of the main frame and then change all the ViewportFrames Image Transparency from 0 to 1 to make it invisible, and 1 to 0 to make it visible. It worked, however I dont know if its really efficient, and I dont know if my code is organized like that, but anyways, I might still do this solution I guess since its better then nothing
-
For this one, it is not fixed and I dont have a single idea on how to, basically I like already tried to create some cameras inside the stars models and then change the orientation of camera but again it doesnt work, it doesnt work also if i change the cframe of the star.. also I even tried on a new game place, and each 0.25 seconds I make all the stars rotate but it was still unsynchronized..
-
To fix this, I must update a property of the viewportframe that went invisible, whatever is the property, I just need to change a value and it can works (so this problem is not really one since I solved it)
Now here is the code that handle those systems:
-
… (There is no really code to provide for this one since I have fixed it but I just need to understand if there is another way)
-
Now the code for the second problem:
RotateStar.Event:Connect(function()
warn("Started")
for _, Star: ViewportFrame in Stars:GetChildren() do
local Camera: Camera = Star:FindFirstChild("Camera")
if not Camera then continue end
print(Camera.CFrame)
Camera.CFrame = CameraCFrame.Value * CFrame.Angles(0, 0, math.rad(StarRotationDirection * 5))
end
StarRotationDirection *= (-1)
warn("Finished")
end)
- (No need to provide code for this one too I think)
Here are some vidoes showing the problems:
- Watch ScreenRecording_09-02-2026 20-01-32_1 | Streamable
- Watch Anime Simulator - Roblox Studio 2026-09-02 19-13-13 | Streamable
- Watch ScreenRecording_09-02-2026 20-04-20_1 | Streamable
And finally, here is how is my UI for the units viewportframes, and the stars viewportframes:
Units:
Stars:
Thanks to anyone willing to help

