I need help with this color change script.
#4
(04-20-2011, 01:27 PM)Qwertygiy Wrote: [lua]
detector = script.Parent
function Bake(hit)
if hit.Name == "Bread" and detector.On.Value == true then
--If On is a BoolValue, you need .Value too.
hit.Color = Color(102,51,0)
sleep(.1)
end end --IMPORTANT!
link(detector.Collided, Bake)

[/lua]
detector = script.Parent
detector.On.Value
link(detector.Collided, Bake)

Hmm, how can you hit a bool value???



Thinking about it... mine won't work, too.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 7 Guest(s)