How do I make things only show up on one client????
Asked by
4 years ago Edited 4 years ago
Through a local script, I turn particles on and off by enabling them. I also have filtering enabled on. The problem is, no matter what I do they always show up on all the clients. I tried cloning the particles through the local script and stuff, but it just never works. The script is in the starter character and I tried moving it to other places to see if it would work. I tried having the particles cloned from replicated first and replicated storage. I also tried testing in the studio and in just a normal Roblox server. Am I just dumb and not realizing that I have to do something else? The particles don't show up on the server, but on every single client.
All my script does is create a sound, play a sound, turn on some particles, wait for the sound to finish, then destroy the sound and then disable all the particles. I'll put some of that script if it helps but I really don't understand what is going on!
I really need help I've been looking up stuff on the internet for a couple of days now!
01 | local replicatedfirst = game:WaitForChild( 'ReplicatedFirst' ) |
02 | local stuff = game.Workspace.TutorialStuff |
03 | local confetti 1 = stuff.Confetti 1 |
04 | local confetti 2 = stuff.Confetti 2 |
05 | local part = stuff [ "Confetti Trigger" ] |
07 | local player = game.Players.LocalPlayer |
09 | part.Touched:Connect( function (hit) |
10 | if not hit.Parent:FindFirstChild( "Humanoid" ) then return end |
11 | if hit.Parent.Humanoid.Health = = 0 then return end |
12 | if debounce = = true then return end |
15 | local particle 1 = confetti 1 :GetChildren( 'ParticleEmitter' ) |
16 | local particle 2 = confetti 2 :GetChildren( 'ParticleEmitter' ) |
17 | local sound = Instance.new( 'Sound' ) |
18 | sound.Parent = hit.Parent |
20 | sound.Name = 'PartySirens' |
25 | for i = 1 , #particle 1 and #particle 2 do |
26 | particle 1 [ i ] .Enabled = true |
27 | particle 2 [ i ] .Enabled = true |
29 | repeat wait() until sound.TimePosition > = 6.3 |
31 | for i = 1 , #particle 1 and #particle 2 do |
32 | particle 1 [ i ] .Enabled = false |
33 | particle 2 [ i ] .Enabled = false |
stuff = where everything is located in workspace
confetti1/2 = part that contains particles