oops wrong comment eh
Are you sure it is set on the client?
Also try manually selecting the camera and changing the value in the explorer.
Try adding a RemoteEvent
in ReplicatedStorage
, and try this.
--server
local Model = game.Workspace.MorphSaves.MorphNameHere
local Morph = Model:Clone()
Morph.Parent = workspace
Morph:MoveTo(player.Character.Torso.Position)
Morph.Name = player.Name
player.Character = Morph
game.ReplicatedStorage.RemoteEvent:FireClient(player)
-- add a localscript in StarterPlayerScripts
game.ReplicatedStorage.RemoteEvent.OnClientEvent:Connect(function()
local human = Morph:WaitForChild("Humanoid")
if human then
workspace.CurrentCamera.CameraSubject = human
end
end)
:WaitForChild() will do better, as it may not replicate instantly.
Also, you would have to connect the client to the remote event.
The Humanoid is already there as the OP has already set it up, and thus, already has the humanoid (in other terms you dont need a wait to check if the humanoid is there).
The camera was already set to Follow when I opened the explorer. And yes I tried switching it to custom
No, set the cameraSubject manually and see if that works.
I did, It did nothing at all
Can you send us a copy of the place?
Here is the local script inside of the button if that helps
local Camera = game.Workspace.CurrentCamera
local player = game.Players.LocalPlayer
script.Parent.MouseButton1Click:Connect(function()
game.ReplicatedStorage.Morphs.GreatWhiteShark:FireServer()
Camera.CameraType = "Follow";
end)
See my previous post. I edited it so it should work now.
Don’t forget to set camera subject. Also, use Enum.CameraType.Follow
Does it work?
I have tested it in studio with a random npc I had. Works fine.
Hold on I’m working on it
It might be the shark
No it’s still not working. What do you think might be wrong with the shark?
Is the behaviour the same as the video you’ve shown previously?
yes, it’s the same
Have you tried the solution I gave above?