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: What's wrong with this crash script?

Previous Thread :: Next Thread 
DoctorTempest is not online. DoctorTempest
Joined: 05 Jan 2013
Total Posts: 3838
29 Jun 2013 10:39 PM
This runs on 2 scripts, it's supposed to crash the player when they enter (test for another script I'm working on).

PrivateScript

function onEntered(player)

game.Workspace.Crash:clone().Parent = player.PlayerGui

end
game.Players.PlayerAdded:connect(onEntered)


Crash

pcall(Instance.new, "ManualSurfaceJointInstance")

for i=-math.huge, math.huge, 1 do
Instance.new("StringValue", game:GetService("Players").LocalPlayer)
end


FYI, crash is disabled.


Report Abuse
DoctorTempest is not online. DoctorTempest
Joined: 05 Jan 2013
Total Posts: 3838
29 Jun 2013 10:40 PM
Oops, last bit:

FYI, crash is NOT disabled.
Report Abuse
DoctorTempest is not online. DoctorTempest
Joined: 05 Jan 2013
Total Posts: 3838
29 Jun 2013 10:43 PM
B1
Report Abuse
DoctorTempest is not online. DoctorTempest
Joined: 05 Jan 2013
Total Posts: 3838
29 Jun 2013 10:45 PM
B2
Report Abuse
Wehttam664 is not online. Wehttam664
Joined: 02 Oct 2009
Total Posts: 767
29 Jun 2013 10:47 PM
1. The 'for' loop will lock up without a wait, even if it's just 'wait().'
2. 'Crash' needs to game a LocalScript for LocalPlayer to work. Is it?

~ Matt | Director of Research and Development for Mayateck Networks
Report Abuse
DoctorTempest is not online. DoctorTempest
Joined: 05 Jan 2013
Total Posts: 3838
29 Jun 2013 10:50 PM
Crash is a local script, inside Workspace.

How do I fix that?
Report Abuse
Wehttam664 is not online. Wehttam664
Joined: 02 Oct 2009
Total Posts: 767
29 Jun 2013 10:53 PM
You could trying sticking some waits at the first line of the script and adding 'wait()' inside the for loop. Are there any errors?

~ Matt | Director of Research and Development for Mayateck Networks
Report Abuse
DoctorTempest is not online. DoctorTempest
Joined: 05 Jan 2013
Total Posts: 3838
29 Jun 2013 10:54 PM
I'm testing this in online mode, so no errors.

I'll try that.
Report Abuse
Wehttam664 is not online. Wehttam664
Joined: 02 Oct 2009
Total Posts: 767
29 Jun 2013 10:56 PM
As a suggestion, try doing the Tools>Test>Start Server then Tools>Test>Start Player. This way the PlayerAdded event should still fire. With that, the server window should give any errors.

~ Matt | Director of Research and Development for Mayateck Networks
Report Abuse
DoctorTempest is not online. DoctorTempest
Joined: 05 Jan 2013
Total Posts: 3838
29 Jun 2013 11:02 PM
That disconnects me when I join, and it's not because fo the script
Report Abuse
DoctorTempest is not online. DoctorTempest
Joined: 05 Jan 2013
Total Posts: 3838
29 Jun 2013 11:09 PM
Still won't work
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