mouse.Button1Down:Connect(function()
local function createBrick(position, rotation)
local shoot = game.ReplicatedStorage.wandmagic.shoot:Clone()
shoot.Size = Vector3.new(1, 1, 1)
shoot.Position = position
shoot.Orientation = rotation
shoot.Anchored = true
shoot.CanCollide = false
shoot.Parent = workspace
print("Created")
end
tool.Activated:Connect(function()
local player = game.Players.LocalPlayer
local character = player.Character
local rootPart = character.HumanoidRootPart
if rootPart then
createBrick(rootPart.Position, rootPart.Orientation)
end
print("Activated")
How I would describe CFrame is like a position based on the vector of the model. So you can imagine it in a 3d space where the orientation represents the axis on the xyz axis. More information here CFrame | Roblox Creator Documentation
There a many examples of how to make a bullet style object. Just look at a script from some other tool that shoots. You have a weath of scripts to look at and learn from here with the Studio’s Toolbox.