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: What's wrong with this script?

Previous Thread :: Next Thread 
Apostasy is not online. Apostasy
Joined: 29 May 2008
Total Posts: 232
11 Aug 2011 08:35 PM
do
wait(0.1)
if script.Parent.Parent = game.Workspace then
script.Parent.Song:Play()
end
end
Report Abuse
ElectricBlaze is not online. ElectricBlaze
Joined: 18 Jul 2011
Total Posts: 22930
11 Aug 2011 08:41 PM
while true do
wait(0.1)
if script.Parent.Parent = game.Workspace then
script.Parent.Song:Play()
end
end
Report Abuse
Apostasy is not online. Apostasy
Joined: 29 May 2008
Total Posts: 232
11 Aug 2011 08:42 PM
Doesn't work. You pretty much didn't change anything.
Report Abuse
ExoCode is not online. ExoCode
Joined: 30 Jul 2011
Total Posts: 60
11 Aug 2011 08:43 PM
You're comparing something, change that = in your if statement to '==' with no quotes of course.
Report Abuse
ExoCode is not online. ExoCode
Joined: 30 Jul 2011
Total Posts: 60
11 Aug 2011 08:44 PM
With the while true do as stated above ^^
Report Abuse
Apostasy is not online. Apostasy
Joined: 29 May 2008
Total Posts: 232
11 Aug 2011 08:45 PM
Thanks exo. Worked
Report Abuse
ElectricBlaze is not online. ElectricBlaze
Joined: 18 Jul 2011
Total Posts: 22930
11 Aug 2011 08:48 PM
Yeah, sorry, didn't notice that problem.
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