-- Original values

local Lighting = game:GetService("Lighting")
local OLC = Lighting.ExposureCompensation


local function PlaySound()
	model.Lighting_Bolt.Transparency = 0
	wait(.05)
	Lighting.ExposureCompensation = 7
	wait(.25)
	Lighting.ExposureCompensation = OLC
	model.Lighting_Bolt.Transparency = 1
	sound:Play()
end

local function touched(otherPart)
	if(otherPart.Name == "HumanoidRootPart" ) then
		local player = game.Players:FindFirstChild(otherPart.Parent.Name)
		if(player) then
			trigger.CanTouch = false

			PlaySound()
		end
	end
end

trigger.Touched:Connect(touched)



