Luximoz
|
|
Joined: 19 Dec 2019 |
Total Posts: 39 |
|
|
Is there a way of detecting a user's GOODBLOX ID in a script?
Posted: 19 Feb 2021 01:51 AM
|
Or will it still just grab ROBLOX users' IDs? |
|
|
Report Abuse |
|
Gamer101
|
|
Joined: 22 Jan 2020 |
Total Posts: 646 |
|
|
Re: Is there a way of detecting a user's GOODBLOX ID in a script?
Posted: 19 Feb 2021 09:16 AM
|
aaaaw idk |
|
|
Report Abuse |
|
Luximoz
|
|
Joined: 19 Dec 2019 |
Total Posts: 39 |
|
|
Re: Is there a way of detecting a user's GOODBLOX ID in a script?
Posted: 19 Feb 2021 09:24 AM
|
bump to make admins notice cuz they'll probably know about this question and I need to know, I'm really going to need this for a place I'm making... |
|
|
Report Abuse |
|
RGT
|
|
Joined: 31 Oct 2019 |
Total Posts: 76 |
|
|
Re: Is there a way of detecting a user's GOODBLOX ID in a script?
Posted: 23 Feb 2021 13:17 PM
|
You can get a user's ID ingame by checking the player's "userId" property in their instance under Players. For example, you can make a brick that checks the user id when touched:
--
local brick = script.Parent
function OnTouch(hit)
if hit.Parent:FindFirstChild("Humanoid") then
local char = hit.Parent
local player = game.Players:GetPlayerFromCharacter(char)
IDYouWantHere = 108
if player.userId == IDYouWantHere then
char.Humanoid.MaxHealth = 200
char.Humanoid.Health = 200
end
end
end
brick.Touched:connect(OnTouch) |
|
|
Report Abuse |
|
|
Re: Is there a way of detecting a user's GOODBLOX ID in a script?
Posted: 23 Feb 2021 20:18 PM
|
how in frick should we know |
|
|
Report Abuse |
|