|
| 19 Jul 2012 11:48 AM |
| Here, you can post broken scripts, and me or another helpful robloxian will help. |
|
|
| Report Abuse |
|
|
Moolah101
|
  |
| Joined: 22 Sep 2010 |
| Total Posts: 614 |
|
|
| 19 Jul 2012 11:49 AM |
| game.Players.michael178:Destroy() |
|
|
| Report Abuse |
|
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 19 Jul 2012 11:51 AM |
game.Workspace.michael178.Head.Brain:Destroy()
What's wrong with this? Oh wait, I got an error
--Brain is not a valid member of Head
I'll just go fix that now.
|
|
|
| Report Abuse |
|
|
|
| 19 Jul 2012 11:55 AM |
Allow me to fix that. game.Players.michael1784:Destroy() |
|
|
| Report Abuse |
|
|
|
| 19 Jul 2012 11:57 AM |
I've heard you're not a really good scripter....
You corrected some guy like this..
M = Instance.new("Message", Workspace) -- That's the parent........
then you were like
m = Instance.new("Message") m.Parent = game.Workspace
You just make things harder, you're not a real scripter. |
|
|
| Report Abuse |
|
|
|
| 19 Jul 2012 11:58 AM |
| You guys are making a Help thread a joke. Get out. |
|
|
| Report Abuse |
|
|
|
| 19 Jul 2012 11:59 AM |
No, you get out for making scripts harder. noob
|
|
|
| Report Abuse |
|
|
|
| 19 Jul 2012 12:00 PM |
| It wasn't a joke to begin with? :o |
|
|
| Report Abuse |
|
|
|
| 19 Jul 2012 12:01 PM |
| game.Players.michael1784.noobstats.Value = 100 |
|
|
| Report Abuse |
|
|
|
| 19 Jul 2012 12:01 PM |
Yeah, Bobby, I did. But that was at like 2 In the morning and I was on my phone... So thats what happened. |
|
|
| Report Abuse |
|
|
|
| 19 Jul 2012 12:02 PM |
LOL? Who cares if it was at 2 in the morning. LOL
and if you're on your phone, then correct yourself instead of all this happening |
|
|
| Report Abuse |
|
|
|
| 19 Jul 2012 12:04 PM |
| And I was tired because I have to baby sit |
|
|
| Report Abuse |
|
|
|
| 19 Jul 2012 12:09 PM |
| That's still no excuses. In fact, that the worst excuse I've ever heard! LOL |
|
|
| Report Abuse |
|
|
|
| 19 Jul 2012 12:22 PM |
In fact, I am on my phone right now, and I am baby sitting right now. Man, people now a days, so rude. Bobby listen up noob. I've already told you what happened. So STOP egging it on! You dont even know me. |
|
|
| Report Abuse |
|
|
Zomebody
|
  |
