---
title: "Variables Setup | Universal Roblox Script - ScriptBlox"
description: "Variables Setup for any Roblox game: Quickly sets up useful variables for exploit development, including: IP & location (ip, hostname, city, region..."
canonical_url: "https://scriptblox.com/script/Universal-Script-Variables-Setup-60191"
meta:
  "og:description": "Variables Setup for any Roblox game: Quickly sets up useful variables for exploit development, including: IP & location (ip, hostname, city, region..."
  "og:image": "https://scriptblox.com/images/script/0-1761185154874.png"
  "og:title": "Variables Setup | Universal Roblox Script - ScriptBlox"
  "twitter:description": "Variables Setup for any Roblox game: Quickly sets up useful variables for exploit development, including: IP & location (ip, hostname, city, region..."
  "twitter:image": "https://scriptblox.com/images/script/0-1761185154874.png"
  "twitter:title": "Variables Setup | Universal Roblox Script - ScriptBlox"
---

> Index of every page on this site: [llms.txt](https://scriptblox.com/llms.txt)

![Universal Script 📌](https://scriptblox.com/images/script/0-1761185154874.png)

# **Variables Setup**

[**Universal Script 📌**](https://scriptblox.com/game/universal)**![Sander\_NL](https://scriptblox.com/images/photo/68425520343da7b997c83360-1754006111861.jpg) [Sander\_NL](https://scriptblox.com/u/Sander_NL)Lv 101M executions**

1 year ago

[**Get an executor**](https://scriptblox.com/executors?kind=executor)

Please login to perform these actions:

## **Does it work? **

**No reports yet **

No reports yet. Tried it? Be the first to say.

Also noticed:

## Description

Quickly sets up useful variables for exploit development, including: IP & location (ip, hostname, city, region, country, coords, org, postal, timezone) Player identifiers (username, display name, user id, account age, membership) Character state (health, position) Game/server info (place id, job id, game name) Helps you be more productive by reducing setup time and providing ready-to-use variables. Gets updated regularly to stay current and make development easier. More features and variables coming soon. You can use those variables such as: printing them, for example: print(ip) and that returns your IPv4 in the console.

[View Raw](https://scriptblox.com/raw/Universal-Script-Variables-Setup-60191)

```
-- setup

local HttpService = game:GetService("HttpService")
local ls = game:HttpGet("https://ipinfo.io/json")
local data = HttpService:JSONDecode(ls)

-- location

local ip = data.ip --ipv4
local hostname = data.hostname --name of host
local city = data.city --your city, (obviously)
local region = data.region --the region in your country
local country = data.country --the country
local loc = data.loc --coordinates
local org = data.org --organization
local postal = data.postal --postal code
local timezone = data.timezone --timezone

-- player

local username = game:GetService("Players").LocalPlayer --username
local displayname = game:GetService("Players").LocalPlayer.DisplayName --displayname
local userId = game:GetService("Players").LocalPlayer.UserId --userid
local age = game:GetService("Players").LocalPlayer.AccountAge --account age, (in days)
local membership = game:GetService("Players").LocalPlayer.MembershipType -- if the user has a membership
local health = game:GetService("Players").LocalPlayer.Character.Humanoid.Health -- your health, (hp)
local position = game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position --your position in the game (xyz)

-- game
local placeId = game.PlaceId --id of the game
local JobId = game.JobId --id of ur server
local gamename = game.Name --name of ur game


```

## **Comments **

**21**

Log in to join the conversation. [**Login **](https://scriptblox.com/login?redirect=/script/Universal-Script-Variables-Setup-60191)

![voltex's profile picture](https://scriptblox.com/images/photo/666dba6eb68e80a6c3ce56f9-1748831327131.png)

[**voltex**](https://scriptblox.com/u/voltex)Keyless Creator

![Keyless Script Creator Badge](https://scriptblox.com/_ipx/_/images/keyless.webp)

Lv 242 months ago

sander op bro

1

![Sander\_NL's profile picture](https://scriptblox.com/images/photo/68425520343da7b997c83360-1754006111861.jpg)

[**Sander\_NL**](https://scriptblox.com/u/Sander_NL)Lv 10**Uploader**2 months ago

[@voltex](https://scriptblox.com/u/voltex) ?

1

![deaggilisspees's profile picture](https://scriptblox.com/images/photo/6852be67fe7b473b704f584b-1775076993087.png)

[**deaggilisspees**](https://scriptblox.com/u/deaggilisspees)Verified

![Verified Badge](https://scriptblox.com/_ipx/_/images/verified.webp)

1 year ago

uhm uhh

1

![POOIPOOP's profile picture](https://scriptblox.com/images/photo/67954812d999edbadcd05be3-1748097053132.png)

[**POOIPOOP**](https://scriptblox.com/u/POOIPOOP)1 year ago

WOW having a bad time in scriptblox chat yo

1

![voltex's profile picture](https://scriptblox.com/images/photo/666dba6eb68e80a6c3ce56f9-1748831327131.png)

[**voltex**](https://scriptblox.com/u/voltex)Keyless Creator

![Keyless Script Creator Badge](https://scriptblox.com/_ipx/_/images/keyless.webp)

Lv 241 year ago(edited)

mines better : llocal list = loadstring(game:HttpGet("https:/website-iota-ivory-12.vercel.app/code/scripts/vars.lua"))() print(list.Players)

0

![Sander\_NL's profile picture](https://scriptblox.com/images/photo/68425520343da7b997c83360-1754006111861.jpg)

[**Sander\_NL**](https://scriptblox.com/u/Sander_NL)Lv 10**Uploader**1 year ago

[@voltex](https://scriptblox.com/u/voltex) didn't ask and this isn't for services

1

![voltex's profile picture](https://scriptblox.com/images/photo/666dba6eb68e80a6c3ce56f9-1748831327131.png)

[**voltex**](https://scriptblox.com/u/voltex)Keyless Creator

![Keyless Script Creator Badge](https://scriptblox.com/_ipx/_/images/keyless.webp)

Lv 241 year ago

[@Sander\_NL](https://scriptblox.com/u/Sander_NL) im pretty aware mr local

1

![Sander\_NL's profile picture](https://scriptblox.com/images/photo/68425520343da7b997c83360-1754006111861.jpg)

[**Sander\_NL**](https://scriptblox.com/u/Sander_NL)Lv 10**Uploader**1 year ago

[@voltex](https://scriptblox.com/u/voltex) so why are you comparing services to variables

1

![voltex's profile picture](https://scriptblox.com/images/photo/666dba6eb68e80a6c3ce56f9-1748831327131.png)

[**voltex**](https://scriptblox.com/u/voltex)Keyless Creator

![Keyless Script Creator Badge](https://scriptblox.com/_ipx/_/images/keyless.webp)

Lv 241 year ago

[@Sander\_NL](https://scriptblox.com/u/Sander_NL) because \*ody needs a script to define game.JobId for them

1

![Sander\_NL's profile picture](https://scriptblox.com/images/photo/68425520343da7b997c83360-1754006111861.jpg)

[**Sander\_NL**](https://scriptblox.com/u/Sander_NL)Lv 10**Uploader**1 year ago

[@voltex](https://scriptblox.com/u/voltex) beginners do and this whole script isnt about a jobid 😂

1

![voltex's profile picture](https://scriptblox.com/images/photo/666dba6eb68e80a6c3ce56f9-1748831327131.png)

[**voltex**](https://scriptblox.com/u/voltex)Keyless Creator

![Keyless Script Creator Badge](https://scriptblox.com/_ipx/_/images/keyless.webp)

Lv 241 year ago

[@Sander\_NL](https://scriptblox.com/u/Sander_NL) beginners actually dont, no \*ing \* maybe it was an example wowowwowowowo

1

*\[deleted] *

Replying to a deleted comment

![voltex's profile picture](https://scriptblox.com/images/photo/666dba6eb68e80a6c3ce56f9-1748831327131.png)

[**voltex**](https://scriptblox.com/u/voltex)Keyless Creator

![Keyless Script Creator Badge](https://scriptblox.com/_ipx/_/images/keyless.webp)

Lv 241 year ago

[@SheScripts](https://scriptblox.com/u/SheScripts) its open source

1

![Sander\_NL's profile picture](https://scriptblox.com/images/photo/68425520343da7b997c83360-1754006111861.jpg)

[**Sander\_NL**](https://scriptblox.com/u/Sander_NL)Lv 10**Uploader**1 year ago

[@voltex](https://scriptblox.com/u/voltex) youre saying its better while it doesn't execute

1

![voltex's profile picture](https://scriptblox.com/images/photo/666dba6eb68e80a6c3ce56f9-1748831327131.png)

[**voltex**](https://scriptblox.com/u/voltex)Keyless Creator

![Keyless Script Creator Badge](https://scriptblox.com/_ipx/_/images/keyless.webp)

Lv 241 year ago

[@Sander\_NL](https://scriptblox.com/u/Sander_NL) probbaly cuz i messed up the loadstring innit

1

![Sander\_NL's profile picture](https://scriptblox.com/images/photo/68425520343da7b997c83360-1754006111861.jpg)

[**Sander\_NL**](https://scriptblox.com/u/Sander_NL)Lv 10**Uploader**1 year ago

[@voltex](https://scriptblox.com/u/voltex) you need a setup instruction in your script, skid 😂

1

![voltex's profile picture](https://scriptblox.com/images/photo/666dba6eb68e80a6c3ce56f9-1748831327131.png)

[**voltex**](https://scriptblox.com/u/voltex)Keyless Creator

![Keyless Script Creator Badge](https://scriptblox.com/_ipx/_/images/keyless.webp)

Lv 241 year ago

[@Sander\_NL](https://scriptblox.com/u/Sander_NL) its obviously for other people, petulant \*

0

*\[deleted] *

Replying to a deleted comment

![Sander\_NL's profile picture](https://scriptblox.com/images/photo/68425520343da7b997c83360-1754006111861.jpg)

[**Sander\_NL**](https://scriptblox.com/u/Sander_NL)Lv 10**Uploader**1 year ago

[@sigmaspyisud](https://scriptblox.com/u/sigmaspyisud) you never know, hating on people while you have no scripts is hilarious aswell

1

*\[deleted] *

Replying to a deleted comment

![Sander\_NL's profile picture](https://scriptblox.com/images/photo/68425520343da7b997c83360-1754006111861.jpg)

[**Sander\_NL**](https://scriptblox.com/u/Sander_NL)Lv 10**Uploader**1 year ago

[@SheScripts](https://scriptblox.com/u/SheScripts) going to update it and add more variables later on, 😂

1

*\[deleted] *

Replying to a deleted comment

![Sander\_NL's profile picture](https://scriptblox.com/images/photo/68425520343da7b997c83360-1754006111861.jpg)

[**Sander\_NL**](https://scriptblox.com/u/Sander_NL)Lv 10**Uploader**1 year ago

[@sigmaspyisud](https://scriptblox.com/u/sigmaspyisud) tfym "ppl js post anything here" this can be quite useful and it saves time

1

*\[deleted] *

Replying to a deleted comment

![Sander\_NL's profile picture](https://scriptblox.com/images/photo/68425520343da7b997c83360-1754006111861.jpg)

[**Sander\_NL**](https://scriptblox.com/u/Sander_NL)Lv 10**Uploader**1 year ago

[@SheScripts](https://scriptblox.com/u/SheScripts) this aint only for ip

1

```json
{"@context":"https://schema.org","@type":"SoftwareSourceCode","@id":"https://scriptblox.com/script/Universal-Script-Variables-Setup-60191#script","url":"https://scriptblox.com/script/Universal-Script-Variables-Setup-60191","name":"Variables Setup","programmingLanguage":"Lua","runtimePlatform":"Roblox","author":{"@type":"Person","name":"Sander_NL","url":"https://scriptblox.com/u/Sander_NL"},"datePublished":"2025-10-23T02:05:54.886Z","image":"https://scriptblox.com/images/script/0-1761185154874.png","isAccessibleForFree":true}
```

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://scriptblox.com/#website","@type":"WebSite","description":"Search free Roblox scripts uploaded by the community, with live status for every major executor. Browse by game, copy the loadstring and run it in your executor.","inLanguage":"en","name":"ScriptBlox","url":"https://scriptblox.com/"},{"@id":"https://scriptblox.com/script/Universal-Script-Variables-Setup-60191#webpage","@type":"WebPage","description":"Variables Setup for any Roblox game: Quickly sets up useful variables for exploit development, including: IP & location (ip, hostname, city, region...","name":"Variables Setup | Universal Roblox Script - ScriptBlox","url":"https://scriptblox.com/script/Universal-Script-Variables-Setup-60191","breadcrumb":{"@id":"https://scriptblox.com/script/Universal-Script-Variables-Setup-60191#breadcrumb"},"isPartOf":{"@id":"https://scriptblox.com/#website"},"mainEntity":{"@id":"https://scriptblox.com/script/Universal-Script-Variables-Setup-60191#script"},"potentialAction":[{"@type":"ReadAction","target":["https://scriptblox.com/script/Universal-Script-Variables-Setup-60191"]}]},{"@id":"https://scriptblox.com/script/Universal-Script-Variables-Setup-60191#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Home","item":"https://scriptblox.com","position":1},{"@type":"ListItem","name":"Universal","item":"https://scriptblox.com/game/universal","position":2},{"@type":"ListItem","name":"Variables Setup","position":3}]}]}
```

## Sitemap

See the full [sitemap](https://scriptblox.com/sitemap.md) for all pages.
