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)