Posts: 1
Threads: 1
Joined: Apr 2011
Reputation:
0
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:
Posts: 1,926
Threads: 133
Joined: Apr 2011
Reputation:
0
04-20-2011, 01:14 PM
(This post was last modified: 04-20-2011, 01:15 PM by 2Drobloxrocker64.)
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!
Posts: 5,683
Threads: 413
Joined: Aug 2012
Reputation:
0
[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
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