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

On changed function not working help?

Asked by
NotSoNorm 777 Moderation Voter
9 years ago

I have a normal on changed script but it's not working, I'm not getting 'PassOne' so it must be the function, but what about it is wrong?

local c = game.Workspace.CurrentCamera

script.Parent.ChangeCamera.Changed:connect(function()
    print("PassOne")
    if script.Parent.ChangeCamera.Value == true then
                c.CameraSubject = game.Players.LocalPlayer
                c.CameraType = "Scriptable"
        else
    end
end)
0
maybe its not the camera changing, its the value....so instead "script.Parent.ChangeCamera.Value.Changed:connect"...just a suggestion BSIncorporated 640 — 9y

Answer this question