im trying to remake a part of cleaning simulator by Bribleco,but i cant get the procedural walking animation to work.
heres the main code (in the rig):
local ProceduralModule = require(/moduleLocation/.ProceduralModule)
local runService = game:GetService("RunService")
local enemy = script.Parent
local root = enemy:FindFirstChild("HumanoidRootPart")
local hum = enemy:FindFirstChild("Humanoid")
local target = workspace:FindFirstChild("Target")
--- Ik Targets yipee
local ikTargets = enemy:FindFirstChild("IkTargets")
local left_IkTarget = ikTargets:FindFirstChild("LeftIkTarget")
local right_IkTarget = ikTargets:FindFirstChild("RightIkTarget")
---Raycast parts
local raycastParts = enemy:FindFirstChild("RayCastParts")
local left_RaycastPart = raycastParts:FindFirstChild("LeftRaycastPart")
local right_RaycastPart = raycastParts:FindFirstChild("RightRaycastPart")
--- IKControls
local left_IkControl = hum:FindFirstChild("Left_IkControl")
local right_IkControl = hum:FindFirstChild("Right_IkControl")
left_IkControl.Pole = root.Left_Pole
right_IkControl.Pole = root.Right_Pole
local ProceduralModule = require(game:Getservice("ReplicatedStorage").ProceduralModule)
local rayCastParams = RaycastParams.new()
rayCastParams.FilterDescendantsInstances = {enemy}
rayCastParams.FilterType = Enum.RaycastFilterType.Exclude
while true do
ProceduralModule:IkLegStep(left_IkTarget, left_RaycastPart , enemy.PrimaryPart, 2, 2, 1, 0.05, rayCastParams)
task.wait(0.1)
ProceduralModule:IkLegStep(right_IkTarget, right_RaycastPart, enemy.PrimaryPart, 2, 2, 1, 0.05, rayCastParams)
task.wait(0.1)
end