Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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

2 comments

0

Where is the script and is it a local script?

0

The script can be found at ServerScriptService and nope it is not a localscript

1 answer

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.

1 comment

0

What am I supposed to do then?

This discussion is preserved as it was. New answers, comments, and votes are closed.