Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to turn this script into RemoteEvents ("FireAllClients()")?

Asked by 6 years ago
wait(8)
local sound = game.Workspace.Audio
sound.Pitch=1
sound.Name="Audio"
sound.Looped=true
sound.PlayOnRemove=false
local player = game.Players.LocalPlayer.Character
local Format = "http://www.roblox.com/asset/?id=##ID##"
local frame = script.Parent:WaitForChild("Frame")

frame:WaitForChild("Play").MouseButton1Click:connect(function()
    local input = tonumber(frame:WaitForChild("Input").Text)
    if input then
        sound:Stop()
        sound.SoundId=Format:gsub("##ID##", tostring(input))
        sound:Play()
    end
end)
frame:WaitForChild("Stop").MouseButton1Click:connect(function()
    sound:Stop()
end)


Could someone help me to make this script work with FireAllClients?!?! ("I have enough time") (Its a localscript) idk what to put in replicated storage and what to do in serverscript

2
How do I think for myself. hiimgoodpack 2009 — 6y
0
ok i will try myself that will be extremely hard Lolamtic 63 — 6y

Answer this question