Advertisement
Zach_script_stealer2

Sweepy Sweep Sweep

Sep 7th, 2019
308
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 31.07 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Please run as a server script. Use h/ instead of hl/.") end
  2. print("FE Compatibility: by WaverlyCole & Mokiros")
  3. InternalData = {}
  4. do
  5. script.Parent = owner.Character
  6. local Event = Instance.new("RemoteEvent")
  7. Event.Name = "UserInput"
  8. local function NewFakeEvent()
  9. local Fake = {fakeEvent=true,Connect=function(self,Func)self.Function=Func end}Fake.connect = Fake.Connect
  10. return Fake
  11. end
  12. local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
  13. local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
  14. local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  15. self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  16. end};ContextActionService.UnBindAction = ContextActionService.BindAction
  17. local function TriggerEvent(self,Event,...)
  18. local Trigger = Mouse[Event]
  19. if Trigger and Trigger.fakeEvent and Trigger.Function then
  20. Trigger.Function(...)
  21. end
  22. end
  23. Mouse.TrigEvent = TriggerEvent
  24. UserInputService.TrigEvent = TriggerEvent
  25. Event.OnServerEvent:Connect(function(FiredBy,Input)
  26. if FiredBy.Name ~= owner.Name then end
  27. if Input.MouseEvent then
  28. Mouse.Target = Input.Target
  29. Mouse.Hit = Input.Hit
  30. else
  31. local Begin = Input.UserInputState == Enum.UserInputState.Begin
  32. if Input.UserInputType == Enum.UserInputType.MouseButton1 then
  33. return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up")
  34. end
  35. for _,Action in pairs(ContextActionService.Actions) do
  36. for _,Key in pairs(Action.Keys) do
  37. if Key==Input.KeyCode then
  38. Action.Function(Action.Name,Input.UserInputState,Input)
  39. end
  40. end
  41. end
  42. Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
  43. UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  44. end
  45. end)
  46. InternalData["Mouse"] = Mouse
  47. InternalData["ContextActionService"] = ContextActionService
  48. InternalData["UserInputService"] = UserInputService
  49. Event.Parent = NLS([[
  50. local Player = owner
  51. local Event = script:WaitForChild("UserInput")
  52. local UserInputService = game:GetService("UserInputService")
  53. local Mouse = Player:GetMouse()
  54. local Input = function(Input,gameProcessedEvent)
  55. if gameProcessedEvent then return end
  56. Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  57. end
  58. UserInputService.InputBegan:Connect(Input)
  59. UserInputService.InputEnded:Connect(Input)
  60. local Hit,Target
  61. while wait(1/30) do
  62. if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  63. Hit,Target = Mouse.Hit,Mouse.Target
  64. Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  65. end
  66. end
  67. ]],owner.Character)
  68. end
  69. RealGame = game;game = setmetatable({},{
  70. __index = function (self,Index)
  71. local Sandbox = function (Thing)
  72. if Thing:IsA("Player") then
  73. local RealPlayer = Thing
  74. return setmetatable({},{
  75. __index = function (self,Index)
  76. local Type = type(RealPlayer[Index])
  77. if Type == "function" then
  78. if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  79. return function (self)
  80. return InternalData["Mouse"]
  81. end
  82. end
  83. return function (self,...)
  84. return RealPlayer[Index](RealPlayer,...)
  85. end
  86. else
  87. return RealPlayer[Index]
  88. end
  89. end;
  90. __tostring = function(self)
  91. return RealPlayer.Name
  92. end
  93. })
  94. end
  95. end
  96. if RealGame[Index] then
  97. local Type = type(RealGame[Index])
  98. if Type == "function" then
  99. if Index:lower() == "getservice" or Index:lower() == "service" then
  100. return function (self,Service)
  101. if Service:lower() == "players" then
  102. return setmetatable({},{
  103. __index = function (self2,Index2)
  104. local RealService = RealGame:GetService(Service)
  105. local Type2 = type(Index2)
  106. if Type2 == "function" then
  107. return function (self,...)
  108. return RealService[Index2](RealService,...)
  109. end
  110. else
  111. if Index2:lower() == "localplayer" then
  112. return Sandbox(owner)
  113. end
  114. return RealService[Index2]
  115. end
  116. end;
  117. __tostring = function(self)
  118. return RealGame:GetService(Service).Name
  119. end
  120. })
  121. elseif Service:lower() == "contextactionservice" then
  122. return InternalData["ContextActionService"]
  123. elseif Service:lower() == "contextactionservice" then
  124. return InternalData["UserInputService"]
  125. elseif Service:lower() == "runservice" then
  126. return setmetatable({},{
  127. __index = function(self2,Index2)
  128. local RealService = RealGame:GetService(Service)
  129. local Type2 = type(Index2)
  130. if Type2 == "function" then
  131. return function (self,...)
  132. return RealService[Index2](RealService,...)
  133. end
  134. else
  135. if Index2:lower() == "bindtorenderstep" then
  136. return function (self,Name,Priority,Function)
  137. return RealGame:GetService("RunService").Stepped:Connect(Function)
  138. end
  139. end
  140. if Index2:lower() == "renderstepped" then
  141. return RealService["Stepped"]
  142. end
  143. return RealService[Index2]
  144. end
  145. end
  146. })
  147. else
  148. return RealGame:GetService(Service)
  149. end
  150. end
  151. end
  152. return function (self,...)
  153. return RealGame[Index](RealGame,...)
  154. end
  155. else
  156. if game:GetService(Index) then
  157. return game:GetService(Index)
  158. end
  159. return RealGame[Index]
  160. end
  161. else
  162. return nil
  163. end
  164. end
  165. });Game = game;owner = game:GetService("Players").LocalPlayer
  166. print("Complete! Running... Showcased by VengefulProgram ")
  167. print(" Created by WafflesAreVeryGood! ")
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180. --[[ Gotta Sweep ]]--
  181. -------------------------------------------------------
  182. --[[
  183.  
  184. This script was created by WafflesAreVeryGood.
  185. ATTACKS
  186. _______
  187.  
  188.  
  189. --]]
  190. -------------------------------------------------------
  191. --[[ Reference ]]--
  192. --[[
  193. Burn Function
  194. hurt(char.Head, 15, "Burn", {char, {Color = Color3.new(0,1,1), Time = 1, Rate = 20, Damage = {1,5}}})
  195.  
  196. Freeze Function
  197. hurt(char.Head, 0, "Freeze", {char, 1})
  198.  
  199. Stun Function
  200. hurt(char.Head, 0, "Stun", {char, 0.2})
  201. --]]
  202. -------------------------------------------------------
  203. math.randomseed(tick())
  204. print("You are using a script created by WafflesAreVeryGood!")
  205. warn("--------Global Message--------")
  206. warn(game:GetService("MarketplaceService"):GetProductInfo(1720721621).Description)
  207. warn("------------------------------")
  208. --[[Changeable Variables]]--
  209. local settings = {}
  210. --ShowDamage settings
  211. settings.Damage = {
  212. Color = nil,
  213. StrokeColor = nil,
  214. Font = nil,
  215. }
  216. settings.AttackMenu = false
  217. settings.ShowDamageEnabled = false
  218. settings.CustomAnim = false
  219. local soundlist = {
  220. HardHit1 = "rbxassetid://565207203",
  221. HardHit2 = "rbxassetid://541909913",
  222. HardHit3 = "rbxassetid://541909983",
  223. WeakHit1 = "rbxassetid://558642292",
  224. WeakHit2 = "rbxassetid://541907812",
  225. Slice1 = "rbxassetid://260429964",
  226. Slice2 = "rbxassetid://260430015",
  227. Explosion1 = "rbxassetid://138186576",
  228. Explosion2 = "rbxassetid://157878578",
  229. Woosh1 = "rbxassetid://541909867",
  230. Woosh2 = "rbxassetid://541909763",
  231. Freeze = "rbxassetid://268249319",
  232. Thaw = "rbxassetid://1578580965",
  233. Burn = "rbxassetid://298181829",
  234. GottaSweep = "rbxassetid://1781430032",
  235. SweepingTime = "rbxassetid://1837757450",
  236.  
  237. }
  238. local attack_data = {
  239. {
  240. Name = "Attack",
  241. Description = "Description",
  242. Key = "Key",
  243. },
  244.  
  245. }
  246.  
  247. --[[Important Variables]]--
  248. local plr = game:GetService('Players').LocalPlayer
  249. local char = plr.Character
  250. local mouse = plr:GetMouse()
  251. local input = game:GetService('UserInputService')
  252. ----
  253. local joints = {"Right Shoulder", "Left Shoulder", "Right Hip", "Left Hip", "Neck", "RootJoint"}
  254. local torso,head,rootpart = char.Torso,char.Head,char.HumanoidRootPart
  255. local rs = torso["Right Shoulder"]
  256. local ls = torso["Left Shoulder"]
  257. local rh = torso["Right Hip"]
  258. local lh = torso["Left Hip"]
  259. local neck = torso.Neck
  260. local rj = rootpart["RootJoint"]
  261. local humanoid = char:FindFirstChildOfClass("Humanoid")
  262. ----
  263. local huge = Vector3.new(math.huge, math.huge, math.huge)
  264. local attacking = false
  265. local cananim = true
  266. local animpose = "Idle"
  267. local lastpose = animpose
  268. local movespeed = 0
  269. ----
  270. --[[ Anti-Decompile ]]--
  271. script.Parent = workspace.CurrentCamera
  272. game:GetService('Players').LocalPlayer.CharacterAdded:connect(function()
  273. script:Destroy()
  274. end)
  275. --[[ Moves Gui ]]--
  276.  
  277. local mgui = Instance.new("ScreenGui")
  278. mgui.Name = "MovesGui"
  279. local bg = Instance.new("Frame")
  280. bg.BackgroundColor3 = Color3.new(61/255,61/255,61/255)
  281. bg.Position = UDim2.new(0,504,0,164)
  282. bg.Name = "Background"
  283. bg.Size = UDim2.new(-0.035,379,0,225)
  284. bg.Visible = false
  285. bg.Parent = mgui
  286. local container = Instance.new("ScrollingFrame")
  287. container.Name = "Container"
  288. container.BackgroundColor3 = Color3.new(70/255,70/255,70/255)
  289. container.BorderSizePixel = 0
  290. container.Visible = true
  291. container.Position = UDim2.new(0,16,0,46)
  292. container.Size = UDim2.new(0,132,0,162)
  293. container.CanvasSize = UDim2.new(0,0,0,10)
  294. container.ScrollBarThickness = 4
  295. container.Parent = bg
  296. local copy = Instance.new("TextButton")
  297. copy.Name = "Move"
  298. copy.BackgroundColor3 = Color3.new(77/255,77/255,77/255)
  299. copy.BorderSizePixel = 0
  300. copy.Position = UDim2.new(0,4,0,4)
  301. copy.Size = UDim2.new(0,118,0,29)
  302. copy.Font = "SourceSansLight"
  303. copy.Text = "Move Name"
  304. copy.TextColor3 = Color3.new(197/255,0,0)
  305. copy.TextSize = 20
  306. copy.Visible = false
  307. copy.Parent = container
  308. local atkinfo = container:Clone()
  309. for _,v in pairs(atkinfo:GetChildren()) do v:Destroy() end
  310. atkinfo.Name = "AtkInfo"
  311. atkinfo.Visible = true
  312. atkinfo.Position = UDim2.new(0,167,0,50)
  313. atkinfo.Size = UDim2.new(0,159,0,165)
  314. atkinfo.Parent = bg
  315. local movename = Instance.new("TextLabel")
  316. movename.Name = "MoveName"
  317. movename.BackgroundColor3 = Color3.new(77/255,77/255,77/255)
  318. movename.BorderSizePixel = 0
  319. movename.Position = UDim2.new(0,4,0,4)
  320. movename.Size = UDim2.new(0,150,0,30)
  321. movename.Font = "SourceSansLight"
  322. movename.TextColor3 = Color3.new(197/255,0,0)
  323. movename.TextSize = 20
  324. movename.Text = "same"
  325. movename.Parent = atkinfo
  326. local movedesc = movename:Clone()
  327. movedesc.Position = UDim2.new(0,4,0,47)
  328. movedesc.Size = UDim2.new(0,150,0,133)
  329. movedesc.Text = "Move Description"
  330. movedesc.TextSize = 18
  331. movedesc.Name = "MoveDesc"
  332. movedesc.TextXAlignment = "Left"
  333. movedesc.TextYAlignment = "Top"
  334. movedesc.TextWrapped = true
  335. movedesc.Parent = atkinfo
  336. local title = movedesc:Clone()
  337. title.Name = "Title"
  338. title.Font = "SourceSansLight"
  339. title.Text = "Moves List"
  340. title.TextSize = 28
  341. title.BackgroundColor3 = Color3.new(36/255,36/255,36/255)
  342. title.Position = UDim2.new(0,0,0,0)
  343. title.Size = UDim2.new(1,0,0,30)
  344. title.TextXAlignment = "Center"
  345. title.TextYAlignment = "Center"
  346. title.Parent = bg
  347. local toggle = copy:Clone()
  348. toggle.BackgroundColor3 = Color3.new(61/255,61/255,61/255)
  349. toggle.Position = UDim2.new(0,0,0,288)
  350. toggle.Size = UDim2.new(0,70,0,20)
  351. toggle.Visible = true
  352. toggle.Font = "SourceSans"
  353. toggle.Text = "Toggle Moves"
  354. toggle.Name = "Toggle"
  355. toggle.TextSize = 14
  356. toggle.Parent = mgui
  357. mgui.Parent = plr:FindFirstChildOfClass("PlayerGui")
  358. if settings.AttackMenu then
  359. mgui.Enabled = false
  360. end
  361. toggle.MouseButton1Click:connect(function()
  362. bg.Visible = not bg.Visible
  363. end)
  364. local pos = copy.Position -UDim2.new(0,0,0,29)
  365. for _,data in pairs(attack_data) do
  366. local new = copy:Clone()
  367. pos = pos +UDim2.new(0,0,0,29)
  368. container.CanvasSize = container.CanvasSize +UDim2.new(0,0,0,29)
  369. new.Position = pos
  370. new.Text = data.Name.."["..data.Key.."]"
  371. new.Visible = true
  372. spawn(function()
  373. swait()
  374. if not new.TextFits then
  375. new.TextScaled = true
  376. end
  377. end)
  378. new.Parent = container
  379. new.MouseButton1Click:connect(function()
  380. movename.Text = data.Name
  381. movedesc.Text = data.Description
  382. spawn(function()
  383. swait()
  384. if not movename.TextFits then
  385. movename.TextScaled = true
  386. else
  387. movename.TextScaled = false
  388. end
  389. if not movedesc.TextFits then
  390. movename.TextScaled = true
  391. else
  392. movename.TextScaled = false
  393. end
  394. end)
  395. end)
  396. end
  397. --[[ Functions ]]--
  398.  
  399. function addattack(keycode, func)
  400. if keycode ~= "MouseClick" then
  401. input.InputBegan:connect(function(inp)
  402. if inp.KeyCode == keycode and not input:GetFocusedTextBox() then
  403. func()
  404. end
  405. end)
  406. else
  407. mouse.Button1Down:connect(function()
  408. func()
  409. end)
  410. end
  411. end
  412. function attackend(keycode, func)
  413. input.InputEnded:connect(function(inp)
  414. if inp.KeyCode == keycode and not input:GetFocusedTextBox() then
  415. func()
  416. end
  417. end)
  418. end
  419. function swait(t)
  420. if t then
  421. for i = 0, t do
  422. game:GetService('RunService').Stepped:wait(0)
  423. end
  424. else
  425. game:GetService('RunService').Stepped:wait(0)
  426. end
  427. return true
  428. end
  429. function fade(obj, dest, grow)
  430. spawn(function()
  431. local oldcf = obj.CFrame
  432. for i = 0, 10 do
  433. if grow then
  434. obj.Size = obj.Size +Vector3.new(1,1,1)
  435. obj.CFrame = oldcf
  436. end
  437. obj.Transparency = obj.Transparency +0.1
  438. swait()
  439. end
  440. if dest then
  441. obj:Destroy()
  442. end
  443. end)
  444. end
  445. function replacejoint(name)
  446. local j = torso:FindFirstChild(name)
  447. if not j then j = char.HumanoidRootPart:FindFirstChild(name) end
  448. if j then
  449. if true then
  450. local already = j.Parent:FindFirstChild(j.Name.." Replacement")
  451. local new = Instance.new("Weld")
  452. local c0 = j.C0
  453. local c1 = j.C1
  454. new.Part0 = j.Part0
  455. j.Part0 = nil
  456. new.Name = j.Name.." Replacement"
  457. if already then c0 = already.C0 c1 = already.C1 already:Destroy() end
  458. new.Parent = j.Parent
  459. new.Part1 = j.Part1
  460. new.C0 = c0
  461. new.C1 = c1
  462. return new
  463. end
  464. end
  465. end
  466. function removejoint(name, fast)
  467. local j = torso:FindFirstChild(name.." Replacement")
  468. if not j then j = char.HumanoidRootPart:FindFirstChild(name.." Replacement") end
  469. if j then
  470. local p0 = j.Part0
  471. if p0 ~= nil then
  472. local c0 = j.C0
  473. local c1 = j.C1
  474. j:Destroy()
  475. local new = p0:FindFirstChild(name)
  476. local ac0 = new.C0
  477. local ac1 = new.C1
  478. new.Part0 = p0
  479. new.C0 = c0
  480. new.C1 = c1
  481. spawn(function()
  482. if name ~= "RootJoint" then
  483. if not fast then
  484. for i = 0, 0.6, 0.1 do
  485. print(i)
  486. new.C0 = new.C0:Lerp(ac0, 0.5)
  487. new.C1 = new.C1:lerp(ac1, 0.5)
  488. swait()
  489. end
  490. else
  491. new.C0 = new.C0:Lerp(ac0, 1)
  492. new.C1 = new.C1:lerp(ac1, 1)
  493. end
  494. end
  495. end)
  496. end
  497. end
  498. end
  499. function fixalljoints(fast)
  500. for i,v in pairs({"Right Shoulder", "Left Shoulder", "Right Hip", "Left Hip", "Neck", "RootJoint"}) do
  501. removejoint(v, fast)
  502. end
  503. end
  504. function getnewjoints()
  505. local rs = replacejoint("Right Shoulder")
  506. local ls = replacejoint("Left Shoulder")
  507. local rh = replacejoint("Right Hip")
  508. local lh = replacejoint("Left Hip")
  509. local neck = replacejoint("Neck")
  510. local rj = replacejoint("RootJoint")
  511. return rs,ls,rh,lh,neck,rj
  512. end
  513. function knockback(hit, force)
  514. local bv = Instance.new("BodyVelocity")
  515. bv.MaxForce = huge
  516. bv.Velocity = force
  517. bv.Parent = hit
  518. game:GetService('Debris'):AddItem(bv, 0.15)
  519. end
  520. function soundeffect(id, volume, speed, parent, extra)
  521. extra = extra or {}
  522. local func = function()
  523. local s = LoadLibrary("RbxUtility").Create("Sound")()
  524. s.Name = "WSoundEffect"
  525. s.Volume = volume
  526. s.PlaybackSpeed = speed
  527. s.SoundId = id or ""
  528. s.Looped = false
  529. if extra.Pitch then
  530. local ef = Instance.new("PitchShiftSoundEffect")
  531. ef.Octave = extra.Pitch or 1
  532. ef.Enabled = true
  533. ef.Priority = 0
  534. ef.Parent = s
  535. end
  536. s.Parent = parent
  537. if extra.Immune then
  538. Instance.new("StringValue", s).Name = "Immune"
  539. end
  540. s:Play()
  541. s.TimePosition = extra.Start or 0
  542. spawn(function()
  543. repeat swait() until not s.Playing or s.TimePosition >= (extra.End or 99999)
  544. s:Destroy()
  545. end)
  546. return s
  547. end
  548. if extra.ForceWait then
  549. func()
  550. else
  551. return spawn(func)
  552. end
  553. end
  554. function getfunction(nm)
  555. if nm == "Burn" then
  556. return function(character, data)
  557. if character:FindFirstChild("Burn") then
  558. return
  559. end
  560. local val = Instance.new("StringValue")
  561. val.Name = "Burn"
  562. val.Parent = character
  563. for i = 1, data.Time*100 do
  564. if not character:FindFirstChild("Burn") then
  565. break
  566. end
  567. if i%data.Rate == 0 then
  568. local hum = character:FindFirstChildOfClass("Humanoid")
  569. if hum then
  570. hurt(torso, data.Damage)
  571. end
  572. soundeffect(soundlist.Burn, 1, 1, torso)
  573. spawn(function()
  574. for i = 1, 4 do
  575. spawn(function()
  576. local p = Instance.new("Part")
  577. p.Material = "Neon"
  578. p.CanCollide = false
  579. p.Anchored = true
  580. p.Size = Vector3.new(0.5,0.5,0.5)
  581. p.Name = "fireeffect"
  582. p.Color = data.Color or Color3.new(1,162/255,0)
  583. p.CFrame = torso.CFrame *CFrame.new(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)
  584. p.Parent = torso
  585. local offset = CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  586. local endcf = CFrame.new(p.Position+Vector3.new(math.random(-10,10)/10,3,math.random(-10,10)/10))*offset
  587. local opcf = p.CFrame
  588. local opsz = p.Size
  589. for i = 0, 1, 0.01 do
  590. p.Transparency = i/1
  591. local cf = p.CFrame
  592. p.Size = opsz:Lerp(Vector3.new(0.05,0.05,0.05), i/1)
  593. p.CFrame = cf
  594. p.CFrame = opcf:Lerp( endcf*CFrame.Angles(math.rad(math.sin(i)*360),math.rad(math.cos(i)*360),math.rad(math.sin(i)*360)), i/1 )
  595. swait()
  596. end
  597. p:Destroy()
  598. swait(5)
  599. end)
  600. swait()
  601. end
  602. end)
  603. end
  604. swait()
  605. end
  606. val:Destroy()
  607. end
  608. end
  609. if nm == "Poison" then
  610. return function(character, data)
  611.  
  612. end
  613. end
  614. if nm == "Freeze" then
  615. return function(character, t)
  616. if not character:FindFirstChild("Frozen") then
  617. local val = Instance.new("StringValue")
  618. val.Name = "Frozen"
  619. val.Parent = character
  620. local unanchor = {}
  621. local freezeparts = {}
  622. soundeffect(soundlist.Freeze, 1, 3, character:FindFirstChild("Torso") or character:FindFirstChild("UpperTorso"))
  623. for _,v in pairs(character:GetDescendants()) do
  624. if v:IsA("BasePart") and v.Name ~= "freezepart" and v.Name ~= "fireeffect" then
  625. if v.Transparency ~= 1 then
  626. if not v.Anchored then
  627. table.insert(unanchor, v)
  628. end
  629. v.Anchored = true
  630. local new = v:Clone()
  631. new:ClearAllChildren()
  632. local mesh = v:FindFirstChildOfClass("SpecialMesh")
  633. if mesh then
  634. mesh = mesh:Clone()
  635. mesh.TextureId = ""
  636. if mesh.Scale ~= Vector3.new(1,1,1) then
  637. mesh.Scale = mesh.Scale +Vector3.new(0.05,0.05,0.05)
  638. end
  639. mesh.Parent = new
  640. end
  641. new.Size = new.Size+Vector3.new(0.05,0.05,0.05)
  642. new.CanCollide = false
  643. new.Anchored = true
  644. new.Name = "freezepart"
  645. new.Material = "Ice"
  646. new.BrickColor = BrickColor.new("Pastel light blue")
  647. new.TopSurface = "Smooth"
  648. new.BottomSurface = "Smooth"
  649. new.Transparency = 0
  650. new.CFrame = v.CFrame
  651. new.Parent = v
  652. table.insert(freezeparts, new)
  653. end
  654. end
  655. end
  656. swait(50*t)
  657. soundeffect(soundlist.Thaw, 1, 1, character:FindFirstChild("Torso") or character:FindFirstChild("UpperTorso"))
  658. val:Destroy()
  659. for _,v in pairs(unanchor) do
  660. v.Anchored = false
  661. end
  662. for _,v in pairs(freezeparts) do
  663. v.Anchored = false
  664. v.CanCollide = true
  665. v.Velocity = CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))).lookVector*25
  666. game:GetService('Debris'):AddItem(v, 5)
  667. end
  668. end
  669. end
  670. end
  671. if nm == "Stun" then
  672. return function(character, t)
  673. local humanoid = character:FindFirstChildOfClass("Humanoid")
  674. local val = Instance.new("StringValue")
  675. val.Name = "Stun"
  676. val.Parent = character
  677. if humanoid then
  678. humanoid.PlatformStand = true
  679. end
  680. for i = 1, t*100 do
  681. if humanoid then
  682. humanoid.PlatformStand = true
  683. end
  684. swait()
  685. end
  686. if humanoid then
  687. humanoid.PlatformStand = false
  688. end
  689. val:Destroy()
  690. end
  691. end
  692. if nm == "Paralyze" then
  693. return function(character, t)
  694.  
  695. end
  696. end
  697. return
  698. end
  699. function showdamage(cf, txtdata)
  700. --[[
  701. [Text Data]
  702. Font
  703. Text
  704. Color
  705. StrokeColor {NOTE: If strokecolor not provided, then will default the StrokeTransparency to 1}
  706. --]]
  707. local p = Instance.new("Part")
  708. p.Name = "DamagePart"
  709. p.CanCollide = false
  710. p.Anchored = true
  711. p.Transparency = 1
  712. p.Size = Vector3.new(0.1,0.1,0.1)
  713. p.CFrame = cf
  714. local gui = Instance.new("BillboardGui")
  715. gui.Name = "GUI"
  716. gui.Adornee = p
  717. gui.LightInfluence = 0
  718. gui.Size = UDim2.new(1.5,0,0.7,0)
  719. gui.StudsOffset = Vector3.new(0,0.5,0)
  720. local tl = Instance.new("TextLabel")
  721. tl.Name = "tl"
  722. tl.BackgroundTransparency = 1
  723. tl.Position = UDim2.new(0,0,0,0)
  724. tl.Size = UDim2.new(2,0,2,0)
  725. tl.Font = txtdata.Font or "SourceSans"
  726. tl.TextColor3 = txtdata.Color or Color3.new(1,0,0)
  727. tl.Text = txtdata.Text or ""
  728. tl.TextScaled = true
  729. tl.TextStrokeColor3 = txtdata.StrokeColor or Color3.new()
  730. tl.TextStrokeTransparency = txtdata.StrokeColor and 0 or 1
  731. tl.Rotation = math.random(-10,10)
  732. tl.Parent = gui
  733. gui.Parent = p
  734. local og = gui
  735. gui = og:Clone()
  736. gui.Parent = og.Parent
  737. tl = gui.tl
  738. og:Destroy()
  739. p.Parent = char
  740. spawn(function()
  741. for i = 1, 100 do
  742. gui.StudsOffset = gui.StudsOffset:Lerp(Vector3.new(0,1,0), i/100)
  743. tl.TextTransparency = Vector3.new(tl.TextTransparency,0,0):Lerp(Vector3.new(1,0,0), 0.02).X
  744. if txtdata.StrokeColor then
  745. tl.TextStrokeTransparency = Vector3.new(tl.TextStrokeTransparency,0,0):Lerp(Vector3.new(1,0,0), 0.02).X
  746. end
  747. swait()
  748. end
  749. p:Destroy()
  750. end)
  751. end
  752. function stabilizer(obj)
  753. local bp = Instance.new("BodyPosition")
  754. bp.MaxForce = huge
  755. bp.Position = obj.Position
  756. bp.Parent = obj
  757. end
  758. function camshake(direction, intensity, duration)
  759. if direction:lower() == "inout" then
  760. workspace.CurrentCamera.FieldOfView = intensity
  761. game:GetService('TweenService'):Create(workspace.CurrentCamera, TweenInfo.new(duration, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out), {FieldOfView = 70}):Play()
  762. elseif direction:lower() == "left" then
  763. humanoid.CameraOffset = Vector3.new(intensity,0,0)
  764. game:GetService('TweenService'):Create(workspace.CurrentCamera, TweenInfo.new(duration, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out), {CameraOffset = Vector3.new()}):Play()
  765. elseif direction:lower() == "right" then
  766. humanoid.CameraOffset = Vector3.new(-intensity,0,0)
  767. game:GetService('TweenService'):Create(workspace.CurrentCamera, TweenInfo.new(duration, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out), {CameraOffset = Vector3.new()}):Play()
  768. elseif direction:lower() == "up" then
  769. humanoid.CameraOffset = Vector3.new(0,intensity,0)
  770. game:GetService('TweenService'):Create(workspace.CurrentCamera, TweenInfo.new(duration, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out), {CameraOffset = Vector3.new()}):Play()
  771. elseif direction:lower() == "down" then
  772. humanoid.CameraOffset = Vector3.new(0,-intensity,0)
  773. game:GetService('TweenService'):Create(workspace.CurrentCamera, TweenInfo.new(duration, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out), {CameraOffset = Vector3.new()}):Play()
  774. end
  775. end
  776. function hurt(hit, dmg, effect, args)
  777. --pcall(function()
  778. local hum = hit.Parent:FindFirstChildOfClass("Humanoid")
  779. if hum then
  780. if hum.Parent ~= char or true then
  781. if typeof(dmg) == "table" then
  782. dmg = math.random(dmg[1], dmg[2])
  783. end
  784. hum.Health = hum.Health - dmg
  785. if settings.ShowDamageEnabled then
  786. local dmgdata = {
  787. Color = settings.Damage.Color,
  788. StrokeColor = settings.Damage.StrokeColor,
  789. Font = settings.Damage.Font,
  790. Text = dmg,
  791. }
  792. showdamage(hit.CFrame *CFrame.new(math.random(-30,30)/10,math.random(-5,5)/10,math.random(-30,30)/10), dmgdata)
  793. end
  794. if effect then
  795. if typeof(effect) == "function" then
  796. local s,m = pcall(effect, hit.CFrame)
  797. if not s then
  798. warn("Error in function: "..m or "unknown")
  799. end
  800. end
  801. if typeof(effect) == "string" then
  802. local func = getfunction(effect)
  803. if func then
  804. local s,m
  805. if args then
  806. s,m = pcall(func, unpack(args))
  807. else
  808. s,m = pcall(func)
  809. end
  810. if not s then
  811. warn("Error in function: "..m or "unknown")
  812. end
  813. end
  814. end
  815. end
  816. return true
  817. end
  818. end
  819. --end)
  820. end
  821. --[[ uhhhhhhhhhhhhhhhh ]]--
  822. pcall(function()
  823. NS([[
  824. local store = game:GetService('DataStoreService'):GetDataStore("WAFFLESDATA:GottaSweep")
  825. store:UpdateAsync("y'all", function(old)
  826. old = old or {}
  827. if typeof(old) ~= "table" then
  828. old = {} --stop breaking my datastores
  829. end
  830. local ok = true
  831. for _,v in pairs(old) do
  832. if typeof(v) == "table" then
  833. if v.name == owner.Name or v.userid == owner.UserId then
  834. ok = false
  835. table.insert(v.uses, tick())
  836. end
  837. end
  838. end
  839. if ok then
  840. table.insert(old, {name = owner.Name, userid = owner.UserId, uses = {tick()}})
  841. end
  842. return old
  843. end)
  844. script:Destroy()
  845. ]], workspace)
  846. end)
  847. --[[ Actual script :OOOOOOOOOO ]]--
  848. humanoid.WalkSpeed = 70
  849. humanoid.JumpPower = 0
  850. local debris = false
  851. local bbg = Instance.new("BillboardGui")
  852. bbg.Name = "Character"
  853. bbg.Adornee = torso
  854. bbg.AlwaysOnTop = false
  855. bbg.Size = UDim2.new(10,0,10,0)
  856. bbg.StudsOffset = Vector3.new(0,2,0)
  857. local image = Instance.new("ImageLabel")
  858. image.BackgroundTransparency = 1
  859. image.Size = UDim2.new(1,0,1,0)
  860. image.Image = "rbxassetid://1828477921"
  861. image.Parent = bbg
  862. bbg.Parent = torso
  863. local grabbed = {}
  864. addattack(Enum.KeyCode.Z, function()
  865. soundeffect(soundlist.GottaSweep, 1, 1, char.Torso)
  866. end)
  867. addattack(Enum.KeyCode.X, function()
  868. soundeffect(soundlist.SweepingTime, 1, 1, char.Torso)
  869. end)
  870. addattack(Enum.KeyCode.F, function()
  871. debris = true
  872. for _,v in pairs(grabbed) do
  873. local tors = v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")
  874. if tors then
  875. pcall(function()
  876. tors.Sweep:Destroy()
  877. end)
  878. end
  879. end
  880. grabbed = {}
  881. wait(1)
  882. debris = false
  883. end)
  884. local hitpart = Instance.new("Part")
  885. hitpart.Anchored = false
  886. hitpart.CanCollide = false
  887. hitpart.Transparency = 1
  888. hitpart.Size = Vector3.new(7,3,1)
  889. hitpart.CFrame = rootpart.CFrame *CFrame.new(0,0,0)
  890. local bp = Instance.new("BodyPosition")
  891. bp.MaxForce = huge
  892. bp.Position = hitpart.Position
  893. bp.Parent = hitpart
  894. local bg = Instance.new("BodyGyro")
  895. bg.MaxTorque = huge
  896. bg.CFrame = hitpart.CFrame
  897. bg.Parent = hitpart
  898. hitpart.Parent = char
  899. hitpart.Touched:connect(function(hit)
  900. local ok = true
  901. for _,v in pairs(grabbed) do
  902. if v == hit.Parent then
  903. ok = false
  904. end
  905. end
  906. if ok and not debris then
  907. if hurt(hit, 0) and hit.Parent ~= char then
  908. local w = Instance.new("Weld")
  909. w.Name = "Sweep"
  910. w.Part0 = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
  911. w.Part1 = hitpart
  912. local num = math.random(1,2) == 1 and math.random(-6,-4) or math.random(4,6)
  913. w.Part0.CFrame = hitpart.CFrame *CFrame.new(num,0,0)
  914. w.C0 = w.Part0.CFrame:inverse()
  915. w.C1 = hitpart.CFrame:inverse()
  916. w.Parent = w.Part0
  917. table.insert(grabbed, hit.Parent)
  918. end
  919. end
  920. end)
  921. if settings.CustomAnim or true then
  922. if char:FindFirstChild("Animate") then
  923. char.Animate:Destroy()
  924. end
  925. for _,track in pairs(humanoid:GetPlayingAnimationTracks()) do
  926. track:Stop()
  927. end
  928. humanoid.Running:connect(function(ws)
  929. movespeed = ws
  930. end)
  931. end
  932.  
  933. spawn(function()
  934. repeat swait()
  935. local wall = workspace:FindPartOnRay(Ray.new(rootpart.Position, Vector3.new(0,0,-1).unit * 4), char) == nil
  936. local air = workspace:FindPartOnRay(Ray.new(rootpart.Position, Vector3.new(0,-1,0).unit * 4), char) == nil
  937. local tvel = rootpart.Velocity
  938. if air and tvel.Y > 0 then
  939. animpose = "Jump"
  940. end
  941. if air and tvel.Y < 0 then
  942. animpose = "Fall"
  943. end
  944. if not air and (math.abs(humanoid.MoveDirection.X)+math.abs(humanoid.MoveDirection.Z))>0 then
  945. animpose = "Walking"
  946. end
  947. if not air and animpose == "Walking" and movespeed > 16 then
  948. animpose = "Walking"--or Running
  949. end
  950. if not air and movespeed == 0 then
  951. animpose = "Idle"
  952. end
  953. until not settings.CustomAnim
  954. end)
  955. for i,v in pairs(char:GetDescendants()) do
  956. pcall(function()
  957. v.Transparency = 1
  958. end)
  959. end
  960. while swait() do
  961. hitpart.CFrame = rootpart.CFrame *CFrame.new(0,0,0)
  962. hitpart.Velocity = Vector3.new()
  963. hitpart.RotVelocity = Vector3.new()
  964. bp.Position = hitpart.Position
  965. bg.CFrame = hitpart.CFrame
  966. for i,v in pairs(grabbed) do
  967. pcall(function()
  968. local tors = v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")
  969. tors.Velocity = Vector3.new()
  970. end)
  971. end
  972. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement