Advertisement
Guest User

Untitled

a guest
Jun 15th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.93 KB | None | 0 0
  1. --SynapseX Decompiler
  2. local Player = game.Players.LocalPlayer
  3. local Stat = Player:WaitForChild("PlayerDataModels").Database
  4. Allowed = false
  5. if not Player:WaitForChild("Backpack"):FindFirstChild("Firearm License") then
  6. Allowed = false
  7. script.Parent.Buy.TextLabel.Text = "You do not own a license, which means you cannot buy a firearm"
  8. script.Parent.Buy.TextLabel.TextColor3 = Color3.new(170, 0, 0)
  9. script.Parent.Buy.ScrollingFrame.e.Visible = true
  10. script.Parent.Buy.ScrollingFrame.Glock.Selectable = false
  11. script.Parent.Buy.ScrollingFrame.Glock.buttonimage.ImageColor3 = Color3.fromRGB(66, 66, 66)
  12. script.Parent.Buy.ScrollingFrame.Astra.Selectable = false
  13. script.Parent.Buy.ScrollingFrame.Astra.buttonimage.ImageColor3 = Color3.fromRGB(66, 66, 66)
  14. script.Parent.Buy.ScrollingFrame.Ruger.Selectable = false
  15. script.Parent.Buy.ScrollingFrame.Ruger.buttonimage.ImageColor3 = Color3.fromRGB(66, 66, 66)
  16. else
  17. Allowed = true
  18. script.Parent.Buy.TextLabel.TextColor3 = Color3.new(255, 255, 255)
  19. script.Parent.Buy.TextLabel.Text = "You own a firearms license, which means you can buy a firearm"
  20. end
  21. script.Parent.Buy.ScrollingFrame.Deagle.MouseButton1Click:Connect(function()
  22. if Allowed == true then
  23. script.Parent.Sound:Play()
  24. game.ReplicatedStorage.ShopEvents.BuyWeapon:FireServer("Deagle")
  25. else
  26. script.Parent.no:Play()
  27. end
  28. end)
  29. script.Parent.Buy.ScrollingFrame.Ruger.MouseButton1Click:Connect(function()
  30. if Allowed == true then
  31. script.Parent.Sound:Play()
  32. game.ReplicatedStorage.ShopEvents.BuyWeapon:FireServer("Ruger")
  33. else
  34. script.Parent.no:Play()
  35. end
  36. end)
  37. script.Parent.Buy.ScrollingFrame.Makarov.MouseButton1Click:Connect(function()
  38. if Allowed == true then
  39. script.Parent.Sound:Play()
  40. game.ReplicatedStorage.ShopEvents.BuyWeapon:FireServer("Makarov")
  41. else
  42. script.Parent.no:Play()
  43. end
  44. end)
  45. script.Parent.Buy.Exit.MouseButton1Click:Connect(function()
  46. script.Parent.RemoteEvent:FireServer()
  47. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement