Hello guys so i was making button that if you click it, it will remove the Aura from player
But for some Reason the scipt cant find The Torso
local Players = game:GetService(“Players”)
local button = Players.LocalPlayer.PlayerGui.EffectCtrl.SettingEf:WaitForChild(“DisInf”)
local enabled = true
print(“First Work”)
local function onCharacterAdded(character)
local Torso = character.Body.Torso
print(“Character Work”)
local Aura = Torso.LeftCollarAttachment.InfernusAura
print(“Second Work”)
button.MouseButton1Click:Connect(function()
Aura.Enabled = enabled
end)
end
local function onPlayerAdded(player)
print(“Player Work”)
player.CharacterAdded:Connect(onCharacterAdded)
if player.Character then
onCharacterAdded(player.Character)
end
end
for _, player in ipairs(Players:GetPlayers()) do
onPlayerAdded(player)
end
Players.PlayerAdded:Connect(onPlayerAdded)
Error: Body is not a valid member of Model “Workspace.IrickingLoveBGS” (IrickingLoveBGS is my other acc)
local Players = game:GetService(“Players”)
local button = Players.LocalPlayer.PlayerGui.EffectCtrl.SettingEf:WaitForChild(“DisInf”)
local enabled = true
print(“First Work”)
local function onCharacterAdded(character)
local Torso = character.Body.Torso
print(“Character Work”)
local Aura = Torso.LeftCollarAttachment.InfernusAura
print(“Second Work”)
button.MouseButton1Click:Connect(function()
Aura.Enabled = enabled
end)
end
local function onPlayerAdded(player)
print(“Player Work”)
player.CharacterAdded:Connect(onCharacterAdded)
if player.Character then
onCharacterAdded(player.Character)
end
end
for _, player in ipairs(Players:GetPlayers()) do
onPlayerAdded(player)
end
Players.PlayerAdded:Connect(onPlayerAdded)
Error: Body is not a valid member of Model “Workspace.IrickingLoveBGS” (IrickingLoveBGS is my other acc)