Advertisement
Guest User

Untitled

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