I am now using ZonePlus, but it is still very dodgy:
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Modules = ReplicatedStorage:WaitForChild("Storage"):WaitForChild("Modules")
local ZonePlus = require(Modules:WaitForChild("Zone"))
local Part = script.Parent.Parent
local Zone = ZonePlus.new(Part)
Zone.itemEntered:Connect(function(Item)
if Item.Name == "Left Leg" then
print("Left Leg en")
Part.Velocity = Part.CFrame.LookVector *-12
elseif Item.Name == "Right Leg" then
print("Right Leg en")
Part.Velocity = Part.CFrame.LookVector *-12
end
end)
Zone.itemExited:Connect(function(Item)
if Item.Name == "Left Leg" then
--Part.Velocity = Vector3.new(0,0,0)
elseif Item.Name == "Right Leg" then
--Part.Velocity = Vector3.new(0,0,0)
end
end)