local RepStorage = game:GetService("ReplicatedStorage")
local KGFolder = RepStorage:WaitForChild("KGRemoteEvents")
local ActivateRemote = KGFolder:WaitForChild("SharinganActivate")
local ServerStorage = game:GetService("ServerStorage")
local KGItemFolder = ServerStorage:WaitForChild("KG_Folder")
local SharinganFolder = KGItemFolder:WaitForChild("Sharingan")
local function ActivateSharingan(plr)
if plr.KGStore.KGActive.Value == true then
if plr.Character.Head:FindFirstChild("GenkaiDisplay") then
plr.Character.Head.GenkaiDisplay:Destroy()
SharinganFolder.SFX.SharinganDictivated:Play()
plr.KGStore.KGActive.Value = false
end
else
SharinganFolder.Stuff.GenkaiDisplay:Clone().Parent = plr.Character.Head
SharinganFolder.SFX.SharinganActivated:Play()
plr.KGStore.KGActive.Value = true
end
end
ActivateRemote.OnServerEvent:Connect(ActivateSharingan)
COMMUNITY QUESTION
How To Play a sound via a script ( not local?)
2 answers
Get the Sound Object and do:
local sound = script.Sound
~~your event~~
sound:Play()
3 comments
0
put a sound object inside your script and change SoundID for your wanted ID, and then use this example
0
Did it like u wanted does not work
0
This does work.
It depends where you sound is, what works for me is if you put the sound in workspace and put a server script in workspace and then write this in the script
local sound = game.Workspace["insert sound name in here"] --insert the sound name in the " "
sound:Play()
I hope this helps!
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
Please clarify your question. See http://idownvotedbecau.se/unclearquestion for more information
TTChaos bruh what