|
| 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 |
|
|
| |
|
|
| 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 |
|
|
|
| 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 |
|
|