I have a script in a part that will change the camera to a different direction (its a 2d game) but instead i get an error but the value in the script is there
my script:
script.Parent.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
game.Players.LocalPlayer.PlayerScripts.MovementScript.cValue = CFrame.new(0,2,-20)
end
end)
proof that it is supposed to work: