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 » Scripters
Home Search
 

Re: Why exactly does this now work? Nothing's wring with it.

Previous Thread :: Next Thread 
Ueax is not online. 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 is not online. 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 is not online. 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 is not online. Ueax
Joined: 14 May 2010
Total Posts: 4355
11 Feb 2016 06:06 AM
Uh, that didn't work.


Add 20K posts
Report Abuse
EllisLadon is not online. EllisLadon
Joined: 21 Jun 2012
Total Posts: 343
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 is not online. Ueax
Joined: 14 May 2010
Total Posts: 4355
11 Feb 2016 10:17 AM
Can you atleast help me really quick 😂😂😂
Report Abuse
ElectoStriking is not online. ElectoStriking
Joined: 10 May 2014
Total Posts: 1547
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
ElectoStriking is not online. ElectoStriking
Joined: 10 May 2014
Total Posts: 1547
11 Feb 2016 10:43 AM
change hit for script.Parent...my b



#Strikin'
Report Abuse
DarthStrantax is not online. DarthStrantax
Joined: 31 May 2011
Total Posts: 2610
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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