-
What do you want to achieve? Keep it simple and clear!
So, this is technically 2 problems:- Check if the local player is in first person,
- If so, then (locally) rotate a model
-
What is the issue? Include screenshots / videos if possible!
I can’t figure out how to do either. -
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I’ve tried looking it up but i didn’t find anything that could help…
Can you clarify if its when your in 3rd person and go in 1st person? or is it something else
As long as the player is in first person.
You can force the player into First person in StarterPLayer.Properties or with code Enum.CameraMode.LockFirstPerson.
This Article is probably what you where looking for.
As for rotation… Is it rotating a model like building mode? or rotating the player?
You can check if the player is in first person on the client using .LocalTransparencyModifier
. If the player is in first person, on client this will be 1.
I don’t really want to force the player into first person right now.
Rotating a model in general.
What is that a property of?
To rotate a model there’s many ways to do it, you could use :PivotTo()
, which is the method I recommend. You could do something like this:
local angle = CFrame.Angles() -- the angle you want to rotate by
model:PivotTo(model:GetPivot() * angle)
The article does not force First Person, it checks to see if it is.
Any limb in the character, just use the head.
My model is inside a tool, and that’s causing some buggy physics.
Why do you have a model inside of a tool? You should really take it out, or find a different approach.
Is there a way I can just disable physics for the model?
You can try setting all the parts in model’s Density
to the lowest it can go, but that won’t make it weightless. Try making it Massless
, and tell me the results.
I already made them massless, i lowered the density but it still flips out.
I also turned off anything related to collision.
Also, how do I set the position?
You would use :PivotTo()
, and provide a CFrame.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.