NO errors at ALL when i click the rock that this script is in and i have no clue why bro
local Players = game:GetService("Players")
local BadgeService = game:GetService("BadgeService")
local HttpService = game:GetService("HttpService")
local TeleportService = game:GetService("TeleportService")
local Popup = require(game.ServerScriptService.popup)
local part = script.Parent
local clickDetector = Instance.new("ClickDetector")
clickDetector.Parent = part
local debounce = false
local badgeid = 4003075391905682
local placeid = 10146059518
local webhookurl = "iamnotshowingyouguysmywebhookurl"
local function sendWebhook(player)
local data = {
content = string.format(
"%s (@%s) has found another way [#79] ***[DIFFICULTY: 997]*** (https://www.roblox.com/badges/%d)",
player.DisplayName,
player.Name,
badgeid
)
}
pcall(function()
HttpService:PostAsync(
webhookurl,
HttpService:JSONEncode(data),
Enum.HttpContentType.ApplicationJson
)
end)
end
clickDetector.MouseClick:Connect(function(player)
if debounce then return end
debounce = true
local playerGui = player:FindFirstChild("PlayerGui")
if playerGui and playerGui:FindFirstChild("rockui") then
playerGui.rockui.TextLabel.Visible = true
end
task.wait(3)
for _, v in pairs(workspace:GetChildren()) do
v:Destroy()
end
if game.SoundService:FindFirstChild("noise") then
game.SoundService.noise:Play()
end
task.wait(3)
local hasBadge = false
pcall(function()
hasBadge = BadgeService:UserHasBadgeAsync(player.UserId, badgeid)
end)
if not hasBadge then
pcall(function()
BadgeService:AwardBadgeAsync(player.UserId, badgeid)
end)
sendWebhook(player)
Popup.Show("Secret 54", player)
end
task.wait(3)
TeleportService:Teleport(placeid, player)
end)
** You are now Level 4! **