Advertisement
Averagevoidman

BssButtonsScripts

Apr 23rd, 2023
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.12 KB | Source Code | 0 0
  1. -- Create KocmocPremium button
  2. local kocmocPremium = Instance.new("TextButton")
  3. kocmocPremium.Name = "KocmocPremium"
  4. kocmocPremium.Text = "KocmocPremium"
  5. kocmocPremium.AnchorPoint = Vector2.new(1, 0.5)
  6. kocmocPremium.Position = UDim2.new(1, -10, 0.5, -30)
  7. kocmocPremium.Size = UDim2.new(0, 150, 0, 50)
  8. kocmocPremium.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  9. kocmocPremium.BorderSizePixel = 0
  10. kocmocPremium.Font = Enum.Font.SourceSans
  11. kocmocPremium.TextColor3 = Color3.fromRGB(0, 0, 0)
  12. kocmocPremium.TextScaled = true
  13. kocmocPremium.ZIndex = 2
  14. kocmocPremium.Parent = game.Players.LocalPlayer.PlayerGui
  15.  
  16. -- Create HistyHub button
  17. local histyHub = Instance.new("TextButton")
  18. histyHub.Name = "HistyHub"
  19. histyHub.Text = "HistyHub"
  20. histyHub.AnchorPoint = Vector2.new(1, 0.5)
  21. histyHub.Position = UDim2.new(1, -10, 0.5, 20)
  22. histyHub.Size = UDim2.new(0, 150, 0, 50)
  23. histyHub.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  24. histyHub.BorderSizePixel = 0
  25. histyHub.Font = Enum.Font.SourceSans
  26. histyHub.TextColor3 = Color3.fromRGB(0, 0, 0)
  27. histyHub.TextScaled = true
  28. histyHub.ZIndex = 2
  29. histyHub.Parent = game.Players.LocalPlayer.PlayerGui
  30.  
  31. -- Detect touch input and adjust button position and size
  32. local function onTouch(input, gameProcessedEvent)
  33.     if input.UserInputType == Enum.UserInputType.Touch then
  34.         -- Adjust KocmocPremium button
  35.         kocmocPremium.Size = UDim2.new(0, 200, 0, 60)
  36.         kocmocPremium.Position = UDim2.new(1, -10, 0.5, -50)
  37.        
  38.         -- Adjust HistyHub button
  39.         histyHub.Size = UDim2.new(0, 200, 0, 60)
  40.         histyHub.Position = UDim2.new(1, -10, 0.5, 30)
  41.     end
  42. end
  43.  
  44. game:GetService("UserInputService").InputBegan:connect(onTouch)
  45.  
  46. -- When KocmocPremium is clicked, execute the loadstring
  47. kocmocPremium.MouseButton1Click:connect(function()
  48.     loadstring(game:HttpGet("https://raw.githubusercontent.com/Boxking776/kocmoc/main/kocmoc-remastered.lua"))()
  49. end)
  50.  
  51. -- When HistyHub is clicked, execute the loadstring
  52. histyHub.MouseButton1Click:connect(function()
  53.     loadstring(game:HttpGet("https://raw.githubusercontent.com/Historia00012/HISTORIAHUB/main/BSS%20FREE"))()
  54. end)
  55.  
Tags: Scripts
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement