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

Because nothing is visible in FilterEnabled?

I made a small localscript to clone a particle and go to my torso but my friends do not see me with the particle, this happens with any other script.

LocalScript in startepack and particle in replicatedstorage

Because I only see the particle in me and the others do not?

My localscript would look something like this:

player = game.Players.LocalPlayer
c = player.Character
tor = c:FindFirstChild("UpperTorso")

local en = game.ReplicatedStorage.ParticleEmitter:Clone()
en.Parent = tor

3 comments

0

It is because you are using FilteringEnabled

0

And it is a localscript

0

for others to see should be script and not localscript?

1 answer

✓ Accepted answer

FilteringEnabled prevents client changes from replicating to the server. This is a very effective method of preventing hacking, since the hacker can't modify their client and effect the whole server. Roblox has a great visualization of this. With that said, you're going to need to execute your code using a server script. Based on the wording of your question, I assume you only want this done to your character, I have corrected your script to do that. It must be a server script and I recommend putting it in ServerScriptService.

game.Players.PlayerAdded:Connect(function(p)
	p.CharacterAdded:Connect(function(c)
		if p.UserId == 363446931 then -- This is already your UserId
			local en = game.ReplicatedStorage.ParticleEmitter:Clone()
			en.Parent = c:WaitForChild("UpperTorso")
		end
	end)
end)

I hope my answer solved your problem! If it did please remember to mark it as correct!

3 comments

0

So any script I should put on ServerScriptService?

0

if I insert a gui that gives me a localscript that with a certain button makes a "part" with effects appear around would work? but I would put part.parent = workspace would others see? It's kind of confusing I was messing with saiyan script but only me who saw me in saiyan the others did not see me from saiyan ... that I wanted them to see.

0

If FilteringEnabled is on and you're using a localscript, no one else will see it.

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