shoot.OnServerEvent:Connect(function(plr,mouse,target)
plr.PlayerStuff.Grabbed.Value = false
target:SetNetworkOwner(nil)
for i, child in pairs(target:GetChildren()) do
if child:IsA("BodyGyro") or child:IsA("BodyPosition") then
child:Destroy()
end
end
target.CanGrab.Value = ""
local box = target
local speed = -100
box.CFrame = CFrame.new(box.Position, mouse)
box.Velocity = box.CFrame.LookVector * speed
--local BodyForce = Instance.new("BodyForce")
--BodyForce.Force = Vector3.new(0, box:GetMass() * game.Workspace.Gravity, 0) --Weight = Mass * Acceleration, (f = ma).
--BodyForce.Parent = box
end)
2 Likes
Probably because the front face of the part is what you use as the side face of your mesh
1 Like
how can i make the part’s direction go where the mouse is pointing?
1 Like