I wanna make a part that, if the player touch it, the player's CameraMode will lock in ThirdPerson.
I tried this with local script, but didn't work:
script.Parent.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
if game.Players:FindFirstChild(hit.Parent.Name) then
local player = game.Players:FindFirstChild(hit.Parent.Name)
player.CameraMode = "LockThirdPerson"
end
end
end)
Thanking you in advance

3 comments
Thanks, opgeeza! :)
No worries pal.
Clear explanation! Upvoted.