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

My script works in studio not in game? My game is also filtering disabled

Asked by 6 years ago
local sounds = game.SoundService
while true do
    wait(10)

    Sounds = math.random(1,5)

    if Sounds == 1 then
        sounds.Laugh:Play()
    elseif Sounds == 2 then
        sounds.Laugh2:Play()
    elseif Sounds == 3 then
        sounds.Laugh3:Play()
    elseif Sounds == 4 then
        sounds.Seek:Play()
    elseif Sounds == 5 then
        sounds.ISeeYou:Play()
    end
end

Help me please this works in studio but not in game

0
Where is the script and is it a local script? WaddelsG 69 — 6y
0
The script can be found at ServerScriptService and nope it is not a localscript Excelyse 0 — 6y

1 answer

Log in to vote
0
Answered by
oftenz 367 Moderation Voter
6 years ago

Server Script Service: A semantic, organized place to put your server-sided game logic, which does not interfere with the world. Scripts will run inside this service, and will not replicate to game clients, allowing for secure storage of your scripts.

0
What am I supposed to do then? Excelyse 0 — 6y
Ad

Answer this question