You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? Keep it simple and clear!
Title explains most of it but I want to have a motor6d (RightGrip) that is attached to a Handle, offset the handle every frame onto another RightArm when I’m in first person.
I have a viewmodel that is a copy of the character. When I’m in first person I want the handle to be on the viewmodels hand.
-
What is the issue? Include screenshots / videos if possible!
It is not offsetting correctly
-
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I’ve tried this but it moves the character every time it occurs
if self.firstPerson then
uis.MouseIconEnabled = false
vrg.Part1 = self.equipped.Handle
crg.Enabled = false
else
uis.MouseIconEnabled = true
crg.Part1 = self.equipped.Handle
crg.Enabled = true
end
Here is the script right now
if self.firstPerson then
uis.MouseIconEnabled = false
crg.C0 = crg.Part0.CFrame * viewmodel["Right Arm"].CFrame:Inverse()
else
uis.MouseIconEnabled = true
crg.C0 = CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
end
final result should look like this without the character moving everytime it has to switch to the fp viewmodel