About 21,200 results
Open links in new tab
  1. Difference between Break and Continue? - Roblox

    Dec 23, 2022 · I have been looking at other posts, and i cant find anything about break or continue, its usually just asking about: what is continue? what is break? Difference between break and return Ya know, that kind of stuff, But I was more of wondering the Difference between break and continue, What do they do differently? My First …

  2. Quick Question - Return or break? - Scripting Support - Roblox

    Dec 13, 2020 · This is my while loop and I want it to restart if the player count is only 1. Will the break exit the for loop with the 2nd while loop? while true do while true do for i=60,0,-1 do if #game.Players:GetPlayers() <2 then break end end end end

  3. How can i break a function while it’s running? - Roblox

    Nov 13, 2020 · I want to do this from the same script and a way from inside a function here is what i am trying to do local function Example() game.Players.ExamplePlayer.Character.Humanoid.Died:Connect(function() -- now i want to stop the first function that is already running. In this case it's waiting 50 seconds and i want to stop it end) wait(50) print("I want to stop it from printing this when the player ...

  4. How do I break a loop in one script from another? - Roblox

    Nov 28, 2021 · You can use bindable events, which can trigger it easily with Event:Fire--//Script with loop local running = true local break_loop = Instance.new('BindableEvent') do --//"do" is for organizational purposes break_loop.Name = 'BreakLoop' break_loop.Parent = script break_loop.Event = function() running = false end end while running and task.wait() do --//Checks if "running" is true, and waits ...

  5. How do you break a loop using a statement that is not inside

    Jan 18, 2020 · How do you break a loop using a statement that isn’t in the loop? I tried using break but I couldn’t make the loop that I want to break break. I also want to break another loop but I will just copy the one from the other. Here is my attempt on my script: local function ingame() for i = ingametime,0,-1 do wait(1) text.Value = ingametimetext..i end if text.Value == ingametimetext..stop then ...

  6. Is it possible to stop a while true do loop? - Roblox

    Jan 23, 2021 · Im trying to make a while true do loop stop using a script, and is that even possible?

  7. Debugging|Breaking Scripts - Community Tutorials - Roblox

    Jul 18, 2021 · Don’t you fear because exp_lol123 is going to show you how to debug and even break an entire script! DEBUGGING PRINT() Print, just like warn() too is very useful for debugging. Let’s say your script has stopped working and you don’t know what the problem is. Simply, add a print command on certain lines such as events.

  8. Simple part breaking - Community Tutorials - Developer Forum

    May 11, 2020 · Empty hit function it is. So we got when to activate. Create a number value called HP inside the Break folder and another called MinDamage.

  9. How do I make destructible parts? - Scripting Support - Roblox

    Mar 11, 2023 · Hey, I’m starting a new project based on explosions etc. and I want to know how to make parts/buildings destructible. Like in Doomspire Brickbattle. I’ve tried using weld constraints but they don’t seem to be removed when there is an explosion, also inlets and outlets etc. Could anyone help me? Thanks! Any help is appreciated.

  10. How to make a breakable part that breaks with tool - Roblox

    Jul 20, 2021 · Hello. I know there have been topics about this before but none helped me. So I decided to make a new topic. So what I’m trying to do is make a part that’s able to be broken by a “Pickaxe” tool. Like the player finds this part in their way so what they can do is take their pickaxe and break the rock that’s in their way. Here is my current code: local mouse = game.Players.LocalPlayer ...