Home   Search   Register  
Help Center  > Scripting Help  > Is there a way of detecting a user's GOODBLOX ID in a script?  
 
Display using:  
Previous Thread :: Next Thread 
 Author  Thread: Is there a way of detecting a user's GOODBLOX ID in a script?
Luximoz is offline. Last active: 7/13/2023 7:42:47 PM 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 is offline. Last active: 2/27/2021 8:39:58 PM 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 is offline. Last active: 7/13/2023 7:42:47 PM 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 is offline. Last active: 2/27/2021 10:19:58 PM 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
Scriptabled is offline. Last active: 3/7/2024 1:35:17 AM Scriptabled
Joined: 18 Aug 2020
Total Posts: 317
 
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
Previous Thread :: Next Thread 
Page 1 of 1
 
GoodBlox Forum  > Help Center  > Scripting Help  > Is there a way of detecting a user's GOODBLOX ID in a script?