Hi im wondering how to make particles spawn on your right arm and by pressing a key?!?
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)
Closed as Not Constructive by RayCurse and Shawnyg
This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.
Why was this question closed?