hello devform its me again, i have recently ran into a problem with the fps framework that i am creating. The problem that I am facing is that i am trying to get the chosen weapon from the main weapon folder but it wont work.
the main weapon folder
local plr_weapons = rep:WaitForChild("weapons").primary
the script
if headshot then
for index, wepName in pairs(plr_weapons:GetDescendants()) do
print(wepName)
end
end
please help. i have been trying to solve this for weeks but i don’t know what to do