Advertisement
Guest User

Untitled

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