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: May I Have Some Ideas Please

Previous Thread :: Next Thread 
Aetas is not online. Aetas
Joined: 10 Oct 2010
Total Posts: 366
03 Aug 2011 01:20 PM
I want to code something, but I have no idea what to do. If you can help me come up with an idea of what to do, I would like it to be in the moderate-intermediate difficulty range. Someone yesterday (For example) gave me idea for a gui that makes a car explode

deb=false
_Player=script.Parent.Parent.Parent.Parent
script.Parent.MouseButton1Down:connect(function(click)
if deb==false then
deb=true
if _Player.Character:FindFirstChild("Car")~=nil then
_Tick=Instance.new("Sound",_Player.Character)
_Tick.SoundId="rbxasset://sounds\\clickfast.wav"
_Tick.Volume=1
for _CountDown=10,1,-1 do
script.Parent.Text="Car Explodes In: "..(_CountDown).." Seconds!"
_Tick:play()
wait(1)
end
_Tick:remove()
_Explosion=Instance.new("Explosion",_Player.Character.Car.Part1)
_Explosion.Position=_Player.Character.Car.Part1.Position
_Explosion.BlastRadius=15
_Explosion.BlastPressure=1000000
local _Sound=Instance.new("Sound",_Player.Character.Car.Part1)
_Sound.SoundId="rbxasset://sounds\collide.wav"
_Sound.Volume=1
_Sound:play()
_Fire=Instance.new("Fire",_Player.Character.Car.Part1)
_Fire.Heat=15
_Fire.Size=20
_Player.Character.Car.VehicleSeat:remove()
script.Parent.Text="Your Car Has Exploded!"
coroutine.resume(coroutine.create(function(_Flip)
while wait() do
if (_Player.Character.Car.Part1.CFrame*CFrame.new(0,1,0)).y<_Player.Character.Car.Part1.Position.y then
_Fire.Heat=-15
else
_Fire.Heat=15
end
end
end))
wait(5)
_Sound:remove()
_Player.Character:FindFirstChild("Car").Parent=game.Workspace
script.Parent.Text="Explode_Car"
else
script.Parent.Text="You don't have a car!"
wait(2)
script.Parent.Text="Explode_Car"
wait(1)
end
deb=false
end
end)


ANYWAY, if you want, please help me come up with something to do, I always like boosting my knowledge!
Report Abuse
fireheart568 is not online. fireheart568
Joined: 04 Jan 2009
Total Posts: 1285
03 Aug 2011 01:29 PM
Oh man, this seems like such a simple task to do for you, but then when I go to try and think of something... I draw a blank.
Report Abuse
Fredfishy is online. Fredfishy
Joined: 21 Mar 2009
Total Posts: 4197
03 Aug 2011 01:32 PM
A gun that fires fried chicken.
When people eat said chicken, they gain superpowers.
Report Abuse
Aetas is not online. Aetas
Joined: 10 Oct 2010
Total Posts: 366
03 Aug 2011 01:46 PM
fireheart568, there's a limit for everyone, whether you want to make the limit bigger is ones opinion.

Fred, any more ideas? I don't like coding guns, it's boring.
Report Abuse
Fredfishy is online. Fredfishy
Joined: 21 Mar 2009
Total Posts: 4197
03 Aug 2011 01:49 PM
A pool of oil that when people fall in, they are fried in 3 seconds and come out as fried chicken.
Report Abuse
Aetas is not online. Aetas
Joined: 10 Oct 2010
Total Posts: 366
03 Aug 2011 01:53 PM
That would be too easy, but sure.
Report Abuse
Fredfishy is online. Fredfishy
Joined: 21 Mar 2009
Total Posts: 4197
03 Aug 2011 01:55 PM
An AI powered spectre gunship.
Report Abuse
Jason1289 is not online. Jason1289
Joined: 20 Mar 2009
Total Posts: 446
03 Aug 2011 02:06 PM
@Above I could use one of those :P
Report Abuse
Aetas is not online. Aetas
Joined: 10 Oct 2010
Total Posts: 366
03 Aug 2011 06:58 PM
_BodyParts={"Head","Left Arm","Left Leg","Right Arm","Right Leg"}
script.Parent.Touched:connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid")~=nil then
_ChickenMesh=Instance.new("SpecialMesh",hit.Parent.Torso)
_ChickenMesh.MeshId="http://www.roblox.com/asset/?id=13073626"
_ChickenMesh.TextureId="http://www.roblox.com/asset/?id=13073598"
_ChickenMesh.Scale=hit.Parent:FindFirstChild("Torso").Size
coroutine.resume(coroutine.create(function(_Remove)
if hit.Parent.Head.face~=nil then
hit.Parent.Head.face:remove()
if hit.Parent:FindFirstChild("Shirt")~=nil then
hit.Parent:FindFirstChild("Shirt"):remove()
if hit.Parent:FindFirstChild("Pants")~=nil then
hit.Parent:FindFirstChild("Pants"):remove()
end
end
end
end))
for _Transparency,v in pairs(_BodyParts) do
hit.Parent[v].Transparency=1
end
_Hat=hit.Parent:GetChildren()
for _Check=1,#_Hat do
if _Hat[_Check]:isA("Hat")~=nil then
if _Hat[_Check]:isA("Hat") then
_Hat[_Check]:remove()
end
end
end
end
end)


