|
| 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 |
|
|
|
| 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 |
|
|
| |
|
|
| 04 Nov 2014 07:40 AM |
i could get about halfway through what toxic said but im pretty bad too imo |
|
|
| Report Abuse |
|
|
NanoFoxX
|
  |
| Joined: 16 Feb 2014 |
| Total Posts: 3233 |
|
| |
|
|
| 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 |
|
|