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: Before I use this script,

Previous Thread :: Next Thread 
icegroudon is not online. icegroudon
Joined: 08 Oct 2011
Total Posts: 2924
24 Aug 2013 08:04 AM
Is there ANY errors in it? (I didnt run it yet)

bp = Instance.new ("BodyPosition",script.Parent)
bp.position = script.Parent.Position
bg = Instance.new ("BodyGyro",script.Parent)
bg.maxTorque = Vector3.new (1337e1337,1337e1337,1337e1337)
wait(5)
bp.position = script.Parent.Position - script.Parent.Position
wait(5)
bp.position = script.Parent.Position + script.Parent.Position
function Meteors()
script.Parent.Award.Disabled = true
for i = 1,5 do
wait(2)
local Meteor = game.Lighting.Gift.MeteorGift:clone()
Meteor.Position = script.Parent.Position + Vector3.new (0,150,0)
script.Parent.Award.Disabled = false
end
end
function Burn()
script.Parent.Award.Disabled = true
for i = 1,10 do
wait(5)
BurnGift = game.Lighting.Gifts.BurningGift:clone()
BurnGift.Position = game.Workspace.ForestBase.Position + Vector3.new (math.random(150),math.random(50),math.random(150))
end
wait(10)
BurnGift:Remove()
end
function collect()
script.Parent.BodyPosition.position = script.Parent.Position - script.Parent.Position
script.Parent.Award.Disabled = false
end
while true do
mode = math.random(5)
if mode == 3 then
Meteors()
elseif mode ==2 then
Burn()
else
collect()
wait(16)
end
end
Report Abuse
icegroudon is not online. icegroudon
Joined: 08 Oct 2011
Total Posts: 2924
24 Aug 2013 08:07 AM
Incase you were wondering,1337e1337 makes it "inf" (Infinite)
Report Abuse
icegroudon is not online. icegroudon
Joined: 08 Oct 2011
Total Posts: 2924
24 Aug 2013 08:13 AM
hello?
Report Abuse
icegroudon is not online. icegroudon
Joined: 08 Oct 2011
Total Posts: 2924
24 Aug 2013 08:30 AM
Bump
Report Abuse
DragonODeath is not online. DragonODeath
Joined: 02 May 2011
Total Posts: 1252
24 Aug 2013 08:45 AM
Iunno what you are attempting, at least tell me what you want to make. Also you could do math.huge for infinity
Report Abuse
icegroudon is not online. icegroudon
Joined: 08 Oct 2011
Total Posts: 2924
24 Aug 2013 08:48 AM
Its a Scripted gift with a in-game name of "WeatherGift". Basicly,It Floats in the air Spawning meteors,(MeteorGift) Or burning the Forest with "BurningGift" Cloned From the lighting. Then you can collect it. Its supposed to choose these modes randomly So i made function and the random number chooses witch one it calls.
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