Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

how would i even go about makng a live visit counter?

would i need to use the place id? how would i ffind the visits? how would i make it update?

an someone help me i've never done that before..

1 answer

--settings
local updateTime = 3
local placeId = 2473334918

--constants
local link = "https://www.rprxy.xyz/games/"

--shortcuts
local Functions = game.ReplicatedStorage.Functions
local http = game:GetService("HttpService")

--functions
local NumberWithCommas = require(Functions.NumberWithCommas)


--update function
local function update()
	local web = http:GetAsync(link .. placeId)
	local start,last = web:find("Visits")
	
	repeat
		last = last + 1
	until tonumber(web:sub(last,last)) ~= nil or last > web:len()
	local mem = last
	repeat
		last = last + 1
	until web:sub(last,last) == ">" or last > web:len()
	
	local count = web:sub(mem,last-1)
	script.Parent.SurfaceGui.Count.Text = count
end
while true do
	update()
	wait(updateTime)
end

replace the PlaceID and UpdateTime

script taken from here: Click Me!

1 comment

0

If you're going to answer with a stolen script, you should at least explain how it works.

This discussion is preserved as it was. New answers, comments, and votes are closed.