I want to make a MOBA-type game, like LoL, so I tried to script myself a thirdperson camera that follows you around from a set distance. So I checked the ROBLOX wiki and found some help. I found that you have to use a LocalScript and put it in the character when they spawn. So I used the script provided:
game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(character) script.LocalScript:clone().Parent = character end) end)
and found that it didn't actually add it in when I played on solo.
Furthermore, I don't think my actual camera setting script would work, because I just don't know what I'm doing. This is my LocalScript that I want to put into the character to change how they see things:
local cam = workspace.CurrentCamera
cam.CameraSubject = LocalScript.Parent.Head
cam.CameraType = "Track"
cam.Focus=CFrame.new(
The bottom one I was trying to make the tracking focus from a specific angle, but couldn't figure out how to do it. -_-
Please help. I'm imcompetent.
Try this, it should work.
local player = game.Players.LocalPlayer player.CameraMode = Enum.CameraMode.Classic wait() player.CameraMode = Enum.CameraMode.LockDefault
If I helped, please leave a upvote. I am in the negative and I need to get back up. Thanks <3