|
| 10 Aug 2011 11:58 AM |
Pretty simple to explain how I want it to be like, but I have know idea how to do it. I was used to the older roblox messages...
Anyway, here's what the script should be able to do. Example: 1. Player hits a brick, activating the message. 2. Message pops up saying, 'Hello.' 3. Waits three seconds. 4. Message changes to, 'What's your name?' 5. Waits three more seconds. 6. Message disappears.
Also it should be seen by all the players that hit it, but not seen by all at the same time. The looks of the message realy doesn't mater to me as long at it looks somewhat good and it doesn't block the view of the player's character in anyway, but is still noticable. Could someone help me out with this? I need a script like it realy soon. |
|
|
| Report Abuse |
|
|
|
| 10 Aug 2011 12:01 PM |
local m = Instance.new("Message", workspace)
while wait(3) do m.Text = "Hello" wait(3) m.Text = "What's your name?" end |
|
|
| Report Abuse |
|
|
|
| 10 Aug 2011 12:02 PM |
| what about the part where hitting the brick activates it? |
|
|
| Report Abuse |
|
|
Sehnsucht
|
  |
| Joined: 10 Apr 2011 |
| Total Posts: 990 |
|
|
| 10 Aug 2011 12:02 PM |
. Player hits a brick, activating the message. 2. Message pops up saying, 'Hello.' 3. Waits three seconds. 4. Message changes to, 'What's your name?' 5. Waits three more seconds. 6. Message disappears.
script.Parent.Touched:connect(function(hit) if hit == nil or hit.Parent == nil then return end local Humanoid = hit.Parent:findFirstChild("Humanoid") if Humanoid ~= nil then Hint = Instance.new("Hint") Hint.Parent = game.Players:getPlayerFromCharacter(hit.Parent) Hint.Text = "Hello." wait(3) Hint.Text = "What's your name?" wait(3) Hint:remove() end end) |
|
|
| Report Abuse |
|
|
|
| 10 Aug 2011 12:09 PM |
| okay, well it's working... sort of. I can't see the hint though. |
|
|
| Report Abuse |
|
|
|
| 10 Aug 2011 12:10 PM |
| Oops, sorry, didn't see that you wanted it to happen when you touch the brick. |
|
|
| Report Abuse |
|
|
|
| 10 Aug 2011 12:14 PM |
| oh and I would like it not to tint the whole screen. That kind of message tends to be distracting to players. |
|
|
| Report Abuse |
|
|
|
| 10 Aug 2011 12:15 PM |
| Sehnsucht, why couldn't I see the hint in your message? And they both poped up at once? |
|
|
| Report Abuse |
|
|
|
| 10 Aug 2011 12:17 PM |
| My new moto should be, "Good help is hard to find." I've been looking for a script like this for more than two weeks... |
|
|
| Report Abuse |
|
|
Sehnsucht
|
  |
| Joined: 10 Apr 2011 |
| Total Posts: 990 |
|
| |
|
|
| 10 Aug 2011 12:22 PM |
| huh? When I tried your scripts, the hints both poped up in my Player Gui at the same time, and I couldn't even see them. That's want I was trying to say. |
|
|
| Report Abuse |
|
|
|
| 10 Aug 2011 12:25 PM |
Oh, it's because he was inserting the Hint into the player... That doesn't work anymore, it's the PlayerGui, now. ;)
script.Parent.Touched:connect(function(hit) if hit == nil or hit.Parent == nil then return end local Humanoid = hit.Parent:findFirstChild("Humanoid") if Humanoid ~= nil then Hint = Instance.new("Hint") Hint.Parent = game.Players:getPlayerFromCharacter(hit.Parent).PlayerGui Hint.Text = "Hello." wait(3) Hint.Text = "What's your name?" wait(3) Hint:remove() end end) |
|
|
| Report Abuse |
|
|
Sehnsucht
|
  |
| Joined: 10 Apr 2011 |
| Total Posts: 990 |
|
|
| 10 Aug 2011 12:26 PM |
Sorry, try this, also added a debounce.
local Ready = true
script.Parent.Touched:connect(function(hit) if Ready == false then return end if hit == nil or hit.Parent == nil then return end local Humanoid = hit.Parent:findFirstChild("Humanoid") if Humanoid ~= nil then Ready = false coroutine.wrap(function() Hint = Instance.new("Hint") Hint.Parent = game.Players:getPlayerFromCharacter(hit.Parent).PlayerGui Hint.Text = "Hello." wait(3) Hint.Text = "What's your name?" wait(3) Hint:remove() end)() wait(1) Ready = true end end) |
|
|
| Report Abuse |
|
|
|
| 10 Aug 2011 12:31 PM |
| Awesome! Both work. Just one more question. Is there a way I can make the part across the top and the text a little bigger? And maybe change it's color. lol sorry. I like being able to custumize things. |
|
|
| Report Abuse |
|
|
Miro034
|
  |
| Joined: 07 Oct 2009 |
| Total Posts: 6568 |
|
| |
|
Sehnsucht
|
  |
| Joined: 10 Apr 2011 |
| Total Posts: 990 |
|
|
| 10 Aug 2011 12:34 PM |
| The Hint GUI is set the way it is, you could make a custom one yourself however you want and use that with the script if you wanted. |
|
|
| Report Abuse |
|
|
|
| 10 Aug 2011 12:34 PM |
| Yes, as miro, said, that has to be a GUI. Hints are ROBLOX built-in Instances, and they did not create a property/function that will change the size/color. |
|
|
| Report Abuse |
|
|
Miro034
|
  |
| Joined: 07 Oct 2009 |
| Total Posts: 6568 |
|
|
| 10 Aug 2011 12:40 PM |
You need to use Udim2.new. Maybe tween too. |
|
|
| Report Abuse |
|
|
|
| 10 Aug 2011 12:41 PM |
| alright, but idk how to make a custumizable Gui either. :P I feel soo scriptless. lol |
|
|
| Report Abuse |
|
|
Sehnsucht
|
  |
| Joined: 10 Apr 2011 |
| Total Posts: 990 |
|
|
| 10 Aug 2011 12:42 PM |
| You could make it via script, or you could manually edit all the properties with Roblox Studio and place it in the Lighting or somewhere else, and have it copied to the player instead of the Hint instance. |
|
|
| Report Abuse |
|
|
|
| 10 Aug 2011 12:44 PM |
| how do i make it via script? |
|
|
| Report Abuse |
|
|
Sehnsucht
|
  |
| Joined: 10 Apr 2011 |
| Total Posts: 990 |
|
|
| 10 Aug 2011 12:47 PM |
local Gui = Instance.new("TextLabel") Gui.Size = UDim2.new(1, 0, 0, 30) Gui.BackgroundColor = Color3.new(0, 0, 0) -- Etc, etc...
|
|
|
| Report Abuse |
|
|
|
| 10 Aug 2011 12:51 PM |
| okay, but how do I get that with the script you already gave me? Sorry. I really have no idea. I hope I'm not being a bother. |
|
|
| Report Abuse |
|
|
Sehnsucht
|
  |
| Joined: 10 Apr 2011 |
| Total Posts: 990 |
|
|
| 10 Aug 2011 12:55 PM |
| Do you know how to edit the properties to how you want them for GUIs? |
|
|
| Report Abuse |
|
|
|
| 10 Aug 2011 12:58 PM |
| Yeah, but idk how to create a new Gui and put it in with the script and stuff. |
|
|
| Report Abuse |
|
|