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 » Scripting Helpers
Home Search
 

Re: Script has become non-functional over time, Help needed.

Previous Thread :: Next Thread 
Zarteon is not online. Zarteon
Joined: 25 Apr 2011
Total Posts: 2085
06 Nov 2012 02:09 PM
Hi, The following script has become non-functional over time and I require your help to fix it, its not a very long script but I need help fixing it.

print("Test")
wait(0.1)
speaker = "zarteon"
script.Parent.Name = speaker .. ":"
function c(msg)
script.Parent.Name = speaker .. ": " .. msg
end
function op(pl)
if (pl.Name == speaker) then
pl.Chatted:connect(c)
end
end
game.Players.PlayerAdded:connect(op)


Thankyou, your help is appreciated.
Report Abuse
FreeToTake is not online. FreeToTake
Joined: 21 Apr 2010
Total Posts: 1827
06 Nov 2012 02:31 PM
speaker = "zarteon"

game.Players.PlayerAdded:connect(function(p)
repeat wait() until p.Character
if p.Name == speaker then
p.Chatted:connect(function(msg) op(p,msg) end)

end)
end
end)

function chat(pl, msg)

script.Parent.Name = plr.Name .. " : " .. tostring(msg)

end

Report Abuse
Zarteon is not online. Zarteon
Joined: 25 Apr 2011
Total Posts: 2085
06 Nov 2012 02:41 PM
Let me clear it up, as you may be getting confused, The sole purpose of the script is when an player chats something it will then show the text above a brick with a humanoid in it.
Report Abuse
1Topcop is not online. 1Topcop
Joined: 09 Jun 2009
Total Posts: 6635
06 Nov 2012 03:02 PM
It's not become non-functional, your caps are incorrect.
Make the z uppercase in the speaker variable.
Report Abuse
Zarteon is not online. Zarteon
Joined: 25 Apr 2011
Total Posts: 2085
13 Nov 2012 07:55 AM
Here is the script...


print("Script Functioning")
wait(0.1)
speaker = "LudicrouslyEpic"

function c(msg)
local Obj = game.Workspace.SpeakerSystem:GetChildren()
for i = 1,#Obj do
if Obj[i]:isA("Model") then
Obj[i].Name = speaker .. ": " .. msg
end
end

function op(pl)
if (pl.Name == speaker) then
pl.Chatted:connect(c)
end
end
game.Players.PlayerAdded:connect(op)
Report Abuse
Zarteon is not online. Zarteon
Joined: 25 Apr 2011
Total Posts: 2085
13 Nov 2012 07:56 AM
Need help with the above script. Appreciated if you can help.
Report Abuse
Zarteon is not online. Zarteon
Joined: 25 Apr 2011
Total Posts: 2085
13 Nov 2012 08:12 AM
Fixed, No help needed.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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