Skip to content

Commit

Permalink
fix: Use Motor6DStackHumanoid directly
Browse files Browse the repository at this point in the history
  • Loading branch information
Quenty committed Sep 21, 2023
1 parent 433373d commit e6eb607
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/ik/src/Server/Rig/IKRig.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ local Players = game:GetService("Players")
local IKRigBase = require("IKRigBase")
local IKConstants = require("IKConstants")
local CharacterUtils = require("CharacterUtils")
local Motor6DBindersServer = require("Motor6DBindersServer")
local Motor6DStackHumanoid = require("Motor6DStackHumanoid")

local IKRig = setmetatable({}, IKRigBase)
IKRig.ClassName = "IKRig"
Expand All @@ -21,7 +21,6 @@ function IKRig.new(humanoid, serviceBag)
local self = setmetatable(IKRigBase.new(humanoid), IKRig)

self._serviceBag = assert(serviceBag, "No serviceBag")
self._motor6DBindersServer = self._serviceBag:GetService(Motor6DBindersServer)

self._remoteEvent = Instance.new("RemoteEvent")
self._remoteEvent.Name = IKConstants.REMOTE_EVENT_NAME
Expand All @@ -33,7 +32,7 @@ function IKRig.new(humanoid, serviceBag)
self:_onServerEvent(...)
end))

self._motor6DBindersServer.Motor6DStackHumanoid:Bind(self._obj)
Motor6DStackHumanoid:Tag(self._obj)

self._target = nil

Expand Down

0 comments on commit e6eb607

Please sign in to comment.