I am working on a friend’s RNG game, and I am experiencing an issue where the auras do not equip onto the player. I’m recieving an error:
“ServerScriptService.ServerScript:221: attempt to index nil with ‘Clone’”
Here is the script, more specifically the problematic area:
local rolls = require(replicatedStorage.AurasFolder.Auras)
local newAura = replicatedStorage.AurasFolder.AuraModels:FindFirstChild(rolls[saveData.EquippedAura].Name):Clone()
what the point of FindFirstChild here to beggin with?
Its already unsafe and you even doing unsafe indexing inside FindFirstChild…
Its a server anyway everything is loaded here already.