Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local debounce = true
- local screen = game.Workspace.STV2.TV.SurfaceGui.Frame
- function opened(name,string1)
- screen.s1.Text = screen.s2.Text
- wait()
- screen.s2.Text = screen.s3.Text
- wait()
- screen.s3.Text = screen.s4.Text
- wait()
- screen.s4.Text = screen.s5.Text
- wait()
- screen.s5.Text = (string1)
- end
- function closed(name,string1)
- screen.s1.Text = screen.s2.Text
- wait()
- screen.s2.Text = screen.s3.Text
- wait()
- screen.s3.Text = screen.s4.Text
- wait()
- screen.s4.Text = screen.s5.Text
- wait()
- screen.s5.Text = (string1)
- end
- function Trolol()
- script.Parent.CanCollide = false
- script.Parent.Transparency = 0.5
- wait(2)
- script.Parent.CanCollide = true
- script.Parent.Transparency = 1
- wait()
- end
- function onTouched(hit)
- if debounce == true then
- debounce = false
- local human = hit.Parent:findFirstChild("Humanoid")
- if (human ~= nil ) then
- if game.Players:GetPlayerFromCharacter(human.Parent):GetRankInGroup(76744) > 150 then
- opened(human.Parent.Name,("Person passed test, access granted for: " ..human.Parent.Name.. "; rank = " ..game.Players:GetPlayerFromCharacter(human.Parent):GetRankInGroup(76744).. " [System]: DATA STORED"))
- print("Person passed test, access granted for: " ..human.Parent.Name.. "; rank = " ..game.Players:GetPlayerFromCharacter(human.Parent):GetRankInGroup(76744).. " [System]: DATA STORED")
- Trolol()
- else
- print("Person NOT passed test, access denied for: " ..human.Parent.Name.. "; rank = " ..game.Players:GetPlayerFromCharacter(human.Parent):GetRankInGroup(76744).. " [System]: DATA STORED")
- closed(human.Parent.Name,("Person passed test, access denied for: " ..human.Parent.Name.. "; rank = " ..game.Players:GetPlayerFromCharacter(human.Parent):GetRankInGroup(76744).. " [System]: DATA STORED"))
- human.Health = 0
- end
- end
- wait(1)
- debounce = true
- end
- end
- script.Parent.Touched:connect(onTouched)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement