Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How To Make All Players Die If Credit Is Not On?

I have this script so far:

gamecredit = true
if not true then
	
end

if gamecredit == true then 

local gamecredit = Instance.new("ScreenGui")
local gamecredit1 = Instance.new("Frame")
gamecredit1.Size = UDim2.new(0.8, 0.4 , 0.8 , 0.4)
gamecredit1.Position = UDim2.new(0 , 0 ,0)
local gamecredit2 = Instance.new("TextLabel")
gamecredit2.Text = ""
--{jamiethegreatQ777}--
--All Scripts/Gui's Made By Me JamiethegreatQ777
--How To Use Chat: Open "CustomChat_ByJamie (DO NOT UNGROUP)"
--Open CustomChatScript Modify Banned Word List To Words You Don't Want In Your Game Chat.
--How To Use PlayerList: Do Not Change Any Scripts/Gui's, If You Want To Add A Value Like Cash
--Then Just Put That Script In Workspace And This Script Will Find It

--{jamiethegreatQ777}--
--If There Is Any Problems Or Yo Have Suggestions Please Message Me:
--Discord Server:
--Twitter Account:
--Youtube Channel:
--Roblox Account:
--Also Join The Discord Server For A Chance To Win Free Prizes Like An Intro,A Script Or Anything!


--Please Give Me Credit For Making This Script {jamiethegreatQ777}
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
But I Don't Know The Command To Kill A Player To Fit In This Script.

2 answers

✓ Accepted answer

This would kill everyone until gamecredit is true again.

local AllPlayers = game.Players:GetPlayers()
repeat
for i,v in pairs(AllPlayers) do
	v.Character.Humanoid.Health = 
end
wait(1)
until gamecredit == true

Consider accepting this awnser if it helped you as it will give us both reputation.

Code Blocks Are Broken...

1 comment

0

You're using them wrong. Press the button with the blue circle that says "Lua" and put your code in between the tildes ~

This discussion is preserved as it was. New answers, comments, and votes are closed.