Anything else?
Report Abuse
Aetas is not online. Aetas
Joined: 10 Oct 2010
Total Posts: 366
03 Aug 2011 07:03 PM
OOOPSS. I noticed some errors in there^
Report Abuse
Aetas is not online. Aetas
Joined: 10 Oct 2010
Total Posts: 366
03 Aug 2011 07:10 PM
_BodyParts={"Head","Left Arm","Left Leg","Right Arm","Right Leg"}
script.Parent.Touched:connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid")~=nil then
_ChickenMesh=Instance.new("SpecialMesh",hit.Parent.Torso)
_ChickenMesh.MeshId="http://www.roblox.com/asset/?id=13073626"
_ChickenMesh.TextureId="http://www.roblox.com/asset/?id=13073598"
_ChickenMesh.Scale=hit.Parent:FindFirstChild("Torso").Size
coroutine.resume(coroutine.create(function(_Remove)
if hit.Parent.Head.face~=nil then
hit.Parent.Head.face:remove()
else
end
if hit.Parent:FindFirstChild("Shirt")~=nil then
hit.Parent:FindFirstChild("Shirt"):remove()
else
end
if hit.Parent:FindFirstChild("Pants")~=nil then
hit.Parent:FindFirstChild("Pants"):remove()
else
end
if hit.Parent:FindFirstChild("Shirt Graphic")~=nil then
hit.Parent:FindFirstChild("Shirt Graphic"):remove()
else
end
end))
for _Transparency,v in pairs(_BodyParts) do
hit.Parent[v].Transparency=1
end
_Hat=hit.Parent:GetChildren()
for _Check=1,#_Hat do
if _Hat[_Check]:isA("Hat")~=nil then
if _Hat[_Check]:isA("Hat") then
_Hat[_Check]:remove()
end
end
end
end
end)


Alrighty, what now?
Report Abuse
Fredfishy is online. Fredfishy
Joined: 21 Mar 2009
Total Posts: 4197
04 Aug 2011 01:41 AM
An AI Powered Spectre gunship.
An AI Powered "Spooky" gunship.
An AI powered AC-130.
Trolololol
Report Abuse
Aetas is not online. Aetas
Joined: 10 Oct 2010
Total Posts: 366
04 Aug 2011 11:14 AM
I don't know if I can do that :p
Report Abuse
Fredfishy is online. Fredfishy
Joined: 21 Mar 2009
Total Posts: 4197
04 Aug 2011 01:37 PM
Just make it fly in a circle and then fire cannons and raycasting guns at players within range. SIMPOL.
Report Abuse
greedyawesomeman is not online. greedyawesomeman
Joined: 18 Apr 2010
Total Posts: 1038
04 Aug 2011 01:42 PM
Well id like to learn from you


(I can script a little but not much I Can change the properties of bricks with a script and do math with scripts but i dont know how to do advanced stuff)



How About an AI That walks around the map with an RPG Stalking around the map and make it hard to kill

(You could sell it to war groups)

And if you want make it only fire at enemy teams.
Report Abuse
Blackpig72 is not online. Blackpig72
Joined: 17 May 2010
Total Posts: 5797
04 Aug 2011 01:43 PM
A script that makes something fall apart after it has been hit however many times.
Report Abuse
Aetas is not online. Aetas
Joined: 10 Oct 2010
Total Posts: 366
07 Aug 2011 04:24 PM
@Back,

deb=false
script.Parent.Touched:connect(function(hit)
if deb==false then
deb=true
script.Parent.Value1.Value=script.Parent.Value1.Value+1
end
end)

Put this in another script in the same thing

while wait() do
if script.Parent.Value1.Value==10 then
script.Parent:BreakJoints()
end
end
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