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

How to make a gun look same way as person?

So i haven't really tried to script this but, what i'm trying to do is make a gun look the same way as the player, kinda like in jailbreak when your in first person. Please do help me!

1 comment

0

You seem to ask a lot of questions like this. You need read the posting guidelines or you will keep getting moderated.

1 answer

So as lukeb said, please show code on scripting helpers. I wont report you this time, since i wont be giving you "actual" code for "free", rather i'll give you a hint on what you have to learn.

http://wiki.roblox.com/index.php?title=CFrame#lookVector

Look vectors are properies of the CFrame, that show rotation. Basically, what you would do is set the gun's CFrame.lookvector to equal the players HumanoidRootPart.CFrame.lookvector

But, if this gun is a gear, then it should automatically allign with the player

1 comment

0

Alright thanks :)

This discussion is preserved as it was. New answers, comments, and votes are closed.