Vichron
|
  |
| Joined: 02 Aug 2014 |
| Total Posts: 10069 |
|
|
| 19 Apr 2015 04:00 PM |
--srry for sloppy stuff i got lazy x = "word here" wait() y = x:reverse()
local gui = Instance.new("ScreenGui") gui.Parent = game.StarterGui local textbox = Instance.new("TextBox") textbox.Parent = gui textbox.Text = "The phrase or word (" ..x.. ") reversed is: " ..y.. "!" textbox.Size = UDim2.new(0,300,0,100) textbox.Position = UDim2.new(0, 25, 0, 25) textbox.BackgroundColor3 = BrickColor.White().Color
|
|
|
| Report Abuse |
|
|
Vichron
|
  |
| Joined: 02 Aug 2014 |
| Total Posts: 10069 |
|
|
| 19 Apr 2015 04:03 PM |
| bump for all to have a script that reverses phrases and puts in a nice gui |
|
|
| Report Abuse |
|
|
|
| 19 Apr 2015 04:04 PM |
| pretty sure that reverse() doesn't exist. |
|
|
| Report Abuse |
|
|
Vichron
|
  |
| Joined: 02 Aug 2014 |
| Total Posts: 10069 |
|
| |
|
|
| 19 Apr 2015 04:05 PM |
there's a reverse iteration not a reverse() method |
|
|
| Report Abuse |
|
|
Vichron
|
  |
| Joined: 02 Aug 2014 |
| Total Posts: 10069 |
|
|
| 19 Apr 2015 04:06 PM |
| dude it works try it before you try and outsmart me pleb |
|
|
| Report Abuse |
|
|
Vichron
|
  |
| Joined: 02 Aug 2014 |
| Total Posts: 10069 |
|
|
| 19 Apr 2015 04:09 PM |
bumpbumpbumpbumpbump took me an entire 5 minutes to make, do not ignore!!!!!!! |
|
|
| Report Abuse |
|
|
| |
|
|
| 19 Apr 2015 06:13 PM |
There is a string.reverse method actually.
You can either use it like a class:
print(string.reverse("GAF A SI PO"))
or some OOP:
print(("hi"):reverse()) |
|
|
| Report Abuse |
|
|
Raethyr
|
  |
| Joined: 08 Mar 2008 |
| Total Posts: 20527 |
|
| |
|
Vichron
|
  |
| Joined: 02 Aug 2014 |
| Total Posts: 10069 |
|
| |
|
darkwisp
|
  |
| Joined: 07 Apr 2010 |
| Total Posts: 22653 |
|
|
| 19 Apr 2015 06:14 PM |
"oop is terribad"
take that back |
|
|
| Report Abuse |
|
|
Vichron
|
  |
| Joined: 02 Aug 2014 |
| Total Posts: 10069 |
|
|
| 19 Apr 2015 06:15 PM |
| never, i only speak the truth |
|
|
| Report Abuse |
|
|
Qivr
|
  |
| Joined: 22 Aug 2014 |
| Total Posts: 5407 |
|
|
| 19 Apr 2015 06:15 PM |
guys this is a legit anti-lag script
"10/10 would use in a game to remove lag" -IGN
for i = 1,999999999 do local x = Instance.new("Message" ,game.Workspace) x.Name = i x.Text = i.."is the number of lag removed!" end |
|
|
| Report Abuse |
|
|
|
| 19 Apr 2015 06:16 PM |
| I tend to find procedural programming to be more flexible over OOP. |
|
|
| Report Abuse |
|
|
LetsBet
|
  |
| Joined: 24 Jul 2010 |
| Total Posts: 7043 |
|
| |
|
darkwisp
|
  |
| Joined: 07 Apr 2010 |
| Total Posts: 22653 |
|
|
| 19 Apr 2015 06:30 PM |
"I tend to find procedural programming to be more flexible over OOP."
Blasphemy... |
|
|
| Report Abuse |
|
|
|
| 19 Apr 2015 06:35 PM |
Dark, of course some projects are better with OOP, but even for big projects, I tend to like Procedural. Though OOP does help with organization.
A quick example:
----------- PROCEDURAL
local person = "Steve" print(person)
-------------- OOP
local name = "Steve"
function person(name) local object = {} local name = name; function object:getName() return name; end return object; end
local newperson = person(name) print(newperson:getName())
--------
As you can see, sometimes Procedural allows for a faster work-flow. |
|
|
| Report Abuse |
|
|