Does anyone know how to make a effect/particle saver script in roblox I know how to save items and leaderstats but not effects/particles.
A way to save those, are using StringValues.
Let's start with a Server Script:
You might wanna call it 'Object Creator' or something like that.
game.Players.PlayerAdded:Connect(function(plr) local CurrentParticles = Instance.new('StringValue') CurrentParticles.Name = 'CurrentParticles' CurrentParticles.Parent = plr CurrentParticles.Value = 'Nothing' end)
please note that you can change this in anyway you like.
Now that you have the StringValue, save it like any other value.
Simple, now create another ServerScript, call this one 'Particle Loader'
game.Players.PlayerAdded:Connect(function(plr) if plr:WaitForChild('CurrentParticles').Value == 'Nothing' then return end elseif plr:WaitForChild('CurrentParticles').Value == 'Fire' then -- add fire elseif plr:WaitForChild('CurrentParticles').Value == 'Water' then -- add water end)
Now I'm not saying that my code will work, but this is the general idea on how to save tools and particles, basically save the name and load it. I hope this gave you an idea and helped you. If so please Upvote and accept answer.
-- Your Orange, BlackOrange3343
PS: Please don't spam questions