i have this script to spawn a mesh infront of the player but it only spawns in one direction how can i make it always fit the players rotation
local rs = game.ReplicatedStorage
local fireBlast = rs.fireBlast
local blastPart = rs.BlastPart
local function blastFire(player)
local char = player.Character or player.CharacterAdded:wait()
local rootPart = char.HumanoidRootPart
print("Player has pressed the key")
local clone = blastPart:Clone()
wait(0.5)
clone.Parent = game.Workspace
clone.Position = rootPart.CFrame.LookVector.Unit*1 + rootPart.Position
clone.Anchored = true
end
fireBlast.OnServerEvent:Connect(blastFire)
it only spawns one direction