EmoteWheel Help/Feedback

Hey,

I am trying to make an emote wheel & I want each piece to be individually selectable. I uploaded all 6 pieces of the wheel centered around the circle, but they all overlap with each other, making it impossible to select any specific one:

RobloxStudioBeta_3dJxUdWzxX

I have also tried to place each one separately, but that creates weird gaps & the side pieces aren’t the same size as the rest (the ScaleType is set to fit):

RobloxStudioBeta_kY4zF4fL0L

I don’t have a solution to this issue, so I would appreciate any sort of advice/tips you may have!

1 Like

I have made something similar
Use atan2 to calculate direction and use sqrt to calculate distance


Everything is just a ImageLabel and invisible ImageButton

Something like this

local pos = InputObject_Get(input,"Position")::vector
	local dx = pos.x::number - cx
	local dy = pos.y::number - cy_CLEAR

	local dist = math.sqrt(dx*dx + dy*dy)
	local base_item = ItemStack[base]
	--drop item
	if dist < innerRadius or dist > outerRadius then
		if not base_item then return end
		FireServer(Drop,base_item)
		return
	end
	local angle = math.atan2(dy, dx) + math.pi / 2
	if angle < 0 then angle += math.pi * 2 end
	local index = angle // tileSize + 1

In my case its a 8 wheel slot so you need a little different formula

ignore cx and cy_CLEAR variables, its mostly to fix mobile players with safe border thing

1 Like