Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Camera Manipulator Only working In Studio?

Asked by 8 years ago

Problem: The script does the following code the 1st time a player joins a game, but if they reset, it does not do what it's sapose to do, clone local script to character, but once tested in solo mode in studio, it works properly when i reset

Regular Script

game.Players.PlayerAdded:connect(function(player)
    player.CharacterAdded:connect(function(character)
        script.LocalScript:clone().Parent = character
        local scriptss = character:WaitForChild('LocalScript')
        scriptss.Disabled = false
        wait(.1)
        scriptss.Disabled = true

    end)
end)

Local Script

local cam = workspace.CurrentCamera

cam.CameraSubject= game.Workspace.CameraAngle
cam.CameraType = "Attach"
cam.CoordinateFrame=CFrame.new(10,10,10)
cam.Focus=CFrame.new(20,3,2)

Answer this question