Advertisement
Zebula_The_Scripter

Untitled

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