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 |
|
|
|
| 15 Jul 2017 09:44 PM |
while wait(3) do workspace.Part.Material = "Grass" wait(3) workspace.Part.Material = "Sand" end
|
|
|
| Report Abuse |
|
|
Ardsir
|
  |
| Joined: 18 Oct 2015 |
| Total Posts: 21 |
|
| |
|
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 |
|
|
|
| 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
|
  |
| Joined: 18 Oct 2015 |
| Total Posts: 21 |
|
| |
|
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
|
  |
| Joined: 18 Oct 2015 |
| Total Posts: 21 |
|
| |
|