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: Please Help

Previous Thread :: Next Thread 
warman50000 is not online. warman50000
Joined: 29 Dec 2008
Total Posts: 1055
12 Oct 2011 08:27 PM
When i start time on roblox studio it crashes, it only happens when i have the script running.

~~Disabled robloxian is weird.~~
Report Abuse
swmaniac is not online. swmaniac
Joined: 28 Jun 2008
Total Posts: 15773
12 Oct 2011 08:30 PM
What script? It sounds like it's an infinite loop.

2 Floodchecks.
Report Abuse
warman50000 is not online. warman50000
Joined: 29 Dec 2008
Total Posts: 1055
12 Oct 2011 08:31 PM
Its based on a defence bot, it is a repeat script that checks players, gets their character, and makes a part that it can shoot at them!

~~Disabled robloxian is weird.~~
Report Abuse
swmaniac is not online. swmaniac
Joined: 28 Jun 2008
Total Posts: 15773
12 Oct 2011 08:32 PM
Post the script?
Report Abuse
warman50000 is not online. warman50000
Joined: 29 Dec 2008
Total Posts: 1055
12 Oct 2011 08:34 PM
while true do
local Targets = game.Players:GetPlayers()
for i = 1, #Targets do
local Target = Targets[i].Character.Torso
local Bullet = Instance.new("Part")
Bullet.CanCollide = false
Bullet.formFactor = ("Custom")
Bullet.Parent = game.Workspace
Bullet.Size = Vector3.new(0.2, 1, 1)
Bullet.BrickColor = BrickColor.new("Really red")
Bullet.Reflectance = 0
Bullet.Transparency = 1
Bullet.Position = script.Parent.Position + Vector3.new(0,3,0)
local b = Instance.new("BodyVelocity")
b.velocity = Target.Position
b.Parent = Bullet
local mesh = Instance.new("SpecialMesh")
mesh.MeshType = ("Sphere")
mesh.Parent = Bullet
local fire = script.Parent.Fire:clone()
fire.Parent = Bullet
local Bolt = script.Lasers:clone()
Bolt.Parent = Bullet
Bolt.Disabled = false
wait(2)
Bullet:Remove()
wait(5)
end
end


~~Disabled robloxian is weird.~~
Report Abuse
TREVOR818730 is not online. TREVOR818730
Joined: 03 May 2009
Total Posts: 4443
12 Oct 2011 08:34 PM
Does it have a while true do, but no wait(number here)? That causes crashes.
Report Abuse
Spectrumw is not online. Spectrumw
Joined: 04 Aug 2009
Total Posts: 13510
12 Oct 2011 08:35 PM
Replace 'while true do' with 'while wait() do'.
Report Abuse
warman50000 is not online. warman50000
Joined: 29 Dec 2008
Total Posts: 1055
12 Oct 2011 08:35 PM
The script is posted here :o.

~~Disabled robloxian is weird.~~
Report Abuse
salem9 is not online. salem9
Joined: 25 Oct 2008
Total Posts: 23312
12 Oct 2011 08:35 PM
You don't have any ends that are within the while true do function, so it crashes.

wait(5)
end
end

will crash.

end
wait(5)
end

Won't.
Or it shouldn't, if I'm thinking right. :P
"The problem with quotes on the internet is that you can't tell if they're true or not." - Abraham Lincoln
Report Abuse
swmaniac is not online. swmaniac
Joined: 28 Jun 2008
Total Posts: 15773
12 Oct 2011 08:36 PM
Spectrum's right, when Studio runs there are no players so the for loop never runs; therefore the waits never do either.
Report Abuse
warman50000 is not online. warman50000
Joined: 29 Dec 2008
Total Posts: 1055
12 Oct 2011 08:37 PM
Spectrums answer fixed it, Thank you!

~~Disabled robloxian is weird.~~
Report Abuse
warman50000 is not online. warman50000
Joined: 29 Dec 2008
Total Posts: 1055
12 Oct 2011 08:39 PM
Im going to put it up for free use!

~~Disabled robloxian is weird.~~
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