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

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

Asked by 6 years ago

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

Log in to vote
0
Answered by 6 years ago
Edited 6 years ago

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.

Ad
Log in to vote
0
Answered by 6 years ago

Code Blocks Are Broken...

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

Answer this question