Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How would I update a localscript to work with FilteringEnabled?

Asked by 9 years ago

My script goes like this

local plr=game.Players

msg=workspace.Message
msger=msg.Messager

SendMsg=script.Parent

SendMsg.Button1ClickedDown:connect(function()
msg.Value=script.Parent.Parent.TextBox
msger.Value=plr.Name
end)

When I press the send button, the text goes to a stringvalue in workspace, and I didn't write the other part of the script but I'm using .Changed to sync a message GUI's text with the value in workspace. However, this only affects the player that sent the message, so how would I update it so it's client AND server?

1 answer

Log in to vote
4
Answered by
BlueTaslem 18071 Moderation Voter Administrator Community Moderator Super Administrator
9 years ago

Instead of using a Changed event, use a RemoteFunction.

http://wiki.roblox.com/index.php?title=RemoteFunctions

0
Alright, thank you. Devotional 210 — 9y
Ad

Answer this question