|
| 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 |
|
|
|
| 24 Aug 2013 08:07 AM |
| Incase you were wondering,1337e1337 makes it "inf" (Infinite) |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 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 |
|
|
|
| 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 |
|
|