--ok so I went by what kiiln said but it's saying that Players is not a valid member of workspace (line 5) Even though it is
local hasHit = false local scarepart = game.workspace.ScareBrick
scarepart.Touched:connect(function(partth) if partth.Parent:FindFirstChild("Humanoid") and game.workspace.Players[partth.Parent.Name] and not hasHit then local plr = partth.Parent local sound = scarepart.Sound:clone() sound.Parent = game.workspace.Players[plr.Name].PlayerGui sound:Play() hasHit = true end end)

4 comments
nvm I figured it out
So I fixed the last problem, but now I want it to only play every once in a while not just spaz out and repeat like 8 times as their walking through it
So I've gotten this far but now it's giving me a weird error
NVM NOOB mistake