So I am trying to define CameraScript inside of the player, but this error(from the title) keeps coming, any ideas?
local Came = game.Players.LocalPlayer.PlayerScripts.CameraScript
So I am trying to define CameraScript inside of the player, but this error(from the title) keeps coming, any ideas?
local Came = game.Players.LocalPlayer.PlayerScripts.CameraScript
###This is because PlayerScripts is one of those classes that need a WaitForChild, as they do not load instantly.
local plr = game:GetService("Players").LocalPlayer
local plrScripts = plr:WaitForChild("PlayerScripts")
local camerascript = plrScripts:FindFirstChild("CameraScript")
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
Local script? Also check spelling...
It is, spelling is all correct