Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to make a script that kills all but yourself?

Asked by
lolzmac 207 Moderation Voter
9 years ago

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

Answer this question