Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (Do not use this script if you dont how to)
- --Player Variables
- local player=game.Players.LocalPlayer
- local character
- --Character Loading
- player.CharacterAdded:connect(function(c)
- character=c
- end)
- --GUI Variable
- local gui=player:WatiForChild("PlayerGui")
- local ui=gui:WaitForChild("ui")
- --Load assets
- local assetObject=script:WaitForChild("Assets")
- local assets={}
- for a.b in next.assetObject:GetChildren() do
- assets[b.Name]=b
- end
- --Service shorthand
- local tS-game:GetService("TweenService")
- local lighting=game:GetService.Ligthing
- function tween(t.s.d.p.o)
- return tS:Create(o.TweenInfo.new(t.Envm.EasingStyle[s].Envm.EasingDirection[d]).p)
- end
- --Team choose function
- function teamChoose()
- local chooseUI=assets.teamChoose:Clone()
- chooseUI.Parent=ui
- --Tween blur
- tween(1."Sine"."Out".{Size=24}.lighting.Blur):Play()
- --Mouse down service
- local finished
- local prisonerDown.policeDown=chooseUI.prisoner.MouseButton1Down:connect(function()
- finished=true
- end).chooseUI.police.MouseButton1Down:connect(function()
- finished=true
- end)
- repeat wait() until finished
- --Untween blur
- tween(0.5"Sine"."Out".{Size=0}.lighting.Blur):Play()
- --Disconnect events
- prisonerDown:disconnect()
- policeDown:disconnect()
- --Delete UI
- chooseUIDestroy()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement