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 » Scripters
Home Search
 

Re: How to add an Image to a MessageBox?!

Previous Thread :: Next Thread 
Jiquor is not online. Jiquor
Joined: 02 Jun 2008
Total Posts: 10249
04 Oct 2015 12:18 PM
I've managed to get lots of things down in here, but is there a way I can add a selected resized/something of an Image in my Message Box? I can't seem to figure it out. Here's the script.

function message(m)



---------------------------------------------------------------\\


m.Text = "Test"
wait(3)



---------------------------------------------------------------//






end
function onTouch(hit)

if hit.Parent:FindFirstChild("Humanoid") ~= nil then

if game.Players:FindFirstChild(hit.Parent.Name) ~= nil then
local player = game.Players:FindFirstChild(hit.Parent.Name)

if player:FindFirstChild("PlayerGui"):FindFirstChild("ScreenGui") == nil then
sg = Instance.new("ScreenGui")
sg.Parent = player:FindFirstChild("PlayerGui")
end

if player.PlayerGui.ScreenGui:FindFirstChild("MessageBox") == nil then


local f = Instance.new("Frame")
f.Name = "MessageBox"
f.Position = UDim2.new(-0.5, 0, -0.5, 0)
f.Size = UDim2.new(2, 0, 2, 0)
f.Style = "Custom"
f.BackgroundColor3 = Color3.new(0,0,0)
f.Parent = player.PlayerGui:FindFirstChild("ScreenGui")

local m = Instance.new("TextLabel")
m.Position = UDim2.new(0.5, 0, 0.5, 0)
m.FontSize = "Size24"
m.TextColor3 = Color3.new(1,1,1)
m.Parent = f

message(m)


f:Destroy()
end
end
end
end

script.Parent.Touched:connect(onTouch)
Report Abuse
21wolf12 is not online. 21wolf12
Joined: 21 Dec 2011
Total Posts: 30
04 Oct 2015 12:19 PM
You can add an Imagebox under that and make the messagebox transparent.
Report Abuse
Jiquor is not online. Jiquor
Joined: 02 Jun 2008
Total Posts: 10249
04 Oct 2015 12:20 PM
Where?
Report Abuse
Jiquor is not online. Jiquor
Joined: 02 Jun 2008
Total Posts: 10249
04 Oct 2015 12:22 PM
1
Report Abuse
21wolf12 is not online. 21wolf12
Joined: 21 Dec 2011
Total Posts: 30
04 Oct 2015 12:23 PM
If you already have the messagebox on the GUI then just enter the same COORDS for the Imagebox, place an image in it and make messagebox transparent. Check Wiki for more info.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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