0% found this document useful (0 votes)
32 views1 page

Script for User Notification in Game

This script notifies users when another player is using the same script in a game. It utilizes a specific communication channel to send and receive messages, ensuring that users are only notified once about each other. The script is designed for developers looking to implement user notifications easily in their game scripts.

Uploaded by

zarcyuva
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views1 page

Script for User Notification in Game

This script notifies users when another player is using the same script in a game. It utilizes a specific communication channel to send and receive messages, ensuring that users are only notified once about each other. The script is designed for developers looking to implement user notifications easily in their game scripts.

Uploaded by

zarcyuva
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

--[[

This example lets people using your script know a fellow user is in the game.

Hope this is useful to some developers who are new to scripting, but want to
implement something like this into their script easily.

]]
local number1, number2 = (ur number here), (ur number here)

local mod = loadstring(game:HttpGet('[Link]


CloudEditCameraCoordinateFrame/refs/heads/main/[Link]', true))()
local known_users = {}
--- pick a special channel
local channel = [Link](6348)
local func = [Link](function(Sender, num1, num2)
if [Link](known_users, [Link]) then return end -- ignore users who are
already labeled as using the same script
--if num1 ~= number1 or num2 ~= number2 then return end -- (OPTIONAL, FOR
DOUBLE CHECKING USER.)
print([Link].." is using the same script as you!") -- replace this with a
notification system if you wish
[Link](known_users, [Link]) -- make sure they dont get notified
about the same user.
end)

-- you can use any type of loop, but for simple sake lets just use a while wait.

while [Link](1) do
[Link](number1, number2)
end

You might also like