Morphing works, but camera isn't moving?
Hi!,
I am working on a game whoops sorry an "experience"
In this "Experience" the player is supposed to click a model and swap bodies with the model they clicked on, I've succeeded in the changing bodies aspect but the camera refuses to move,
I've tried changing the CFrame, the subject, but nothing works, If you were looking for my code it is below
03 | local jerryModel = script.Parent |
04 | local jerryUnion = script.Parent.JerryUnion |
05 | local clickDetect = script.Parent.ClickDetector |
06 | local char = game.Workspace.Character |
09 | function cloneChar(character) |
10 | character.Archivable = true |
11 | local clone = character:clone() |
12 | character.Archivable = false |
19 | function onClicked(player) |
20 | local ogchar = player.Character |
21 | local clone = cloneChar(ogchar) |
22 | clone.Parent = jerryModel |
23 | clone:MoveTo(player.Character:FindFirstChild( "HumanoidRootPart" ).Position + Vector 3. new( 0 , 2 , 0 )) |
25 | player.Character = char |
26 | local cam = workspace.CurrentCamera |
27 | cam.CameraType = Enum.CameraType.Scriptable |
28 | cam.CFrame = player.Character.CFrame |
32 | clickDetect.MouseClick:Connect(onClicked) |
If anyone could help me I would appreciate it,
I've been struggling with this for a while now