erlmix
(erlmix)
January 3, 2023, 8:55pm
#25
Solution:
(Replace to code from “Settings” with this)
local settings = {}
Piano = script.Parent
Box = Piano.Keys.Camera
--EDIT BELOW----------------------------------------------------------------------
settings.PianoSoundRange = 50
settings.KeyAesthetics = true
settings.PianoSounds = {
"233836579",
"233844049",
"233845680",
"233852841",
"233854135",
"233856105"
}
-- Each note takes up exactly 8 seconds in audio. i.e C2 lasts 8 secs, C2# lasts 8 secs, C3 lasts 8 secs, C3# lasts 8 secs etc. for each audio
-- These are the IDs of the piano sounds.
settings.SoundSource = Piano.Keys.KeyBox
settings.CameraCFrame = CFrame.new(
(Box.CFrame * CFrame.new(0, 0, 1)).p, -- +z is towards player
(Box.CFrame * CFrame.new(0, 0, 0)).p
)
-----------------------------------------------------------------------------------
return settings
2 Likes
IronVhoq
(LionOfJudah)
November 6, 2023, 7:30pm
#26
erlmix:
local settings = {}
Piano = script.Parent
Box = Piano.Keys.Camera
--EDIT BELOW----------------------------------------------------------------------
settings.PianoSoundRange = 50
settings.KeyAesthetics = true
settings.PianoSounds = {
"233836579",
"233844049",
"233845680",
"233852841",
"233854135",
"233856105"
}
-- Each note takes up exactly 8 seconds in audio. i.e C2 lasts 8 secs, C2# lasts 8 secs, C3 lasts 8 secs, C3# lasts 8 secs etc. for each audio
-- These are the IDs of the piano sounds.
settings.SoundSource = Piano.Keys.KeyBox
settings.CameraCFrame = CFrame.new(
(Box.CFrame * CFrame.new(0, 0, 1)).p, -- +z is towards player
(Box.CFrame * CFrame.new(0, 0, 0)).p
)
-----------------------------------------------------------------------------------
return settings
This works. Thank you so so so so so so so so so so so much man
raku2368
(raku2368)
August 11, 2024, 3:44pm
#27
훌륭한 오픈소스를 제공해 주셔서 감사합니다.
하지만 @을 누르면 피아노가 깨지는 것 같습니다.
출력에는 오류 메시지가 없지만 @를 누르면 마우스로 키를 누를 때는 정상적으로 작동하지만 키보드로는 작동하지 않습니다.
하지만 마우스로 아무 곳이나 클릭하면 오류가 해결됩니다.