Meant2Win
(ItsAbby)
February 13, 2022, 12:10pm
#1
Hello!
I am currently working on my FPS game. I am using the FE gun kit model by bluric_64bit (old version), and I need help positioning the aim (when rightclicked). I have customized the model to my choices, and I have tweaked with the offset (module script) and aimOffset (module script) inside my viewmodel.
Script of the offset (module script):
return CFrame.new(0.85, 0, 0.3)
Script of the aimOffset (module script):
return CFrame.new(0.85, 0, 0.3) * CFrame.Angles(0,math.rad(-2),0)
Picture of the current output:
Expected output:
The white dot (crosshair) is supposed to be aligned with the aim point.
Any help would be appreciated!! (Excuse me, if I am bad at explaining).
4 Likes
Forummer
(Forummer)
February 13, 2022, 12:16pm
#2
Is that crosshair a GuiObject? Set its anchor point to (0.5, 0.5).
2 Likes
Meant2Win
(ItsAbby)
February 13, 2022, 12:17pm
#4
Ok, I will try that, and I will get back to you.
2 Likes
Meant2Win
(ItsAbby)
February 13, 2022, 12:24pm
#6
It already is set to (0.5, 0.5)
2 Likes
Meant2Win
(ItsAbby)
February 13, 2022, 12:24pm
#7
Bro rickrolls are getting old…
2 Likes
Meant2Win
(ItsAbby)
February 13, 2022, 12:31pm
#9
Is there any other ideas?? I think we should change something in the scripts or smth
2 Likes
RatiusRat
(Boopmaster)
February 13, 2022, 12:37pm
#10
Where is the crosshair???
1 Like
Based_Bern
(Based_Bern)
February 13, 2022, 12:39pm
#11
You can change the position of the crosshair since from what I see from the gun, it’s not aligned to the centre. Meanwhile, the crosshair is in the middle.
Meant2Win
(ItsAbby)
February 13, 2022, 12:40pm
#12
What do you mean by that? Can you explain more??
Meant2Win
(ItsAbby)
February 13, 2022, 12:40pm
#13
Yes, exactly that’s my problem. Let me change the positon of it
RatiusRat
(Boopmaster)
February 13, 2022, 12:40pm
#14
I see it now, i think it’d be better changing the gun position not the crosshair if it’s in the centre.
Meant2Win
(ItsAbby)
February 13, 2022, 12:41pm
#15
Ok, thanks for the tip. I will try it out
Based_Bern
(Based_Bern)
February 13, 2022, 12:44pm
#16
Correct me if I’m wrong since I am not good with CFrames and things. But, you will need to change the position with the AnchorPoint.
RatiusRat
(Boopmaster)
February 13, 2022, 12:44pm
#17
CFrames are only used in 3d geometry though?
Meant2Win
(ItsAbby)
February 13, 2022, 12:45pm
#18
I actually think I would have to change the gun’s postion, because it seems like the cross hair is aligned in the centre.
Based_Bern
(Based_Bern)
February 13, 2022, 12:45pm
#19
Yeah, either the gun or the crosshair. It would be better to change the gun’s position if that is possible.
Meant2Win
(ItsAbby)
February 13, 2022, 12:47pm
#20
I am tweaking with the offset script (module script inside the viewmodel). Hopefully it works. Anyways I appreciate you all for the quick response and the help!!
1 Like
Meant2Win
(ItsAbby)
February 13, 2022, 1:27pm
#21
I kinda tried everything. I changed the positon of the gun, still dind’t work. and I also changed the position of the crosshair. Any ideas??
SelDraken
(SelDraken)
February 13, 2022, 1:57pm
#22
I am not familiar with the script, can you post a link to the script you are using?
I am assuming the gun is a 3d model? and you want it to look as though it is pointing to the middle of the screen?
Meant2Win
(ItsAbby)
February 13, 2022, 2:03pm
#23
Yes, I want the crosshair aligned (when right-clicked)with the aimpoint in the viewmodel.
Here’s the file:
Baseplate.rbxl (1.1 MB)