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
|
  |
| 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
|
  |
| Joined: 02 Jun 2008 |
| Total Posts: 10249 |
|
| |
Jiquor
|
  |
| Joined: 02 Jun 2008 |
| Total Posts: 10249 |
|
| |
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 |
|