For some reason when I summon the stand ability in Roblox studio, the aura is visible around the whole player’s character. However, when I do it in-game, it only appears on the head.
function giveAura(character, aura)
for i, limb in pairs(character:GetChildren()) do
if limb:IsA("BasePart") or limb:IsA("MeshPart") then
if limb.Name~="HumanoidRootPart" and limb:FindFirstChild("PlrAura") == nil then
aura:Clone().Parent = limb
end
end
end
end
local Aura = game.ServerStorage.VisualFX.PlrAura
game.Players.PlayerAdded:connect(function(plr)
plr.CharacterAdded:Connect(function(char)
local human = char:WaitForChild("Humanoid")
local head = char:WaitForChild("Head")
local rarm = char:WaitForChild("RightHand")
local hrp = char:WaitForChild("HumanoidRootPart")
giveAura(char, Aura)
end)
end)
What exactly is the issue here? Why does it only work in Roblox Studio?
actually it probably is just because they havent added yet. give the aura but then hook up a decendants added and add the aura if the decendant that is added is correect
I remember having this problem and what I did was increasing my graphics to the max quality in-game and all the auras surprisingly showed up, maybe you should try that…
EDIT: I see the issue that you’re having now. nevermind.
Have you tried to separate your cloning and parenting into separate lines and making the clone a variable? Maybe this will help.
function giveAura(character, aura)
for i, limb in pairs(character:GetChildren()) do
if limb:IsA("BasePart") or limb:IsA("MeshPart") then
if limb.Name~="HumanoidRootPart" and limb:FindFirstChild("PlrAura") == nil then
local auraClone = aura:Clone()
auraClone.Parent = limb
end
end
end
end