Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

MouseDrag in Handles won't fire, help?

MouseDrag in Handles won't fire, Handles being inside a Script inside a ScreenGui, Adornee'd on Part inside workspace.CurrentCamera

local handle = Instance.new("Handles", mainGui)
handle.Style = "Resize"
handle.Adornee = selectionPart
handle.Color3 = Color3.new(1, 170/255, 0)
handle.Transparency = 0.5
handle.Faces = selectionPart.ResizeableFaces
handle.MouseDrag:connect(function(face, amount)
	print("Drag")
	selectionPart:Resize(face, amount)
end)

The handle is created, but the event doesn't works.

1 answer

✓ Accepted answer

The Handles object must be placed in the local player's PlayerGui or the CoreGui service to work as expected. (via wiki)

This discussion is preserved as it was. New answers, comments, and votes are closed.