Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Manipulating other players Cameras via onTouch?

Asked by 8 years ago

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.

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

1 answer

Log in to vote
0
Answered by
Diogen 0
8 years ago

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.

Ad

Answer this question