So whenever a player ressets or dies it keeps the camera in the same place.
This is the serverside code
player.CharacterAdded:Connect(function(char)
game.ReplicatedStorage.ItemShopRemoteFunctions.PlayerReset:FireClient(player)
player.OtherInfo.InShop.Value = false
char.ChildAdded:Connect(function(child)
if child:IsA("Tool") then
player.ToolEquipped.Value = child.Name
end
end)
if game.ServerStorage.Clocks:FindFirstChild(player:WaitForChild("ToolEquipped").Value) then
local toolToEquip = game.ServerStorage.Clocks[player.ToolEquipped.Value]:Clone()
local backpackToEquip = game.ServerStorage.Backpacks[player.Backpackequipped.Value]
backpackToEquip.Parent = player.Character
toolToEquip.Parent = player:WaitForChild("Backpack")
end
end)
It still lets the user move around but it doesnt follow the camera after them. Any ideas?
EDIT: If I remove the game.ReplicatedStorage.ItemShopRemoteFunctions.PlayerReset:FireClient(player) then it still won’t let the player move the camera
To begin with as @FlashFlame_Roblox said your first error is the camera.CameraType.
Secondly, I find it confusing why you have done this method seeming as on death unless you’ve overridden the camera, the subject should automatically return to the new character?
Also please hit F9 and tell us any errors you receive?
What is the end goal your trying to achieve and what was happening previously to make it required that you do this - seeming as your essentially doing what the camera would do by default?