i dont know scripting so much.. so i tried to do like this but it didnt work can somone help?
local Trigger = game.Workspace.Trigger script.Parent.Touched:connect(function(hit) if hit and hit.Parent:FindFirstChild('Humanoid') then local sound = workspace.Trigger.NightVision sound:play()
? Fixed it myself here is the code
local Trigger = game.Workspace.Trigger.NightVision script.Parent.Touched:connect(function(hit) if hit and hit.Parent:FindFirstChild('Humanoid') then Trigger:play() end end)