Forum > Scripts >

Scripts tab Dex V2 but it doesn't reset on death

mrk0

mark

Posts: 61

Threads: 3

Joined: May, 2022

Reputation: 2

Posted

i was using the Dex v2 listed on the scripts tab and i noticed it resets if you die (meaning the gui disappears) so i fixed it by adding a single line of code

 

download here: https://cdn.discordapp.com/attachments/995370160166813806/1009882089321152603/Dex_Explorer_V2.txt

 

https://cdn.discordapp.com/attachments/995370160166813806/1009882514548084776/unknown.png

  • 0

https://media.discordapp.net/attachments/995070188628221952/1022545309529808996/mrk0banner5.png

Posts: 1592

Threads: 166

Joined: Apr, 2021

Reputation: 13

Replied

To make it more trustable, just tell us what line of code and where to add it.

Most likely people don't want to download things from people that they don't trust.

  • 0

Random quote here...

mrk0

mark

Posts: 61

Threads: 3

Joined: May, 2022

Reputation: 2

Replied

@VoidableMethod

 

Sure thing - here's what you have to do (for anyone who doesn't trust the code like Aja said)

 

At the very beginning of the script, the ScreenGui is declared as "NewGuiPart1".
https://media.discordapp.net/attachments/995370160166813806/1009940910525648967/unknown.png

 

Now, ScreenGui has a property which determines whether it resets or not on death. By default it's on (no idea why), meaning if the ScreenGui is declared without setting this property to false, it'll reset every time you die (and you'll have to run the script again). What you have to do is quite literally just this:
https://media.discordapp.net/attachments/995370160166813806/1009941085482655855/unknown.png

Scrolling down to line 167 where the properties for NewGuiPart1 are listed and adding the line of code:

NewGuiPart1.ResetOnSpawn = false
  • 0

Added

  • 0

https://media.discordapp.net/attachments/995070188628221952/1022545309529808996/mrk0banner5.png

Users viewing this thread:

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