Advertisement
Familycade

Untitled

Apr 28th, 2025 (edited)
17
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.48 KB | None | 0 0
  1. local Players = game:GetService("Players")
  2. local player = Players.LocalPlayer
  3. local RunService = game:GetService("RunService")
  4. local UserInputService = game:GetService("UserInputService")
  5.  
  6. -- VARIƁVEIS
  7. local humanoid
  8. local enabled = false
  9. local baseAnimationSpeed = 1
  10. local animationSpeed = baseAnimationSpeed
  11.  
  12. -- UI Setup
  13. local screenGui = Instance.new("ScreenGui", player:WaitForChild("PlayerGui"))
  14. screenGui.ResetOnSpawn = false
  15.  
  16. -- Frame
  17. local frame = Instance.new("Frame", screenGui)
  18. frame.Size = UDim2.new(0, 160, 0, 120)
  19. frame.Position = UDim2.new(0.5, -80, 0.2, 0)
  20. frame.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  21. frame.BorderSizePixel = 0
  22. Instance.new("UICorner", frame).CornerRadius = UDim.new(0, 8)
  23.  
  24. -- Header
  25. local header = Instance.new("TextLabel", frame)
  26. header.Size = UDim2.new(1, 0, 0, 30)
  27. header.BackgroundColor3 = Color3.fromRGB(15, 15, 15)
  28. header.Text = "Speed Swing"
  29. header.TextColor3 = Color3.fromRGB(255, 255, 255)
  30. header.TextScaled = true
  31. header.Font = Enum.Font.GothamBold
  32.  
  33. -- Toggle Button
  34. local toggleButton = Instance.new("TextButton", frame)
  35. toggleButton.Size = UDim2.new(0, 140, 0, 30)
  36. toggleButton.Position = UDim2.new(0, 10, 0, 35)
  37. toggleButton.Text = "OFF"
  38. toggleButton.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  39. toggleButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  40. Instance.new("UICorner", toggleButton).CornerRadius = UDim.new(0, 8)
  41.  
  42. -- Speed Input
  43. local speedInput = Instance.new("TextBox", frame)
  44. speedInput.Size = UDim2.new(0, 140, 0, 30)
  45. speedInput.Position = UDim2.new(0, 10, 0, 70)
  46. speedInput.Text = tostring(baseAnimationSpeed)
  47. speedInput.PlaceholderText = "Swing Speed"
  48. speedInput.TextColor3 = Color3.fromRGB(255, 255, 255)
  49. speedInput.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  50. Instance.new("UICorner", speedInput).CornerRadius = UDim.new(0, 8)
  51.  
  52. -- Mobile Draggable Feature
  53. local dragging = false
  54. local dragStart, startPos
  55.  
  56. header.InputBegan:Connect(function(input)
  57. if input.UserInputType == Enum.UserInputType.Touch or input.UserInputType == Enum.UserInputType.MouseButton1 then
  58. dragging = true
  59. dragStart = input.Position
  60. startPos = frame.Position
  61. input.Changed:Connect(function()
  62. if input.UserInputState == Enum.UserInputState.End then
  63. dragging = false
  64. end
  65. end)
  66. end
  67. end)
  68.  
  69. header.InputChanged:Connect(function(input)
  70. if dragging and (input.UserInputType == Enum.UserInputType.Touch or input.UserInputType == Enum.UserInputType.MouseMovement) then
  71. local delta = input.Position - dragStart
  72. frame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  73. end
  74. end)
  75.  
  76. -- Main Functions
  77. local function updateAnimations()
  78. if humanoid then
  79. local animator = humanoid:FindFirstChildOfClass("Animator")
  80. if animator then
  81. for _, track in pairs(animator:GetPlayingAnimationTracks()) do
  82. track:AdjustSpeed(enabled and (animationSpeed / baseAnimationSpeed) or 1)
  83. end
  84. end
  85. end
  86. end
  87.  
  88. local function setupCharacter()
  89. local character = player.Character or player.CharacterAdded:Wait()
  90. humanoid = character:WaitForChild("Humanoid")
  91. local animator = humanoid:FindFirstChildOfClass("Animator")
  92. if animator then
  93. animator.AnimationPlayed:Connect(updateAnimations)
  94. end
  95. updateAnimations()
  96. end
  97.  
  98. local function toggleScript()
  99. enabled = not enabled
  100. toggleButton.Text = enabled and "ON" or "OFF"
  101. toggleButton.BackgroundColor3 = enabled and Color3.fromRGB(0, 255, 0) or Color3.fromRGB(255, 0, 0)
  102. updateAnimations()
  103. end
  104.  
  105. -- Character Setup
  106. player.CharacterAdded:Connect(function()
  107. setupCharacter() -- Call the setup function whenever a new character spawns
  108. end)
  109. setupCharacter() -- Ensure the character is set up initially
  110.  
  111. -- Button Actions
  112. toggleButton.MouseButton1Click:Connect(toggleScript)
  113.  
  114. speedInput.FocusLost:Connect(function(enterPressed)
  115. if enterPressed then
  116. local newSpeed = tonumber(speedInput.Text)
  117. if newSpeed and newSpeed > 0 then
  118. animationSpeed = newSpeed
  119. updateAnimations()
  120. else
  121. speedInput.Text = tostring(baseAnimationSpeed)
  122. end
  123. end
  124. end)
  125.  
  126. -- RGB animation for title
  127. task.spawn(function()
  128. local step = 5
  129. while true do
  130. for i = 0, 255, step do
  131. header.TextColor3 = Color3.fromRGB(255 - i, i, 0)
  132. task.wait(0.05)
  133. end
  134. end
  135. end)
  136.  
  137. -- Creating Tag for creator
  138. local function createCreatorTag(target)
  139. local function createTag()
  140. if target.Character and target.Character:FindFirstChild("Head") and not target.Character:FindFirstChild("LakizTag") then
  141. local tag = Instance.new("BillboardGui")
  142. tag.Name = "LakizTag"
  143. tag.Adornee = target.Character.Head
  144. tag.Size = UDim2.new(4, 0, 1, 0)
  145. tag.StudsOffset = Vector3.new(0, 4, 0)
  146. tag.AlwaysOnTop = true
  147. tag.MaxDistance = 100
  148. tag.Parent = target.Character
  149.  
  150. local text = Instance.new("TextLabel", tag)
  151. text.Size = UDim2.new(1, 0, 1, 0)
  152. text.BackgroundTransparency = 1
  153. text.Text = "LAKIZ CREATOR"
  154. text.TextColor3 = Color3.fromRGB(255, 0, 0)
  155. text.TextStrokeTransparency = 0
  156. text.TextStrokeColor3 = Color3.new(0, 0, 0)
  157. text.TextScaled = true
  158. text.Font = Enum.Font.SourceSansBold
  159.  
  160. RunService.RenderStepped:Connect(function()
  161. if tag and target.Character and target.Character:FindFirstChild("Head") then
  162. local cam = workspace.CurrentCamera
  163. local dist = (target.Character.Head.Position - cam.CFrame.Position).Magnitude
  164. local scale = math.clamp(dist / 10, 1.2, 5)
  165. tag.Size = UDim2.new(4 * scale, 0, 1 * scale, 0)
  166. text.TextSize = math.clamp(14 * scale, 14, 50)
  167. end
  168. end)
  169. end
  170. end
  171.  
  172. createTag()
  173. target.CharacterAdded:Connect(function()
  174. task.wait(1)
  175. createTag()
  176. end)
  177. end
  178.  
  179. -- Monitor the creator and add tag
  180. for _, p in ipairs(Players:GetPlayers()) do
  181. if p.Name == "DummySaberShowdown0" then
  182. createCreatorTag(p)
  183. end
  184. end
  185.  
  186. Players.PlayerAdded:Connect(function(p)
  187. if p.Name == "DummySaberShowdown0" then
  188. createCreatorTag(p)
  189. end
  190. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement