Attempt to index boolean with 'changed'

When the Boolean value is changed, I want the camera to change to a different location, but I get the error Attempt to index boolean with ‘changed’, Line 17

local Players = game:GetService("Players")
local camera = workspace.CurrentCamera
local player = Players.LocalPlayer


local boolValue = game.Workspace.WitchCutsceneDone.Value

local function printValue(value)
	if game.Workspace.WitchCutsceneDone.Value == true then
		player.CharacterAdded:Connect(function(character)
			camera:GetPropertyChangedSignal("CFrame"):Wait()
			camera.CFrame = game.Workspace.CameraCutsceneCastle1.CFrame
		end)
		end
end

boolValue.Changed:Connect(printValue)


Remove the .Value in your boolValue variable

local boolValue = game.Workspace.WitchCutsceneDone

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.