Advertisement
Richbadniss

This wont work

Nov 12th, 2020
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.57 KB | None | 0 0
  1. local Loadout = script.Parent.LoadOut
  2. local loadbutton = Loadout.LoadButten
  3.  
  4. local Settings = script.Parent.SettingsFrame.SettingsButten
  5. local SettingsHover = script.Parent.SettingsFrame.SettingsHover
  6.  
  7. local deployhover = script.Parent.PlayFrame.Play.DeployHover
  8.  
  9. local player = game.Players.LocalPlayer
  10. local character = player.CharacterAdded
  11. local mouse = player:GetMouse()
  12. local camera = game.Workspace.CurrentCamera
  13. local playbut = script.Parent.PlayFrame.Play.playButton
  14. local playframe = script.Parent.PlayFrame
  15. local UpdateButten1 = playframe.Update.UpdateButten
  16.  
  17. local Udates = script.Parent.Updates
  18. local Backbutten = Udates.BackButten
  19.  
  20. local defaltCframe = camera.CFrame
  21. local vew = 160
  22.  
  23.  
  24. playframe.Visible = true
  25.  
  26. function UpdateCamera()
  27.     camera.CFrame = game.Workspace.Camera2.CFrame
  28. end
  29.  
  30. game:GetService("RunService").RenderStepped:Connect(UpdateCamera)
  31.  
  32. script.Parent.PlayFrame.Play.playButton.MouseButton1Click:Connect(function()
  33.     script.Parent.SettingsFrame.Visible = false
  34.     player.CameraMode = Enum.CameraMode.LockFirstPerson
  35.     playframe.Visible = false
  36. end)
  37. local debounce = false
  38. UpdateButten1.MouseButton1Click:Connect(function()
  39.     Udates.Visible = true
  40.     if debounce == false then
  41.  
  42.         Backbutten.Selectable = false
  43.         Backbutten.Active= false
  44.         if Udates.Visible == true then
  45.            
  46.        
  47.         Backbutten.BackgroundColor3 = Color3.fromRGB(80, 80, 80)
  48.         Backbutten.Text = 3
  49.         wait(1)
  50.         Backbutten.Text = 2
  51.         wait(1)
  52.         Backbutten.Text = 1
  53.             wait(1)
  54.             print(Backbutten.Text)
  55.         Backbutten.Selectable = true
  56.         Backbutten.Active = true
  57.         Backbutten.BackgroundColor3 = Color3.fromRGB(85, 255, 127)
  58.         Backbutten.Text = "Okay"
  59.        
  60.             debounce = true
  61.         end
  62.     end
  63.     if debounce == true then
  64.         wait()
  65.         Backbutten.MouseButton1Click:Connect(function()
  66.             Udates.Visible = false
  67.         end)
  68.            
  69.     end
  70.    
  71. end)
  72.  
  73.  
  74. --// Made by: devalopertest \\-- // Cloning the wepones selected \\--
  75.  
  76.  
  77. local DEAGLE44Clone = game:GetService("ReplicatedStorage").ReadyClone.DEAGLE44
  78.  
  79. local GlockClone = game:GetService("ReplicatedStorage").ReadyClone.Glock17
  80.  
  81. local GoldenClone = game:GetService("ReplicatedStorage").ReadyClone.GoldenGun
  82.  
  83. playbut.MouseButton1Click:Connect(function()
  84.  
  85.  
  86.     local NewDeagle = DEAGLE44Clone:Clone()
  87.     NewDeagle.Parent = game:GetService("ReplicatedStorage").Models
  88.     --//Cloning Glock  
  89.     local NewGlock = GlockClone:Clone()
  90.     NewGlock.Parent = game:GetService("ReplicatedStorage").Models
  91.     ---//Cloning goldengun
  92.     local NewGoldenGun = GoldenClone:Clone()
  93.     NewGoldenGun.Parent = game:GetService("ReplicatedStorage").Models
  94.  
  95. end)
  96. --// teleporting players\\--
  97.  
  98. local BlueSpawn =  game.Workspace.BlueSpawn
  99.  
  100. local Player = game.Players.LocalPlayer
  101. local Character = Player.Character
  102.  
  103.  
  104.  
  105. playbut.MouseButton1Click:Connect(function()
  106.     Player.CameraMode = Enum.CameraMode.LockFirstPerson
  107.     if Player.Team == "Blue" then
  108.         Character.HumanoidRootPart.CFrame = workspace.BlueSpawn.CFrame
  109.     else
  110.         Character.HumanoidRootPart.CFrame = workspace.YellowSpawn.CFrame
  111.     end
  112. end)
  113.  
  114.  
  115.  
  116.  
  117. Settings.MouseEnter:Connect(function()
  118.     SettingsHover.Visible = true
  119. end)
  120.  
  121. Settings.MouseLeave:Connect(function()
  122.    
  123.     SettingsHover.Visible = false
  124. end)
  125. --// deploy
  126. playbut.MouseEnter:Connect(function()
  127.     deployhover.Visible = true
  128. end)
  129.  
  130. playbut.MouseLeave:Connect(function()
  131.  
  132.     deployhover.Visible = false
  133. end)
  134.  
  135. player.CharacterAdded:Connect(function()
  136.     if player:WaitForChild("Humanoid").Died then
  137.         player.CameraMode = Enum.CameraMode.Classic
  138.         game:GetService("ReplicatedStorage").Models:WaitForChild(DEAGLE44Clone,GlockClone,GoldenClone):Destroy()
  139.     end
  140. end)
  141.  
  142. local
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement