#Help with flickering viewport frames
1 messages · Page 1 of 1 (latest)
it might be because I keep deleting the content in it though if I didn't do that then it would get messed up
here's the code:
Help with flickering viewport frames
hes what u can change:
1.instead of cloning the entire map every single frame (which is insanely expensive) just create it once you might have interact parts in the map but just update those and not the entire map.
2.instead of cloning each player whose is closeby what you should instead do it create a copy of the players character when they first join the game then when they get close just move that cloned character into the camera view that way you dont have to create/destroy the character every frame.
3.also again destroying everything inside the viewportframe (very expensive)
I think I could make it that only a part of the map gets cloned but I don't understand how to do the things you said in 2nd and 3rd points
** You are now Level 3! **
when the player joins the game clone the players character then store it in the viewport so when the player comes into view of the camera just position the cloned character to where the player is that way you dont have to clone and destory the players character
yea the problem is ur creating the whole entire map every frame just create it once when the server starts
but if I did that then you wouldn't see the pins on the reactor move up and down
yea just update those ones
not the entire map
and to make the parts in the viewportframe move I just need to set their cframe to the parts in the workspace?
oh
I havent used viewports in a long time so im not sure if its 1:1 with the workspace should be tho I think
alright I'll try to remake the code
I'll update you once I'm done :)
alright
okay I did all that and now it's no longer flickering though I see that players are blocky and don't have accessories on them
in the code u should add a worldmodel inside the viewport frame then insert the entire world into the worldmodel and it should be fixed
how do I do that exactly?