Does this include updates incase the player has armor added on for example?
Oh, my bad.
I’ll go add that and update the OP when done!
Thank you so much, I’ll mark it as a solution for you.
Also one small thing, (although I can fix this), the file you sent does not include the ‘CameraPart’ and ‘Screen’ parts of workspace.
Yeah I forgot to remove that
It’s a leftover from the Camera system. I’ve fixed it in this new version that I will send shortly.
Updated the post with a new file
Works, thank you so very much. If you need anything from me, just ask me on the DevForum or twitter, or discord. My respect is eternally given to you.
This works perfectly, but I think there’s a memory leak or something because if I rapidly equip and unequip a tool, my FPS just keeps decimating and decimating. I went from like 80fps to 20 from maybe 10-15 seconds of quick switching
Sounds likely. Something I whipped together quickly a year ago is likely to be subpar.
Wow, you replied fast, I appreciate it!
What can I do to fix it though?
You think I remember what I wrote a year ago? Ha!
I wish you good luck!
Welp. Anyways, thanks for responding though
This is awesome and so nice of you for making it open source!
Is there a way to stop the current character in the VPF and add a new character later on in a function? If not no worries
EDIT: I have found a solution, sorry for any inconveniences!
Please help me fix this, basically when you equip an item it duplicates your character 8 times and puts it in the view port when you unequip it its 16 and so on.
This seems like a problem with your implementation, I’ve used this script tens of times with no problem.
rek_kie had the exact same problem, its when you equip tools.
I used your ViewportFrame model and it works great. One question I have is can we change the rotation of the camera, so it looks at the player from an angle instead of directly in front?
EDIT: I changed the local Offset = cf(-3, 2, -6)
properties, at first realising the X axis moved the camera position left/right instead of orbiting the player.
Tried this and WOHOO does it lag…
If you equip a tool with alot of parts it lags an INSANE ammount.
This method of replicating the character in a ViewportFrame is outdated. After the release of WorldModel, you can now directly animate humanoids inside a viewportFrame.
unless boatbombers code uses a worldmodel
yeah this was in 2019 when viewports were relatively new and the methods were extremely hacky, do not use for any new work