Advertisement
Damiankao63

roblox keyless headless script

Jun 5th, 2025 (edited)
11
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.71 KB | None | 0 0
  1. --or just copy this:loadstring(game:HttpGet('https://pastebin.com/raw/imDcmf3y'))()
  2. --your allowed to showcase this script :D
  3. --made by gdamiano on youtube
  4. --tell me in the comments if I should make for R15
  5. --THIS SCRIPT ONLY WORKS FOR R6
  6. -- Services
  7. local TweenService = game:GetService("TweenService")
  8. local UserInputService = game:GetService("UserInputService")
  9. local Players = game:GetService("Players")
  10.  
  11. local player = Players.LocalPlayer
  12. local screenGui = Instance.new("ScreenGui")
  13. screenGui.Name = "CustomGui"
  14. screenGui.ResetOnSpawn = false
  15. screenGui.Parent = player:WaitForChild("PlayerGui")
  16.  
  17. -- === Utility: Rounded Corners ===
  18. local function addRoundness(uiElement, radius)
  19. local corner = Instance.new("UICorner")
  20. corner.CornerRadius = UDim.new(0, radius or 12)
  21. corner.Parent = uiElement
  22. end
  23.  
  24. -- === Notification Label ===
  25. local notification = Instance.new("TextLabel")
  26. notification.Size = UDim2.new(0, 200, 0, 35)
  27. notification.Position = UDim2.new(0.5, -100, 0.85, 0)
  28. notification.BackgroundTransparency = 0.2
  29. notification.BackgroundColor3 = Color3.fromRGB(80, 80, 80)
  30. notification.TextColor3 = Color3.fromRGB(230, 230, 230)
  31. notification.TextScaled = true
  32. notification.Text = ""
  33. notification.Visible = false
  34. notification.Parent = screenGui
  35. addRoundness(notification)
  36.  
  37. local function showNotification(text)
  38. notification.Text = text
  39. notification.Visible = true
  40. notification.TextTransparency = 1
  41. notification.BackgroundTransparency = 1
  42.  
  43. local fadeIn = TweenService:Create(notification, TweenInfo.new(0.3), {
  44. TextTransparency = 0,
  45. BackgroundTransparency = 0.2
  46. })
  47. fadeIn:Play()
  48. fadeIn.Completed:Wait()
  49.  
  50. task.wait(1)
  51.  
  52. local fadeOut = TweenService:Create(notification, TweenInfo.new(0.3), {
  53. TextTransparency = 1,
  54. BackgroundTransparency = 1
  55. })
  56. fadeOut:Play()
  57. fadeOut.Completed:Wait()
  58. notification.Visible = false
  59. end
  60.  
  61. -- === Smooth Feedback Animation ===
  62. local function animateClick(uiElement)
  63. local origColor = uiElement.BackgroundColor3
  64. local tween = TweenService:Create(uiElement, TweenInfo.new(0.1), {
  65. BackgroundColor3 = origColor:Lerp(Color3.new(1, 1, 1), 0.1)
  66. })
  67. tween:Play()
  68. tween.Completed:Wait()
  69. TweenService:Create(uiElement, TweenInfo.new(0.2), {
  70. BackgroundColor3 = origColor
  71. }):Play()
  72. end
  73.  
  74. -- === Background UI Holder ===
  75. local uiHolder = Instance.new("Frame")
  76. uiHolder.Size = UDim2.new(0, 450, 0, 260)
  77. uiHolder.Position = UDim2.new(0.5, -225, 0.4, 0)
  78. uiHolder.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  79. uiHolder.BackgroundTransparency = 0.3
  80. uiHolder.BorderSizePixel = 0
  81. uiHolder.Parent = screenGui
  82. addRoundness(uiHolder)
  83.  
  84. -- === Main Frame for Headless Button ===
  85. local frame = Instance.new("Frame")
  86. frame.Name = "MainFrame"
  87. frame.Size = UDim2.new(0, 120, 0, 120)
  88. frame.Position = UDim2.new(0, 20, 0.5, -60)
  89. frame.BackgroundColor3 = Color3.fromRGB(80, 80, 80)
  90. frame.BorderSizePixel = 0
  91. frame.Active = true
  92. frame.Parent = uiHolder
  93. addRoundness(frame)
  94.  
  95. -- === Headless Button ===
  96. local button = Instance.new("TextButton")
  97. button.Size = UDim2.new(1, 0, 1, 0)
  98. button.BackgroundColor3 = Color3.fromRGB(120, 120, 120)
  99. button.Text = "Headless"
  100. button.TextColor3 = Color3.new(1, 1, 1)
  101. button.Font = Enum.Font.GothamSemibold
  102. button.TextScaled = true
  103. button.Parent = frame
  104. addRoundness(button)
  105.  
  106. -- === Size Input Box ===
  107. local sizeInput = Instance.new("TextBox")
  108. sizeInput.Size = UDim2.new(0, 120, 0, 40)
  109. sizeInput.Position = UDim2.new(0, 160, 0.15, 0)
  110. sizeInput.PlaceholderText = "Size (e.g. 1.5)"
  111. sizeInput.Text = ""
  112. sizeInput.BackgroundColor3 = Color3.fromRGB(100, 100, 100)
  113. sizeInput.TextColor3 = Color3.fromRGB(255, 255, 255)
  114. sizeInput.Font = Enum.Font.Gotham
  115. sizeInput.TextScaled = true
  116. sizeInput.ClearTextOnFocus = false
  117. sizeInput.Parent = uiHolder
  118. addRoundness(sizeInput)
  119.  
  120. -- === Resize Button ===
  121. local resizeButton = Instance.new("TextButton")
  122. resizeButton.Size = UDim2.new(0, 120, 0, 40)
  123. resizeButton.Position = UDim2.new(0, 160, 0.5, -20)
  124. resizeButton.BackgroundColor3 = Color3.fromRGB(130, 130, 130)
  125. resizeButton.Text = "Change Size!"
  126. resizeButton.TextColor3 = Color3.new(1, 1, 1)
  127. resizeButton.Font = Enum.Font.GothamSemibold
  128. resizeButton.TextScaled = true
  129. resizeButton.Parent = uiHolder
  130. addRoundness(resizeButton)
  131.  
  132. -- === Drag Utility ===
  133. local function makeDraggable(uiElement)
  134. local dragging, dragInput, dragStart, startPos
  135.  
  136. uiElement.InputBegan:Connect(function(input)
  137. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  138. dragging = true
  139. dragStart = input.Position
  140. startPos = uiElement.Position
  141.  
  142. input.Changed:Connect(function()
  143. if input.UserInputState == Enum.UserInputState.End then
  144. dragging = false
  145. end
  146. end)
  147. end
  148. end)
  149.  
  150. uiElement.InputChanged:Connect(function(input)
  151. if input.UserInputType == Enum.UserInputType.MouseMovement then
  152. dragInput = input
  153. end
  154. end)
  155.  
  156. UserInputService.InputChanged:Connect(function(input)
  157. if input == dragInput and dragging then
  158. local delta = input.Position - dragStart
  159. uiElement.Position = UDim2.new(
  160. startPos.X.Scale,
  161. startPos.X.Offset + delta.X,
  162. startPos.Y.Scale,
  163. startPos.Y.Offset + delta.Y
  164. )
  165. end
  166. end)
  167. end
  168.  
  169. -- === Resize Utility ===
  170. local function makeResizable(uiElement)
  171. local resizer = Instance.new("Frame")
  172. resizer.Size = UDim2.new(0, 10, 0, 10)
  173. resizer.AnchorPoint = Vector2.new(1, 1)
  174. resizer.Position = UDim2.new(1, 0, 1, 0)
  175. resizer.BackgroundColor3 = Color3.fromRGB(150, 150, 150)
  176. resizer.BorderSizePixel = 0
  177. resizer.Parent = uiElement
  178. resizer.Active = true
  179. addRoundness(resizer, 4)
  180.  
  181. local resizing = false
  182. local startSize, startPos
  183.  
  184. resizer.InputBegan:Connect(function(input)
  185. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  186. resizing = true
  187. startSize = uiElement.Size
  188. startPos = input.Position
  189. input.Changed:Connect(function()
  190. if input.UserInputState == Enum.UserInputState.End then
  191. resizing = false
  192. end
  193. end)
  194. end
  195. end)
  196.  
  197. UserInputService.InputChanged:Connect(function(input)
  198. if resizing and input.UserInputType == Enum.UserInputType.MouseMovement then
  199. local delta = input.Position - startPos
  200. uiElement.Size = UDim2.new(
  201. startSize.X.Scale,
  202. math.max(startSize.X.Offset + delta.X, 40),
  203. startSize.Y.Scale,
  204. math.max(startSize.Y.Offset + delta.Y, 40)
  205. )
  206. end
  207. end)
  208. end
  209.  
  210. -- === Apply Interactions ===
  211. makeDraggable(uiHolder)
  212. makeDraggable(button)
  213. makeResizable(button)
  214. makeResizable(sizeInput)
  215. makeResizable(resizeButton)
  216.  
  217. -- === Headless Button Click: Animation + Notification ===
  218. button.MouseButton1Click:Connect(function()
  219. animateClick(button)
  220. showNotification("Headless Button Clicked!")
  221.  
  222. local character = player.Character or player.CharacterAdded:Wait()
  223. local humanoid = character:FindFirstChildOfClass("Humanoid")
  224.  
  225. if humanoid then
  226. local animator = humanoid:FindFirstChildOfClass("Animator")
  227. if not animator then
  228. animator = Instance.new("Animator")
  229. animator.Parent = humanoid
  230. end
  231.  
  232. local animation = Instance.new("Animation")
  233. animation.AnimationId = "rbxassetid://109950701751520"
  234.  
  235. local track = animator:LoadAnimation(animation)
  236. track.Priority = Enum.AnimationPriority.Action -- Blend with movement
  237. track.Looped = false
  238. track:Play()
  239. else
  240. warn("Humanoid not found; cannot play animation.")
  241. end
  242. end)
  243.  
  244. -- === Resize Button Logic ===
  245. resizeButton.MouseButton1Click:Connect(function()
  246. local scale = tonumber(sizeInput.Text)
  247. if scale and scale > 0 then
  248. local newSize = UDim2.new(0, 120 * scale, 0, 120 * scale)
  249. local tween = TweenService:Create(frame, TweenInfo.new(0.3), {
  250. Size = newSize
  251. })
  252. tween:Play()
  253. showNotification("Resized successfully")
  254. else
  255. showNotification("Invalid size input")
  256. end
  257. animateClick(resizeButton)
  258. end)
  259.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement