04-20-2011, 04:02 PM
(This post was last modified: 04-20-2011, 04:04 PM by 2Drobloxrocker64.)
(04-20-2011, 01:27 PM)Qwertygiy Wrote: [lua]detector = script.Parent
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.On.Value
link(detector.Collided, Bake)
Hmm, how can you hit a bool value???
Thinking about it... mine won't work, too.