Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local screen1 = script.Parent.Parent.Parent
- local screen2 = script.Parent.Parent.Parent.Parent.Working
- local usernameset = screen2.Working
- local Player = game.Players.LocalPlayer
- local RE = game.ReplicatedStorage.Events.ClientShow4
- local groupId = 3555014
- local uservalue = game.ReplicatedStorage.CurrentlyWorking
- local users = script.Parent.Parent.Parent.Parent.Parent:WaitForChild("Users")
- local su1 = users:WaitForChild("SU1")
- local su2 = users:WaitForChild("SU2")
- local su3 = users:WaitForChild("SU3")
- local su4 = users:WaitForChild("SU4")
- local su5 = users:WaitForChild("SU5")
- local su6 = users:WaitForChild("SU6")
- local su7 = users:WaitForChild("SU7")
- local su8 = users:WaitForChild("SU8")
- local su9 = users:WaitForChild("SU9")
- script.Parent.MouseButton1Click:Connect(function()
- if Player:GetRankInGroup(groupId) < 6 or su1.Value ~= "" or su2.Value == Player.Name or su3.Value == Player.Name or su4.Value == Player.Name or su5.Value == Player.Name or su6.Value == Player.Name or su7.Value == Player.Name or su8.Value == Player.Name or su9.Value == Player.Name then
- print("Rank too low")
- else
- su1.Value = Player.Name
- usernameset.Text = Player.Name .. " IS CURRENTLY WORKING"
- uservalue.Value = usernameset.Text
- screen1.Visible = false
- screen2.Visible = true
- RE:FireServer()
- end
- end)
- RE.OnClientEvent:Connect(function(taker)
- usernameset.Text = taker.Name .. " IS CURRENTLY WORKING"
- uservalue.Value = usernameset.Text
- screen1.Visible = false
- screen2.Visible = true
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement