Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How To Attach Camera To Character Clone?

Asked by 6 years ago

Basically I got a clone of my character, and when I put it down, the camera to still follows me. Instead of the clone.

How can I make sure it doesn't do that, and the camera now follows the 'new me'. All help is advised!

So I want my character to basically follow the new cloned version of me, so I can move around with the cloned character like it was normally me. Any pointers?

char = script.Parent.Parent.Character

function cat()

char.Archivable = true
local copy = char:Clone()
game.Workspace.CurrentCamera.CameraType = Enum.CameraType.Scriptable
game.Workspace.CurrentCamera.CameraSubject = copy.Humanoid
copy.Parent = game.Workspace

end

Don't mind the variable names, but as you can see I tried to set the CameraSubject, but all it does is make it point towards my clone. I can still move with my normal original character but the camera is always pointing towards the clone.

All I need now is to use 'WASD' to move the clone and make sure the camera follows me like normal... Please ask for further answers.

0
you know like how the spectating camera scripts work i want it to follow me like that like normal but i want to control the character too so its basically just me GetReadyGetSet 0 — 6y

2 answers

Log in to vote
0
Answered by
Rare_tendo 3000 Moderation Voter Community Moderator
6 years ago

When the camera's cameratype is set to the Scriptable enumeration, the camera won't follow anything, it will stay in place and will only move when you change the CFrame property.

I suggest changing the cameratype to either custom, attach, or follow.

0
I did all them options and removed the scriptable too but it's still like it's fixed in place is there anyother reason? GetReadyGetSet 0 — 6y
Ad
Log in to vote
0
Answered by 6 years ago

Don't worry about it I figured it out thanks for the support appreciate it anyway

0
i dont know how to mark this as answered but ill leave it from here GetReadyGetSet 0 — 6y

Answer this question