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: works in build, not online

Previous Thread :: Next Thread 
xiaoxiao181 is not online. xiaoxiao181
Joined: 14 Aug 2008
Total Posts: 5882
17 Dec 2013 07:55 PM
It's in a localscript. It works in build mode, but it won't work online and I don't know why.

local Mouse = game.Players.LocalPlayer:GetMouse()

script.Parent.Parent.C1.Text = game.ReplicatedStorage.Chatroom.C1.Value
script.Parent.Parent.C2.Text = game.ReplicatedStorage.Chatroom.C2.Value
script.Parent.Parent.C3.Text = game.ReplicatedStorage.Chatroom.C3.Value
script.Parent.Parent.C4.Text = game.ReplicatedStorage.Chatroom.C4.Value
script.Parent.Parent.C5.Text = game.ReplicatedStorage.Chatroom.C5.Value
script.Parent.Parent.C6.Text = game.ReplicatedStorage.Chatroom.C6.Value
script.Parent.Parent.C7.Text = game.ReplicatedStorage.Chatroom.C7.Value
script.Parent.Parent.C8.Text = game.ReplicatedStorage.Chatroom.C8.Value
script.Parent.Parent.C9.Text = game.ReplicatedStorage.Chatroom.C9.Value

Mouse.KeyDown:connect(function(Key)
if Key:lower() == "m" then
script.Parent:CaptureFocus() end end)

script.Parent.FocusLost:connect(function(enterPressed)
if enterPressed then
game.ReplicatedStorage.Chatroom.C1.Value = game.ReplicatedStorage.Chatroom.C2.Value
game.ReplicatedStorage.Chatroom.C2.Value = game.ReplicatedStorage.Chatroom.C3.Value
game.ReplicatedStorage.Chatroom.C3.Value = game.ReplicatedStorage.Chatroom.C4.Value
game.ReplicatedStorage.Chatroom.C4.Value = game.ReplicatedStorage.Chatroom.C5.Value
game.ReplicatedStorage.Chatroom.C5.Value = game.ReplicatedStorage.Chatroom.C6.Value
game.ReplicatedStorage.Chatroom.C6.Value = game.ReplicatedStorage.Chatroom.C7.Value
game.ReplicatedStorage.Chatroom.C7.Value = game.ReplicatedStorage.Chatroom.C8.Value
game.ReplicatedStorage.Chatroom.C8.Value = game.ReplicatedStorage.Chatroom.C9.Value
game.ReplicatedStorage.Chatroom.C9.Value = "["..game.Players.LocalPlayer.Name.."]: "..script.Parent.Text
script.Parent.Parent.C1.Text = game.ReplicatedStorage.Chatroom.C1.Value
script.Parent.Parent.C2.Text = game.ReplicatedStorage.Chatroom.C2.Value
script.Parent.Parent.C3.Text = game.ReplicatedStorage.Chatroom.C3.Value
script.Parent.Parent.C4.Text = game.ReplicatedStorage.Chatroom.C4.Value
script.Parent.Parent.C5.Text = game.ReplicatedStorage.Chatroom.C5.Value
script.Parent.Parent.C6.Text = game.ReplicatedStorage.Chatroom.C6.Value
script.Parent.Parent.C7.Text = game.ReplicatedStorage.Chatroom.C7.Value
script.Parent.Parent.C8.Text = game.ReplicatedStorage.Chatroom.C8.Value
script.Parent.Parent.C9.Text = game.ReplicatedStorage.Chatroom.C9.Value
end end)

game.ReplicatedStorage.Chatroom.C9.Changed:connect(function()
script.Parent.Parent.C1.Text = game.ReplicatedStorage.Chatroom.C1.Value
script.Parent.Parent.C2.Text = game.ReplicatedStorage.Chatroom.C2.Value
script.Parent.Parent.C3.Text = game.ReplicatedStorage.Chatroom.C3.Value
script.Parent.Parent.C4.Text = game.ReplicatedStorage.Chatroom.C4.Value
script.Parent.Parent.C5.Text = game.ReplicatedStorage.Chatroom.C5.Value
script.Parent.Parent.C6.Text = game.ReplicatedStorage.Chatroom.C6.Value
script.Parent.Parent.C7.Text = game.ReplicatedStorage.Chatroom.C7.Value
script.Parent.Parent.C8.Text = game.ReplicatedStorage.Chatroom.C8.Value
script.Parent.Parent.C9.Text = game.ReplicatedStorage.Chatroom.C9.Value
end)
Report Abuse
xiaoxiao181 is not online. xiaoxiao181
Joined: 14 Aug 2008
Total Posts: 5882
17 Dec 2013 08:05 PM
bump
Report Abuse
xiaoxiao181 is not online. xiaoxiao181
Joined: 14 Aug 2008
Total Posts: 5882
17 Dec 2013 08:13 PM
someone else joined first to test it, then i joined in second. works online for me now, but not for them. testing to see if it works after they leave and rejoin while im still in here
Report Abuse
xPRESIDENTx is not online. xPRESIDENTx
Joined: 10 Jun 2011
Total Posts: 815
17 Dec 2013 08:20 PM
whats the scripts parent? if its not in StarterPack, or the players backpack when they spawn then it wont work
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