I made a script where a part spawns on my character and I want it to go from my character and towards the place where I aim it towards but I don’t know how to. This is the script…
re.OnServerEvent:Connect(function(player, givenVector)
local char = player.Character
local part = Instance.new("Part", workspace)
part.Position = char.HumanoidRootPart.Position
game.Debris:AddItem(part, 2)
end)```
If you set the part’s network ownership to the player you can just move the part from the client with CFrames or a BodyPosition (note that means exploiters can move the part too, just like characters).