i'm trying to use a remote event to destroy a basic part, which is a child of the player. here's the code:
game.ReplicatedStorage.RemoteEvent.OnServerEvent:Connect(function(player) local waa = player:FindFirstChild("CloudPower") wait() waa:Destroy() end)
This error means that the object you're trying to destroy doesn't exist.
I think the issue here might be either that: - You're pointing to the wrong path, so the script doesn't see the object, - You've instanced (created) the script in a localscript.
The fix is either: - Check if the path to the "CloudPower" object is correct, - Create "CloudPower" with a serverscript or fire a remotevent in order to create the "CloudPower" object.
Hope I helped!