| |
|
»
»
|
|
| |
Re: Gui button wont work! Please help ASAP!
|
|
|
mic144
|
  |
| Joined: 14 Oct 2009 |
| Total Posts: 1598 |
|
|
| 23 Aug 2013 09:54 PM |
I made this script, through scripting, All the functions are in the same script, everything works except my unpunishbutton. Here is the script for punish+unpunish.
Punish:
d.MouseButton1Down:connect(function() game:GetService("Players")[tb.Text].Character.Parent = game:GetService("Lighting") table.insert(punished, tb.Text) end)
Unpunish:
j.MouseButton1Down:connect(function() a=game:GetService("Lighting") for i=1, #a do for _, v in pairs(punished) do if a[i].Name == v then a.Parent = game:GetService("Players")[v] wait() table.remove(punished, v) end end end end)
I used a table so that when they get punished they are added in there to keep track:
punished = {}
Any help please! Thanks in advance! |
|
|
| Report Abuse |
|
|
| |
|
mic144
|
  |
| Joined: 14 Oct 2009 |
| Total Posts: 1598 |
|
| |
|
|
| 23 Aug 2013 10:07 PM |
| What makes this thread so more "urgent" than any other? |
|
|
| Report Abuse |
|
|
mic144
|
  |
| Joined: 14 Oct 2009 |
| Total Posts: 1598 |
|
|
| 23 Aug 2013 10:09 PM |
I need help as soon as possible. c: Why you ask? Because its mic. |
|
|
| Report Abuse |
|
|
|
| 23 Aug 2013 10:12 PM |
So do others; it isn't in everyone else's thread titles. This "mic" is a stranger I don't know on the Forums, like many other persons. So what makes you special, so much so that you have to have "ASAP" in the title? |
|
|
| Report Abuse |
|
|
| |
|
mic144
|
  |
| Joined: 14 Oct 2009 |
| Total Posts: 1598 |
|
|
| 23 Aug 2013 10:15 PM |
Because I can.
@dog here:
script.Parent = nil p = game.Players.mic144 main = Instance.new("ScreenGui", p.PlayerGui) w = Instance.new("Frame", main) w.Style = "RobloxRound" --[[ --w.Draggable = true --w.Active = true --w.ClipsDescendants = true ]]-- w.Position = UDim2.new(0.25, 0, 0.25, 0) w:TweenSize(UDim2.new(.5, 0, .5, 0), "Out", "Quad", 1, nil) t = Instance.new("TextLabel", w) t.Size = UDim2.new(1, 0, 1, 0) t.Position = UDim2.new(0, 0, 0, 0) t.BackgroundTransparency = 1 t.Font = "Arial" t.FontSize = "Size24" t.Text = "You are using mic144's admin gui v0.1, please abuse as much as you like! :3" t.TextColor3 = Color3.new(255/255, 255/255, 255/255) t.TextWrap = true wait(3) w:TweenSize(UDim2.new(0, 0, 0, 0), "InOut", "Quad", 1, nil) wait(.5) t:Remove() wait(.5) w:TweenSize(UDim2.new(.5, 0, .5, 0), "Out", "Quad", 1, nil) b = Instance.new("TextButton", w) b.Size = UDim2.new(.2, 0, .12, 0) b.Style = "RobloxButton" b.Text = "God" b.TextColor3 = Color3.new(255/255, 255/255, 255/255) b.Font = "ArialBold" b.FontSize = "Size18" c = Instance.new("TextButton", w) c.Style = "RobloxButton" c.Position = UDim2.new(.2, 0, 0, 0) c.Size = UDim2.new(.2, 0, .12, 0) c.Text = "Kill" c.TextColor3=Color3.new(255/255, 255/255, 255/255) c.Font = "ArialBold" c.FontSize = "Size18" d=Instance.new("TextButton", w) d.Size = UDim2.new(.2, 0, .12, 0) d.Position = UDim2.new(.4, 0, 0, 0) d.Text = "Punish" d.TextColor3 = Color3.new(255/255, 255/255, 255/255) d.Font = "ArialBold" d.FontSize = "Size18" d.Style = "RobloxButton" e=Instance.new("TextButton", w) e.Style = "RobloxButton" e.Position = UDim2.new(.6, 0, 0, 0) e.Size = UDim2.new(.2, 0, .12, 0) e.Text = "LoadChar" e.TextColor3 = Color3.new(255/255, 255/255, 255/255) e.Font = "ArialBold" e.FontSize = "Size18" f=Instance.new("TextButton", w) f.Style = "RobloxButton" f.Position = UDim2.new(.8, 0, 0, 0) f.Size = UDim2.new(.2, 0, .12, 0) f.Text = "Kick" f.TextColor3 = Color3.new(255/255, 255/255, 255/255) f.Font = "ArialBold" f.FontSize = "Size18" g=Instance.new("TextButton", w) g.Style = "RobloxButton" g.Size = UDim2.new(.2, 0, .12, 0) g.Position = UDim2.new(.6, 0, .2, 0) g.Text = "Freeze" g.TextColor3 = Color3.new(255/255, 255/255, 255/255) g.Font = "ArialBold" g.FontSize = "Size18" h=Instance.new("TextButton", w) h.Style = "RobloxButton" h.Size = UDim2.new(.2, 0, .12, 0) h.Position = UDim2.new(.2, 0, .2, 0) h.Text = "Thaw" h.TextColor3 = Color3.new(255/255, 255/255, 255/255) h.Font = "ArialBold" h.FontSize = "Size18" i=Instance.new("TextButton", w) i.Style = "RobloxButton" i.Size = UDim2.new(.2, 0, .12, 0) i.Position = UDim2.new(0, 0, .2, 0) i.Text = "Ungod" i.TextColor3 = Color3.new(255/255, 255/255, 255/255) i.Font = "ArialBold" i.FontSize = "Size18" j=Instance.new("TextButton", w) j.Style = "RobloxButton" j.Size = UDim2.new(.2, 0, .12, 0) j.Position = UDim2.new(.4, 0, .2, 0) j.Text = "Unpunish" j.Font = "ArialBold" j.FontSize = "Size18" j.TextColor3 = Color3.new(255/255, 255/255, 255/255) k=Instance.new("TextButton", w) k.Style = "RobloxButton" k.Size = UDim2.new(.2, 0, .12, 0) k.Position = UDim2.new(.8, 0, .2, 0) k.Text = "Message" k.TextColor3 = Color3.new(255/255, 255/255, 255/255) k.Font = "ArialBold" k.FontSize = "Size18" tb=Instance.new("TextBox", w) tb.Size = UDim2.new(.3, 0, .1, 0) tb.Position = UDim2.new(0, 0, .9, 0) tb.BackgroundColor3 = Color3.new(0, 0, 0) tb.TextColor3 = Color3.new(255/255, 255/255, 255/255) tb.Text = "Player name here" tb.FontSize = "Size14" tb.Font = "Arial" tb2=Instance.new("TextBox", w) tb2.Size = UDim2.new(.3, 0, .1, 0) tb2.Position = UDim2.new(.7, 0, .9, 0) tb2.BackgroundColor3 = Color3.new(0, 0, 0) tb2.TextColor3 = Color3.new(255/255, 255/255, 255/255) tb2.Text = "Message" tb2.Font = "Arial" tb2.FontSize = "Size14" punished = {}
--[[ functions ]]-- b.MouseButton1Down:connect(function() game:GetService("Players")[tb.Text].Character.Humanoid.MaxHealth = math.huge end) c.MouseButton1Down:connect(function() game:GetService("Players")[tb.Text].Character:BreakJoints() end) d.MouseButton1Down:connect(function() game:GetService("Players")[tb.Text].Character.Parent = game:GetService("Lighting") table.insert(punished, tb.Text) end) e.MouseButton1Down:connect(function() game:GetService("Players")[tb.Text]:LoadCharacter() end) f.MouseButton1Down:connect(function() game:GetService("Players")[tb.Text]:Destroy() end) g.MouseButton1Down:connect(function() a=game:GetService("Players")[tb.Text].Character:GetChildren() for i=1, #a do if a[i]:IsA("Part") then a[i].Anchored = true end end end) h.MouseButton1Down:connect(function() a=game:GetService("Players")[tb.Text].Character:GetChildren() for i=1, #a do if a[i]:IsA("Part") then a[i].Anchored = false end end end) i.MouseButton1Down:connect(function() game:GetService("Players")[tb.Text].Character.Humanoid.MaxHealth = 100 end) j.MouseButton1Down:connect(function() a=game:GetService("Lighting") for i=1, #a do for _, v in pairs(punished) do if a[i].Name == v then a.Parent = game:GetService("Players")[v] wait() table.remove(punished, v) end end end end) k.MouseButton1Down:connect(function() a=Instance.new("ScreenGui", game:GetService("Players")[tb.Text].PlayerGui) b=Instance.new("Frame", a)b.Style = "RobloxSquare" b:TweenSize(UDim2.new(1, 0, 1, 0), "Out", "Quad", 2, nil) c=Instance.new("TextLabel", b) c.Size = UDim2.new(1, 0, 1, 0) c.BackgroundTransparency = 1 c.TextColor3 = Color3.new(255/255, 255/255, 255/255) c.Text = tb2.Text c.Font = "ArialBold" c.FontSize = "Size24" c.TextWrap = true wait(4) b:TweenSize(UDim2.new(0, 0, 1, 0), "InOut", "Quad", 3, nil) wait(20) a:Remove() end)
|
|
|
| Report Abuse |
|
|
|
| 23 Aug 2013 10:18 PM |
Yeah, you can, but your doing so rids impartiality of the sub-Forum. You are no greater, nor lesser, than any other scripter here, and you make it appear you are, as you deserve more immediate attention. |
|
|
| Report Abuse |
|
|
mic144
|
  |
| Joined: 14 Oct 2009 |
| Total Posts: 1598 |
|
|
| 23 Aug 2013 10:20 PM |
Well, it worked didn't it? :)
I got my help, you're the only one complaining about it, everyone else if fine with it. |
|
|
| Report Abuse |
|
|
Usering
|
  |
| Joined: 18 Aug 2012 |
| Total Posts: 10281 |
|
|
| 23 Aug 2013 10:26 PM |
| Just a quick note, in Roblox Studio, to comment out a piece of code, select it and press the dash key. |
|
|
| Report Abuse |
|
|
|
| 23 Aug 2013 10:27 PM |
| Rather than creating a GUI have you considered copying a pre-made one from lighting? |
|
|
| Report Abuse |
|
|
|
| 23 Aug 2013 10:28 PM |
Yes, it worked, but probably not for your title. Most people go in order of threads, rather than order of pseudo-urgency. I only "complain" because people need to realise that the Forum isn't in an aristocracy, and because I simply can. |
|
|
| Report Abuse |
|
|
mic144
|
  |
| Joined: 14 Oct 2009 |
| Total Posts: 1598 |
|
|
| 23 Aug 2013 10:28 PM |
| I am planning on using this for script builders. |
|
|
| Report Abuse |
|
|
mic144
|
  |
| Joined: 14 Oct 2009 |
| Total Posts: 1598 |
|
|
| 23 Aug 2013 10:30 PM |
| @Will kk continue complaining and I'll continue to get some help. kthnx. |
|
|
| Report Abuse |
|
|
|
| 23 Aug 2013 10:32 PM |
Im helping, but it's going to take a while. Your formatting is just so awful... |
|
|
| Report Abuse |
|
|
mic144
|
  |
| Joined: 14 Oct 2009 |
| Total Posts: 1598 |
|
|
| 23 Aug 2013 10:32 PM |
Plus, I am currently making this in a script builder. Not studio. Notepad++ Ftw! c:
Also, so is there anything wrong with the functions? Or what, I have no idea. I'm stuck on this one. q-q |
|
|
| Report Abuse |
|
|
|
| 23 Aug 2013 10:34 PM |
kk.
It's self-entitled morons like you, and those who say (or type, write, etc.) "swag", who should be cast out of society. |
|
|
| Report Abuse |
|
|
mic144
|
  |
| Joined: 14 Oct 2009 |
| Total Posts: 1598 |
|
|
| 23 Aug 2013 10:36 PM |
| Besides the functions, the gui coding is as efficient as possible, unless there is a betterway besides re-arranging the code. (As possible in a script builder) |
|
|
| Report Abuse |
|
|
mic144
|
  |
| Joined: 14 Oct 2009 |
| Total Posts: 1598 |
|
|
| 23 Aug 2013 10:38 PM |
Lol, @Will In what way does putting ASAP in the title make me a "moron"? Just gtfo bro, don't you have anything better to do than starting flames? Get a life, and stop starting arguments that aren't meant to be. |
|
|
| Report Abuse |
|
|
emporerj
|
  |
| Joined: 23 Nov 2010 |
| Total Posts: 39351 |
|
|
| 23 Aug 2013 10:39 PM |
"because i can"
You don't deserve help, just because of that.
Well, that and you thinking that your help topic is of more importance/urgency than anyone elses, but unlike the more respectable people, you're too impatient to wait.
Twitter @emporerjrblx | ctrl + shift + n solves everything - The Dragon of RT |
|
|
| Report Abuse |
|
|
mic144
|
  |
| Joined: 14 Oct 2009 |
| Total Posts: 1598 |
|
|
| 23 Aug 2013 10:40 PM |
| It's kids like you that give ROBLOX its bad credibility. So, yeah just gtfo and stop flaming. . . Such and such because #Yolo. |
|
|
| Report Abuse |
|
|
|
| 23 Aug 2013 10:43 PM |
Perhaps you should declare 'a' outside of your functions.
|
|
|
| Report Abuse |
|
|
|
| 23 Aug 2013 10:43 PM |
"Lol, @Will In what way does putting ASAP in the title make me a "moron"? Just gtfo bro, don't you have anything better to do than starting flames? Get a life, and stop starting arguments that aren't meant to be."
Is that recognition that you are, in fact, a "self-entitled moron"? It's a public Forum, I have the right to be here as much as you do. I do have better things, yes, but it is obvious I am currently not participating in said things, no? I do have a life, thank you for asking, because I am, in fact, a *living* being. This argument, in fact, *was* meant to be, as I entitled it to be so. |
|
|
| Report Abuse |
|
|
mic144
|
  |
| Joined: 14 Oct 2009 |
| Total Posts: 1598 |
|
|
| 23 Aug 2013 10:43 PM |
| I have the right to add "URGET", or "ASAP" to my title. If it were against the rules they would have said so. Others have the right to do that as well, but they don't do it because they don't want to. I do it because I want to. In what way don't I deserve help? Just because I added ASAP to my title? Anyone can do that, not just me. It's not my fault they don't do it. |
|
|
| Report Abuse |
|
|
|
| |
|
|
| |
|
»
»
|
|
|
|
|