Hello! I was trying to apply for the scripter role on the discord server hiddendevs and it got rejected. The admin says there is something deprecated in the script but I don’t know what. Here is the code - ScripterRoleApplicationScript - Pastebin.com
Please send help!
Deprecated means that roblox studio doesn’t use that function or support it anymore, using deprecated items can cause potential errors to occur due to it not being updated, supported, or just too old, though some items such as these are still available in roblox studio, it would be best to understand the gamble of such items as they can cause errors in the future.
From a brief overview, I can’t see any deprecated methods, but I probably missed one. If you typed out something in Studio and it had a line through it on the autocomplete, that means it is deprecated. @awesome12734568 pointed out why you should not use deprecated methods.
There are a few things I would like to point out on how this script could be greatly improved:
- Use
task.wait
instead ofwait
- Do not create new
TweenInfo
objects every time - Get all your services at the top
- Anything ending in
Async
(IN THIS SCRIPT) needs to be wrapped in apcall
as it is an asynchronous function call that can fail - You are creating connections within connections that can lead to memory leaks and unwanted behaviour
Thank you guys! I’m going to use these tips and see if any of those were the problem.