Help in fixing sound regions

Hello Robloxians,
Can someone help me with making this sound region work.

I am new to using ZonePlus module and I am not able to fix this script which is supposed to play music only for the player whose character is inside of a specific part/zone. It isn’t working for some reason. Here is my script:

local ReplicationStorage = game:GetService("ReplicatedStorage")

local Zone = require(ReplicationStorage.Zone)
local ZoneController = require(ReplicationStorage.Zone.ZoneController)
local container = game.Workspace.Area.Air

local zone = Zone.new(container)

zone.localPlayerEntered:Connect(function(player)
print("enter")
script.Parent.music.TimePosition = 0
script.Parent.music:Play()
end)


zone.localPlayerExited:Connect(function(player)
print("exit")
script.Parent.music:Stop()
end)

Can someone tell me what to do in order to fix this or maybe an alternative to use instead of ZonePlus for this easy yet complicated task?
Any kind of help will be appreciated.

Is it a local script? Where is the script? What specifically does not work (music, printing…)

Oh Thanks for replying but I fixed this issue

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.