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 » Scripters
Home Search
 

Re: Am I using this correctly?

Previous Thread :: Next Thread 
Surgo is not online. 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
Unsubtleties is not online. Unsubtleties
Joined: 28 Nov 2016
Total Posts: 9203
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 is not online. 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
Unsubtleties is not online. Unsubtleties
Joined: 28 Nov 2016
Total Posts: 9203
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 is not online. 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
Unlucky_Morpheus is not online. Unlucky_Morpheus
Joined: 26 Aug 2013
Total Posts: 11813
24 Feb 2017 07:05 PM
yes you need a transformer to help you


Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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