I am currently trying to use a module script for properties in StarterGui. I have my local script inside of the GUI and the module script inside of replicated storage. Here is the scripts below;
Module Script:
local poproperties = {}
poproperties.UI = game.StarterGui.PremiumOffer
poproperties.MainFrame = game.StarterGui.PremiumOffer.MainFrame
poproperties.CutOff = game.StarterGui.PremiumOffer.MainFrame.InnerFrame.CutOff
poproperties.Button = game.StarterGui.PremiumOffer.MainFrame.InnerFrame.PurchaseButton
poproperties.Logo = game.StarterGui.PremiumOffer.MainFrame.InnerFrame.PremiumLogo
poproperties.Title = game.StarterGui.PremiumOffer.MainFrame.InnerFrame.Title
poproperties.Price = game.StarterGui.PremiumOffer.MainFrame.InnerFrame.Price
poproperties.Perks = game.StarterGui.PremiumOffer.MainFrame.InnerFrame.Perks
return poproperties
Local Script:
local POProperties = require(game.ReplicatedStorage:WaitForChild(“POProperties”))
POProperties.MainFrame:TweenPosition(UDim2.new(0.394, 0,0.25, 0), “Out”, “Quart”, 0.25)
Issue: It will not tween the GUI. I’ve tried countless of times by putting the module script in different services, but it just wouldn’t work. Anyone know why?