Win effect so other players can see

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve?

A win effect that works
2. What is the issue?

The issue is that if the player wins the particle effect like goes onto every player but what I want is particles to go on the player that won and everyone can see!

  1. What solutions have you tried so far?

Finding a solution

local db = false
local player = game.Players.LocalPlayer
local particle = game.ReplicatedStorage.ParticleEmitter:Clone()
game.Workspace.MapForGlassPlatforms.Respawn.Door.Part.Touched:Connect(function()
	game.Workspace.WinScript.GiveWin:FireServer()
	if not db then
		db = true
		particle.Parent = player.Character.HumanoidRootPart
		script["Win Sound"]:Play()
		task.wait(5)
		particle.Parent = game.ReplicatedStorage
		db = false
	end
end)

Thank you in advance!

Is this on a Server Script? Or is IT Client sided?

Client sided script (3 0 c h a r s)

Then make a server-side script and paste the script into the server-side script.

That is what I am confused how can I do this server side?

Just insert a regular script in ServerScriptStorage (or whatever its called) and there you got a server-side script.

Now it works just the sound isn’t playing!

local db = false
local players = game:GetService("Players")
local particle = game.ReplicatedStorage.ParticleEmitter:Clone()
game.Workspace.MapForGlassPlatforms.Respawn.Door.Part.Touched:Connect(function(h)
	local player = players:GetPlayerFromCharacter(h.Parent)
	if h.Parent:FindFirstChild("HumanoidRootPart") then

		if player  then
			if not db then
				db = true
				particle.Parent = player.Character.HumanoidRootPart
				script.WinSound:Play()
				task.wait(5)
				particle.Parent = game.ReplicatedStorage
				db = false
			end
		end
	end
end)

never mind I fixed it I needed to send the sound to the player