Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --// Fake Friend Joined Notifier Script //--
- -- This Script is EXTREMELY FUN to Troll with XD.
- -- It looks just like the regular system message
- -- so most people fall for it XD
- --// _____Made by NoahNation#5582_____ //--
- --// Settings (You May Edit) //--
- times = _G.times or 1 -- How many times to send the notification message per player.
- botMode = _G.botMode or false -- If this is set to true, it will leave the game after sending all the notifications, then it will rejoin. (NOTE: YOU MUST HAVE THIS SCRIPT OR A COPY OF THIS SCRIPT IN THE 'AUTOEXEC' FOLDER OF SYNAPSE FOR THIS SETTING TO WORK.)
- customName = _G.customName or '' -- A custom name to use. If you want to use a random friend from their friends list, leave this blank.
- --// Do Not Edit Below //--
- local percentComplete = 0
- local finished = false
- local h = Instance.new('Hint',workspace)
- game:GetService('RunService').RenderStepped:Connect(function()
- if not finished then
- percentComplete = ((_G.timesCompleted/_G.timesLeft)*100)
- wait()
- percentComplete = tostring(percentComplete)
- wait()
- h.Text = tostring(percentComplete)..'% Complete'
- if ((_G.timesCompleted/_G.timesLeft)*100) == 100 then
- finished = true
- h.Text = 'Done!'
- wait(3)
- h:Remove()
- end
- end
- end)
- if game.PlaceId == 4693806589 then
- game:GetService("TeleportService"):Teleport(3694166020)
- end
- if game.PlaceId ~= 4693806589 then
- for i = 1,times do
- _G.timesCompleted = i
- _G.timesLeft = times
- local plrs = game:GetService('Players')
- function getFriends(player)
- local Players = game:GetService("Players")
- local USERNAME = player.Name
- local function iterPageItems(pages)
- return coroutine.wrap(function()
- local pagenum = 1
- while true do
- for _, item in ipairs(pages:GetCurrentPage()) do
- coroutine.yield(item, pagenum)
- end
- if pages.IsFinished then
- break
- end
- pages:AdvanceToNextPageAsync()
- pagenum = pagenum + 1
- end
- end)
- end
- -- First, get the user ID of the player
- local userId = Players:GetUserIdFromNameAsync(USERNAME)
- -- Then, get a FriendPages object for their friends
- local friendPages = Players:GetFriendsAsync(userId)
- -- Iterate over the items in the pages. For FriendPages, these
- -- are tables of information about the friend, including Username.
- -- Collect each username in a table
- local usernames = {}
- for item, pageNo in iterPageItems(friendPages) do
- table.insert(usernames, item.Username)
- end
- wait()
- return usernames
- end
- for i,v in pairs(plrs:GetPlayers()) do
- if v~= game.Players.LocalPlayer then
- local friends = getFriends(v)
- if #friends > 0 then
- local randomFriend = friends[math.random(1,#friends)]
- username_here = randomFriend
- if customName ~= '' then
- username_here = customName
- end
- local text = '/w ' .. v.Name .. ' ##################################################################### {System} Your friend ' .. username_here .. ' has joined the game}'
- game:GetService('ReplicatedStorage').DefaultChatSystemChatEvents.SayMessageRequest:FireServer(text,'All')
- end
- end
- end
- end
- wait()
- finished = true
- if botMode then
- game:GetService('TeleportService'):Teleport(4693806589)
- end
- end
- --[[
- LOADSTRING VERISON:
- _G.customName = '' -- A custom name to use. If you want to use a random friend from their friends list, leave this blank.
- _G.times = 1 -- How many times to send the notification message per player.
- loadstring(game:HttpGet('https://pastebin.com/raw/M2RFa6V5',true))()
- ]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement