Advertisement
S4W77_SpiringCord

Hit Rocks Script (Works on boss fight)

Jun 17th, 2024 (edited)
626
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.79 KB | None | 0 0
  1. -- HIT SPIRIT ROCKS ON BOSS FIGHT!!!
  2. -- Made by Thyme
  3.  
  4. -- Gui to Lua
  5. -- Version: 3.6
  6.  
  7. -- Instances:
  8.  
  9. local UI = Instance.new("ScreenGui")
  10. local control = Instance.new("TextButton")
  11. local UICorner = Instance.new("UICorner")
  12. local time = Instance.new("TextButton")
  13. local UICorner_2 = Instance.new("UICorner")
  14.  
  15. -- Properties:
  16.  
  17. UI.Name = "UI"
  18. UI.Parent = game.CoreGui
  19. UI.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  20.  
  21. is_opened = false
  22.  
  23. control.Name = "control"
  24. control.Parent = UI
  25. control.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  26. control.BorderColor3 = Color3.fromRGB(0, 0, 0)
  27. control.BorderSizePixel = 0
  28. control.Position = UDim2.new(0.0287451521, 0, 0.587098241, 0)
  29. control.Size = UDim2.new(0, 46, 0, 32)
  30. control.Font = Enum.Font.Ubuntu
  31. control.Text = "OPEN"
  32. control.TextColor3 = Color3.fromRGB(0, 0, 0)
  33. control.TextScaled = true
  34. control.TextWrapped = true
  35. control.Draggable = true
  36. control.MouseButton1Click:Connect(function()
  37.     if is_opened == false then
  38.         time.Visible = true
  39.         control.Text = "CLOSE"
  40.         is_opened = true
  41.     else
  42.         time.Visible = false
  43.         control.Text = "OPEN"
  44.         is_opened = false
  45.     end
  46. end)
  47.  
  48. UICorner.Parent = control
  49.  
  50. time.Name = "time"
  51. time.Parent = UI
  52. time.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  53. time.BackgroundTransparency = 0.500
  54. time.BorderColor3 = Color3.fromRGB(0, 0, 0)
  55. time.BorderSizePixel = 0
  56. time.Position = UDim2.new(0.817132056, 0, 0.166689456, 0)
  57. time.Size = UDim2.new(0, 88, 0, 29)
  58. time.Font = Enum.Font.Ubuntu
  59. time.Text = "Hit Rock"
  60. time.TextColor3 = Color3.fromRGB(255, 255, 255)
  61. time.TextScaled = true
  62. time.Visible = false
  63. time.TextWrapped = true
  64. time.Draggable = true
  65. time.MouseButton1Click:Connect(function()
  66.     game.Workspace:WaitForChild("SpiritRock"):WaitForChild("DamageEvent"):FireServer()
  67. end)
  68.  
  69. UICorner_2.Parent = time
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement