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