So ive been trying this script that if the owner joins the game a sound will play.
This is my script:
function ownersSound()
Player = Game.Players.LocalPlayer
if Player.Name == "DigitalZer3" then
Script.Sound:Play()
end
end
So ive been trying this script that if the owner joins the game a sound will play.
This is my script:
function ownersSound()
Player = Game.Players.LocalPlayer
if Player.Name == "DigitalZer3" then
Script.Sound:Play()
end
end
Make sure you're calling the function ownersSound. You also need to make "Script" lowercase. Here's what your code should end up as:
function ownersSound()
Player = Game.Players.LocalPlayer
if Player.Name == "DigitalZer3" then
script.Sound:Play()
end
end
ownersSound()
This discussion is preserved as it was. New answers, comments, and votes are closed.