Question about these Intellisense entries

When typing is Studio’s IDE, Intellisense shows autocorrect for events of the Players service with LocalUserSecurity:

image

Is this the intended behavior or a bug? If intended, why?

2 Likes

It’s a bug I noticed too, though I really want those available to normal scripts.

3 Likes

It’s not a bug because of this reason

The text auto completes in favor of a Roblox Intern who is responsible for scripting the CoreScript.

I think it’s also unnecessary to remove the Auto Complete features that can’t be used in Normal Scripts for Normal Scripts because the end results are the same, you won’t be able to use it anyways.

Someone please correct me if I am wrong.

1 Like

There are a bunch of functions in other services that aren’t in intellisense.

A few:

settings().Diagnostics:LegacyScriptMode()
game:GetService("InsertService"):SetBaseSetsUrl("http://assetgame.roblox.com/Game/Tools/InsertAsset.ashx?nsets=10&type=base")
game:GetService("InsertService"):SetUserSetsUrl("http://assetgame.roblox.com/Game/Tools/InsertAsset.ashx?nsets=20&type=user&userid=%d")
game:GetService("InsertService"):SetCollectionUrl("http://assetgame.roblox.com/Game/Tools/InsertAsset.ashx?sid=%d")
game:GetService("InsertService"):SetAssetUrl("http://assetgame.roblox.com/Asset/?id=%d")
game:GetService("InsertService"):SetAssetVersionUrl("http://assetgame.roblox.com/Asset/?assetversionid=%d")
pcall(function() game:GetService("SocialService"):SetFriendUrl("http://assetgame.roblox.com/Game/LuaWebService/HandleSocialRequest.ashx?method=IsFriendsWith&playerid=%d&userid=%d") end)
pcall(function() game:GetService("SocialService"):SetBestFriendUrl("http://assetgame.roblox.com/Game/LuaWebService/HandleSocialRequest.ashx?method=IsBestFriendsWith&playerid=%d&userid=%d") end)
pcall(function() game:GetService("SocialService"):SetGroupUrl("http://assetgame.roblox.com/Game/LuaWebService/HandleSocialRequest.ashx?method=IsInGroup&playerid=%d&groupid=%d") end)
pcall(function() game:GetService("SocialService"):SetGroupRankUrl("http://assetgame.roblox.com/Game/LuaWebService/HandleSocialRequest.ashx?method=GetGroupRank&playerid=%d&groupid=%d") end)
pcall(function() game:GetService("SocialService"):SetGroupRoleUrl("http://assetgame.roblox.com/Game/LuaWebService/HandleSocialRequest.ashx?method=GetGroupRole&playerid=%d&groupid=%d") end)
pcall(function() game:GetService("GamePassService"):SetPlayerHasPassUrl("http://assetgame.roblox.com/Game/GamePass/GamePassHandler.ashx?Action=HasPass&UserID=%d&PassID=%d") end)
pcall(function() game:GetService("MarketplaceService"):SetProductInfoUrl("https://api.roblox.com/marketplace/productinfo?assetId=%d") end)
pcall(function() game:GetService("MarketplaceService"):SetDevProductInfoUrl("https://api.roblox.com/marketplace/productDetails?productId=%d") end)
pcall(function() game:GetService("MarketplaceService"):SetPlayerOwnsAssetUrl("https://api.roblox.com/ownership/hasasset?userId=%d&assetId=%d") end)
pcall(function() game:SetScreenshotInfo("") end)
pcall(function() game:SetVideoInfo("") end)
game:HttpPost("https://data.roblox.com/Error/Lua.ashx", "Visit.lua: " .. err)

These are all real functions either locked away from devs or not even displayed on the wiki, that intellisense doesn’t display. I think it’s fair to assume Roblox engineers have a flag or bool somewhere to toggle to give themselves a more extensive version of intellisense with these functions indexed.

Roblox has alot of weird internal code: https://www.roblox.com/Game/Visit.ashx

3 Likes

I don’t understand your post at all. How is this not a bug? I can’t use any of these in my scripts, so why would I ever want to see these in my Intellisense?

As I said it’s for the person editing the CoreScript

And

Think as if you where the one who had to write the code for the Auto Complete function

Showing all the Auto Complete options available is way easier than filtering the hidden ones.

So then the person editing the CoreScripts can have a special preference for them so that every other developer doesn’t have to see it.

Your last point doesn’t make any sense in the slightest. Fixing this is a simple if statement.

On the contrary, afaik, intellisense entries are manually added:

image

It’d be more of a burden to add API members unavailable to devs to the ReflectionMetadata file.

Please remember that I have no idea this is just from my opinion and experience.

So if anyone that knows better please correct me if I am wrong.

Even tho it’s an easy fix as you say what good would it do?

Just ignore it if you can’t use it.

The good it would do is I see more relevant Intellisense.

It’s particularly annoying when Players.PlayerRejoining is listed above Players.PlayerRemoving, because i instinctively press enter as soon as intellisense comes up, only to find that i’ve typed the wrong event either in reading along or as an error in the output.

1 Like

I feel your pain, but that’s your fault for being careless.

Anyways was this happening before or just now?

1 Like

now lol

Intellisense seems to have gotten some upgrade i’m just now noticing… It now will hide FireServer or FireClient as well as with OnServerEvent or OnClientEvent based on what kind of script you’re typing in…

ServerScript

image
image

LocalScript

image
image

5 Likes