generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Whoever can fix this is the world's greatest Lua scripter. No joke.

Previous Thread :: Next Thread 
CookieOfInk is not online. CookieOfInk
Joined: 24 Sep 2011
Total Posts: 382
30 Sep 2011 05:11 PM
No output, it's something wrong with the logic of it. This isn't a test either. Have fun, I've been working on this for about a year now.

-- Made fully by CookieOfInk. Do not steal.
h = Instance.new ( [[Hint]] )
h.Parent = Workspace
h.Text = [[ ~8-Ball Programs~ ]]

Name = [[CookieOfInk]]
Player = Game.Players:findFirstChild ( Name )
Char = Workspace:findFirstChild ( Name )
local CustomMethodsAA = newproxy(true)
getmetatable(CustomMethodsAA).__index = {
Said = (function(msg, who, subi, subii)
if subi ~= nil and subii ~= nil then
if who:sub(subi, subii) == msg then
return true
end
else
if who == msg then
return false
end
end
end)
}
CustomMethodsAAA = newproxy(true)
getmetatable(CustomMethodsAAA).__index = {
Say = (function(txt, whom)
hmx = Instance.new([[Hint]])
hmx.Parent = Workspace
if whom == nil then
hmx.Text = [[8-Ball PROGRAMS: ]]..txt
else
hmx.Text = (tostring(whom)) .. (tostring(txt))
end
end)
}
local peval = 1
local peyn = nil
local peynv = nil
local peynv2 = nil
local peobj = nil
n = Instance.new([[StringValue]])
n.Parent = Workspace
n.Name = "PropEdit"
if n then
n.Value = [[1]]
else
CustomMethodsAAA.Say([[Error!]], nil)
end
Player.Chatted:connect(function(m)
if Workspace:findFirstChild([[PropEdit]]).Value == [[0]] then
if CustomMethodsAA.Said([[pe/ ]], m, 1, 4) and peval == 0 then
peobj = Workspace:findFirstChild(m:sub(5, string.len(m)))
if peobj then
CustomMethodsAAA.Say([[Edit this?]])
peyn = true
end
end
if CustomMethodsAA.Said("yes", m, 1, 3) and peyn == true then
CustomMethodsAAA.Say([[Successful.]], "Output: ")
peynv = true
peynv2 = 1
elseif CustomMethodsAA.Said("no", m, 1, 2) and peyn == true then
peynv = false
peynv2 = 2
end
if CustomMethods.Said([[pe: ]], m, 1, 4) and peynv2 == 1 and peynv == true then
loadstring(peobj.Name.."."..m:sub(5))
CustomMethodsAAA.Say("Added "..m:sub(5), nil)
wait()
peobj = nil
peyn = nil
peynv = nil
peynv2 = nil
elseif CustomMethods.Said([[pe: ]], m, 1, 4) and peynv2 == 2 and peynv == true then
peobj = peobj:findFirstChild(m:sub(5))
end
end
if CustomMethodsAA.Said("PropEditor", m, 1, 10) == false then
-- Condition N/A
else
if Workspace:findFirstChild([[PropEdit]]) then
if CustomMethodsAA.Said("on", m, 12, 13) == true then
if Workspace:findFirstChild([[PropEdit]]) then
Workspace:findFirstChild([[PropEdit]]).Value = [[0]]
CustomMethodsAAA.Say([[PropEditor II is on.]], nil)
wait(2)
CustomMethodsAAA.Say([[Please select an object to edit.]], nill)
peval = 0
else
print("Error.")
end
elseif CustomMethodsAA.Said("off", m, 12, 14) then
Workspace:findFirstChild([[PropEdit]]).Value = [[1]]
CustomMethodsAAA.Say([[PropEditor II is off.]], nil)
end
end
end
end)

http://www.roblox.com/Forum/ShowPost.aspx?PostID=55254759 - I'm DrSprinkles and InkCookie -- Level 0 OTer -
Report Abuse
RobloxianFire2 is not online. RobloxianFire2
Joined: 06 Feb 2010
Total Posts: 1178
30 Sep 2011 05:13 PM
-.- I was about to help but I've totally forgot how to script the easiest things. Stupid me!
Report Abuse
CookieOfInk is not online. CookieOfInk
Joined: 24 Sep 2011
Total Posts: 382
30 Sep 2011 05:14 PM
This isn't easy. This is advanced metatables.

