Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Manipulating other players Cameras via onTouch?

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.

1 comment

0

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

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.