|
| 10 Aug 2013 12:09 AM |
wait() for Index, Player in pairs(Game.Players:GetPlayers()) do local Gui = Instance.new("ScreenGui", Player.PlayerGui) local Frame = Instance.new("Frame", Gui) local TextButton = Instance.new("TextButton", Frame) local TextLabel = Instance.new("TextLabel", Frame) Frame.Position = UDim2.new(0, 700, 0, 300) Frame.Size = UDim2.new(0, 300, 0, 200) Gui.Frame.BackgroundTransparency = "0.5" Gui.Frame.BackgroundColor3 = Color3.new(0,0,0) TextButton.Position = UDim2.new(0, 75, 0, 75) TextButton.Size = UDim2.new(0, 50, 0, 50) TextButton.Transparency = "0.5" TextButton.BackgroundColor3 = Color3.new(0,0,0) TextButton.Text = "Yes!" TextButton.TextColor3 = Color3.new(255/255, 255/255, 255/255) TextButton.Font = "ArialBold" TextButton.FontSize = "Size14" TextLabel.Text = "Would you like to buy a Gravity Coil?" TextLabel.FontSize = "Size14" TextLabel.Position = UDim2.new(0, 150, 0, 20) TextButton.MouseButton1Click:connect(function() wait(0.1) Gui:remove() end) end
It worked like this but If I put TextLabel.Font = "ArialBold" none of it works |
|
|
| Report Abuse |
|
|
Soquick
|
  |
| Joined: 01 Nov 2012 |
| Total Posts: 1497 |
|
|
| 10 Aug 2013 12:16 AM |
lemme finish this script for you while wait() do for Index, Player in pairs(Game.Players:GetPlayers()) do if not Player.PlayerGui:FindFirstChild("madness") then local Gui = Instance.new("ScreenGui", Player.PlayerGui) Gui.Name = "madness" local Frame = Instance.new("Frame", Gui) local TextButton = Instance.new("TextButton", Frame) local TextLabel = Instance.new("TextLabel", Frame) Frame.Position = UDim2.new(0, 700, 0, 300) Frame.Size = UDim2.new(0, 300, 0, 200) Gui.Frame.BackgroundTransparency = "0.5" Gui.Frame.BackgroundColor3 = Color3.new(0,0,0) TextButton.Position = UDim2.new(0, 75, 0, 75) TextButton.Size = UDim2.new(0, 50, 0, 50) TextButton.Transparency = "0.5" TextButton.BackgroundColor3 = Color3.new(0,0,0) TextButton.Text = "Yes!" TextButton.TextColor3 = Color3.new(255/255, 255/255, 255/255) TextButton.Font = ("ArialBold") TextButton.FontSize = "Size14" TextLabel.Text = "Would you like to buy a Gravity Coil?" TextLabel.FontSize = "Size14" TextLabel.Position = UDim2.new(0, 150, 0, 20) TextButton.MouseButton1Click:connect(function() game:GetService("MarketplaceService"):PromptPurchase(Player,16688968) Gui:remove() end) end end end |
|
|
| Report Abuse |
|
|
|
| 10 Aug 2013 12:19 AM |
| Thats not at all what I needed I needed the textlabel font to be arialbold but it doesnt work when I put it in |
|
|
| Report Abuse |
|
|
Soquick
|
  |
| Joined: 01 Nov 2012 |
| Total Posts: 1497 |
|
|
| 10 Aug 2013 12:20 AM |
^ I dont know, but mine still helps a ton. |
|
|
| Report Abuse |
|
|
| |
|
|
| 10 Aug 2013 12:27 AM |
A while loop what does that have to do with anything?
Also try usuing the Enum value
.Font = 2 |
|
|
| Report Abuse |
|
|
|
| 10 Aug 2013 12:33 AM |
| Thanks, the while wait() do makes it so it goes into PlayerGui when the respawn too, But I changed it to just wait() |
|
|
| Report Abuse |
|
|
Soquick
|
  |
| Joined: 01 Nov 2012 |
| Total Posts: 1497 |
|
|
| 10 Aug 2013 12:36 AM |
Mines better because it keeps asking. I can make it so it only asks if player hasent bought |
|
|
| Report Abuse |
|
|
|
| 10 Aug 2013 12:42 AM |
A infinate while loop is usally something you want to avoid all together. If you Do want to show it whenever they spawn use the CharacterAdded event.
Or if you want it to show when they first joking then you should use PlayerAdded event. |
|
|
| Report Abuse |
|
|
Soquick
|
  |
| Joined: 01 Nov 2012 |
| Total Posts: 1497 |
|
|
| 10 Aug 2013 12:43 AM |
^ I know that..
Are you against new chat bar? Join my primary or: http://www.roblox.com/My/Groups.aspx?gid=929432 |
|
|
| Report Abuse |
|
|
|
| 10 Aug 2013 12:43 AM |
| I like how you guys are fighting over whos is better |
|
|
| Report Abuse |
|
|