http://www.roblox.com/Forum/ShowPost.aspx?PostID=55254759 - I'm DrSprinkles and InkCookie -- Level 0 OTer -
Report Abuse
RobloxianFire2 is not online. RobloxianFire2
Joined: 06 Feb 2010
Total Posts: 1178
30 Sep 2011 05:21 PM
No. I mean, I even forgot how to actually instance something. God, thats what I get for not scripting in ages. -.- Stupid school.
Report Abuse
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
30 Sep 2011 05:23 PM
It's a bit long for me to try to find out what it's supposed to do. Could you give a description of the desired results?
Report Abuse
nate890 is not online. nate890
Joined: 22 Nov 2008
Total Posts: 21686
30 Sep 2011 05:36 PM
*steals*

­<'+1 Post. Ujelly?'>
Report Abuse
CookieOfInk is not online. CookieOfInk
Joined: 24 Sep 2011
Total Posts: 382
30 Sep 2011 06:33 PM
It's a suit. It only has one function so far.
It has custom functions in metatables, and those are perfect, the ifs are where it's at.
And it runs through chat functions.

http://www.roblox.com/Forum/ShowPost.aspx?PostID=55254759 - I'm DrSprinkles and InkCookie -- Level 0 OTer -
Report Abuse
blocco is not online. blocco
Joined: 14 Aug 2008
Total Posts: 29474
30 Sep 2011 07:12 PM
lulz newproxy isn't supposed to work anymore
Report Abuse
CookieOfInk is not online. CookieOfInk
Joined: 24 Sep 2011
Total Posts: 382
30 Sep 2011 07:47 PM
WHAT.
ARE YOU KIDDING ME.
I'M GOING TO CAP MYSELF IF THIS STATEMENT IS TRUE.

http://www.roblox.com/Forum/ShowPost.aspx?PostID=55254759 - I'm DrSprinkles and InkCookie -- Level 0 OTer - - Original 07er -- Have you forgot about Dre? -- GamerTag: CookieNuke
Report Abuse
ninga95 is not online. ninga95
Joined: 16 Jul 2008
Total Posts: 5026
30 Sep 2011 07:54 PM
Fail!! Lmao

Want me to cap you?

* Ninga caps Cookie twice * I think you're dead!
Report Abuse
CookieOfInk is not online. CookieOfInk
Joined: 24 Sep 2011
Total Posts: 382
30 Sep 2011 07:57 PM
yea

http://www.roblox.com/Forum/ShowPost.aspx?PostID=55254759 - I'm DrSprinkles and InkCookie -- Level 0 OTer - - Original 07er -- Have you forgot about Dre? -- GamerTag: CookieNuke
Report Abuse
TheNewScripter is not online. TheNewScripter
Joined: 02 Mar 2010
Total Posts: 2432
30 Sep 2011 08:03 PM
Why not just make something like this:

a = {
bleh = function()
end,
value = 4
}
a.__index = a

function a:method()
print("method called")
end




or my favorite,

table = {
func = function()
return 5
end,
value = 5
}

Report Abuse
zapzing303 is not online. zapzing303
Joined: 05 Mar 2010
Total Posts: 1486
30 Sep 2011 09:32 PM
Instead of saying...
Instance.new ([[hint]])
It should be...
Instance.new ("Hint")
Report Abuse
kingkiller1000 is not online. kingkiller1000
Joined: 12 Dec 2008
Total Posts: 26415
30 Sep 2011 09:45 PM
newproxy is going to be removed. Nobody uses it, and it's actually pretty pointless.
Report Abuse
dragon829 is not online. dragon829
Joined: 12 Aug 2008
Total Posts: 741
30 Sep 2011 09:47 PM
if im correct most should be
("example")
not
([[Example]])
Report Abuse
popinman322 is not online. popinman322
Joined: 04 Mar 2009
Total Posts: 5184
30 Sep 2011 09:50 PM
newproxy can be useful some times. Just because Tela-fail thinks that trimming more and more Lua from the game will make things better doesn't mean that it will.

~+[Praise the holy god of Java coffee beans!]+~
Report Abuse
dragon829 is not online. dragon829
Joined: 12 Aug 2008
Total Posts: 741
30 Sep 2011 09:55 PM
try this

-- Made fully by CookieOfInk. Do not steal.
h = Instance.new ("Hint")
h.Parent = Workspace
h.Text = " ~8-Ball Programs~ "

Name = "CookieOfInk"
Player = Game.Players:findFirstChild ( Name )
Char = Workspace:findFirstChild ( Name )
local CustomMethodsAA = newproxy(true)
getmetatable(CustomMethodsAA).__index = {
Said = (function(msg, who, subi, subii)
if subi ~= nil and subii ~= nil then
if who:sub(subi, subii) == msg then
return true
end
else
if who == msg then
return false
end
end
end)
}
CustomMethodsAAA = newproxy(true)
getmetatable(CustomMethodsAAA).__index = {
Say = (function(txt, whom)
hmx = Instance.new("Hint")
hmx.Parent = Workspace
if whom == nil then
hmx.Text = "8-Ball PROGRAMS: "..txt
else
hmx.Text = (tostring(whom)) .. (tostring(txt))
end
end)
}
local peval = 1
local peyn = nil
local peynv = nil
local peynv2 = nil
local peobj = nil
n = Instance.new("StringValue")
n.Parent = Workspace
n.Name = "PropEdit"
if n then
n.Value = "1"
else
CustomMethodsAAA.Say("Error!", nil)
end
Player.Chatted:connect(function(m)
if Workspace:findFirstChild("PropEdit").Value == "0" then
if CustomMethodsAA.Said("pe/ ", m, 1, 4) and peval == 0 then
peobj = Workspace:findFirstChild(m:sub(5, string.len(m)))
if peobj then
CustomMethodsAAA.Say("Edit this?")
peyn = true
end
end
if CustomMethodsAA.Said("yes", m, 1, 3) and peyn == true then
CustomMethodsAAA.Say("Successful.", "Output: ")
peynv = true
peynv2 = 1
elseif CustomMethodsAA.Said("no", m, 1, 2) and peyn == true then
peynv = false
peynv2 = 2
end
if CustomMethods.Said("pe: ", m, 1, 4) and peynv2 == 1 and peynv == true then
loadstring(peobj.Name.."."..m:sub(5))
CustomMethodsAAA.Say("Added "..m:sub(5), nil)
wait()
peobj = nil
peyn = nil
peynv = nil
peynv2 = nil
elseif CustomMethods.Said("pe: ", m, 1, 4) and peynv2 == 2 and peynv == true then
peobj = peobj:findFirstChild(m:sub(5))
end
end
if CustomMethodsAA.Said("PropEditor", m, 1, 10) == false then
-- Condition N/A
else
if Workspace:findFirstChild("PropEdit") then
if CustomMethodsAA.Said("on", m, 12, 13) == true then
if Workspace:findFirstChild("PropEdit") then
Workspace:findFirstChild("PropEdit").Value = [[0]]
CustomMethodsAAA.Say("PropEditor II is on.", nil)
wait(2)
CustomMethodsAAA.Say("Please select an object to edit.", nill)
peval = 0
else
print("Error.")
end
elseif CustomMethodsAA.Said("off", m, 12, 14) then
Workspace:findFirstChild("PropEdit").Value = "1"
CustomMethodsAAA.Say("PropEditor II is off.", nil)
end
end
end
end)
Report Abuse
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
30 Sep 2011 10:17 PM
To all of you beginners....

"String" == [[String]] == 'String' == [=====[String]=====]



GF'd.
Report Abuse
CookieOfInk is not online. CookieOfInk
Joined: 24 Sep 2011
Total Posts: 382
01 Oct 2011 09:16 AM
NO. NO. NO. I TOOK A YEAR ON THIS SCRIPT. NEWPROXY CAN'T BE GETTING REMOVED.

http://www.roblox.com/Forum/ShowPost.aspx?PostID=55254759 - I'm DrSprinkles and InkCookie -- Level 0 OTer - - Original 07er -- Have you forgot about Dre? -- GamerTag: CookieNuke
Report Abuse
Miro034 is not online. Miro034
Joined: 07 Oct 2009
Total Posts: 6568
01 Oct 2011 09:18 AM
@Dragon

thats wrong xD
Report Abuse
CookieOfInk is not online. CookieOfInk
Joined: 24 Sep 2011
Total Posts: 382
01 Oct 2011 09:23 AM
@Miro
that was obvious xD

http://www.roblox.com/Forum/ShowPost.aspx?PostID=55254759 - I'm DrSprinkles and InkCookie -- Level 0 OTer - - Original 07er -- Have you forgot about Dre? -- GamerTag: CookieNuke
Report Abuse
dragon829 is not online. dragon829
Joined: 12 Aug 2008
Total Posts: 741
01 Oct 2011 09:25 AM
i know im just saying might work
Report Abuse
Alec2260 is not online. Alec2260
Joined: 27 Dec 2008
Total Posts: 241
01 Oct 2011 09:34 AM
Dude that script you made is a real nice script I love it it works so good
Report Abuse
CookieOfInk is not online. CookieOfInk
Joined: 24 Sep 2011
Total Posts: 382
01 Oct 2011 09:37 AM
is that sarcasm

http://www.roblox.com/Forum/ShowPost.aspx?PostID=55254759 - I'm DrSprinkles and InkCookie -- Level 0 OTer - - Original 07er -- Hello it's the martian, space man Jordans. -- GamerTag: CookieNuke
Report Abuse
Miro034 is not online. Miro034
Joined: 07 Oct 2009
Total Posts: 6568
01 Oct 2011 11:05 AM
what does it do?
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image