Hello! As the title suggests, I have a script that checks for a billboard gui inside a torso and turns its Enabled on or off, depending if a player is nearby or not. However, when I tried the script, the script errored, saying that the billboard gui is not a child of the humanoidrootpart, not the torso. Why does this happen, and how can i fix it?
if Enemy and Enemy.Torso and Enemy.Torso:FindFirstChild("SoulStealGui") then v.Torso.SoulStealGui.Enabled = true end
oh yeah you’re right how did i not realise I changed it and tried testing it, but it caused the server to lag and crash, and I have no idea if it is because the script has issues or it is because roblox’s servers are having issues rn so I will test it later
Check which line of code has the error by looking at the console’s error message. You might be checking for HumanoidRootPart.SoulStealGui somewhere else on another line.