generic image
Processing...
  • Games
  • Catalog
  • Develop
  • ROBUX
  • Search in People
  • 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
 

How do i Loop a Script??

Previous Thread :: Next Thread 
Ardsir is online. Ardsir
Joined: 18 Oct 2015
Total Posts: 21
15 Jul 2017 09:43 PM
I'm new to scripting and I'm making a Material changing Part, but it wont loop.. the script is:



workspace.Part.Material = "Grass"
Wait (3)
workspace.Part.Material = "Sand"
Report Abuse
Negativize is online. Negativize
Joined: 02 May 2011
Total Posts: 24823
15 Jul 2017 09:44 PM
while wait(3) do
workspace.Part.Material = "Grass"
wait(3)
workspace.Part.Material = "Sand"
end

Report Abuse
Ardsir is online. Ardsir
Joined: 18 Oct 2015
Total Posts: 21
15 Jul 2017 09:46 PM
THANK YOU
Report Abuse
Ardsir is online. Ardsir
Joined: 18 Oct 2015
Total Posts: 21
15 Jul 2017 09:50 PM
The script works On Brick Parts, but it won't work on spheres
Report Abuse
ExtremeBuilder15 is not online. ExtremeBuilder15
Joined: 01 May 2012
Total Posts: 2366
15 Jul 2017 09:55 PM
Make sure that the name you're referencing with: workspace.Part is the same name as the sphere.



Report Abuse
Ardsir is online. Ardsir
Joined: 18 Oct 2015
Total Posts: 21
15 Jul 2017 10:06 PM
WHAAAAAT?
Report Abuse
vastqud is online. vastqud
Joined: 10 Sep 2011
Total Posts: 1902
15 Jul 2017 10:09 PM
if the sphere's name is "Sphere", then you would say:

workspace.Sphere.Material = "Grass", and so on.

if you named it "THIS_PART", then you would say:

workspace.THIS_PART.Material = "Grass"


Report Abuse
Ardsir is online. Ardsir
Joined: 18 Oct 2015
Total Posts: 21
15 Jul 2017 10:23 PM
Okay
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.

Thanks for playing ROBLOX

  • 1

    Click RobloxPlayer.exe to run the ROBLOX installer, which just downloaded via your web browser.

  • 2

    Click Run when prompted by your computer to begin the installation process.

  • 3

    Click Ok once you've successfully installed ROBLOX.

  • 4

    After installation, click Play below to join the action!

    Play
The ROBLOX installer should download shortly. If it doesn’t, start the download now.
generic image