#would this script work for friggin a still camera

1 messages · Page 1 of 1 (latest)

deft sandal
#

-- LocalScript inside StarterPlayerScripts

local camera = workspace.CurrentCamera
local cameraPart = workspace:WaitForChild("CameraPart")

-- Wait until player spawns
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function()
wait(1) -- Slight delay to ensure everything loads

    camera.CameraType = Enum.CameraType.Scriptable
    camera.CFrame = cameraPart.CFrame
end)

end)

deft sandal
#

ok well its not working can i have ur help pls @austere sinew

solid moonBOT
#

studio** You are now Level 3! **studio

deft sandal
#

join gen vc

austere sinew
#

can't vc rn already in 1

#

gime a sec i'll help tho

deft sandal
#

alr

austere sinew
#

ur trying to detect when each individual player joins

#

local scripts run individually for each player though

#

so just do something like

#
local camera = workspace.CurrentCamera
local player = game.Players.LocalPlayer
local cpart = game.Workspace:WaitForChild("CameraPart")

if player.Character then
camera.CFrame = cpart.CFrame
end

player.CharacterAdded:Connect(function()
camera.CFrame = cpart.CFrame
end)
#

there

#

@deft sandal dat should work

#

reference the camera player and ur camera part then

#

check for if the player has a character so it's loaded in already

#

then set the camera

#

and then make it so whenever the character reloads thru dying or however it might reload back into the game in the same session

#

it'll set it's camera back to the part

deft sandal
#

k tahks