|
| 31 Jan 2016 09:43 AM |
How exactly do I change the mesh color of item "LobbyLight" The mesh is a neon I just want the color to change keep the neon :)
--------------------------------------------------------------------------------- function onClicked() if script.Parent.isOn.Value == true then script.Parent.isOn.Value = false script.Parent.BrickColor = BrickColor.Red() local Light ={}for i,v in pairs(workspace:GetChildren())do if v.Name=="LobbyLight"then table.insert(Light,v)end end for i,Light in pairs(Light)do Light.LightPart.SurfaceLight.Enabled = false Light.LightPart.BrickColor = BrickColor.new("Really black") wait(0.00001) end else script.Parent.isOn.Value = true script.Parent.BrickColor = BrickColor.Green() local Light ={}for i,v in pairs(workspace:GetChildren())do if v.Name=="LobbyLight"then table.insert(Light,v)end end for i,Light in pairs(Light)do Light.LightPart.SurfaceLight.Enabled = true Light.LightPart.BrickColor = BrickColor.new("Lily white") wait(0.00001) end end
end
script.Parent.ClickDetector.MouseClick:connect(onClicked) --------------------------------------------------------------------------------- |
|
|
| Report Abuse |
|
|
Ocks67
|
  |
| Joined: 07 Mar 2009 |
| Total Posts: 7218 |
|
|
| 31 Jan 2016 09:50 AM |
Remove the mesh texture ID? As in, leave it blank or set it to 0.
I don't know if you use a complex mesh such as a gear or hat or just a basic cylinder mesh. |
|
|
| Report Abuse |
|
|
|
| 31 Jan 2016 05:33 PM |
| @Ocks67 basic cylinder mesh. |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
| |
|
Scottifly
|
  |
| Joined: 30 Jan 2011 |
| Total Posts: 9180 |
|
|
| 03 Feb 2016 02:52 AM |
The Mesh colour isn't changing, just the Part colour is.
The Material shouldn't change at all, just the colour. If it seems to be, change your Studio graphics quality settings higher. If it isn't high enough then Neon won't render properly. |
|
|
| Report Abuse |
|
|