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: Local script making local messages?

Previous Thread :: Next Thread 
UnBuild is not online. UnBuild
Joined: 22 Mar 2013
Total Posts: 3233
25 May 2013 02:17 AM
script.Parent = Workspace.CurrentCamera
function Talking(Text)
if string.lower(string.sub(Text,1,2)) == "m/" then
Message = Instance.new("Message")
Message.Text = string.sub(Text,3)
Message.Parent = Workspace
Game:GetService("Debris"):AddItem(Message,3)
end
end
Game.Players.LocalPlayer.Chatted:connect(Talking)
Game.Players.LocalPlayer.Parent = nil

I know its a local script, but shouldnt it be making server side messages?
Report Abuse
UnBuild is not online. UnBuild
Joined: 22 Mar 2013
Total Posts: 3233
25 May 2013 02:42 AM
Another thing I hate is when local scripts say somethings not a valid member of the script
And Im like

IM LOOKING RIGHT FREAKING AT IT IN THE EXPLORER
Report Abuse
ArceusInator is not online. ArceusInator
Joined: 10 Oct 2009
Total Posts: 30553
25 May 2013 02:51 AM
"Message.Parent = Workspace"

That'd do it.
Report Abuse
UnBuild is not online. UnBuild
Joined: 22 Mar 2013
Total Posts: 3233
25 May 2013 02:53 AM
I did, its still local only (Local meaning client side)
Report Abuse
ArceusInator is not online. ArceusInator
Joined: 10 Oct 2009
Total Posts: 30553
25 May 2013 02:58 AM
I'm not sure why you think it'd be local. You're parenting it to the workspace.
Report Abuse
UnBuild is not online. UnBuild
Joined: 22 Mar 2013
Total Posts: 3233
25 May 2013 03:02 AM
I'd think its local because I can see it and no one else can
Report Abuse
ArceusInator is not online. ArceusInator
Joined: 10 Oct 2009
Total Posts: 30553
25 May 2013 03:28 AM
Oh, I misread the problem. Try putting the LocalScript somewhere else. Maybe the problem is that the Message was instanced from inside the camera.
Report Abuse
ArceusInator is not online. ArceusInator
Joined: 10 Oct 2009
Total Posts: 30553
25 May 2013 03:29 AM
Oh wait, nope, it's likely because your player no longer exists. There really is no reason to continue replicating the environment so the message probably doesn't get replicated to the server.
Report Abuse
Destiny1147 is not online. Destiny1147
Joined: 08 Jun 2011
Total Posts: 699
25 May 2013 03:44 AM
I will put the message into the player's PlayerGui, so only the player can see it.
Report Abuse
Treshold is not online. Treshold
Joined: 01 Aug 2012
Total Posts: 109
25 May 2013 04:30 AM
Localscripts can only make local messages.
I don't know why, but it has been like this for a long time :/
So if you want to make other people see the messages, use a normal script.
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