Ueax
|
  |
| Joined: 14 May 2010 |
| Total Posts: 4355 |
|
|
| 11 Feb 2016 05:55 AM |
if script.Parent.Name == "Break4" then wait(5) script.Parent.Destroy() end
Add 20K posts |
|
|
| Report Abuse |
|
|
adam1717
|
  |
| Joined: 07 May 2011 |
| Total Posts: 960 |
|
|
| 11 Feb 2016 05:59 AM |
That will only check once.
if you want it to check whenever the part changes use .Changed |
|
|
| Report Abuse |
|
|
Ueax
|
  |
| Joined: 14 May 2010 |
| Total Posts: 4355 |
|
|
| 11 Feb 2016 06:01 AM |
So
if script.Parent.Name.Changed == "Break4" then
Add 20K posts |
|
|
| Report Abuse |
|
|
Ueax
|
  |
| Joined: 14 May 2010 |
| Total Posts: 4355 |
|
|
| 11 Feb 2016 06:06 AM |
Uh, that didn't work.
Add 20K posts |
|
|
| Report Abuse |
|
|
|
| 11 Feb 2016 06:39 AM |
OOOOOOK - looks like you know *nothing* about scripting.
.Changed is an event. Read about connecting lines, events, if statements, ect. |
|
|
| Report Abuse |
|
|
Ueax
|
  |
| Joined: 14 May 2010 |
| Total Posts: 4355 |
|
|
| 11 Feb 2016 10:17 AM |
| Can you atleast help me really quick 😂😂😂 |
|
|
| Report Abuse |
|
|
|
| 11 Feb 2016 10:42 AM |
script.Parent.Changed:connect(function() if hit.Name =="Break4" then wait(5) script.Parent:Destroy() end end)
Im in illogical to :D
#Strikin' |
|
|
| Report Abuse |
|
|
|
| 11 Feb 2016 10:43 AM |
change hit for script.Parent...my b
#Strikin' |
|
|
| Report Abuse |
|
|
|
| 11 Feb 2016 01:23 PM |
while script.Changed:wait() do if script.Parent.Name == "Break4" then wait(5) script.Parent.Destroy() end end |
|
|
| Report Abuse |
|
|