spinywind
|
  |
| Joined: 26 Jan 2012 |
| Total Posts: 3580 |
|
|
| 03 Apr 2016 11:50 PM |
Do loops work in local scripts?
game.Players.PlayerAdded:connect(function() for i,v in pairs (script.Parent:GetChildren()) do print("Breaks") if v:IsA "Part" or v:IsA "UnionOperation" or v:IsA "BasePart" then print("Breaks") if v.Material == "Ice" then print("Mid") v.Material = "Slate" print("works") end end end end)
|
|
|
| Report Abuse |
|
|
spinywind
|
  |
| Joined: 26 Jan 2012 |
| Total Posts: 3580 |
|
|
| 03 Apr 2016 11:56 PM |
Well i have mine in a server script and its still not workin.
|
|
|
| Report Abuse |
|
|
Salinas23
|
  |
| Joined: 28 Dec 2008 |
| Total Posts: 37142 |
|
|
| 04 Apr 2016 01:20 AM |
Not quite sure what youre trying to do
whare is this script found?
game.Players.PlayerAdded:connect(function(plr) for i,v in pairs (script.Parent:GetChildren()) do print("Breaks") if v:IsA "Part" or v:IsA "UnionOperation" or v:IsA "BasePart" then print("Breaks") if v.Material == "Ice" then print("Mid") v.Material = "Slate" --you forgot to add if? maybe not print("works") else end else end wait()end end)
-Salinas con el número 23 |
|
|
| Report Abuse |
|
|