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 fix this script in meesage

Previous Thread :: Next Thread 
HotWheels09 is not online. HotWheels09
Joined: 12 Dec 2010
Total Posts: 21
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
HotWheels09 is not online. HotWheels09
Joined: 12 Dec 2010
Total Posts: 21
03 Nov 2013 12:09 AM
can someone help! me please
Report Abuse
MettaurSp is not online. 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 is not online. 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
AndroidKitKat is not online. AndroidKitKat
Joined: 21 Sep 2013
Total Posts: 1525
03 Nov 2013 12:46 AM
^
Report Abuse
HotWheels09 is not online. HotWheels09
Joined: 12 Dec 2010
Total Posts: 21
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 is not online. 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 is not online. 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 is not online. 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 is not online. 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
HotWheels09 is not online. HotWheels09
Joined: 12 Dec 2010
Total Posts: 21
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
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