I'm not just talking about OOP, I'm talking about OOP with AMS Objects.
My intention was to have code like this.
But this is as good.Code:-- On Click, Button1. this:SetText("Hello");
I've done these objects.Code:-- On Click, Button1. Button1:SetText("Hello");
- Label
- Paragraph
- Image
These objects have all the methods they do in AMS such as SetPos, SetSize, GetText, GetProperties, etc.
You can work this example by dragging 'Object.luac' into your AutoPlay/Scripts folder.
Then On Preload put this in somewhere.
Also, didn't post in examples because it takes ages to show up.Code:GetObjects = require("Object.luac"); -- You can change GetObjects to whatever you want the grab function to be.
Edit:
If your object has a space in the name, It is converted to Object["object name"]:SetText("BLAH");


Reply With Quote
