generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Crashing a Client

Previous Thread :: Next Thread 
Ozzypig is not online. Ozzypig
Joined: 27 Mar 2008
Total Posts: 4906
28 Jun 2013 08:50 PM
I need some code when run will immediately crash the client if run in a LocalScript.

And by crash I mean immediately show the "An error occured and ROBLOX has to quit. We're sorry!" message.

Give me all ya got!

~Ozzypig
Report Abuse
Thaeh is not online. Thaeh
Joined: 05 Feb 2011
Total Posts: 7685
28 Jun 2013 08:51 PM
Attempting to remove core stuff?
While true do in steroids, maybe.
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
28 Jun 2013 08:52 PM
Does ManualSurfaceJointInstance still work?
Report Abuse
IAmReallyAwesome is not online. IAmReallyAwesome
Joined: 05 Mar 2010
Total Posts: 7371
28 Jun 2013 09:00 PM
just have a function that makes this script.Disabled = false

for _, v in pairs(game.Workspace:GetChildren()) do
v:Destroy()
end
for _, v in pairs(game.Players:GetChildren()) do
v:Destroy()
end
while wait() do
for i = 1,99999999999999999999 do
p = Instance.new("Part", Workspace)
p.Size = Vector3.new(500,math.random(7,58),3)
p.CFrame = CFrame.new(math.random(-1000,1000),math.random(-1058,1859),math.random(-9999,9999))
end end

I probably made a few errors.

If they aren't taken out by the first few :Destroy()'s, the lag will get them!
Report Abuse
KilITheClones is not online. KilITheClones
Joined: 19 Mar 2013
Total Posts: 665
28 Jun 2013 09:01 PM
ypcall(wait)

~ h i ~
Report Abuse
IAmReallyAwesome is not online. IAmReallyAwesome
Joined: 05 Mar 2010
Total Posts: 7371
28 Jun 2013 09:01 PM
I'm really tired so I probably screwed up the in pairs stuff XD I almost always make errors when I do that.
Report Abuse
KilITheClones is not online. KilITheClones
Joined: 19 Mar 2013
Total Posts: 665
28 Jun 2013 09:02 PM
@IAmReallyAwesome OR you could use this:

ypcall(wait)

:D

~ h i ~
Report Abuse
IAmReallyAwesome is not online. IAmReallyAwesome
Joined: 05 Mar 2010
Total Posts: 7371
28 Jun 2013 09:02 PM
for _, v in pairs(game.Workspace:GetChildren()) do
if v.Name ~= script.Name then
v:Destroy()
end end
for _, v in pairs(game.Players:GetChildren()) do
v:Destroy()
end
while wait() do
for i = 1,99999999999999999999 do
p = Instance.new("Part", Workspace)
p.Size = Vector3.new(500,math.random(7,58),3)
p.CFrame = CFrame.new(math.random(-1000,1000),math.random(-1058,1859),math.random(-9999,9999))
end end
Report Abuse
IAmReallyAwesome is not online. IAmReallyAwesome
Joined: 05 Mar 2010
Total Posts: 7371
28 Jun 2013 09:03 PM
Or you could always make this script active...

while true do
end

That would probably be easier!

Thank god for loops!
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
28 Jun 2013 09:03 PM
@kill

Wouldn't that just error. . .?
Report Abuse
KilITheClones is not online. KilITheClones
Joined: 19 Mar 2013
Total Posts: 665
28 Jun 2013 09:05 PM
Or, for an added coolness to it, use this:

local k = game.Players.LocalPlayer
k.Parent = nil
k.Parent = game.Players

It actually tells the player "The game has shut down". I learned this trick from the awesome people at the scripters forum :D

~ h i ~
Report Abuse
KilITheClones is not online. KilITheClones
Joined: 19 Mar 2013
Total Posts: 665
28 Jun 2013 09:05 PM
@Knight No, it will give roblox an error. Open up a new place in studio and try it in the command bar.

~ h i ~
Report Abuse
KilITheClones is not online. KilITheClones
Joined: 19 Mar 2013
Total Posts: 665
28 Jun 2013 09:06 PM
*give roblox an error as in "An unexpected error occurred and ROBLOX needs to quit, we're sorry!"*

~ h i ~
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
28 Jun 2013 09:06 PM
22:06:47.430 - ypcall requires a resumable function as a first argument. Wrap your C function with a Lua function.
22:06:47.431 - Script "ypcall(wait)
", Line 1
22:06:47.431 - stack end
Report Abuse
KilITheClones is not online. KilITheClones
Joined: 19 Mar 2013
Total Posts: 665
28 Jun 2013 09:07 PM
Try this: game:GetService("InsertService"):Insert(nil)

~ h i ~
Report Abuse
IAmReallyAwesome is not online. IAmReallyAwesome
Joined: 05 Mar 2010
Total Posts: 7371
28 Jun 2013 09:08 PM
Yep,

while true do end

still works!
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
28 Jun 2013 09:08 PM
22:08:49.580 - instance must be non-nil
22:08:49.581 - Script "game:GetService("InsertService"):Insert(nil)", Line 1
22:08:49.581 - stack end
Report Abuse
KilITheClones is not online. KilITheClones
Joined: 19 Mar 2013
Total Posts: 665
28 Jun 2013 09:08 PM
Oh crap they fixed that too

~ h i ~
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
28 Jun 2013 09:09 PM
I think just instancing MSJI would be your best bet.
Report Abuse
KilITheClones is not online. KilITheClones
Joined: 19 Mar 2013
Total Posts: 665
28 Jun 2013 09:09 PM
AHA, try this:

Spawn(wait)

~ h i ~
Report Abuse
IAmReallyAwesome is not online. IAmReallyAwesome
Joined: 05 Mar 2010
Total Posts: 7371
28 Jun 2013 09:09 PM
Yep, pretty sure both of mine would still work XD
Report Abuse
KilITheClones is not online. KilITheClones
Joined: 19 Mar 2013
Total Posts: 665
28 Jun 2013 09:10 PM
yeyeyeyeyyeeyye confirmed

Also Delay(wait,0) works as well I think

~ h i ~
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
28 Jun 2013 09:10 PM
I suppose that works.
Report Abuse
IAmReallyAwesome is not online. IAmReallyAwesome
Joined: 05 Mar 2010
Total Posts: 7371
28 Jun 2013 09:11 PM
lol we're just jumping all over this thread like a pack of feral dogs XD

Not often that we get to make a script that is intended to glitch XD
Report Abuse
kubuto2 is not online. kubuto2
Joined: 16 Jul 2008
Total Posts: 1275
28 Jun 2013 09:23 PM
player.Parent = nil
player.Parent = game.Player

--Gives player shutdown notice.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image