Keep getting this error

Hey everyone. I’m trying to find an object located in the ServerStorage using :FindFirstDescendant. However, I keep getting this error that says “FindFirstDescendant” is not enabled. Is there a way to fix this? I’ve tried repeatedly to fix this issue, but nothing is working.

local Library = require(game.Workspace:WaitForChild("Function Library", math.huge))
local RootPart = script.Parent:FindFirstChild("HumanoidRootPart")
local Humanoid = script.Parent:FindFirstChildOfClass("Humanoid")
local ServerStorage = game:GetService("ServerStorage")
local Inst = ServerStorage:FindFirstDescendant("Item Throw")

while true do
	task.wait(5)
	if not Inst or not RootPart or not Humanoid then return end
	local Attack = Inst:Clone()
	Attack.Parent = game.Workspace
	Attack:PivotTo(RootPart.CFrame)
	Attack.System["KR Enabled"].Value = true
	Attack.System.Enabled = true
end
2 Likes

The error is literal.
Use :FindFirstChild("Item Throw", true) instead.

Ah, I see. Not sure why they didn’t deprecate this if it was once usable. Thanks for telling me!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.