AugusTH

A wolf or other script (raw)

Dec 16th, 2022 (edited)
1,160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.91 KB | None | 0 0
  1. --Sucking Shit
  2.  
  3. --default values--
  4. local walkspeed = 50
  5. local jumppower = 75
  6. local targetPlayer = "Anoffdutyninja" -- for streamsniping maybe
  7. ------------------
  8.  
  9. --don't change these vars okay
  10. local RepStorage = game:GetService('ReplicatedStorage')
  11. local Plrs = game:GetService('Players')
  12. local LP = Plrs.LocalPlayer
  13. local LPchar = LP.Character
  14. spawn(function()
  15. LPchar = LP.CharacterAdded:Wait()
  16. print('LPchar finally defined!')
  17. end)
  18.  
  19. local WolvesFolder = RepStorage.Wolves
  20. local HuntersFolder = RepStorage.Hunters
  21. local WolfPlayer
  22. local HunterPlayer
  23.  
  24. --gui
  25. local ScreenGui = Instance.new("ScreenGui")
  26. local Frame = Instance.new("Frame")
  27. local WalkSpeedBox = Instance.new("TextBox")
  28. local KillAllButton = Instance.new("TextButton")
  29. local TextLabel = Instance.new("TextLabel")
  30. local Credits = Instance.new("TextLabel")
  31. local NoClipButton = Instance.new("TextButton")
  32. local JumpPowerBox = Instance.new("TextBox")
  33.  
  34. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  35. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  36. ScreenGui.Name = 'ᴀᴜɢᴜs X'
  37.  
  38. Frame.Parent = ScreenGui
  39. Frame.BackgroundColor3 = Color3.new(200, 0.878431, 1)
  40. Frame.Position = UDim2.new(0.758273363, 0, 0.450980425, 0)
  41. Frame.Size = UDim2.new(0.200000003, 0, 0.5, 0)
  42.  
  43. WalkSpeedBox.Parent = Frame
  44. WalkSpeedBox.AnchorPoint = Vector2.new(0.5, 0.5)
  45. WalkSpeedBox.BackgroundColor3 = Color3.new(0.729412, 0, 0)
  46. WalkSpeedBox.Position = UDim2.new(0.5, 0, 0.449999988, 0)
  47. WalkSpeedBox.Size = UDim2.new(0.800000012, 0, 0.200000003, 0)
  48. WalkSpeedBox.ZIndex = 3
  49. WalkSpeedBox.Font = Enum.Font.ArialBold
  50. WalkSpeedBox.PlaceholderColor3 = Color3.new(0.929412, 1, 0.12549)
  51. WalkSpeedBox.PlaceholderText = "Set WalkSpeed (" .. tostring(walkspeed) .. ")"
  52. WalkSpeedBox.Text = ""
  53. WalkSpeedBox.TextColor3 = Color3.new(0.929412, 1, 0.12549)
  54. WalkSpeedBox.TextSize = 17
  55. WalkSpeedBox.TextWrapped = true
  56.  
  57. KillAllButton.Parent = Frame
  58. KillAllButton.AnchorPoint = Vector2.new(0.5, 0.5)
  59. KillAllButton.BackgroundColor3 = Color3.new(0.729412, 0, 0)
  60. KillAllButton.Position = UDim2.new(0.5, 0, 0.889999986, 0)
  61. KillAllButton.Size = UDim2.new(0.800000012, 0, 0.200000003, 0)
  62. KillAllButton.Font = Enum.Font.ArialBold
  63. KillAllButton.Text = "Auto kills (wolf)"
  64. KillAllButton.TextColor3 = Color3.new(0.929412, 1, 0.12549)
  65. KillAllButton.TextSize = 17
  66.  
  67. TextLabel.Parent = Frame
  68. TextLabel.BackgroundColor3 = Color3.new(0.411765, 1, 0.647059)
  69. TextLabel.Size = UDim2.new(1, 0, .08, 0)
  70. TextLabel.Font = Enum.Font.SourceSans
  71. TextLabel.Text = "A wolf or other"
  72. TextLabel.TextColor3 = Color3.new(0, 0, 0)
  73. TextLabel.TextSize = 25
  74. TextLabel.Draggable = true
  75.  
  76. Credits.Parent = Frame
  77. Credits.AnchorPoint = Vector2.new(0.5, 0.5)
  78. Credits.BackgroundColor3 = Color3.new(0.411765, 1, 0.647059)
  79. Credits.Size = UDim2.new(1, 0, .05, 0)
  80. Credits.Position = UDim2.new(.5, 0, .1, 0)
  81. Credits.Font = Enum.Font.SourceSans
  82. Credits.Text = "by ᴀᴜɢᴜsX Y to close/open"
  83. Credits.TextColor3 = Color3.new(0, 0, 0)
  84. Credits.TextSize = 15
  85.  
  86. NoClipButton.Parent = Frame
  87. NoClipButton.AnchorPoint = Vector2.new(0.5, 0.5)
  88. NoClipButton.BackgroundColor3 = Color3.new(0.729412, 0, 0)
  89. NoClipButton.Position = UDim2.new(0.5, 0, 0.670000017, 0)
  90. NoClipButton.Size = UDim2.new(0.800000012, 0, 0.200000003, 0)
  91. NoClipButton.Font = Enum.Font.ArialBold
  92. NoClipButton.Text = "No Clip (OFF) | (F)"
  93. NoClipButton.TextColor3 = Color3.new(0.929412, 1, 0.12549)
  94. NoClipButton.TextSize = 17
  95.  
  96. JumpPowerBox.Parent = Frame
  97. JumpPowerBox.AnchorPoint = Vector2.new(0.5, 0.5)
  98. JumpPowerBox.BackgroundColor3 = Color3.new(0.729412, 0, 0)
  99. JumpPowerBox.Position = UDim2.new(0.5, 0, 0.230000004, 0)
  100. JumpPowerBox.Size = UDim2.new(0.800000012, 0, 0.200000003, 0)
  101. JumpPowerBox.ZIndex = 3
  102. JumpPowerBox.Font = Enum.Font.ArialBold
  103. JumpPowerBox.PlaceholderColor3 = Color3.new(0.929412, 1, 0.12549)
  104. JumpPowerBox.PlaceholderText = "Set JumpPower (" .. tostring(jumppower) .. ")"
  105. JumpPowerBox.Text = ""
  106. JumpPowerBox.TextColor3 = Color3.new(0.929412, 1, 0.12549)
  107. JumpPowerBox.TextSize = 17
  108. JumpPowerBox.TextWrapped = true
  109.  
  110. --actual scripts
  111.  
  112.  
  113.  
  114. local function ChangeLPCharWalkSpeed(char)
  115. local character = char or LP.Character
  116. print("char =", char, "; LPchar =", LPchar, "; character = ", character)
  117. if character ~= nil then
  118. character:WaitForChild('Humanoid').WalkSpeed = walkspeed
  119. end
  120. end
  121.  
  122. local function humWalkSpeedChanged(char)
  123. local character = char or LP.Character
  124. print("char =", char, "; LPchar =", LPchar, "; character = ", character)
  125. if character ~= nil then
  126. character:WaitForChild('Humanoid'):GetPropertyChangedSignal('WalkSpeed'):Connect(function()
  127. ChangeLPCharWalkSpeed(character)
  128. end)
  129. end
  130. end
  131.  
  132. local function ChangeLPCharJumpPower(char)
  133. local character = char or LP.Character
  134. print("char =", char, "; LPchar =", LPchar, "; character = ", character)
  135. if character ~= nil then
  136. character:WaitForChild('Humanoid').JumpPower = jumppower
  137. end
  138. end
  139.  
  140. local function humJumpPowerChanged(char)
  141. local character = char or LP.Character
  142. print("char =", char, "; LPchar =", LPchar, "; character = ", character)
  143. if character ~= nil then
  144. character:WaitForChild('Humanoid'):GetPropertyChangedSignal('JumpPower'):Connect(function()
  145. ChangeLPCharJumpPower(character)
  146. end)
  147. end
  148. end
  149.  
  150. local function onWalkSpeedTextChanged(enterPressed, inputThatCausedFocusLost)
  151. if enterPressed then
  152. if tonumber(WalkSpeedBox.Text) then
  153. walkspeed = tonumber(WalkSpeedBox.Text)
  154. print("Walk Speed now " .. walkspeed)
  155. ChangeLPCharWalkSpeed()
  156. WalkSpeedBox.PlaceholderText = "Set WalkSpeed (" .. tostring(walkspeed) .. ")"
  157. end
  158. WalkSpeedBox.Text = ""
  159. end
  160. end
  161.  
  162. local function onJumpPowerTextChanged(enterPressed, inputThatCausedFocusLost)
  163. if enterPressed then
  164. if tonumber(JumpPowerBox.Text) then
  165. jumppower = tonumber(JumpPowerBox.Text)
  166. print("Jump Power now " .. jumppower)
  167. ChangeLPCharJumpPower()
  168. JumpPowerBox.PlaceholderText = "Set JumpPower (" .. tostring(jumppower) .. ")"
  169. end
  170. JumpPowerBox.Text = ""
  171. end
  172. end
  173.  
  174. local function findPlayer(name)
  175. for _,player in pairs(Plrs:GetChildren()) do
  176. if player.Name == name then
  177. print("player found! " .. player.Name)
  178. return player
  179. end
  180. end
  181. print("Problem. findPlayer(".. name .. ")")
  182. return nil
  183. end
  184.  
  185. local function createESP(head,text)
  186. local billgui = Instance.new('BillboardGui', head)
  187. local textlab = Instance.new('TextLabel', billgui)
  188.  
  189. billgui.Name = "ESP"
  190. billgui.AlwaysOnTop = true
  191. billgui.ExtentsOffset = Vector3.new(0, 3, 0)
  192. billgui.Size = UDim2.new(0, 5, 0, 5)
  193.  
  194. textlab.Name = 'Player'
  195. textlab.BackgroundColor3 = Color3.new(255, 255, 255)
  196. textlab.BackgroundTransparency = 1
  197. textlab.BorderSizePixel = 0
  198. textlab.Position = UDim2.new(0, 0, 0, -20)
  199. textlab.Size = UDim2.new(1, 0, 10, 0)
  200. textlab.Visible = true
  201. textlab.ZIndex = 10
  202. textlab.Font = 'SciFi'
  203. textlab.FontSize = 'Size14'
  204. textlab.Text = text
  205. textlab.TextTransparency = 0
  206. textlab.TextStrokeTransparency = 1
  207. textlab.TextColor3 = Color3.new(1,0,0)
  208. end
  209.  
  210. local function findHeadFromPlayer(plr) --returns nil if not found
  211. if plr:IsA('Player') then
  212. local character = plr.Character
  213. if not character or not character.Parent then
  214. character = plr.CharacterAdded:Wait()
  215. print('character now defined as', character)
  216. end
  217. local head = character:WaitForChild('Head')
  218. print("head found! head: " .. head:GetFullName())
  219. return head
  220. end
  221. end
  222.  
  223. local function onWolfAdded(child)
  224. print("child " .. child.Name .. " added into wolvesfolder!")
  225. WolfPlayer = findPlayer(child.Name)
  226. local playerHead = findHeadFromPlayer(WolfPlayer)
  227. createESP(playerHead, "WOLF")
  228. end
  229.  
  230. local function onHunterAdded(child)
  231. print("child " .. child.Name .. " added into huntersfolder!")
  232. HunterPlayer = findPlayer(child.Name)
  233. local playerHead = findHeadFromPlayer(HunterPlayer)
  234. createESP(playerHead, "HUNTER")
  235. end
  236.  
  237. local function FindWolf()
  238. for _,child in pairs(WolvesFolder:GetChildren()) do
  239. print('Found wolfs name using FindWolf() | ' .. child.Name)
  240. return child.Name
  241. end
  242. end
  243.  
  244. local function FindHunter()
  245. for _,child in pairs(HuntersFolder:GetChildren()) do
  246. print('Found hunters name using FindWolf() | ' .. child.Name)
  247. return child.Name
  248. end
  249. end
  250.  
  251. local function espWOLF()
  252. local WolfName = FindWolf()
  253. WolfPlayer = findPlayer(WolfName)
  254. if WolfPlayer ~= nil then
  255. local WolfHead = findHeadFromPlayer(WolfPlayer)
  256. print("creating ESP with wolfhead as " .. WolfHead.Name)
  257. createESP(WolfHead, "Were Wolf")
  258. end
  259. end
  260.  
  261. local function espHUNTER()
  262. local HunterName = FindHunter()
  263. HunterPlayer = findPlayer(HunterName)
  264. if HunterPlayer ~= nil then
  265. local HunterHead = findHeadFromPlayer(HunterPlayer)
  266. print("creating ESP with hunterhead as " .. HunterHead.Name)
  267. createESP(HunterHead, "Hunter")
  268. end
  269. end
  270.  
  271. local function teleportBow()
  272. if game.Workspace.EffectsBin:FindFirstChild("Handle") then
  273. game.Workspace.EffectsBin.Handle.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  274. end
  275. end
  276.  
  277. local function onBowDropped(instance)
  278. if instance.Name == "Handle" and LP:FindFirstChild('Backpack') then
  279. while LP.Backpack:FindFirstChildOfClass("Tool") == nil and LP.Character:FindFirstChildOfClass("Tool") == nil do
  280. wait()
  281. teleportBow()
  282. end
  283. end
  284. end
  285.  
  286. local UserInputService = game:GetService("UserInputService")
  287.  
  288. local gui = Frame
  289.  
  290. local dragging
  291. local dragInput
  292. local dragStart
  293. local startPos
  294.  
  295. local function update(input)
  296. local delta = input.Position - dragStart
  297. gui.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  298. end
  299.  
  300. gui.InputBegan:Connect(function(input)
  301. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  302. dragging = true
  303. dragStart = input.Position
  304. startPos = gui.Position
  305.  
  306. input.Changed:Connect(function()
  307. if input.UserInputState == Enum.UserInputState.End then
  308. dragging = false
  309. end
  310. end)
  311. end
  312. end)
  313.  
  314. gui.InputChanged:Connect(function(input)
  315. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  316. dragInput = input
  317. end
  318. end)
  319.  
  320. UserInputService.InputChanged:Connect(function(input)
  321. if input == dragInput and dragging then
  322. update(input)
  323. end
  324. end)
  325.  
  326. --
  327.  
  328. local function disableScreenGui()
  329. ScreenGui.Enabled = not ScreenGui.Enabled
  330. end
  331.  
  332.  
  333. local noclip = false
  334. local function noClip()
  335. if noclip then
  336. while game:GetService('RunService').Stepped:Wait() do --noclip
  337. local character = char or LP.Character
  338. if character ~= nil and character:FindFirstChild('Humanoid') then
  339. for _, limb in pairs(LP.Character:GetChildren()) do
  340. if limb:IsA("BasePart") then
  341. limb.CanCollide = false
  342. print(limb.CanCollide)
  343. end
  344. end
  345. else
  346. noclip = false
  347. NoClipButton.Text = ("No Clip " .. ((noclip and "(ON)") or "(OFF)") .. " | (F)")
  348. return
  349. end
  350. end
  351. end
  352. end
  353.  
  354. local function NoClipClicked()
  355. noclip = not noclip
  356. NoClipButton.Text = ("No Clip " .. ((noclip and "(ON)") or "(OFF)") .. " | (F)")
  357. print("char =", char, "; LPchar =", LPchar, "; character = ", character)
  358. noClip()
  359. end
  360.  
  361. local function InputBegan(input, gameProcessed)
  362. if input.UserInputType == Enum.UserInputType.Keyboard then
  363. if input.KeyCode == Enum.KeyCode.Y then
  364. disableScreenGui()
  365. elseif input.KeyCode == Enum.KeyCode.F then
  366. noclip = not noclip
  367. NoClipButton.Text = ("No Clip " .. ((noclip and "(ON)") or "(OFF)") .. " | (F)")
  368. print("char =", char, "; LPchar =", LPchar, "; character = ", character)
  369. noClip()
  370. end
  371. end
  372. end
  373.  
  374. local function KillAll()
  375. if LP:FindFirstChild('Backpack') then
  376. if LP.Character:FindFirstChildOfClass("Tool") then
  377. for _,player in pairs(Plrs:GetChildren()) do
  378. if player ~= LP then
  379. local character = player.Character
  380. print("char =", char, "; LPchar =", LPchar, "; character = ", character)
  381. if character ~= nil and LP.Character ~= nil then
  382. repeat
  383. LP.Character.HumanoidRootPart.CFrame = character.HumanoidRootPart.CFrame * CFrame.new(0,0,.5)
  384. game:GetService('RunService').Stepped:Wait()
  385. until not character or not character.Parent
  386. end
  387. end
  388. end
  389. elseif LP.Backpack:FindFirstChildOfClass("Tool") then
  390. LP.Backpack:FindFirstChildOfClass("Tool").Parent = LP.Character
  391. for _,player in pairs(Plrs:GetChildren()) do
  392. if player ~= LP then
  393. local character = player.Character
  394. print("char =", char, "; LPchar =", LPchar, "; character = ", character)
  395. if character ~= nil and LP.Character ~= nil then
  396. repeat
  397. LP.Character.HumanoidRootPart.CFrame = character.HumanoidRootPart.CFrame * CFrame.new(0,0,.5)
  398. game:GetService('RunService').Heartbeat:Wait()
  399. until not character or not character.Parent
  400. end
  401. end
  402. end
  403. end
  404. end
  405. end
  406.  
  407. --UserInputs
  408. KillAllButton.MouseButton1Click:Connect(KillAll)
  409. NoClipButton.MouseButton1Click:Connect(NoClipClicked)
  410. UserInputService.InputBegan:Connect(InputBegan)
  411.  
  412. --walkspeed code
  413. WalkSpeedBox.FocusLost:Connect(onWalkSpeedTextChanged)
  414. LP.CharacterAdded:Connect(ChangeLPCharWalkSpeed)
  415. LP.CharacterAdded:Connect(humWalkSpeedChanged)
  416.  
  417. --jumppower code
  418. JumpPowerBox.FocusLost:Connect(onJumpPowerTextChanged)
  419. LP.CharacterAdded:Connect(ChangeLPCharJumpPower)
  420. LP.CharacterAdded:Connect(humJumpPowerChanged)
  421.  
  422. --esp those fucking children
  423. espWOLF()
  424. espHUNTER()
  425.  
  426. --teleport that bow yeah baby
  427. teleportBow()
  428.  
  429. --oh yeah make sure to esp those children when they join
  430. WolvesFolder.ChildAdded:Connect(onWolfAdded)
  431. HuntersFolder.ChildAdded:Connect(onHunterAdded)
  432.  
  433. --teleport that bow constantly oh yes baby
  434. workspace.EffectsBin.ChildAdded:Connect(onBowDropped)
  435.  
  436.  
  437. --esp
  438.  
  439. local ScreenGui = Instance.new("ScreenGui",game:GetService('Players').LocalPlayer.PlayerGui)
  440. local ESPLocation = Instance.new("Folder",ScreenGui)
  441.  
  442.  
  443. local Targets = {
  444. "HumanoidRootPart",
  445. "LeftUpperLeg",
  446. "LowerTorso",
  447. "Head",
  448. "UpperTorso",
  449. "LeftUpperArm",
  450. "LeftLowerArm",
  451. "LeftHand",
  452. "RightUpperArm",
  453. "RightLowerArm",
  454. "RightHand",
  455. "LeftLowerLeg",
  456. "LeftFoot",
  457. "RightUpperLeg",
  458. "RightLowerLeg",
  459. "RightFoot",
  460. }
  461.  
  462. function espPart(part,player)
  463. local esp = Instance.new("BoxHandleAdornment",ESPLocation)
  464. esp.Adornee = part
  465. esp.AlwaysOnTop = true
  466. esp.ZIndex = 1
  467. esp.Transparency = 0.5
  468. esp.Size = part.Size -- - Vector3.new(0,1,0)
  469. if part.Name == "LeftHand" or part.Name == "RightHand" then
  470. esp.Size = part.Size - Vector3.new(0,1,0)
  471. end
  472. esp.Color3 = Color3.fromRGB(255,255,255)
  473. if player.Name == targetPlayer then
  474. esp.Size = part.Size + Vector3.new(1,1,1)
  475. esp.Color3 = Color3.fromRGB(255,0,0)
  476. end
  477. esp.MouseEnter:Connect(function()
  478. if player.Team ~= game:GetService('Players').LocalPlayer.Team then
  479. local currentFrame = esp
  480. end
  481. end)
  482.  
  483. player.CharacterRemoving:Connect(function()
  484. esp:Destroy()
  485. end)
  486. end
  487.  
  488. function espPlayer(player)
  489. if player.Character ~= nil then
  490. for _,part in pairs(player.Character:GetChildren())do
  491. if part:IsA("BasePart") and part.Name ~= "Head" and part.Name ~= "HumanoidRootPart" then
  492. espPart(part,player)
  493. end
  494. end
  495. end
  496. end
  497.  
  498. function ESP()
  499. ESPLocation:ClearAllChildren()
  500. for _,player in pairs(game:GetService('Players'):GetPlayers())do
  501. if player ~= game:GetService('Players').LocalPlayer then
  502. espPlayer(player)
  503. end
  504. end
  505. end
  506.  
  507. ESP()
  508.  
  509. local function WaitUntilCharacterLoaded(Char)
  510. for _,Part in pairs(Targets)do
  511. Char:WaitForChild(Part)
  512. end
  513. end
  514.  
  515. game:GetService('Players').PlayerAdded:Connect(function(Player)
  516. Player.CharacterAdded:Connect(function(Char)
  517. WaitUntilCharacterLoaded(Char)
  518. espPlayer(Player)
  519. end)
  520. end)
  521.  
  522. for _,Player in pairs(game:GetService('Players'):GetPlayers())do
  523. Player.CharacterAdded:Connect(function(Char)
  524. if Player ~= LP then
  525. WaitUntilCharacterLoaded(Char)
  526. espPlayer(Player)
  527. end
  528. end)
  529. end
  530. --really end
  531.  
  532.  
Add Comment
Please, Sign In to add comment