Help with an instance on my script

Howdy, let’s get rowdy! Thank you for going through my post and try to solve my issue.

The issue that I’m having is with the script of the door of my interview center, specifically with an instance of sound. Do you know what is going wrong? Any idea to solve this?

Output:

Script:

--[[VARIABLES]]--

--/Others.
local AllowedToOpenDoorRank = 255
local AllowedOnesGroupId = 6307151

--/Instances.
local Instance = Instance.new("Sound", game.Workspace) 

--[[CODE]]--

--/!Open
game.Players.PlayerAdded:Connect(function(Player)
   if Player:GetRankInGroup(AllowedOnesGroupId) >= AllowedToOpenDoorRank then
       Player.Chatted:Connect(function(message)
			if message == "!Open" then
			Instance.EmitterSize = 999999984306749440
			Instance.MaxDistance = 999999984306749440
			Instance.SoundId = 4693670258
			Instance.Volume = 2.6
            workspace.PrincipalDoor1.Door.CanCollide = false	            
			workspace.PrincipalDoor1.Door.BrickColor = BrickColor.new("Lime green")
		    workspace.PrincipalDoor2.Door.CanCollide = false
            workspace.PrincipalDoor2.Door.BrickColor = BrickColor.new("Lime green")
         end
      end)
   end
end)

Have a nice day!

1 Like

Assets hosted on the website require special formatting.

Instance.SoundId = "rbxassetid://4693670258"
1 Like

Also, there’s nowhere in the script where you actually :Play() the sound.

1 Like

It doesn’t reproduce the sound. What I should do?

I want that when I use the command it changes the propertyes of my instance and a part.

1 Like