You can write your topic however you want, but you need to answer these questions:
What do you want to achieve? Keep it simple and clear!
Character change that moves the camera
What is the issue? Include screenshots / videos if possible!
when I change the character it doesn’t change the camera subject, there are no errors
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I have moved around the script and tried putting it in a server script but it doesn’t work which makes sense
After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
--already variabled player to be local player and camera to be camera in workspace
player.Character.Changed:Connect(function()
wait(1)
print("Character has changed" .. camera.CameraSubject:GetFullName())
camera.CameraSubject = player.Character.PrimaryPart
end)
Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.
local player = game.Players.LocalPlayer
local BTN = script.Parent
local Frame = script.Parent.Parent
local model = game.Workspace.Plushies[Frame.Name]
local Rem = game.Workspace.RemoteEvent
local camera = workspace.Camera
BTN.MouseButton1Click:Connect(function()
local player = game.Players.LocalPlayer
Rem:FireServer(model)
wait()
end)
player.Character.Changed:Connect(function()
local player = game.Players.LocalPlayer
camera.CameraType = Enum.CameraType.Custom
camera.CameraSubject = game.Players.LocalPlayer.Character.PrimaryPart
print("Character has changed" .. camera.CameraSubject:GetFullName())
end)