Handles events do nothing

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!

a scale tool

  1. What is the issue? Include screenshots / videos if possible!

handles events do nothing

  1. What solutions have you tried so far? Did you look for solutions on the Developer Hub?

I tried running the events on a serverscript in a part. I looked through devforum, but no one had the same problem as me.

After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!

my code:

local m = game.Players.LocalPlayer:GetMouse()
local o = Instance.new("SelectionBox",script.Parent.Handle)
o.Color3 = Color3.new(255,255,0)
local u = false
script.Parent.Activated:Connect(function()
	if u == false then
		script.Parent.Handles.Adornee = m.Target
		end
end)
script.Parent:WaitForChild("Handles").MouseEnter:Connect(function()
	print("In")
	u = true
end)
script.Parent:WaitForChild("Handles").MouseLeave:Connect(function()
	print("Out")
	u = false
end)
script.Parent:WaitForChild("Handles").MouseDrag:Connect(function(Face,Distance)
	-- If the top face is being dragged then apply the distance vertically
	if Face == Enum.NormalId.Top then
		workspace.Part.Size = workspace.Part.Size + Vector3.new(0, Distance, 0)

		-- Otherwise if the bottom face is being dragged, apply negative distance vertically
	elseif Face == Enum.NormalId.Bottom then
		workspace.Part.Size = workspace.Part.Size + Vector3.new(0, -Distance, 0)
	end
	if Face == Enum.NormalId.Left then
		workspace.Part.Size = workspace.Part.Size + Vector3.new(Distance, 0, 0)

		-- Otherwise if the bottom face is being dragged, apply negative distance vertically
	elseif Face == Enum.NormalId.Right then
		workspace.Part.Size = workspace.Part.Size + Vector3.new(-Distance, 0, 0)

		-- Otherwise if the bottom face is being dragged, apply negative distance vertically
	elseif Face == Enum.NormalId.Front then
		workspace.Part.Size = workspace.Part.Size + Vector3.new(0, 0, Distance)

		-- Otherwise if the bottom face is being dragged, apply negative distance vertically
	elseif Face == Enum.NormalId.Back then
		workspace.Part.Size = workspace.Part.Size + Vector3.new(0, 0, -Distance)

		-- Otherwise if the bottom face is being dragged, apply negative distance vertically
	end
end)
while true do
	o.Adornee = m.Target
	wait()
end

note: some of this script is copied out of a devforum
note: this is a localscript parented to a tool

Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.

Is your object named “Handles”?

Did you check developer.roblox.com for the page corresponding to the ClassName of “Handles” to make sure it has these events you are wanting to use?

Yes, both the Name and ClassName are “Handles”

bump bump bump bump bump bump bump bump bump bump bump bump bump bump bump

The Handles class will ONLY work if it’s parent is either StarterGui or the PlayerGui

now the events work, but the handles do not scale the object or even move