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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Club Houses » ROBLOX Talk
Home Search
 

Re: i'm terrible at scripting lol

Previous Thread :: Next Thread 
KadoBrenKado is not online. KadoBrenKado
Joined: 09 Jul 2011
Total Posts: 21732
04 Nov 2014 07:37 AM
so i wanted to jump right into making a hard-level script that involved all these GUI and camera movement and whatever
"when step on part
then
"Model" explode
end
end"

progress tho
Report Abuse
ToxicDominator is not online. ToxicDominator
Joined: 24 Oct 2013
Total Posts: 8373
04 Nov 2014 07:38 AM
function onTouched()
wait()
local explosion = Instance.new("Explosion")
explosion.Parent = model
explosion.Position = model
end

script.Parent.Touched:connect(onTouched)

-- My OCD scripting style
Report Abuse
KadoBrenKado is not online. KadoBrenKado
Joined: 09 Jul 2011
Total Posts: 21732
04 Nov 2014 07:39 AM
@toxic

ok how the hell
Report Abuse
CyberPlanet is not online. CyberPlanet
Joined: 19 Oct 2014
Total Posts: 2772
04 Nov 2014 07:40 AM
i could get about halfway through what toxic said
but im pretty bad too imo
Report Abuse
NanoFoxX is not online. NanoFoxX
Joined: 16 Feb 2014
Total Posts: 3233
04 Nov 2014 07:40 AM
stanky micblang
Report Abuse
ToxicDominator is not online. ToxicDominator
Joined: 24 Oct 2013
Total Posts: 8373
04 Nov 2014 07:41 AM
model =

function onTouched() -- Creates a function in the script called onTouched()
wait() -- Waits very little, a TINY fraction of a second
local explosion = Instance.new("Explosion") -- Creates an Explosion
explosion.Parent = model -- Parents it to model, model has to be set
explosion.Position = model -- Positions it, without a position it explodes where you primarily spawn
end -- Ends the function

script.Parent.Touched:connect(onTouched) -- Connects the function so when script.Parent is Touched, onTouched() fires
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Club Houses » ROBLOX Talk
   
 
   
  • 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