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

how can i make it so that when a player touches a brick, their local ambient reverb changes?

i'm trying to make a car game, and i want to make it feel a bit dynamic, so what i'm trying to do is to make it so there's a part inside a tunnel that changes a player's local ambientreverb for the time that the player is inside the brick, once they leave the brick, their local ambientreverb goes back to normal, i've already tried many ways but none of them have actually done what i wanted it to do, if anyone here could help me i would be more than thankful!

1 answer

✓ Accepted answer

I mean there is a way like that you put the part in StarterGui and put local script in it:

local service = game:GetService("Lighting")
local part = script.Parent:Clone() -- clones local part
part.Parent = workspace -- puts it into workspace
part.Touched:Connect(function(hit)
	if hit.Parent:FindFirstChild"Humanoid" then -- checks if its actually player
	service.ClockTime = 1 -- changes time
	end
end)

The thing is that you won't see it in studio but you can find solution to that i think. You can change the clock time to ambient or any other things.

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