generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Why are the particles not showing up to all the players?

Previous Thread :: Next Thread 
DesiredROBLOXlAN is not online. DesiredROBLOXlAN
Joined: 01 Mar 2012
Total Posts: 971
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
InfinityDesign is not online. InfinityDesign
Joined: 18 Nov 2010
Total Posts: 4224
30 Dec 2016 05:45 AM
You sorta answered your own question.

Put it in the character in workspace, not the player.
Report Abuse
DesiredROBLOXlAN is not online. DesiredROBLOXlAN
Joined: 01 Mar 2012
Total Posts: 971
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 is not online. 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
DesiredROBLOXlAN is not online. DesiredROBLOXlAN
Joined: 01 Mar 2012
Total Posts: 971
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 is not online. 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
DesiredROBLOXlAN is not online. DesiredROBLOXlAN
Joined: 01 Mar 2012
Total Posts: 971
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 is not online. 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
DesiredROBLOXlAN is not online. DesiredROBLOXlAN
Joined: 01 Mar 2012
Total Posts: 971
30 Dec 2016 06:52 AM
I know... I have the local script within the PlayerGui


~The most desired of Robloxians
Report Abuse
Soybeen is not online. Soybeen
Joined: 17 Feb 2010
Total Posts: 21462
30 Dec 2016 06:57 AM
Sooo you're good, then?


Report Abuse
Soybeen is not online. 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
DesiredROBLOXlAN is not online. DesiredROBLOXlAN
Joined: 01 Mar 2012
Total Posts: 971
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 is not online. Soybeen
Joined: 17 Feb 2010
Total Posts: 21462
30 Dec 2016 07:06 AM
Gotchu


Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image