Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

I want to make a block that sounds from another block when tapped ?

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()

1 answer

? 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)

This discussion is preserved as it was. New answers, comments, and votes are closed.