add gs
This commit is contained in:
+20
@@ -0,0 +1,20 @@
|
||||
--[[
|
||||
A simple sound component
|
||||
|
||||
Props:
|
||||
SoundName : string - The name of the sound
|
||||
]]
|
||||
local RobloxGui = game:GetService("CoreGui").RobloxGui
|
||||
local Modules = RobloxGui.Modules
|
||||
|
||||
local Roact = require(Modules.Common.Roact)
|
||||
local GlobalSettings = require(Modules.Shell.GlobalSettings)
|
||||
|
||||
return function(props)
|
||||
local soundName = props.SoundName
|
||||
local soundsUrl = GlobalSettings.Sounds[soundName]
|
||||
return Roact.createElement('Sound',
|
||||
{
|
||||
SoundId = soundsUrl
|
||||
})
|
||||
end
|
||||
Reference in New Issue
Block a user