Attempt to index nill with 'Value' & attempt to index nill with 'WaitForChild'




āļŠāļāļĢāļĩāļ™āļŠāđ‡āļ­āļ• 2024-02-18 170059
āļŠāļāļĢāļĩāļ™āļŠāđ‡āļ­āļ• 2024-02-18 171316
āļŠāļāļĢāļĩāļ™āļŠāđ‡āļ­āļ• 2024-02-18 171439

Can someone help me please, im take 1 hours+ to fix this

2 Likes

LocalPlayer can be only used in a LocalScript.

There’s a few things you need to fix.

  1. writing to the DataStore every time a value is changed (bad idea)
  2. not using a pcall() to access the DataStore (DataStore can fail)
  3. a server-side Script should not be in a GUI - let the client manage the GUI. (much easier and more efficient)

In future, please format your code in a Lua code block, it just makes it easier to read.
You can do this using three backticks (`) either side of the code or pressing the ‘</>’ button at the top of your post editor.

3 Likes

Are you doing gui scripts as Server Script? once this scripts run it will trigger on everyone also.

1 Like

Can you send the entire script in lua?

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.