Hmm…great resource though, but most of the functions are just available as Roblox API, and some things are just made using 2-3 lines of code, but keep going and continue your great work! Looking forward for more modules!
Nice resource!
I definetly think this could be useful, for things like anti-cheats; It could combat false positives, like laggy players getting falsely flagged for changing their walkspeed. (I especially think the FPS function would be useful there.)
Although, like many others said, many of these functions could be replicated with a few lines, I personally think Module:ExecuteFunction()
looks nicer than just regular code. It also cleans the code up, even just a little.
Overall, very nice job!
Yeah, that’ll be future updates. I have right now added that to the todo list!
How would it function? Consider what it might be able to access as ROBLOX has various restrictions. So that nobody gets into difficulty, I can try to gather as much *“information on a legal level” as I can!
Nice resource but, some functions already exist like ExpandPlayers:HasGamepass
is literally just MS:UserOwnsGamePassAsync
.
You should add some more unique things like ExpandPlayers:GetPlayerHeight
or ExpandPlayers:HasPlayedGameBefore
if you can.
(All of these functions can be scripted with normal Lua but good job)
Basically, I just want to make ExpandedPlayers a little bit simpler to use by integrating some features that were previously in ROBLOX’s Players service. I’ll also probably make some changes to HasGamepass. Yes, I can include those two you suggested.
ExpandedPlayers Trello & GitHub
You may examine changes and plans on our Trello board, where you can also possibly see your own suggestions. - you can visit it at Trello
Also, view our GitHub: Release V.0.1 · DecentAgent/ExpandedPlayers · GitHub
Alright great!
Also you could add some functions that simply cut long lines, if you understand what I mean.
No, I do not unfortunately know what you mean lol.
I’ll give you an example:
Instead of this
local dss = game:getservice("DataStoreService")
local data = dss:getdatastore("hi")
save = function(player, key)
local s, e = pcall(function()
data:setasync(key, player.data.value)
end
if s then
print("yay")
else
warn(e)
end
end
game.Players.PlayerAdded:Connect(function(p) save(p, p.UserId.."-aaa")
Do this
return ExpandPlayers:SaveData(player:Player, key,:string dataStore:GlobalDataStore) -- returns success or error
Oh, you mean like that. I have a DataStoreService I created called QuadaStore. I might add it.
Minor Update (V.0.1.5)
Added
HasPlayedGameBefore
function ExpandPlayers:HasPlayedGameBefore(player: Player): boolean
Returns true if the player has played the game before, otherwise it’ll return false.
Parameters
-
player: Player
- The player to check for if they’ve played the game before.
Returns
-
boolean
- true if the player has played the game before, else false.
GetLocalPlayerFormattedTime
function ExpandPlayers:GetLocalPlayerFormattedTime()
Returns the player’s LocalPlayer’s Time Fortmatted.
This function can only be used in LocalScripts.
Parameters
Returns
Removed
- Useless lines
Revamped
- HasGamepass()
We appreciate all of your suggestions. I attempt to make ExpandPlayers/ExpandedPlayers, whatever you want to call it as excellent as possible. So that you can truly have a use case for this, I welcome any thoughts you may have.
I’m not great with identifying the device type an user is using, but these functions would help:
UserInputService
https://create.roblox.com/docs/reference/engine/classes/UserInputService#KeyboardEnabled
https://create.roblox.com/docs/reference/engine/classes/UserInputService#MouseEnabled
https://create.roblox.com/docs/reference/engine/classes/UserInputService#GyroscopeEnabled
https://create.roblox.com/docs/reference/engine/classes/UserInputService#GamepadEnabled
https://create.roblox.com/docs/reference/engine/classes/UserInputService#AccelerometerEnabled
https://create.roblox.com/docs/reference/engine/classes/UserInputService#TouchEnabled
GuiService
Thank you! I might be able to mix something up within it all.
Good library, but it has some issues needs to be fixed.
You can checkout and configure this module to fit your needs. This one contains several criteria to determine device type based on scores.
ExpandedPlayers GitHub
You can now issue pull requests on our GitHub: ExpandedPlayers/ExpandedPlayers.lua at main · DecentAgent/ExpandedPlayers · GitHub
I. LOVE. THIS. It’s not hard to do these functions like you would normally but this will save me SO much time. Thank you so much.
16/05/2023 - 21:54 CEST || UPDATE
I hope this message finds you well. I regret to inform you that the project I had been working on has been officially cancelled and subsequently shut down. This decision was made primarily in response to the influx of numerous hate comments and the prevailing perception that the project was being perceived as spam. As someone who values the integrity and cleanliness of this forum, I have ultimately decided to discontinue further updates on this project.
I must acknowledge that in retrospect, the initiation of this endeavour was ill-conceived, and I take full responsibility for the misjudgement in creating it. Recognizing the importance of maintaining a positive and constructive environment within this community, I have chosen to prioritize the preservation of the forum’s reputation and the satisfaction of its members.
Should any of you have any inquiries or require further clarification, please do not hesitate to contact me directly. I am more than willing to address any concerns or questions you may have. Once again, I apologize for any inconvenience caused, and I am grateful for your understanding and support.
Sincerely,
DecentAgent