I need help with this color change script.
#1
detector = script.Parent
function Bake(hit)
if hit.Name = Bread
and detector.On = true
then hit.Color = 102,51,0
link (block.Collided, Bake)

Nothing happens. Help?
:furious::furious::furious::furious::furious::furious::furious::gun_bandana::gun_bandana::gun_bandana:
Reply
#2
detector = script.Parent
function Bake(hit)
if hit.Name == Bread and detector.On == true then
hit.Color = Color(102,51,0)
sleep(.1)
link(detector.Collided, Bake)



Hope this helps!
Reply
#3
[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]
Reply
#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
#5
Well... thanks too Big Grin
Reply
#6
detector = script.Parent
function Bake(hit)
if hit.Name == "Bread" and detector.On.Value then
hit.Color = Color(102,51,0)
sleep(.1)
end
end
link(detector.Collided, Bake)
derp
Reply


Forum Jump:


Users browsing this thread: 10 Guest(s)