How to clone a pert to a players position

Hello! So, Im wondering how you would clone a part to a specific position (in particular the players current position). Is there any way that I could change my script to clone a part to the players position?

local debounce = false
local yes = 5
local tool = script.Parent.Parent
tool.Activated:Connect(function()
print(“running”)
if debounce == false then
debounce = true
yes = 5
game.ReplicatedStorage.Fire:Clone().Parent = game.Workspace
print(yes)
end
wait(2)
debounce = false
end)

1 Like

Im assuming the part is tool, Im not entirely sure how your code works but I can say you can get the players position (Players.localplayer.character) and then CFrame a part too it:

Tool.CFrame = Game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame

This has the added benifit of also matching the rotation of the humanoid (Direction of the player)