m.KeyDown:connect(function(key)
LK=c.Lanes.LeftLane or c.Lanes.DownLane or c.Lanes.UpLane or c.Lanes.RightLane:FindFirstChild(tostring(Note2.Value))
--[[if LK.Parent ~= c.Lanes.LeftLane then return
else ]]
if key=="q" and c.Lanes.LeftLane[LK].Position.Y.Scale >=0.202 then
--Bad1()
print("Bad")
elseif key=="q" and c.Lanes.LeftLane[LK].Position.Y.Scale >= 0 and c.Lanes.LeftLane.LK.Position.Y.Scale <= 0.161 then
--Cool1()
print("Cool")
elseif key=="q" and c.Lanes.LeftLane[LK].Position.Y.Scale >= 0 and c.Lanes.LeftLane.LK.Position.Y.Scale<= 0.059 then
--Perfect1()
print("Perfect")
LK:Remove()
--end
end end)
All Variables are defined but are omitted from this excerpt.
Error:bad argument #2 to '?' (string expected, got userdata) 06:02:18.294 - Script 'Players.Player.PlayerGui.LocalPricklyMagpie', Line 195
I know that UserData cannot be indexed but as you can see, I converted the UserData "Note2.Value to string. I dont know why the script perceives it as a UserData when it is suppose to be a string.
