Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Character Cloning into a Viewport Frame, who can help?

Hi there, thank you for at least reading through the thread! :D So, what I'm trying to achieve in a nutshell:

Once a player joins the game, I want their entire model, clothing and all, to be cloned into a Gui, which I presume a viewport frame will be used for, and I need that player model to spin, as in, their character, for their Ui, has to be in the viewport frame, and it has to spin.

I've tried everything, and I just can't get it to work, here is a Gyazo link of what I semi want to have at the end: https://www.gyazo.com/a255bb51cadd608b218eb420e6e2a293

Any help will be greatly, greatly appreciated, as I want to learn a bit more advanced Ui things.

Regards! Have a nice day!

1 comment

0

anyone else that also wants to help can also, this doesnt work at the moment, but Im sure it will

1 answer

✓ Accepted answer
local player = game.Players.LocalPlayer
local Character = player.Character or player.CharacterAdded:Wait()
Character.Archivable = true --Sets that you can copy your character
local Clone = Character:Clone()
Clone.HumanoidRootPart.CFrame = CFrame.new(0,0,0) -- so the character is in middle
Clone.Parent = VIEWPORT

12 comments

0

OMG, thank you so much!

0

So I get the error, HumanoidRootPart is not a valid member of Model

0

Also to make him spin just make a loop that will fire this: Clone.HumanoidRootPart.CFrame = Clone.HumanoidRootPart.CFrame * CFrame.Angles(0,0.1,0)

0

hm are you using r6 or r15

0

if ur using r15 you should replace HumanoidRootPart with LowerTorso

0

So, how would the loop thing look? And should I put this in a Script or LocalScript?

0

localscript, put it in viewport frame the loop should look like While wait(0.1) do Clone.LowerTorso.CFrame = Clone.LowerTorso.CFrame * CFrame.Angles(0,0.1,0) end

0

so, the cloning doesn't work, it says LowerTorso isnt a valid member of Model

0

could you message me on Discord real quick? _ESP?#0001

0

i tried and i cant tomekcz#4609

0

i requested, accept when possible

0

ok it might take a while but now i will debug all of my code

This discussion is preserved as it was. New answers, comments, and votes are closed.