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: TextLabel.Font help

Previous Thread :: Next Thread 
madness725 is not online. madness725
Joined: 19 Apr 2011
Total Posts: 2058
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 is not online. 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
madness725 is not online. madness725
Joined: 19 Apr 2011
Total Posts: 2058
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 is not online. 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
madness725 is not online. madness725
Joined: 19 Apr 2011
Total Posts: 2058
10 Aug 2013 12:21 AM
Nah, It doesnt work.
Report Abuse
notsopwnedg is not online. notsopwnedg
Joined: 07 Nov 2010
Total Posts: 4182
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
madness725 is not online. madness725
Joined: 19 Apr 2011
Total Posts: 2058
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 is not online. 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
notsopwnedg is not online. notsopwnedg
Joined: 07 Nov 2010
Total Posts: 4182
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 is not online. 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
madness725 is not online. madness725
Joined: 19 Apr 2011
Total Posts: 2058
10 Aug 2013 12:43 AM
I like how you guys are fighting over whos is better
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