|
| 30 Dec 2016 05:44 AM |
So I create particles and place them within the player. Downside though, only the player can see them... So I am I suppose to create a new part and weld it to the player. Then have the part's parent in workspace to get the particles to show up to everyone?
~The most desired of Robloxians |
|
|
| Report Abuse |
|
|
|
| 30 Dec 2016 05:45 AM |
You sorta answered your own question.
Put it in the character in workspace, not the player. |
|
|
| Report Abuse |
|
|
|
| 30 Dec 2016 05:47 AM |
lol alright thanks I was just wondering if there was an easier way.
~The most desired of Robloxians |
|
|
| Report Abuse |
|
|
Soybeen
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 21462 |
|
|
| 30 Dec 2016 05:52 AM |
Generate the particles locally. Turn on FilteringEanbled from the Workspace, and then in a local script say
local player = game.Players.LocalPlayer repeat wait() until player.Character -- or char = player.CharacterAdded:wait() local char = player.Character
local particles = Instance.new("ParticleEmitter",char.Torso) -- add particles to the torso game:GetService("Debris"):AddItem(particles,4) -- remove after 4 seconds
|
|
|
| Report Abuse |
|
|
|
| 30 Dec 2016 05:54 AM |
Yeah I did something similar to that and only the player that has the particles see it
thanks for trying I'm just going to weld parts to the player and have their parent in workspace
~The most desired of Robloxians |
|
|
| Report Abuse |
|
|
Soybeen
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 21462 |
|
|
| 30 Dec 2016 05:59 AM |
Oh, I misunderstood your question.
No, what you should do is the following. Welding a part to the player with a particleemitter in it is just as ineffective if it's local.
You need to trigger a RemoteEvent from the client that tells the server to put particles in their torso.
...like so,
-- local script, playergui
local player = game.Players.LocalPlayer local char = player.CharacterAdded:wait() local trigger = workspace:WaitForChild("TriggerPart")
char.Humanoid.Touched:connect(function(hit) if hit == trigger then game.ReplicatedStorage.ParticleEvent:FireServer() end end)
-- server script, serverscriptservice local particleEvent = Instance.new("RemoteEvent",game.ReplicatedStorage) particleEvent.Name == "ParticleEvent" particleEvent.OnServerEvent:connect(function(player) local char = player.Character if not char.Torso:FindFirstChild("ParticleEmitter") then local emitter = Instance.new("ParticleEmitter",char.Torso) -- game.ReplicatedStorage.Particles:Clone().Parent = char.Torso -- you could do the above, too.. game:GetService("Debris"):AddItem(emitter,4) -- remove it after 4 seconds end end)
|
|
|
| Report Abuse |
|
|
|
| 30 Dec 2016 06:01 AM |
so even if the part is in workspace it won't show because it was a local script that placed it in there?
~The most desired of Robloxians |
|
|
| Report Abuse |
|
|
Soybeen
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 21462 |
|
|
| 30 Dec 2016 06:29 AM |
Local scripts don't function in the workspace. They won't run. If you want particles to show up for everyone (with FE enabled), then you need to generate them on the server.
|
|
|
| Report Abuse |
|
|
|
| 30 Dec 2016 06:52 AM |
I know... I have the local script within the PlayerGui
~The most desired of Robloxians |
|
|
| Report Abuse |
|
|
Soybeen
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 21462 |
|
| |
|
Soybeen
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 21462 |
|
|
| 30 Dec 2016 06:57 AM |
You understand that things generated locally cannot be seen by others, correct?
|
|
|
| Report Abuse |
|
|
|
| 30 Dec 2016 06:57 AM |
Yeah I figured that out the hard way thanks for the help
~The most desired of Robloxians |
|
|
| Report Abuse |
|
|
Soybeen
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 21462 |
|
| |
|