local Left= coroutine.create(function (key)
if key=="z" then
if c.Lanes.Lane1.A1.Position.Y.Scale >=0.202 or c.Lanes.Lane1.A1 == false then -- could this work?
Bad() print'Bad'
elseif c.Lanes.Lane1.A1.Position.Y.Scale >= 0 and c.Lanes.Lane1.A1.Position.Y.Scale <= 0.161 then
Cool1() CC1() print'cool'
elseif c.Lanes.Lane1.A1.Position.Y.Scale >= 0 and c.Lanes.Lane1.A1.Position.Y.Scale<= 0.059 then
Perfect1()CC1() print 'Perfect'end end end)
then ...
Mouse.KeyDown:connect(Left)
Mouse.KeyDown:connect(Down)
Mouse.KeyDown:connect(Right)
Mouse.KeyDown:connect(Up)
Basically I am trying to make a dance dance revolution game. For some reason the key events aren't detected. Everything else works fine. Hierarchy is also ok.
then functions Bad() Cool1() CC1() and Perfect1() Also work. Im trying to run the movement of a frame while being able to recognize key pressing simultaneously that is why i am using coroutines.

1 comment
thank you