TenerPVPs
(TenerPVPs)
August 3, 2020, 3:25pm
#1
I made a skill, which changes the character of the player, but I’m having several problems.
As you can see I can control the character I put, but the camera is stuck on the old character, and the new character has no walking animations
And as you can see in this gif below, the problem is not in the model, I put it as the initial character, and it moves with animations normally
Shield.Name = Player.Name
Shield.Parent = workspace
Player.Character = Shield
I’m changing the character this way ^
2 Likes
Does shield have a humanoid? (30 chars)
TenerPVPs
(TenerPVPs)
August 3, 2020, 3:33pm
#3
Yeah have, let me show you a print
KdudeDev
(Kdude)
August 3, 2020, 3:51pm
#4
Try changing the CameraSubject to your new character in workspace.CurrentCamera
in a local script. It should change the camera to focus on your new character.
1 Like
TenerPVPs
(TenerPVPs)
August 3, 2020, 4:11pm
#5
And about the animation problem?
KdudeDev
(Kdude)
August 3, 2020, 4:17pm
#6
It might be that your run and walk animation are the same, if they are then it will bug like that. Try making them different if so.
TenerPVPs
(TenerPVPs)
August 3, 2020, 4:20pm
#7
But if I already put the model as Starter Character it works normally, see the second video
KdudeDev
(Kdude)
August 3, 2020, 4:21pm
#8
Not sure then. Try fixing the camera and see if it continues.
TenerPVPs
(TenerPVPs)
August 3, 2020, 4:43pm
#9
I tryed fix the camera, but i cant, can you send me a example, also is on server or client?
KdudeDev
(Kdude)
August 3, 2020, 4:44pm
#10
It would be on the client. It would be a single line that simply changes the CameraSubject of the CurrentCamera to the humanoid on the new model. Something like
workspace.CurrentCamera.CameraSubject = player.Character.Humanoid
TenerPVPs
(TenerPVPs)
August 3, 2020, 4:54pm
#11
Still have problems, cause my scripts on client are on StartPack, for any reason when i change the caracter, the scripts stop work too …
TenerPVPs
(TenerPVPs)
August 3, 2020, 11:57pm
#12
Boyi? Are you afk? Help me when you can