Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local ReplicatedStorage = game:WaitForChild("ReplicatedStorage")
- local RemoteEvents = ReplicatedStorage:WaitForChild("RemoteEvents")
- local WaitingFrame = script.Parent
- RemoteEvents.AddWaitingPlayer.OnClientEvent:Connect(function(plr)
- local frame = game:WaitForChild("ReplicatedFirst"):WaitForChild("WaitingPlayerFrame"):Clone()
- frame.Name = plr.UserId
- frame.Parent = WaitingFrame.PlayersFrame
- frame.PlayerName.Text = plr.Name
- frame.PlayerImage.Image = game.Players:GetUserThumbnailAsync(plr.UserId,Enum.ThumbnailType.HeadShot,Enum.ThumbnailSize.Size420x420)
- end)
- RemoteEvents.RemoveWaitingPlayer.OnClientEvent:Connect(function(plr)
- local frame = WaitingFrame.PlayersFrame:FindFirstChild(plr.UserId)
- if frame then
- frame:Destroy()
- end
- end)
- ---------------------------------------------------------------------------------------------------------------------------
- local ReplicatedStorage = game:WaitForChild("ReplicatedStorage")
- local RemoteEvents = ReplicatedStorage:WaitForChild("RemoteEvents")
- RemoteEvents.AddWaitingPlayer.OnServerEvent:Connect(function(plr)
- RemoteEvents.AddWaitingPlayer:FireAllClients(plr)
- end)
- RemoteEvents.RemoveWaitingPlayer.OnServerEvent:Connect(function(plr)
- RemoteEvents.RemoveWaitingPlayer:FireAllClients(plr)
- end)
- ---------------------------------------------------------------------------------------------------------------------------
- local ReplicatedStorage = game:WaitForChild("ReplicatedStorage")
- local RemoteEvents = ReplicatedStorage:WaitForChild("RemoteEvents")
- local TweenService = game:GetService("TweenService")
- local Menu = workspace:WaitForChild("CamaraMenu")
- repeat Camara = workspace.CurrentCamera
- until Camara == workspace.CurrentCamera
- function CamaraPosicion(Posicion,TweenTime)
- TweenService:Create(Camara,TweenInfo.new(TweenTime,Enum.EasingStyle.Linear),{CFrame = Posicion}):Play()
- end
- local Play = script.Parent
- local Back = script.Parent.Parent.BackMenu
- local WaitingFrame = script.Parent.Parent.WaitingFrame
- Play.MouseButton1Click:Connect(function()
- Play.Visible = false
- Play.Parent.Shop.Visible = false
- Play.Parent.Titulo.Visible = false
- CamaraPosicion(Menu.CamaraPart2,1)
- wait(1)
- Back.Visible = true
- WaitingFrame.Visible = true
- RemoteEvents.AddWaitingPlayer:FireServer()
- end)
- ---------------------------------------------------------------------------------------------------------------------------
- local ReplicatedStorage = game:WaitForChild("ReplicatedStorage")
- local RemoteEvents = ReplicatedStorage:WaitForChild("RemoteEvents")
- local TweenService = game:GetService("TweenService")
- local Menu = workspace:WaitForChild("CamaraMenu")
- repeat Camara = workspace.CurrentCamera
- until Camara == workspace.CurrentCamera
- function CamaraPosicion(Posicion,TweenTime)
- TweenService:Create(Camara,TweenInfo.new(TweenTime,Enum.EasingStyle.Linear),{CFrame = Posicion.CFrame}):Play()
- end
- local Play = script.Parent.Parent.Play
- local Shop = script.Parent.Parent.Shop
- local Back = script.Parent
- local WaitingFrame = script.Parent.Parent.WaitingFrame
- Back.MouseButton1Click:Connect(function()
- Back.Visible = false
- WaitingFrame.Visible = false
- RemoteEvents.RemoveWaitingPlayer:FireServer()
- CamaraPosicion(Menu.CamaraPart,1)
- wait(1)
- Play.Visible = true
- Shop.Visible = true
- Back.Parent.Titulo.Visible = true
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement