Forum > Coding >

Breaking loop using a chat command

Posts: 1

Threads: 1

Joined: Apr, 2020

Reputation: 0

Posted

Ok so im rlly trash at Lua atm and I've been wondering how I would break this loop using a chat command ("stop" for instance) but i'm struggling to find a method.

Heres the code:

 

while true do

wait(1)

local times = 1 --

local text = "  " 

for i = 1, times do

game.Players:Chat(text)

end

end

 

  • 0

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )