Aplying Force To A Part

So this is my code and I want to aplly a force to the part that moves it to the left but it doesnt work can someone tell me how

local tool = script.Parent
local StarterGui = game:GetService("StarterGui")
local debounce = false

tool.Activated:Connect(function()
	StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false)
	local Wolf = Instance.new("Part")
	Wolf.Parent = game.Workspace
	Wolf.CFrame = tool.Parent.Torso.CFrame*CFrame.new(50,0,-25)
	Wolf.Size = Vector3.new(34.82, 14.458, 17.41)
	Wolf.CanCollide = true
	Wolf.Material = Enum.Material.SmoothPlastic
	Wolf.Color = Color3.fromRGB(95, 95, 95)

	wait(5)
	StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, true)
end)

you are setting the cframe not applying a force

:ApplyImpulse and :ApplyImpulseAtPosition are applying force methods. only works if the part is unanchored

1 Like