Hello Developers!
I was recently working on a plugin that I hope to release very soon. However the plugin needs to have a bunch of scripts so I decided to make a module script to make it more optimized. I created the functions, however none of them work. Here’s my module script:
local module = {MouseEnter, MouseLeave, MouseActive}
function MouseEnter(sound)
script.Parent.Parent.Parent.Selected.Text = "Selected Song Id: "..sound.SoundId
local debounce = 0
while debounce < 5 do
script.Parent.Parent.Parent.Selected.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
task.wait(0.5)
script.Parent.Parent.Parent.Selected.BackgroundColor3 = Color3.fromRGB(59, 206, 33)
task.wait(0.5)
debounce += 1
end
end
function MouseLeave()
task.wait(10)
script.Parent.ListArea.Hype.Selected.Text = "No selected Song Id"
end
function MouseActive(sound)
warn("New Sound Inserted in Workspace, you can preview it there!")
local new = sound:Clone()
new.Parent = game.Workspace
new.Name = "RolibInsertedSound"
end
return module
Any Help is appreciated,
OceanTubez