Hello there!
How can i make a Character staying in place withough being anchored?
I tried using bodyPosition but i didnt know the preopper way of using it.
Is there any way i can achieve this?
Any suggestions are appreciated!
Hello there!
How can i make a Character staying in place withough being anchored?
I tried using bodyPosition but i didnt know the preopper way of using it.
Is there any way i can achieve this?
Any suggestions are appreciated!
How come does anchored not work for you? Do you still want physics for your character?
Set the character’s humanoids WalkSpeed and JumpPower to zero in order for player controls not to work.
i am trying to create a way for Character’s HumanoidRootPart to face the Cursor and i am doing it isnide local script and i want the player to be able to stay mid air at the same time if wants to, but if i anchor the player then the local script wont replicate the players Orientation and others wont see the player looking at his mouse.
A kinda dirty(not bad, it does work, but there is probably better) is to make a invisible anchored part under the players feet and do the zero motion thing I said before and the player should be able to rotate and stay in air.
this could work but it has to be cancollide = true and that means that the others could touch it too.
couldnt i use bodyPosition?
Figured it out with body velocity. Apply the parent to the root part. Also do the walkspeed and jumppower to zero so that they can’t move.
local vel = Instance.new("BodyVelocity")
vel.MaxForce = Vector3.new(0,999999,0)
vel.Velocity = Vector3.new(0,0,0)
vel.Parent = root -- assign to root part.
You could make this in a local script like this
function NameOfFunction(Value) --Value, true = make player move again, false makes player stay in place
local controller = require(game:GetService("Players").LocalPlayer.PlayerScripts.PlayerModule):GetControls())
if Value == true then
controller:Enable()
else
controller:Disable()
end
end)
Thank you so much, i was bothered with this for a whole week you saved me!
Heres a video of that:
robloxapp-20211016-2240086.wmv (3.0 MB)
Everyone can see it too
Thanks!!!