Advertisement
Guest User

Untitled

a guest
Aug 20th, 2019
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 17.05 KB | None | 0 0
  1. --MADE BY "fireztron" @ V3RMILLION
  2. --Credit to TrustedCardinal @ v3rmillion for the draggable UI feature)
  3.  
  4. --default values--
  5. local walkspeed = 14
  6. local jumppower = 20
  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 = 'Wolf GUI Fucker'
  37.  
  38. Frame.Parent = ScreenGui
  39. Frame.BackgroundColor3 = Color3.new(0.333333, 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 = "Kill All (Werewolf)"
  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 = "WOLF OR OTHER GUI (\"Y\" to close/open)"
  72. TextLabel.TextColor3 = Color3.new(0, 0, 0)
  73. TextLabel.TextSize = 27
  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 = "Made by fireztron @v3rmillion"
  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, "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. --Draggable (Credits to TrustedCardinal @v3rmillion for this draggable part)
  287. local UserInputService = game:GetService("UserInputService")
  288.  
  289. local gui = Frame
  290.  
  291. local dragging
  292. local dragInput
  293. local dragStart
  294. local startPos
  295.  
  296. local function update(input)
  297. local delta = input.Position - dragStart
  298. gui.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  299. end
  300.  
  301. gui.InputBegan:Connect(function(input)
  302. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  303. dragging = true
  304. dragStart = input.Position
  305. startPos = gui.Position
  306.  
  307. input.Changed:Connect(function()
  308. if input.UserInputState == Enum.UserInputState.End then
  309. dragging = false
  310. end
  311. end)
  312. end
  313. end)
  314.  
  315. gui.InputChanged:Connect(function(input)
  316. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  317. dragInput = input
  318. end
  319. end)
  320.  
  321. UserInputService.InputChanged:Connect(function(input)
  322. if input == dragInput and dragging then
  323. update(input)
  324. end
  325. end)
  326.  
  327. --
  328.  
  329. local function disableScreenGui()
  330.     ScreenGui.Enabled = not ScreenGui.Enabled
  331. end
  332.  
  333.  
  334. local noclip = false
  335. local function noClip()
  336.     if noclip then
  337.         while game:GetService('RunService').Stepped:Wait() do --noclip
  338.         local character = char or LP.Character
  339.           if character ~= nil and character:FindFirstChild('Humanoid') then
  340.             for _, limb in pairs(LP.Character:GetChildren()) do
  341.               if limb:IsA("BasePart") then
  342.                 limb.CanCollide = false
  343.         print(limb.CanCollide)
  344.               end
  345.             end
  346.       else
  347.         noclip = false
  348.         NoClipButton.Text = ("No Clip " .. ((noclip and "(ON)") or "(OFF)") .. " | (F)")
  349.         return
  350.           end
  351.     end
  352.     end
  353. end
  354.  
  355. local function NoClipClicked()
  356.     noclip = not noclip
  357.     NoClipButton.Text = ("No Clip " .. ((noclip and "(ON)") or "(OFF)") .. " | (F)")
  358.     print("char =", char, "; LPchar =", LPchar, "; character = ", character)
  359.     noClip()
  360. end
  361.  
  362. local function InputBegan(input, gameProcessed)
  363.     if input.UserInputType == Enum.UserInputType.Keyboard then
  364.         if input.KeyCode == Enum.KeyCode.Y then
  365.             disableScreenGui()
  366.         elseif input.KeyCode == Enum.KeyCode.F then
  367.             noclip = not noclip
  368.             NoClipButton.Text = ("No Clip " .. ((noclip and "(ON)") or "(OFF)") .. " | (F)")
  369.             print("char =", char, "; LPchar =", LPchar, "; character = ", character)
  370.             noClip()
  371.         end
  372.     end
  373. end
  374.  
  375. local function KillAll()
  376.     if LP:FindFirstChild('Backpack') then
  377.         if LP.Character:FindFirstChildOfClass("Tool") then
  378.         for _,player in pairs(Plrs:GetChildren()) do
  379.             if player ~= LP then
  380.                 local character = player.Character
  381.                 print("char =", char, "; LPchar =", LPchar, "; character = ", character)
  382.                 if character ~= nil and LP.Character ~= nil then
  383.                     repeat
  384.                     LP.Character.HumanoidRootPart.CFrame = character.HumanoidRootPart.CFrame * CFrame.new(0,0,.5)
  385.                     game:GetService('RunService').Stepped:Wait()
  386.                     until not character or not character.Parent
  387.                 end
  388.             end
  389.         end
  390.     elseif LP.Backpack:FindFirstChildOfClass("Tool") then
  391.         LP.Backpack:FindFirstChildOfClass("Tool").Parent = LP.Character
  392.         for _,player in pairs(Plrs:GetChildren()) do
  393.             if player ~= LP then
  394.                 local character = player.Character
  395.                 print("char =", char, "; LPchar =", LPchar, "; character = ", character)
  396.                 if character ~= nil and LP.Character ~= nil then
  397.                     repeat
  398.                     LP.Character.HumanoidRootPart.CFrame = character.HumanoidRootPart.CFrame * CFrame.new(0,0,.5)
  399.                     game:GetService('RunService').Heartbeat:Wait()
  400.                     until not character or not character.Parent
  401.                 end
  402.             end
  403.         end
  404.     end
  405.     end
  406. end
  407.  
  408. --UserInputs
  409. KillAllButton.MouseButton1Click:Connect(KillAll)
  410. NoClipButton.MouseButton1Click:Connect(NoClipClicked)
  411. UserInputService.InputBegan:Connect(InputBegan)
  412.  
  413. --walkspeed code
  414. WalkSpeedBox.FocusLost:Connect(onWalkSpeedTextChanged)
  415. LP.CharacterAdded:Connect(ChangeLPCharWalkSpeed)
  416. LP.CharacterAdded:Connect(humWalkSpeedChanged)
  417.  
  418. --jumppower code
  419. JumpPowerBox.FocusLost:Connect(onJumpPowerTextChanged)
  420. LP.CharacterAdded:Connect(ChangeLPCharJumpPower)
  421. LP.CharacterAdded:Connect(humJumpPowerChanged)
  422.  
  423. --esp those fucking children
  424. espWOLF()
  425. espHUNTER()
  426.  
  427. --teleport that bow yeah baby
  428. teleportBow()
  429.  
  430. --oh yeah make sure to esp those children when they join
  431. WolvesFolder.ChildAdded:Connect(onWolfAdded)
  432. HuntersFolder.ChildAdded:Connect(onHunterAdded)
  433.  
  434. --teleport that bow constantly oh yes baby
  435. workspace.EffectsBin.ChildAdded:Connect(onBowDropped)
  436.  
  437.  
  438. --esp
  439.  
  440. local ScreenGui = Instance.new("ScreenGui",game:GetService('Players').LocalPlayer.PlayerGui)
  441. local ESPLocation = Instance.new("Folder",ScreenGui)
  442. local targetPlayer = "Anoffdutyninja"
  443.  
  444.  
  445. local Targets = {  
  446.         "HumanoidRootPart",
  447.         "LeftUpperLeg",
  448.         "LowerTorso",
  449.         "Head",
  450.         "UpperTorso",
  451.         "LeftUpperArm",
  452.         "LeftLowerArm",
  453.         "LeftHand",
  454.         "RightUpperArm",
  455.         "RightLowerArm",
  456.         "RightHand",
  457.         "LeftLowerLeg",
  458.         "LeftFoot",
  459.         "RightUpperLeg",
  460.         "RightLowerLeg",
  461.         "RightFoot",
  462.     }
  463.  
  464. function espPart(part,player)
  465.     local esp = Instance.new("BoxHandleAdornment",ESPLocation)
  466.     esp.Adornee = part
  467.     esp.AlwaysOnTop = true
  468.     esp.ZIndex = 1
  469.     esp.Transparency = 0.5
  470.     esp.Size = part.Size -- - Vector3.new(0,1,0)
  471.     if part.Name == "LeftHand" or part.Name == "RightHand" then
  472.         esp.Size = part.Size - Vector3.new(0,1,0)
  473.     end
  474.     esp.Color3 = Color3.fromRGB(255,255,255)
  475.     if player.Name == targetPlayer then
  476.         esp.Size = part.Size + Vector3.new(1,1,1)
  477.         esp.Color3 = Color3.fromRGB(255,0,0)
  478.     end
  479.     esp.MouseEnter:Connect(function()
  480.         if player.Team ~= game:GetService('Players').LocalPlayer.Team then
  481.             local currentFrame = esp
  482.         end
  483.     end)
  484.    
  485.     player.CharacterRemoving:Connect(function()
  486.         esp:Destroy()
  487.     end)
  488. end
  489.  
  490. function espPlayer(player)
  491.     if player.Character ~= nil then
  492.         for _,part in pairs(player.Character:GetChildren())do
  493.             if part:IsA("BasePart") and part.Name ~= "Head" and part.Name ~= "HumanoidRootPart" then
  494.                 espPart(part,player)
  495.             end
  496.         end
  497.     end
  498. end
  499.  
  500. function ESP()
  501.     ESPLocation:ClearAllChildren()
  502.     for _,player in pairs(game:GetService('Players'):GetPlayers())do
  503.         if player ~= game:GetService('Players').LocalPlayer then
  504.             espPlayer(player)
  505.         end
  506.     end
  507. end
  508.  
  509. ESP()
  510.  
  511. local function WaitUntilCharacterLoaded(Char)
  512.     for _,Part in pairs(Targets)do
  513.         Char:WaitForChild(Part)
  514.     end
  515. end
  516.  
  517. game:GetService('Players').PlayerAdded:Connect(function(Player)
  518.     Player.CharacterAdded:Connect(function(Char)
  519.         WaitUntilCharacterLoaded(Char)
  520.         espPlayer(Player)
  521.     end)
  522. end)
  523.  
  524. for _,Player in pairs(game:GetService('Players'):GetPlayers())do
  525.     Player.CharacterAdded:Connect(function(Char)
  526.         if Player ~= LP then
  527.             WaitUntilCharacterLoaded(Char)
  528.         espPlayer(Player)
  529.     end
  530.     end)
  531. end
  532.  
  533. warn('LOADED WOLF OR OTHER FUCKER')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement