Advertisement
SxScripting

Clan Script [2021]

Apr 5th, 2021
2,408
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.05 KB | None | 0 0
  1. local ClanLeaders = game.Workspace.ClanLeaders
  2. local Debounce,Debounce2 = {},{}
  3.  
  4. local function OneClass(Class, Min)
  5. if Class.Value >= Min then
  6. return true, "You Have Met The Requirements"
  7. else
  8. return false, "You Don't Met the Requirements"
  9. end
  10. end
  11.  
  12. local function TwoClass(C1,C2,Min,Min2)
  13. if C1.Value >= Min and C2.Value >= Min2 then
  14. return true, "You Have Met The Requirements"
  15. else
  16. return false, "You Don't Met the Requirements"
  17. end
  18. end
  19.  
  20. local function Finally(Frame, NewText)
  21. Frame.TextLabel.Text = NewText
  22. wait(1)
  23. Frame.TextLabel.Text = "Would you like to join this clan?"
  24. Frame.Visible = false
  25. end
  26.  
  27. ClanLeaders.BloxSennin.HumanoidRootPart.ClickDetector.MouseClick:Connect(function(Player)
  28. if Debounce[Player] then return end
  29. Debounce[Player] = true
  30.  
  31. local Frame = Player:WaitForChild("PlayerGui").ClanUI.Frame
  32. local Strength = Player:WaitForChild("PowerFolder").Strength
  33. local Clan = Player:WaitForChild("PowerFolder").ClanName
  34. Frame.Visible = true
  35.  
  36. Frame.Yes.MouseButton1Down:Connect(function()
  37. local IsMet,Txt = OneClass(Strength,35)
  38. if IsMet then
  39. Clan.Value = "Street Killers"
  40. Finally(Frame,Txt)
  41. else
  42. Finally(Frame,Txt)
  43. end
  44. end)
  45.  
  46. Frame.No.MouseButton1Down:Connect(function()
  47. Frame.Visible = false
  48. end)
  49.  
  50. Debounce[Player] = nil
  51. end)
  52.  
  53. ClanLeaders.Rrowipw.HumanoidRootPart.ClickDetector.MouseClick:Connect(function(Player)
  54. if Debounce2[Player] then return end
  55. Debounce2[Player] = true
  56. local Frame = Player:WaitForChild("PlayerGui").ClanUI.Frame
  57. local Strength = Player:WaitForChild("PowerFolder").Strength
  58. local Defense = Player:WaitForChild("PowerFolder").Defense
  59. local Clan = Player:WaitForChild("PowerFolder").ClanName
  60. Frame.Visible = true
  61.  
  62. Frame.Yes.MouseButton1Down:Connect(function()
  63. local IsMet,Txt = TwoClass(Strength,Defense,25,20)
  64. if IsMet then
  65. Clan.Value = "Crazy Heads"
  66. Finally(Frame,Txt)
  67. else
  68. Finally(Frame,Txt)
  69. end
  70. end)
  71.  
  72. Frame.No.MouseButton1Down:Connect(function()
  73. Frame.Visible = false
  74. end)
  75.  
  76. Debounce2[Player] = nil
  77. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement