Hi im wondering how to make particles spawn on your right arm and by pressing a key?!?
COMMUNITY QUESTION
How do you make a particle spawn (like keydown)?
1 answer
function player()
game.Players.PlayerAdded:Connect(function(character)
char = character.Character end) return char
end
function part(plyr) local vectorU = Vector3.new(3,0,0)
p = Instance.new("BasePart")
p.CFrame = CFrame.new(plyr.RightArm.CFrame - vectorU)
p.Parent = plyr.HumanoidRootPart
end
bttn = 'X' -- replace X with your desired key.
delay = false
game:GetService('UserInputService').InputBegan:Connect(
function(key, other)
if not key then return end
if (key.KeyCode == Enum.KeyCode.bttn) and (not delay)
then part(player()); delay = true end
wait(.9) delay = false end)
1 comment
0
Rough script ^^
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
You would want to avoid KeyDown. It is deprecated
We are not a request site. Please make an attempt on your own first. Don't be afraid to make mistakes!
I recommend reading the documentation on "UserInputService." KeyDown is a flawed deprecated method. If you don't know about instances or Instance.new(), you may want to read about that as well. Scripting Helpers is here to help when you've tried something and need help, but not to have something created for you.