I don’t get it… what am I doing wrong? (Script in scs)
wait(3)
print("Running")
local RAGIK_PATH = game.ServerScriptService.RagIK
local Character = script.Parent
local bRag = require(game.ServerScriptService.buildRagdoll)
local RagIK = require(RAGIK_PATH)
--bRag(Character.Humanoid)
local Mgr = RagIK.new(Character)
Mgr:build();
Character.Humanoid:ChangeState(Enum.HumanoidStateType.Physics);
Mgr:attachAll()
local anim = Character.Humanoid.Animator:LoadAnimation(script.Flail)
anim.Priority = Enum.AnimationPriority.Action4
anim:Play()
-- ragdoll the char
-- play the animation you created with the dummy
-- boom, posing ragdolls
local RagIK = require(RAGIK_PATH)
local Mgr = RagIK.new(Character)
Mgr:build();
Mgr:attachAll();
-- ragdoll the char
-- play the animation you created with the dummy
-- boom, posing ragdolls
Couldn’t you use inverse kinematics with this by raycasting around the players arms/legs and heads to make the arms move towards objects closest to them to try to protect itself, same with the legs and then the head can move slightly to try to avoid hitting their head?