I'm trying to make a projectile that when touched manipulates the hit players camera, however I'm uncertain how to grab the hit players camera. I've tried searching for videos, forums, wiki, and free models to see if I can find something close to what I need but I haven't found anything yet.
COMMUNITY QUESTION
Manipulating other players Cameras via onTouch?
1 answer
To grab the hit player's camera, you'll have to get the player from the character. The script would look like this:
function touch(hit)
local plr = game.Players:GetPlayerFromCharacter(hit.Parent)
-- Do whatever you want with the camera below
end
script.Parent.Touched:connect(touch)
Reply if you have any questions.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Please copy and paste your script next time so that we can better understand what you're trying to ask for thanks!