This is my script :

local cameraHeight = 12
local cameraZOffset = 140
 
local camera = game.Workspace.CurrentCamera
local player = game.Players.LocalPlayer
 
local function setupCamera()
	camera.CoordinateFrame = CFrame.new(Vector3.new(0,cameraHeight,cameraZOffset), Vector3.new(20,cameraHeight,5))
end
setupCamera()
player.CharacterAdded:connect(setupCamera)

Can someone help me make the camera follow your character? Also did is on 2D like in Super Smash Bros. Forgot to mention

2 comments

0

You can set the players camera to follow. So you should not need any code. see http://wiki.roblox.com/index.php?title=API:Class/Camera/CameraType

0

I forgot to mention that this is in 2D