so i’m making different functions for my UI in my game.
this is how i’m doing it at the moment. i will have module scripts for different functions so like this:
module script 1:
BlurScreen
module script 2:
TweenGui
module script 3:
HandleProductOnMouseClick
and so i would call these in my local script like this:
shopbutton.MouseButton1Click:Connect(function()
BlurScreen()
TweenGui()
end)
product.MouseButton1Click:Connect(function()
HandleProductOnMouseClick()
end)
just vaguely, that’s how i would go about it. would be open to any structuring tips, thanks guys!