I've tried a bit of everything, this is my current script and I'm pretty sure it's wrong If you can point out how to make it possible, much appreciated. Also, I'm using a textbutton with a local script for a child, I have no idea where my name does in this script to allow this.
script.Parent.MouseButton1Click:connect(function() game.Workspace.Players:GetChildren() for B=1,#p do .Humanoid.Health=0 end