Im making a game with core (again) and im making an effect to the core. The core is supposed to change its material at specific temperatures but nothing happens. Here is the code.
while true do
temp = game.Workspace.Temp.Value
if temp > 3000 then
script.Parent.Material = Neon
elseif temp > 2700 then
script.Parent.Material = Neon
elseif temp > 2200 then
script.Parent.Material = Neon
elseif temp > 200 then
script.Parent.Material = Concrete
elseif temp > -100 then
script.Parent.Material = Sand
elseif temp > -300 then
script.Parent.Material = Granite
else
script.Parent.Material = Granite
end
wait()
end
PS: I dont like the new text editor ;-;
