|
| 03 Nov 2013 12:01 AM |
#.announce = ##############, color, ######## local players = game.################### end for index, player in ############## do end local ######### = player.######### local ### = #########.### local shout = ###.Announcement local ###### = string.######### shout.########## = color for i = 1, ###### do end ######### / ####### local ####### = string.########, 1, i) end it keeps coming with a red line in roblox studio |
|
|
| Report Abuse |
|
|
|
| 03 Nov 2013 12:09 AM |
| can someone help! me please |
|
|
| Report Abuse |
|
|
MettaurSp
|
  |
| Joined: 20 Mar 2010 |
| Total Posts: 3179 |
|
|
| 03 Nov 2013 12:10 AM |
| So many "#"s censoring a large majority of the script... o3o |
|
|
| Report Abuse |
|
|
YEGGOR
|
  |
| Joined: 02 Apr 2013 |
| Total Posts: 1150 |
|
|
| 03 Nov 2013 12:43 AM |
| maybe its because half of the script is composed of '#'s |
|
|
| Report Abuse |
|
|
| |
|
|
| 03 Nov 2013 01:06 AM |
Sorry - try again.
G.announce = (function(text, color, time)end local players = game.Players:GetChildren end for index, player in pairs(players) do end local playerGui = player.PlayerGui local HUD = playerGui.HUD local shout = HUD.Announcement local length = string.len(text) shout.TextColor3 = color for i = 1, length do end wait(time / length) local subText = string.sub(text, 1, i) end |
|
|
| Report Abuse |
|
|
200AB
|
  |
| Joined: 24 Aug 2010 |
| Total Posts: 1604 |
|
|
| 03 Nov 2013 01:12 AM |
_G.announce = function(text, color, time) local players = game.Players:GetChildren()
for index, player in pairs(players) do local playerGui = player.PlayerGui local HUD = playerGui.HUD local shout = HUD.Announcement local length = string.len(text) shout.TextColor3 = color for i = 1, length do wait(time / length) end local subText = string.sub(text, 1, i) end end
Not exactly sure as to what you were trying to do with some of the parts, but I still tried to fix it for you nonetheless. Hope it helps. |
|
|
| Report Abuse |
|
|
200AB
|
  |
| Joined: 24 Aug 2010 |
| Total Posts: 1604 |
|
|
| 03 Nov 2013 01:14 AM |
Whoops, forgot to replace the parenthesis around the _G function.
_G.announce = (function(text, color, time) local players = game.Players:GetChildren()
for index, player in pairs(players) do local playerGui = player.PlayerGui local HUD = playerGui.HUD local shout = HUD.Announcement local length = string.len(text) shout.TextColor3 = color for i = 1, length do wait(time / length) end local subText = string.sub(text, 1, i) end end) |
|
|
| Report Abuse |
|
|
200AB
|
  |
| Joined: 24 Aug 2010 |
| Total Posts: 1604 |
|
|
| 03 Nov 2013 01:15 AM |
| And I just noticed other things wrong with it... You need to move to Scripting Helpers and re-learn the basics of Lua. |
|
|
| Report Abuse |
|
|
MettaurSp
|
  |
| Joined: 20 Mar 2010 |
| Total Posts: 3179 |
|
|
| 03 Nov 2013 01:20 AM |
game.Players:GetPlayers() --no end ... shout.TextColor3 = Color3.new(r/255,g/255,b/255) --unless color was defined in a part of the script that wasn't revealed if there was such a part ... for i=1,length do --no end
Also, unless I am mistaken, the PlayerGui of a player does not replicate to the server. |
|
|
| Report Abuse |
|
|
|
| 03 Nov 2013 01:59 AM |
| this is for the lobby to say an announcement example,waiting for one more player it is supposed to say it in the lobby |
|
|
| Report Abuse |
|
|