So, someone here helped me making a script. (See below)
local Players = game:GetService("Players") local RS = game:GetService("ReplicatedStorage") local player = Players.LocalPlayer local remote = RS:WaitForChild("RemoteEvent") --Where the sound is located. local sound = --location of your sound here relative to your script. local function PlaySound() sound:Play() end --Listen for events from the server. remote.OnClientEvent:Connect(PlaySound)
I'm really thankfull! But, i don't know how to enter the PlayerGui (Containing Sounds. Want u use a LocalSoundScript that gets activated from a Brick) trough ReplicatedStorage,
I asked him the same question, but i think he's in a different time-zone that i am, so he's probably sleeping :P.
It's pretty simple. Like that:
--< Services local PlayerService = game:GetService('Players') local RStorageService = game:GetService('ReplicatedStorage') --< Client local Player = PlayerService.LocalPlayer local PlayerGui = Player:WaitForChild('PlayerGui') --< Variables local RemoteEvent = RStorageService:WaitForChild('RemoteEvent') local Sound = ... -- Location of your sound here relative to your script. --< Events RemoteEvent.OnClientEvent:Connect(function() -- Listen for events from the server. -- Your code end)
Use the roblox developper site to found information. Like that page who is talking about PlayerGui
Solved your question? put in title [SOLVED] or accept a answer.