i want the outlike thing centered at the little tool hotbar thing however… it doesnt. the anchor point is the same and sine the little trowel thing is in a canvas group for other reasons. i tried to use this code to get the absolute pos and size. only the size seems to work
code:
function object:ItemActivate(Number, cooldown)
local ItemList = self.Hotbar.ItemList
local GuiItem = RealItemList(ItemList)[Number]
GuiItem.Frame.Size = UDim2.fromScale(1, 1)
local InvisFrame = GuiItem:Clone()
InvisFrame.Parent = ItemList.Parent
InvisFrame.BackgroundTransparency = 1
InvisFrame.Frame.BackgroundTransparency = 1
InvisFrame.ImageF:Destroy()
InvisFrame.Position = UDim2.fromScale(0,0)
InvisFrame.Position = UDim2.fromOffset(GuiItem.AbsolutePosition.X, GuiItem.AbsolutePosition.Y)
InvisFrame.Size = UDim2.fromOffset(GuiItem.AbsoluteSize.X, GuiItem.AbsoluteSize.Y)
print(InvisFrame.Position)
game:GetService("Debris"):AddItem(InvisFrame, .7)
local Border = Instance.new("UIStroke")
Border.Parent = InvisFrame
Border.Color = ToolM.TColors[GuiItem.Name].First
TS:Create(InvisFrame, TweenInfo.new(.5, Enum.EasingStyle.Exponential), {Size = UDim2.fromOffset((GuiItem.AbsoluteSize.X + 10), (GuiItem.AbsoluteSize.Y + 10))}):Play()
local CoolDownAnim = TS:Create(GuiItem.Frame, TweenInfo.new(cooldown, Enum.EasingStyle.Sine), {Size = UDim2.fromScale(1, 0)})
CoolDownAnim:Play()
CoolDownAnim.Completed:Wait()
end