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

Can I Have Some Help With Particles?

I've been trying to make particles appear from the player's left and right arms upon f being pressed. This is what I got:

function onKeyPress(inputObject, gameProcessedEvent)
	if inputObject.KeyCode == Enum.KeyCode.F then
		print("Activating Powers . . .")
		local fire = Instance.new("ParticleEmitter") 
		fire.Parent = 
	end
end
 
game:GetService("UserInputService").InputBegan:connect(onKeyPress)

How would I continue / improve this script?

5 comments

0

You didn't parent the ParticleEmitter to anything...

0

I want to parent it to the left and right arms but I don't know how?

0

You would need to use two particle emitters as parts are only emitted from the parent

0

You could create the first one then parent it, then clone it as a new variable and parent it. More efficient than creating two from scratch. But that was probably implied in kingdom's comment.

0

I did the cloning and all, but I am still stuck on how to parent them to tleft and right arms.Here is the script if it helps:

1 answer

local character = game.Character

function onKeyPress(inputObject, gameProcessedEvent) 
    if inputObject.KeyCode == Enum.KeyCode.F then 
        print("Activating Powers . . .") 
        local fire = Instance.new("ParticleEmitter")  
        fire.Parent = game.Workspace.Character:FindFirstChild("Left Arm")
		local clone = fire:Clone()
			clone.Parent = game.Worspace.Character:FindFirstChild("Right Arm")
		
		
    end 
end 

game:GetService("UserInputService").InputBegan:connect(onKeyPress) 

1 comment

0

That's the script I got so far, but are those the parents of the arms?

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