Advertisement
CaliberMag

Untitled

Jun 7th, 2021 (edited)
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. local Players = game:GetService("Players")
  2.  
  3. if not Players.LocalPlayer then
  4. Players.PlayerAdded:Wait()
  5. end
  6. local Player = Players.LocalPlayer
  7.  
  8. local Config = {
  9. PlaceIDs = {
  10. ["ember"] = 4601350214;
  11. ["obelisk"] = 4601350809;
  12. ["nimbus"] = 4601350656;
  13. ["haze"] = 4601350760;
  14. ["dunes"] = 4601350394;
  15. ["storm"] = 5084678830;
  16. ["tempest"] = 6901575446;
  17. ["training"] = 5431071837;
  18. ["forest of embers"] = 5447073001;
  19.  
  20. };
  21. AlertID = {431839999};
  22. }
  23.  
  24. local Sound = Instance.new("Sound")
  25. Sound.Volume = 10
  26. Sound.Looped = _G.AlertLooped
  27. Sound.SoundId = "rbxassetid://"..Config.AlertID[1]
  28. Sound.Parent = workspace
  29.  
  30. local Script = workspace:WaitForChild("GLOBALTIME")
  31. local Item_Directory = Script:WaitForChild("clienttell")
  32.  
  33. local function Search()
  34. for _, Obj in pairs(Script:GetChildren()) do
  35. if Obj:IsA("Model") and Item_Directory:FindFirstChild(Obj.Name) then
  36. return true
  37. end
  38. end
  39. while Player ~= nil do
  40. Player:WaitForChild("startevent"):FireServer("createprivateserver", Config.PlaceIDs[string.lower(_G.Village)])
  41. wait(1)
  42. end
  43. end
  44.  
  45. if Item_Directory ~= nil then
  46. if Search() == true then
  47. Sound:Play()
  48. end
  49. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement