Surgo
|
  |
| Joined: 11 Jan 2011 |
| Total Posts: 2748 |
|
|
| 23 Feb 2017 08:43 PM |
local pp = game.ReplicatedStorage.Powerpoint local plr = game.Players.LocalPlayer
plr.PlayerGui.PowerPointEditor.Screen.SlideShow.TextBox.Text.FocusLost:connect(function(enterPressed) if enterPressed --[[and pp.CurrentSlide== 0--]] then print("Focus was lost because enter was pressed!") pp.TextOne.Value = plr.PlayerGui.PowerPointEditor.Screen.SlideShow.TextBox.Text else end end)
Nothing happens when I test it out. |
|
|
| Report Abuse |
|
|
|
| 23 Feb 2017 08:46 PM |
| What do you even want to happen? If FilteringEnabled is on then the property change of TextOne won't replicate |
|
|
| Report Abuse |
|
|
Surgo
|
  |
| Joined: 11 Jan 2011 |
| Total Posts: 2748 |
|
|
| 23 Feb 2017 08:51 PM |
| I'm trying to make it so you can change a value when typing into a textbox |
|
|
| Report Abuse |
|
|
|
| 23 Feb 2017 08:53 PM |
| If you want the server/other clients to see the text then pass the property value through a RemoteEvent |
|
|
| Report Abuse |
|
|
Aritional
|
  |
| Joined: 04 Mar 2014 |
| Total Posts: 605 |
|
|
| 23 Feb 2017 09:11 PM |
Make sure to filter the text so the roblox.communism doesn't Ddos you.
I'm guessing you are using FE. If so yeah remote events.
Make a remote event some where
In LocalGui: local ChangeText = game.ReplicatedStorage.ChangeText local TextGui = PowerPointEditor.Screen.SlideShow.TextBox script.Parent.TextGui.Text.FocusLost:connect(function(enterPressed) if enterPressed then ChangeText:FireServer(TextGui.Text, Powerpoint.TextOne) end end)
In ServerStorage: local ChangeText = game.ReplicatedStorage.ChangeText
ChangeText.OnServerEvent:connect(function(client, string, Change) Change.Value = string end)
|
|
|
| Report Abuse |
|
|
|
| 24 Feb 2017 07:05 PM |
yes you need a transformer to help you
|
|
|
| Report Abuse |
|
|