| Joined: 01 Jun 2010 |
| Total Posts: 789 |
|
|
| 19 Jul 2012 12:39 PM |
@BobbyisLOLZ
if you sepperate 2 lines from each other, it makes the script easier to read. I've only read your first comment and I'm not going to reply anymore. All I want to say is: He is no noob just because he does things "another way". Like seriously, I always make my scripts like this:
function Touch(hit) end
script.Parent.Touched:connect()
Idk, why everyone wants to put it in one or 2 lines, but for me it's easier to understand it this way. |
|
|
| Report Abuse |
|
|
|
| 19 Jul 2012 12:50 PM |
| Thankyou Zome. Bobby is the real noob. |
|
|
| Report Abuse |
|
|
|
| 19 Jul 2012 01:05 PM |
| Now, who needs help on scripts? |
|
|
| Report Abuse |
|
|
|
| 19 Jul 2012 01:10 PM |
Me! I cant seem to get this to work: public void processResult(int rc, String path, Object ctx, Stat stat) { boolean exists; switch (rc) { case Code.Ok: exists = true; break; case Code.NoNode: exists = false; break; case Code.SessionExpired: case Code.NoAuth: dead = true; listener.closing(rc); return; default: // Retry errors zk.exists(znode, true, this, null); return; } byte b[] = null; if (exists) { try { b = zk.getData(znode, false, null); } catch (KeeperException e) { // We don't need to worry about recovering now. The watch // callbacks will kick off any exception handling e.printStackTrace(); } catch (InterruptedException e) { return; } } if ((b == null && b != prevData) || (b != null && !Arrays.equals(prevData, b))) { listener.exists(b); prevData = b; } } |
|
|
| Report Abuse |
|
|
Zomebody
|
  |
| Joined: 01 Jun 2010 |
| Total Posts: 789 |
|
|
| 19 Jul 2012 01:12 PM |
Oh well... I made a script a few days ago, and I think it has one little obvious mistake. But I don't know what. The problem is: The script is supposed to turn all textbuttons to blue, and the textbutton that is pressed to green, excluding all the orange buttons. But somehow all orange buttons also get affected (line 16, betweeen the 4 prints)
local P = script.Parent:GetChildren() for i = 1, #P do if P[i].ClassName == "TextButton" then function Click() U = script.Parent.Parent.Parent.Parent.Parent H = U.Character:findFirstChild("Humanoid") if P[i].BackgroundColor3 ~= Color3.new(255/255, 102/255, 0/255) then script.Parent.Parent.Selection.Value = P[i].Name else script.Parent.Parent.Selection.Value = "" end local T = script.Parent:GetChildren() for k = 1, #T do if T[k].ClassName == "TextButton" then print("button") if T[k].BackgroundColor3 ~= Color3.new(255/255, 102/255, 0/255) then print("not orange:") print(T[k].BackgroundColor3) print(Color3.new(255/255, 102/255, 0/255)) if T[k].Name == P[i].Name then T[k].BackgroundColor3 = Color3.new(0/255, 204/255, 102/255) if script.Parent.Parent:findFirstChild(T[k].Name.."Screen")~=nil then script.Parent.Parent:findFirstChild(T[k].Name.."Screen").Visible = true end
if P[i].Name == "Move" then H.WalkSpeed = 12 else H.WalkSpeed = 0 end
else T[k].BackgroundColor3 = Color3.new(0/255, 204/255, 255/255) if script.Parent.Parent:findFirstChild(T[k].Name.."Screen")~=nil then script.Parent.Parent:findFirstChild(T[k].Name.."Screen").Visible = false end end end end end end
P[i].MouseButton1Down:connect(Click) end end
The Script's parent is a Frame with 5 Textbuttons. The Frame's parent is another Frame with a Stringvalue in it. I think it's just a small mistake, or I may have misplaced some ends... |
|
|
| Report Abuse |
|
|
|
| 19 Jul 2012 01:13 PM |
Let's see you fix that.
And how is it easier?
I think that m = Instance.new("Message", Workspace) is easier.
And how am I the real noob? LOL, 5k posts, and you have 1k posts who can't even script and just makes scripts harder, please get out.
Fix ghostleaders script and then I'll have some respect for you, pathetic noob. |
|
|
| Report Abuse |
|
|
|
| 19 Jul 2012 01:14 PM |
| Its Java by the way, a really complicated scripting language, alot worse then lua :P |
|
|
| Report Abuse |
|
|
|
| 19 Jul 2012 01:16 PM |
Part of my admin commands. There a quite a few functions and variables in there.
f1x 1t p10x
setlevel = function(speaker, msg) if checkcommands(speaker, 4) then local setlevels = target(msg:lower():sub(1, #msg-2), speaker) local unable = {}
for i, v in pairs(setlevels) do local slevel local tlevel for x, y in pairs(admins) do if y.name == v then tlevel = y.level elseif y.name == speaker then slevel = y.level end end
if slevel > tlevel then if tonumber(msg:sub(#msg-1)) then if slevel > tonumber(msg:sub(#msg-1)) then
for x, y in pairs(admins) do if y.name == v then y.level = tonumber(msg:sub(#msg-1)) end end
end end
else
table.insert(unable, v)
end end
if #unable > 0 then createmsg(speaker, "You were not able to change the following player's levels : "..table.concat(unable, ", ")) end
else error(speaker, "setlevel"..seperator.."") end end; |
|
|
| Report Abuse |
|
|
|
| 19 Jul 2012 01:17 PM |
'You guys are making a Help thread a joke. Get out.'
Hah, because there isn't a subsection called 'Scripting Helpers'. Because this is a completely valid place to post this. |
|
|
| Report Abuse |
|
|
|
| 19 Jul 2012 01:22 PM |
Posts dont mean nothing. Your the real noob because only noobs talk smack about people on the internet! Oh and once I get on my computer, I AM going to fix that script! Noob. If you want to get me out, lets see you freeze hell first. |
|
|
| Report Abuse |
|
|
| |
|