Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Focusing Camera won't work?

I am trying to focus the camera when a player joins but it isn't working. Is this to make the camera look somewhere and stay there until a certain time? Or do I do something else? I got this from the wiki: http://wiki.roblox.com/index.php?title=Camera_manipulation

Normal Script:

game.Players.PlayerAdded:connect(function(player)
    script.LocalScript:clone().Parent = player.CharacterAdded:wait()
end)

Local Script

local cam = workspace.CurrentCamera
cam.Focus=CFrame.new(30,30,30)

2 comments

0

Do you have any more code than this, or any errors in the output?

0

Sorry. Put some more in now.

1 answer

First disable that local script

game.Players.PlayerAdded:connect(function(player)
local s = script:WaitForChild("LocalScript"):Clone()
s.Parent = player.PlayerGui
s.Disabled = false
end)

1 comment

0

Where do I put that code? I put it in the normal script (the script is in workspace and the local script is in the script) and it wont work.

This discussion is preserved as it was. New answers, comments, and votes are closed.