Trying to make a flashbang. Here are the localscript and script SCRIPT:
local exp = Instance.new("Explosion")
script.Parent.Sound:Play()
exp.BlastPressure = 100000
exp.BlastRadius = 25
exp.DestroyJointRadiusPercent = 0
exp.Position = script.Parent.Position
exp.Parent = workspace
script.Parent.Transparency = 1
exp.Visible = true
script.Disabled = true
exp.Hit:Connect(function(hit)
if game.Players:FindFirstChild(hit.Parent.Name) then
local player = game.Players:FindFirstChild(hit.Parent.Name)
script.Parent.RemoteEvent:FireClient(player)
print("remoteevent")
end
end)
localscript:
script.Parent.RemoteEvent.OnClientEvent:Connect(function()
--print("Code here!")
end)

2 comments
You put the remote event is replicated storage right?
You don't have to for them to work but its probably your best bet.