So I made some UI, and everything else about it works, however v.Activated will not. The code and video result is provided below:
local UI = script.Parent
local TweenService = game:GetService("TweenService")
local MarketPlaceService = game:GetService("MarketplaceService")
local tweenInfo = TweenInfo.new(0.05, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut)
local scaleUp = { Size = UDim2.new(1.184, 0, 0.089, 0) }
local scaleNormal = { Size = UDim2.new(1.021, 0, 0.077, 0) }
for _, v in pairs(UI:GetChildren()) do
if v:IsA("TextButton") then
v.MouseEnter:Connect(function()
local tween = TweenService:Create(v, tweenInfo, scaleUp)
tween:Play()
script.Hover:Play()
end)
v.MouseLeave:Connect(function()
local tween = TweenService:Create(v, tweenInfo, scaleNormal)
tween:Play()
end)
v.Activated:Connect(function()
print("CLicked")
end)
end
end
You sure its a local script?
Activated is a compitelly different property than you think
Activated is responsible for .Active property as far as i remember while you are looking for a click event
I ended up getting .Activated to work, because as Yarik said, if the Active property is off, it wont work, and I accidentally turned off Active, so I switched back to Activated lol