EDIT: I am trying to make a small Y button pop up to tell you to press Y to open the store. The indicator pops up and then goes back until you click Y. I don't understand why my code isn't working since I get no errors and I don't see anything in the code.
local InputImageLibrary = require(408470686) game:GetService("Players").PlayerAdded:connect(function(player) wait(1) local playerGui = player:WaitForChild("PlayerGui") local frame = playerGui.Shop.Frame if game:GetService("UserInputService").GamepadEnabled then local Y = InputImageLibrary:GetImageLabel(Enum.KeyCode.ButtonY, "Dark") Y.Name = "yIndicator" Y.Parent = frame Y.Size = UDim2.new(0.19,0,0.1,0) Y.Position = UDim2.new(.81,0,0,0) while true do Y:TweenPosition(UDim2.new(1,10,0,0), "Out", "Elastic", 2, true) wait(10) Y:TweenPosition(UDim2.new(.81,0,0,0), "In", "Quad", .3, true) wait(3) end end end)
This script is in the ServerScriptStorage.
Thank you in advance for any help.