Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local ClanLeaders = game.Workspace.ClanLeaders
- local Debounce,Debounce2 = {},{}
- local function OneClass(Class, Min)
- if Class.Value >= Min then
- return true, "You Have Met The Requirements"
- else
- return false, "You Don't Met the Requirements"
- end
- end
- local function TwoClass(C1,C2,Min,Min2)
- if C1.Value >= Min and C2.Value >= Min2 then
- return true, "You Have Met The Requirements"
- else
- return false, "You Don't Met the Requirements"
- end
- end
- local function Finally(Frame, NewText)
- Frame.TextLabel.Text = NewText
- wait(1)
- Frame.TextLabel.Text = "Would you like to join this clan?"
- Frame.Visible = false
- end
- ClanLeaders.BloxSennin.HumanoidRootPart.ClickDetector.MouseClick:Connect(function(Player)
- if Debounce[Player] then return end
- Debounce[Player] = true
- local Frame = Player:WaitForChild("PlayerGui").ClanUI.Frame
- local Strength = Player:WaitForChild("PowerFolder").Strength
- local Clan = Player:WaitForChild("PowerFolder").ClanName
- Frame.Visible = true
- Frame.Yes.MouseButton1Down:Connect(function()
- local IsMet,Txt = OneClass(Strength,35)
- if IsMet then
- Clan.Value = "Street Killers"
- Finally(Frame,Txt)
- else
- Finally(Frame,Txt)
- end
- end)
- Frame.No.MouseButton1Down:Connect(function()
- Frame.Visible = false
- end)
- Debounce[Player] = nil
- end)
- ClanLeaders.Rrowipw.HumanoidRootPart.ClickDetector.MouseClick:Connect(function(Player)
- if Debounce2[Player] then return end
- Debounce2[Player] = true
- local Frame = Player:WaitForChild("PlayerGui").ClanUI.Frame
- local Strength = Player:WaitForChild("PowerFolder").Strength
- local Defense = Player:WaitForChild("PowerFolder").Defense
- local Clan = Player:WaitForChild("PowerFolder").ClanName
- Frame.Visible = true
- Frame.Yes.MouseButton1Down:Connect(function()
- local IsMet,Txt = TwoClass(Strength,Defense,25,20)
- if IsMet then
- Clan.Value = "Crazy Heads"
- Finally(Frame,Txt)
- else
- Finally(Frame,Txt)
- end
- end)
- Frame.No.MouseButton1Down:Connect(function()
- Frame.Visible = false
- end)
- Debounce2[Player] = nil
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement