Forum > Scripts >

how do i copy text from surfacegui to my gui script

Posts: 11

Threads: 5

Joined: Mar, 2022

Reputation: 0

Posted

hi there, im noob at scripting but i need, how do i copy like from this
https://gyazo.com/25a49a97a009a29d505a342870a2852c 
to my script? 

  • 0

Posts: 0

Threads: 0

Joined: ?

Reputation:

Replied

try finding it in dex explorer and then just grab the content and filter it

  • 0

Posts: 11

Threads: 5

Joined: Mar, 2022

Reputation: 0

Replied

yeah ikr i can do it myself, but i want to make like auto, and rn i want to make a script, what will auto copy from text lebel to paste to my script gui

  • 0

Syraxes_

Web Developer

vip

Posts: 1068

Threads: 30

Joined: Jul, 2021

Reputation: 63

Replied

Can you give me the game link please?

 

Thanks.

  • 0

I'm not lazy, I'm just highly motivated to do nothing. #I💚Dogs.

Posts: 11

Threads: 5

Joined: Mar, 2022

Reputation: 0

Replied

https://www.roblox.com/games/654732683/Egg-Hunt-Car-Crushers-2

  • 0

Syraxes_

Web Developer

vip

Posts: 1068

Threads: 30

Joined: Jul, 2021

Reputation: 63

Replied

local Path = game.Workspace.EnergyCore.ControlRoom.Screens.Energy.UI.Frame

setclipboard(tostring(Path.Title.Text..' - '..Path.Power.Text..'. Status: '..Path.Status.Text)) -- Power and Status

 

Enjoy!

  • 0

I'm not lazy, I'm just highly motivated to do nothing. #I💚Dogs.

Posts: 11

Threads: 5

Joined: Mar, 2022

Reputation: 0

Replied

Woah! Thank you man 

  • 0

Syraxes_

Web Developer

vip

Posts: 1068

Threads: 30

Joined: Jul, 2021

Reputation: 63

Replied

I was reading again and I see that you want to copy it to your GUI. You just have to do this:

 

local Path = game.Workspace.EnergyCore.ControlRoom.Screens.Energy.UI.Frame

TextLabelName.Text = Path.Status.Text -- Change 'TextLabelName'  to your TextLabel Name. Also  replace the 'Status' to: Power if your want the power number.

  • 0

I'm not lazy, I'm just highly motivated to do nothing. #I💚Dogs.

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )