Advertisement
DaOMEGAa32

sanic

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