
142 Views
402 Executions
Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
In testing so try it out
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local CollectionService = game:GetService("CollectionService")
local RunService = game:GetService("RunService")
local player = Players.LocalPlayer
local HitEvent = ReplicatedStorage:WaitForChild("NoteHit")
local AUTO_PLAY = true
-- Maximum timing difference allowed
local HIT_WINDOW = 0.12
local alreadyHit = {}
local validDirections = {
Left = true,
Down = true,
Up = true,
Right = true
}
local function hit(note)
if alreadyHit[note] then
return
end
if not note or not note.Parent then
return
end
local direction = note:GetAttribute("Direction")
if not validDirections[direction] then
warn("Invalid note direction:", direction)
return
end
alreadyHit[note] = true
Comments
0Log in to join the conversation. Login
No comments yet. Be the first!







