Hello, i am trying to make a gamepass particles script and it doesnt seem to be working, particles are in replicated storage and i own the gamepass anyone know why the following script isnt working and could help me fix it?
local Particles = game.ReplicatedStorage:WaitForChild("Bubble")
local mps = game:GetService("MarketplaceService")
local gamepass = 7868986
game.Players.PlayerAdded:Connect(function(player)
wait(1)
if mps:UserOwnsGamePassAsync(player.UserId,gamepass) then
if not player:FindFirstChild("DevParticles") then
local ef = Particles:Clone()
ef.Parent = workspace:WaitForChild(player.Name)
end
end
end)
( i have to space out or else it puts it by each other )

2 comments
You can just indent them
It’s putting the text together because it isn’t formatted properly, use the “Lua Code” button to fix it