Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Player = game.Players.LocalPlayer
- local Camera = workspace.CurrentCamera
- local Devils = workspace:WaitForChild("Devils")
- local Sound = Instance.new("Sound")
- Sound.Parent = game.SoundService
- Sound.SoundId = "rbxassetid://216917652"
- Sound.Volume = 1
- local webhook_url = "PUT YOUR LINK HERE"
- local function discordNotify(location)
- local currentServer = Player.PlayerGui.StartMenu.PublicServers.ScrollingFrame["000"].ServerName.Text
- local response = syn.request(
- {
- Url = webhook_url,
- Method = 'POST',
- Headers = {
- ['Content-Type'] = 'application/json'
- },
- Body = game:GetService('HttpService'):JSONEncode({content = '@here Collector has spawned in server: '.. currentServer.. " at ".. location})
- }
- );
- end
- local CameraSet = false
- local DiscordSet = false
- local colorDict = {
- ["Plains"] = BrickColor.new("Dark stone grey");
- ["Jungle"] = BrickColor.new("Bronze");
- ["Desert"] = BrickColor.new("Fawn brown");
- ["Beach"] = BrickColor.new("Smoky grey");
- };
- pcall(function()
- Camera.CameraSubject = workspace["SmithingStation"]
- while wait() do
- for _, Room in pairs(Devils:GetChildren()) do
- if Room.Transparency == 1 or Room.CanCollide == false then
- if not CameraSet then
- Camera.CameraSubject = Room.Exit
- CameraSet = true
- end
- if not Sound.IsPlaying then
- Sound:Play()
- end
- if not DiscordSet then
- local color = Room.BrickColor
- local room
- for loc, c in pairs(colorDict) do
- if color == c then
- room = loc
- end
- end
- discordNotify(room)
- DiscordSet = true
- end
- end
- end
- if #Devils:GetChildren() ~= 4 then
- print("Condition 2 Met")
- if not Sound.IsPlaying then
- Sound:Play()
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement