Advertisement
Guest User

Untitled

a guest
Oct 12th, 2018
8,612
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 28.72 KB | None | 0 0
  1. --[[ Thank you ]]--
  2. -------------------------------------------------------
  3. --[[
  4.  
  5. This script was created by WafflesAreVeryGood or Nobody#3907
  6.  
  7. --]]
  8. -------------------------------------------------------
  9. --[[ Reference ]]--
  10. --[[
  11. Burn Function
  12. hurt(char.Head, 15, "Burn", {char, {Color = Color3.new(0,1,1), Time = 1, Rate = 20, Damage = {1,5}}})
  13.  
  14. Freeze Function
  15. hurt(char.Head, 0, "Freeze", {char, 1})
  16.  
  17. Stun Function
  18. hurt(char.Head, 0, "Stun", {char, 0.2})
  19. --]]
  20. -------------------------------------------------------
  21. math.randomseed(tick())
  22. print("You are using a script created by WafflesAreVeryGood!")
  23. warn("--------Global Message--------")
  24. warn(game:GetService("MarketplaceService"):GetProductInfo(1720721621).Description)
  25. warn("------------------------------")
  26. --[[Changeable Variables]]--
  27. local settings = {}
  28. --ShowDamage settings
  29. settings.Damage = {
  30. Color = nil,
  31. StrokeColor = nil,
  32. Font = nil,
  33. }
  34. settings.ShowDamageEnabled = false
  35. settings.CustomAnim = true
  36. local soundlist = {
  37. HardHit1 = "rbxassetid://565207203",
  38. HardHit2 = "rbxassetid://541909913",
  39. HardHit3 = "rbxassetid://541909983",
  40. WeakHit1 = "rbxassetid://558642292",
  41. WeakHit2 = "rbxassetid://541907812",
  42. Slice1 = "rbxassetid://260429964",
  43. Slice2 = "rbxassetid://260430015",
  44. Explosion1 = "rbxassetid://138186576",
  45. Explosion2 = "rbxassetid://157878578",
  46. Woosh1 = "rbxassetid://541909867",
  47. Woosh2 = "rbxassetid://541909763",
  48. Freeze = "rbxassetid://268249319",
  49. Thaw = "rbxassetid://1578580965",
  50. Burn = "rbxassetid://298181829",
  51.  
  52. }
  53. local attack_data = {
  54. {
  55. Name = "Attack",
  56. Description = "Description",
  57. Key = "Key",
  58. },
  59.  
  60. }
  61.  
  62. --[[Important Variables]]--
  63. local plr = game:GetService('Players').LocalPlayer
  64. local char = plr.Character
  65. local mouse = plr:GetMouse()
  66. local input = game:GetService('UserInputService')
  67. ----
  68. local joints = {"Right Shoulder", "Left Shoulder", "Right Hip", "Left Hip", "Neck", "RootJoint"}
  69. local torso,head,rootpart = char.Torso,char.Head,char.HumanoidRootPart
  70. local rs = torso["Right Shoulder"]
  71. local ls = torso["Left Shoulder"]
  72. local rh = torso["Right Hip"]
  73. local lh = torso["Left Hip"]
  74. local neck = torso.Neck
  75. local rj = rootpart["RootJoint"]
  76. local humanoid = char:FindFirstChildOfClass("Humanoid")
  77. ----
  78. local huge = Vector3.new(math.huge, math.huge, math.huge)
  79. local attacking = false
  80. local cananim = true
  81. local animpose = "Idle"
  82. local lastpose = animpose
  83. local movespeed = 0
  84. ----
  85. --[[ Anti-Decompile ]]--
  86. script.Parent = workspace.CurrentCamera
  87. game:GetService('Players').LocalPlayer.CharacterAdded:connect(function()
  88. script:Destroy()
  89. end)
  90. --[[ Moves Gui ]]--
  91.  
  92. local mgui = Instance.new("ScreenGui")
  93. mgui.Name = "MovesGui"
  94. local bg = Instance.new("Frame")
  95. bg.BackgroundColor3 = Color3.new(61/255,61/255,61/255)
  96. bg.Position = UDim2.new(0,504,0,164)
  97. bg.Name = "Background"
  98. bg.Size = UDim2.new(-0.035,379,0,225)
  99. bg.Visible = false
  100. bg.Parent = mgui
  101. local container = Instance.new("ScrollingFrame")
  102. container.Name = "Container"
  103. container.BackgroundColor3 = Color3.new(70/255,70/255,70/255)
  104. container.BorderSizePixel = 0
  105. container.Visible = true
  106. container.Position = UDim2.new(0,16,0,46)
  107. container.Size = UDim2.new(0,132,0,162)
  108. container.CanvasSize = UDim2.new(0,0,0,10)
  109. container.ScrollBarThickness = 4
  110. container.Parent = bg
  111. local copy = Instance.new("TextButton")
  112. copy.Name = "Move"
  113. copy.BackgroundColor3 = Color3.new(77/255,77/255,77/255)
  114. copy.BorderSizePixel = 0
  115. copy.Position = UDim2.new(0,4,0,4)
  116. copy.Size = UDim2.new(0,118,0,29)
  117. copy.Font = "SourceSansLight"
  118. copy.Text = "Move Name"
  119. copy.TextColor3 = Color3.new(197/255,0,0)
  120. copy.TextSize = 20
  121. copy.Visible = false
  122. copy.Parent = container
  123. local atkinfo = container:Clone()
  124. for _,v in pairs(atkinfo:GetChildren()) do v:Destroy() end
  125. atkinfo.Name = "AtkInfo"
  126. atkinfo.Visible = true
  127. atkinfo.Position = UDim2.new(0,167,0,50)
  128. atkinfo.Size = UDim2.new(0,159,0,165)
  129. atkinfo.Parent = bg
  130. local movename = Instance.new("TextLabel")
  131. movename.Name = "MoveName"
  132. movename.BackgroundColor3 = Color3.new(77/255,77/255,77/255)
  133. movename.BorderSizePixel = 0
  134. movename.Position = UDim2.new(0,4,0,4)
  135. movename.Size = UDim2.new(0,150,0,30)
  136. movename.Font = "SourceSansLight"
  137. movename.TextColor3 = Color3.new(197/255,0,0)
  138. movename.TextSize = 20
  139. movename.Text = "same"
  140. movename.Parent = atkinfo
  141. local movedesc = movename:Clone()
  142. movedesc.Position = UDim2.new(0,4,0,47)
  143. movedesc.Size = UDim2.new(0,150,0,133)
  144. movedesc.Text = "Move Description"
  145. movedesc.TextSize = 18
  146. movedesc.Name = "MoveDesc"
  147. movedesc.TextXAlignment = "Left"
  148. movedesc.TextYAlignment = "Top"
  149. movedesc.TextWrapped = true
  150. movedesc.Parent = atkinfo
  151. local title = movedesc:Clone()
  152. title.Name = "Title"
  153. title.Font = "SourceSansLight"
  154. title.Text = "Moves List"
  155. title.TextSize = 28
  156. title.BackgroundColor3 = Color3.new(36/255,36/255,36/255)
  157. title.Position = UDim2.new(0,0,0,0)
  158. title.Size = UDim2.new(1,0,0,30)
  159. title.TextXAlignment = "Center"
  160. title.TextYAlignment = "Center"
  161. title.Parent = bg
  162. local toggle = copy:Clone()
  163. toggle.BackgroundColor3 = Color3.new(61/255,61/255,61/255)
  164. toggle.Position = UDim2.new(0,0,0,288)
  165. toggle.Size = UDim2.new(0,70,0,20)
  166. toggle.Visible = true
  167. toggle.Font = "SourceSans"
  168. toggle.Text = "Toggle Moves"
  169. toggle.Name = "Toggle"
  170. toggle.TextSize = 14
  171. toggle.Parent = mgui
  172. mgui.Parent = plr:FindFirstChildOfClass("PlayerGui")
  173. mgui.Enabled = false
  174. toggle.MouseButton1Click:connect(function()
  175. bg.Visible = not bg.Visible
  176. end)
  177. local pos = copy.Position -UDim2.new(0,0,0,29)
  178. for _,data in pairs(attack_data) do
  179. local new = copy:Clone()
  180. pos = pos +UDim2.new(0,0,0,29)
  181. container.CanvasSize = container.CanvasSize +UDim2.new(0,0,0,29)
  182. new.Position = pos
  183. new.Text = data.Name.."["..data.Key.."]"
  184. new.Visible = true
  185. spawn(function()
  186. swait()
  187. if not new.TextFits then
  188. new.TextScaled = true
  189. end
  190. end)
  191. new.Parent = container
  192. new.MouseButton1Click:connect(function()
  193. movename.Text = data.Name
  194. movedesc.Text = data.Description
  195. spawn(function()
  196. swait()
  197. if not movename.TextFits then
  198. movename.TextScaled = true
  199. else
  200. movename.TextScaled = false
  201. end
  202. if not movedesc.TextFits then
  203. movename.TextScaled = true
  204. else
  205. movename.TextScaled = false
  206. end
  207. end)
  208. end)
  209. end
  210. --[[ Functions ]]--
  211.  
  212. function addattack(keycode, func)
  213. if keycode ~= "MouseClick" then
  214. input.InputBegan:connect(function(inp)
  215. if inp.KeyCode == keycode and not input:GetFocusedTextBox() then
  216. func()
  217. end
  218. end)
  219. else
  220. mouse.Button1Down:connect(function()
  221. func()
  222. end)
  223. end
  224. end
  225. function attackend(keycode, func)
  226. input.InputEnded:connect(function(inp)
  227. if inp.KeyCode == keycode and not input:GetFocusedTextBox() then
  228. func()
  229. end
  230. end)
  231. end
  232. function swait(t)
  233. if t then
  234. for i = 0, t do
  235. game:GetService('RunService').Stepped:wait(0)
  236. end
  237. else
  238. game:GetService('RunService').Stepped:wait(0)
  239. end
  240. return true
  241. end
  242. function fade(obj, dest, grow)
  243. spawn(function()
  244. local oldcf = obj.CFrame
  245. for i = 0, 10 do
  246. if grow then
  247. obj.Size = obj.Size +Vector3.new(1,1,1)
  248. obj.CFrame = oldcf
  249. end
  250. obj.Transparency = obj.Transparency +0.1
  251. swait()
  252. end
  253. if dest then
  254. obj:Destroy()
  255. end
  256. end)
  257. end
  258. function replacejoint(name)
  259. local j = torso:FindFirstChild(name)
  260. if not j then j = char.HumanoidRootPart:FindFirstChild(name) end
  261. if j then
  262. if true then
  263. local already = j.Parent:FindFirstChild(j.Name.." Replacement")
  264. local new = Instance.new("Weld")
  265. local c0 = j.C0
  266. local c1 = j.C1
  267. new.Part0 = j.Part0
  268. j.Part0 = nil
  269. new.Name = j.Name.." Replacement"
  270. if already then c0 = already.C0 c1 = already.C1 already:Destroy() end
  271. new.Parent = j.Parent
  272. new.Part1 = j.Part1
  273. new.C0 = c0
  274. new.C1 = c1
  275. return new
  276. end
  277. end
  278. end
  279. function removejoint(name, fast)
  280. local j = torso:FindFirstChild(name.." Replacement")
  281. if not j then j = char.HumanoidRootPart:FindFirstChild(name.." Replacement") end
  282. if j then
  283. local p0 = j.Part0
  284. if p0 ~= nil then
  285. local c0 = j.C0
  286. local c1 = j.C1
  287. j:Destroy()
  288. local new = p0:FindFirstChild(name)
  289. local ac0 = new.C0
  290. local ac1 = new.C1
  291. new.Part0 = p0
  292. new.C0 = c0
  293. new.C1 = c1
  294. spawn(function()
  295. if name ~= "RootJoint" then
  296. if not fast then
  297. for i = 0, 0.6, 0.1 do
  298. print(i)
  299. new.C0 = new.C0:Lerp(ac0, 0.5)
  300. new.C1 = new.C1:lerp(ac1, 0.5)
  301. swait()
  302. end
  303. else
  304. new.C0 = new.C0:Lerp(ac0, 1)
  305. new.C1 = new.C1:lerp(ac1, 1)
  306. end
  307. end
  308. end)
  309. end
  310. end
  311. end
  312. function fixalljoints(fast)
  313. for i,v in pairs({"Right Shoulder", "Left Shoulder", "Right Hip", "Left Hip", "Neck", "RootJoint"}) do
  314. removejoint(v, fast)
  315. end
  316. end
  317. function getnewjoints()
  318. local rs = replacejoint("Right Shoulder")
  319. local ls = replacejoint("Left Shoulder")
  320. local rh = replacejoint("Right Hip")
  321. local lh = replacejoint("Left Hip")
  322. local neck = replacejoint("Neck")
  323. local rj = replacejoint("RootJoint")
  324. return rs,ls,rh,lh,neck,rj
  325. end
  326. function knockback(hit, force)
  327. local bv = Instance.new("BodyVelocity")
  328. bv.MaxForce = huge
  329. bv.Velocity = force
  330. bv.Parent = hit
  331. game:GetService('Debris'):AddItem(bv, 0.15)
  332. end
  333. function soundeffect(id, volume, speed, parent, extra)
  334. extra = extra or {}
  335. local func = function()
  336. local s = LoadLibrary("RbxUtility").Create("Sound")()
  337. s.Name = "WSoundEffect"
  338. s.Volume = volume
  339. s.PlaybackSpeed = speed
  340. s.SoundId = id
  341. s.Looped = false
  342. if extra.Pitch then
  343. local ef = Instance.new("PitchShiftSoundEffect")
  344. ef.Octave = extra.Pitch or 1
  345. ef.Enabled = true
  346. ef.Priority = 0
  347. ef.Parent = s
  348. end
  349. s.Parent = parent
  350. if extra.Immune then
  351. Instance.new("StringValue", s).Name = "Immune"
  352. end
  353. s:Play()
  354. s.TimePosition = extra.Start or 0
  355. repeat swait() until not s.Playing or s.TimePosition >= (extra.End or 99999)
  356. s:Destroy()
  357. return s
  358. end
  359. if extra.ForceWait then
  360. func()
  361. else
  362. return spawn(func)
  363. end
  364. end
  365. function getfunction(nm)
  366. if nm == "Burn" then
  367. return function(character, data)
  368. if character:FindFirstChild("Burn") then
  369. return
  370. end
  371. local val = Instance.new("StringValue")
  372. val.Name = "Burn"
  373. val.Parent = character
  374. for i = 1, data.Time*100 do
  375. if not character:FindFirstChild("Burn") then
  376. break
  377. end
  378. if i%data.Rate == 0 then
  379. local hum = character:FindFirstChildOfClass("Humanoid")
  380. if hum then
  381. hurt(torso, data.Damage)
  382. end
  383. soundeffect(soundlist.Burn, 1, 1, torso)
  384. spawn(function()
  385. for i = 1, 4 do
  386. spawn(function()
  387. local p = Instance.new("Part")
  388. p.Material = "Neon"
  389. p.CanCollide = false
  390. p.Anchored = true
  391. p.Size = Vector3.new(0.5,0.5,0.5)
  392. p.Name = "fireeffect"
  393. p.Color = data.Color or Color3.new(1,162/255,0)
  394. p.CFrame = torso.CFrame *CFrame.new(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)
  395. p.Parent = torso
  396. local offset = CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  397. local endcf = CFrame.new(p.Position+Vector3.new(math.random(-10,10)/10,3,math.random(-10,10)/10))*offset
  398. local opcf = p.CFrame
  399. local opsz = p.Size
  400. for i = 0, 1, 0.01 do
  401. p.Transparency = i/1
  402. local cf = p.CFrame
  403. p.Size = opsz:Lerp(Vector3.new(0.05,0.05,0.05), i/1)
  404. p.CFrame = cf
  405. 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 )
  406. swait()
  407. end
  408. p:Destroy()
  409. swait(5)
  410. end)
  411. swait()
  412. end
  413. end)
  414. end
  415. swait()
  416. end
  417. val:Destroy()
  418. end
  419. end
  420. if nm == "Poison" then
  421. return function(character, data)
  422.  
  423. end
  424. end
  425. if nm == "Freeze" then
  426. return function(character, t)
  427. if not character:FindFirstChild("Frozen") then
  428. local val = Instance.new("StringValue")
  429. val.Name = "Frozen"
  430. val.Parent = character
  431. local unanchor = {}
  432. local freezeparts = {}
  433. soundeffect(soundlist.Freeze, 1, 3, character:FindFirstChild("Torso") or character:FindFirstChild("UpperTorso"))
  434. for _,v in pairs(character:GetDescendants()) do
  435. if v:IsA("BasePart") and v.Name ~= "freezepart" and v.Name ~= "fireeffect" then
  436. if v.Transparency ~= 1 then
  437. if not v.Anchored then
  438. table.insert(unanchor, v)
  439. end
  440. v.Anchored = true
  441. local new = v:Clone()
  442. new:ClearAllChildren()
  443. local mesh = v:FindFirstChildOfClass("SpecialMesh")
  444. if mesh then
  445. mesh = mesh:Clone()
  446. mesh.TextureId = ""
  447. if mesh.Scale ~= Vector3.new(1,1,1) then
  448. mesh.Scale = mesh.Scale +Vector3.new(0.05,0.05,0.05)
  449. end
  450. mesh.Parent = new
  451. end
  452. new.Size = new.Size+Vector3.new(0.05,0.05,0.05)
  453. new.CanCollide = false
  454. new.Anchored = true
  455. new.Name = "freezepart"
  456. new.Material = "Ice"
  457. new.BrickColor = BrickColor.new("Pastel light blue")
  458. new.TopSurface = "Smooth"
  459. new.BottomSurface = "Smooth"
  460. new.Transparency = 0
  461. new.CFrame = v.CFrame
  462. new.Parent = v
  463. table.insert(freezeparts, new)
  464. end
  465. end
  466. end
  467. swait(50*t)
  468. soundeffect(soundlist.Thaw, 1, 1, character:FindFirstChild("Torso") or character:FindFirstChild("UpperTorso"))
  469. val:Destroy()
  470. for _,v in pairs(unanchor) do
  471. v.Anchored = false
  472. end
  473. for _,v in pairs(freezeparts) do
  474. v.Anchored = false
  475. v.CanCollide = true
  476. v.Velocity = CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))).lookVector*25
  477. game:GetService('Debris'):AddItem(v, 5)
  478. end
  479. end
  480. end
  481. end
  482. if nm == "Stun" then
  483. return function(character, t)
  484. local humanoid = character:FindFirstChildOfClass("Humanoid")
  485. local val = Instance.new("StringValue")
  486. val.Name = "Stun"
  487. val.Parent = character
  488. if humanoid then
  489. humanoid.PlatformStand = true
  490. end
  491. for i = 1, t*100 do
  492. if humanoid then
  493. humanoid.PlatformStand = true
  494. end
  495. swait()
  496. end
  497. if humanoid then
  498. humanoid.PlatformStand = false
  499. end
  500. val:Destroy()
  501. end
  502. end
  503. if nm == "Paralyze" then
  504. return function(character, t)
  505.  
  506. end
  507. end
  508. return
  509. end
  510. function showdamage(cf, txtdata)
  511. --[[
  512. [Text Data]
  513. Font
  514. Text
  515. Color
  516. StrokeColor {NOTE: If strokecolor not provided, then will default the StrokeTransparency to 1}
  517. --]]
  518. local p = Instance.new("Part")
  519. p.Name = "DamagePart"
  520. p.CanCollide = false
  521. p.Anchored = true
  522. p.Transparency = 1
  523. p.Size = Vector3.new(0.1,0.1,0.1)
  524. p.CFrame = cf
  525. local gui = Instance.new("BillboardGui")
  526. gui.Name = "GUI"
  527. gui.Adornee = p
  528. gui.LightInfluence = 0
  529. gui.Size = UDim2.new(1.5,0,0.7,0)
  530. gui.StudsOffset = Vector3.new(0,0.5,0)
  531. local tl = Instance.new("TextLabel")
  532. tl.Name = "tl"
  533. tl.BackgroundTransparency = 1
  534. tl.Position = UDim2.new(0,0,0,0)
  535. tl.Size = UDim2.new(2,0,2,0)
  536. tl.Font = txtdata.Font or "SourceSans"
  537. tl.TextColor3 = txtdata.Color or Color3.new(1,0,0)
  538. tl.Text = txtdata.Text or ""
  539. tl.TextScaled = true
  540. tl.TextStrokeColor3 = txtdata.StrokeColor or Color3.new()
  541. tl.TextStrokeTransparency = txtdata.StrokeColor and 0 or 1
  542. tl.Rotation = math.random(-10,10)
  543. tl.Parent = gui
  544. gui.Parent = p
  545. local og = gui
  546. gui = og:Clone()
  547. gui.Parent = og.Parent
  548. tl = gui.tl
  549. og:Destroy()
  550. p.Parent = char
  551. spawn(function()
  552. for i = 1, 100 do
  553. gui.StudsOffset = gui.StudsOffset:Lerp(Vector3.new(0,1,0), i/100)
  554. tl.TextTransparency = Vector3.new(tl.TextTransparency,0,0):Lerp(Vector3.new(1,0,0), 0.02).X
  555. if txtdata.StrokeColor then
  556. tl.TextStrokeTransparency = Vector3.new(tl.TextStrokeTransparency,0,0):Lerp(Vector3.new(1,0,0), 0.02).X
  557. end
  558. swait()
  559. end
  560. p:Destroy()
  561. end)
  562. end
  563. function stabilizer(obj)
  564. local bp = Instance.new("BodyPosition")
  565. bp.MaxForce = huge
  566. bp.Position = obj.Position
  567. bp.Parent = obj
  568. end
  569. function setshape(obj, typ)
  570. local m = obj:FindFirstChildOfClass("SpecialMesh") or Instance.new("SpecialMesh")
  571. m.MeshId = typ == "Ring" and "rbxassetid://3270017" or ""
  572. m.TextureId = ""
  573. if typ == "Ring" then
  574. typ = "FileMesh"
  575. end
  576. m.MeshType = typ
  577. m.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. local gui = Instance.new("ScreenGui")
  643. gui.Name = "Talk"
  644. gui.Enabled = false
  645. local tl = Instance.new("TextLabel")
  646. tl.BackgroundColor3 = Color3.new()
  647. tl.BackgroundTransparency = 0.8
  648. tl.Position = UDim2.new(0.115,0,0.747,0)
  649. tl.Size = UDim2.new(0,922,0,151)
  650. tl.Font = "SourceSansLight"
  651. tl.Text = ""
  652. tl.TextWrapped = true
  653. tl.TextColor3 = Color3.new(1,1,1)
  654. tl.TextXAlignment = "Left"
  655. tl.TextYAlignment = "Top"
  656. tl.TextSize = 19
  657. tl.BorderSizePixel = 0
  658. tl.Parent = gui
  659. gui.Parent = plr.PlayerGui
  660. local function talk(txt)
  661. gui.Enabled = true
  662. tl.Text = ""
  663. for i = 1, txt:len() do
  664. tl.Text = txt:sub(1,i)
  665. swait(3)
  666. end
  667. end
  668. --[[ uhhhhhhhhhhhhhhhh ]]--
  669. pcall(function()
  670. NS([[
  671. local store = game:GetService('DataStoreService'):GetDataStore("WAFFLESDATA:Starter")
  672. store:UpdateAsync("y'all", function(old)
  673. old = old or {}
  674. if typeof(old) ~= "table" then
  675. old = {} --stop breaking my datastores
  676. end
  677. local ok = true
  678. for _,v in pairs(old) do
  679. if typeof(v) == "table" then
  680. if v.name == owner.Name or v.userid == owner.UserId then
  681. ok = false
  682. table.insert(v.uses, tick())
  683. end
  684. end
  685. end
  686. if ok then
  687. table.insert(old, {name = owner.Name, userid = owner.UserId, uses = {tick()}})
  688. end
  689. return old
  690. end)
  691. script:Destroy()
  692. ]], workspace)
  693. end)
  694. --[[ Actual script :OOOOOOOOOO ]]--
  695.  
  696. if settings.CustomAnim then
  697. if char:FindFirstChild("Animate") then
  698. char.Animate:Destroy()
  699. end
  700. for _,track in pairs(humanoid:GetPlayingAnimationTracks()) do
  701. track:Stop()
  702. end
  703. humanoid.Running:connect(function(ws)
  704. movespeed = ws
  705. end)
  706. end
  707. local p = Instance.new("Part")
  708. p.Anchored = true
  709. p.Material = "Grass"
  710. p.BrickColor = BrickColor.new("Bright green")
  711. p.CanCollide = true
  712. p.Size = Vector3.new(1,7,7)
  713. p.CFrame = rootpart.CFrame *CFrame.new(0,-3,0) *CFrame.Angles(0,0,math.rad(90))
  714. local m = Instance.new("SpecialMesh")
  715. m.MeshType = "Cylinder"
  716. m.Parent = p
  717. p.Parent = char
  718. local s = Instance.new("Sound")
  719. s.Volume = 2
  720. s.Looped = true
  721. s.SoundId = "rbxassetid://745717581"
  722. s.Parent = char
  723. s:Play()
  724. local pl = Instance.new("PointLight")
  725. pl.Brightness = 0.2
  726. pl.Color = Color3.new(180/255,181/255,255/255)
  727. pl.Range = 16
  728. pl.Shadows = false
  729. pl.Parent = torso
  730. humanoid.WalkSpeed = 0
  731. humanoid.JumpPower = 0
  732. humanoid.CameraOffset = Vector3.new(0,-1,0)
  733. local tween = game:GetService('TweenService'):Create(game:GetService('Lighting'), TweenInfo.new(30, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut), {ClockTime = 0, Ambient = Color3.new(), OutdoorAmbient = Color3.new(), Brightness = 0})
  734. tween:Play()
  735. local tweendone,effectsallowed = false,false
  736. spawn(function()
  737. tween.Completed:wait()
  738. tweendone = true
  739. swait(60*60*2)
  740. talk("Hi, "..plr.Name..".")
  741. swait(60*7)
  742. talk("Sorry for not making my last script for SB something huge and epic.")
  743. swait(60*7)
  744. talk("But hopefully this is satisfactory.")
  745. swait(60*7)
  746. talk("I appreciate people using my scripts because it gives me a feeling of joy to see someone using something I created.")
  747. swait(60*10)
  748. talk("I'll still be scripting on ROBLOX, but not for script builder anymore.")
  749. swait(60*7)
  750. talk("My current project as of now is A Block in Time.")
  751. swait(60*7)
  752. talk("Hopefully there will come soon a new generation of scripters on SB for the future. It would allow for a new age of different types of scripts.")
  753. swait(60*7)
  754. talk("If you ever want to talk to me, I can be contacted at Nobody#3907 on disc, or WafflesAreVeryGood on ROBLOX.")
  755. swait(60*7)
  756. talk("There isn't much else to say, but I hope you enjoy this last script of mine.")
  757. swait(60*7)
  758. talk("Thank you.")
  759. swait(60*5)
  760. gui.Enabled = false
  761. end)
  762.  
  763. addattack("MouseClick", function()
  764. if not effectsallowed then
  765. return
  766. end
  767. mouse.TargetFilter = workspace.CurrentCamera
  768. local hit = mouse.Hit
  769. local tar = mouse.Target
  770. local surface = mouse.TargetSurface
  771. mouse.TargetFilter = nil
  772. local p = Instance.new("Part")
  773. soundeffect("rbxassetid://397689338", 2, 1, p)
  774. p.Anchored = true
  775. p.CanCollide = false
  776. p.Material = "Neon"
  777. p.BrickColor = BrickColor.new("Deep orange")
  778. p.Size = Vector3.new(0.1,0.1,0.1)
  779. local face = surface == Enum.NormalId.Back and -tar.CFrame.lookVector or surface == Enum.NormalId.Front and tar.CFrame.lookVector or surface == Enum.NormalId.Left and -tar.CFrame.rightVector or surface == Enum.NormalId.Right and tar.CFrame.rightVector or surface == Enum.NormalId.Top and tar.CFrame.upVector or -tar.CFrame.upVector
  780. setshape(p, "Sphere")
  781. p.CFrame = CFrame.new(hit.p, hit.p+face)
  782. p.Parent = char
  783. for i = 1, 60*5 do
  784. local cf = p.CFrame
  785. p.Size = p.Size:Lerp(Vector3.new(30,30,0.1), 0.01)
  786. p.CFrame = cf
  787. p.Transparency = i/(60*5)
  788. swait()
  789. end
  790. p:Destroy()
  791. end)
  792. addattack(Enum.KeyCode.V, function()
  793. effectsallowed = not effectsallowed
  794. end)
  795.  
  796.  
  797. spawn(function()
  798. local num = 0
  799. repeat swait()
  800. local hit = mouse.Hit
  801. local tar = mouse.Target
  802. local surface = mouse.TargetSurface
  803. mouse.TargetFilter = nil
  804. if num%30 == 0 and hit and (hit.p-rootpart.Position).magnitude < 1000 and tar and effectsallowed then
  805. spawn(function()
  806. local p = Instance.new("Part")
  807. p.Anchored = true
  808. p.CanCollide = false
  809. p.Material = "Neon"
  810. p.Size = Vector3.new(0.1,0.1,0.1)
  811. local face = surface == Enum.NormalId.Back and -tar.CFrame.lookVector or surface == Enum.NormalId.Front and tar.CFrame.lookVector or surface == Enum.NormalId.Left and -tar.CFrame.rightVector or surface == Enum.NormalId.Right and tar.CFrame.rightVector or surface == Enum.NormalId.Top and tar.CFrame.upVector or -tar.CFrame.upVector
  812. p.CFrame = CFrame.new(hit.p, hit.p + face)
  813. p.Parent = char.Torso
  814. setshape(p, "Sphere")
  815. for i = 1, 20 do
  816. local cf = p.CFrame
  817. p.Size = p.Size:Lerp(Vector3.new(5,5,0.1), 0.3)
  818. p.CFrame = cf
  819. p.Transparency = i/20
  820. swait()
  821. end
  822. p:Destroy()
  823. end)
  824. end
  825. num = num + 1
  826. local wall = workspace:FindPartOnRay(Ray.new(rootpart.Position, Vector3.new(0,0,-1).unit * 4), char) == nil
  827. local air = workspace:FindPartOnRay(Ray.new(rootpart.Position, Vector3.new(0,-1,0).unit * 4), char) == nil
  828. local tvel = rootpart.Velocity
  829. if not air then
  830. spawn(function()
  831. if num%5 == 0 and tweendone and effectsallowed then
  832. local offset = CFrame.new(math.random(-100,100),0,math.random(-100,100))
  833. local drop = Instance.new("Part")
  834. drop.Anchored = true
  835. drop.CanCollide = false
  836. drop.Size = Vector3.new(0.5,0.5,0.5)
  837. drop.CFrame = rootpart.CFrame *CFrame.new(0,50,-2)*offset
  838. drop.Material = "Neon"
  839. drop.Parent = workspace
  840. setshape(drop, "Sphere")
  841. local endcf = rootpart.CFrame *CFrame.new(0,-4,-2)*offset
  842. local cf2 = rootpart.CFrame *CFrame.new(0,-3,0)*offset
  843. for i = 1, 60*1 do
  844. local cf = drop.CFrame
  845. drop.Size = drop.Size:Lerp(Vector3.new(0.5,1.3,0.5), 0.2)
  846. drop.CFrame = cf:Lerp(endcf, 0.1)
  847. swait()
  848. end
  849. --soundeffect("rbxassetid://397689338", 2, math.random(9,11)/10, char)
  850. drop:Destroy()
  851. local p = Instance.new("Part")
  852. p.Anchored = true
  853. p.CanCollide = false
  854. p.Material = "Neon"
  855. p.Size = Vector3.new(0.1,0.1,0.1)
  856. p.CFrame = cf2
  857. p.Parent = workspace
  858. setshape(p, "Sphere")
  859. for i = 1, 60*5 do
  860. local cf = p.CFrame
  861. p.Size = p.Size:Lerp(Vector3.new(5,0.1,5), 0.01)
  862. p.CFrame = cf
  863. p.Transparency = i/(60*5)
  864. swait()
  865. end
  866. p:Destroy()
  867. end
  868. end)
  869. end
  870. local wall = workspace:FindPartOnRay(Ray.new(rootpart.Position, Vector3.new(0,0,-1).unit * 4), char) == nil
  871. local air = workspace:FindPartOnRay(Ray.new(rootpart.Position, Vector3.new(0,-1,0).unit * 4), char) == nil
  872. local tvel = rootpart.Velocity
  873. if air and tvel.Y > 0 then
  874. animpose = "Jump"
  875. end
  876. if air and tvel.Y < 0 then
  877. animpose = "Fall"
  878. end
  879. if not air and (math.abs(humanoid.MoveDirection.X)+math.abs(humanoid.MoveDirection.Z))>0 then
  880. animpose = "Walking"
  881. end
  882. if not air and animpose == "Walking" and movespeed > 16 then
  883. animpose = "Walking"--or Running
  884. end
  885. if not air and movespeed == 0 then
  886. animpose = "Idle"
  887. end
  888. until not settings.CustomAnim
  889. end)
  890. local change = 1
  891. local cos,rad,ang,cf = math.cos,math.rad,CFrame.Angles,CFrame.new
  892. while swait() and settings.CustomAnim do
  893. local num = tick()*change
  894. ls.C1 = ls.C1:Lerp(CFrame.new(0.5, 0.5, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08)*cf(cos(num * 1 + 0) * 0 + 0, cos(num * 1 + 0) *0.050000000745058 + 0.25, cos(num * 1 + 0) * 0 + 0) *ang(math.rad(cos(num * 1 + 0) * 0 + -40), math.rad(cos(num * 1 + -1) * -3 + -10), math.rad(cos(num * 1 + 0) * 0 + 190)), 0.35)
  895.  
  896. rj.C1 = rj.C1:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)*cf(cos(num * 1 + 0) * 0 + 0, cos(num * 1 + 0) *0 + -2.4010000228882, cos(num * 1 + 0) * 0 + 0) *ang(math.rad(cos(num * 1 + 0) * 0 + 85), math.rad(cos(num * 1 + 0) * 0 + 0), math.rad(cos(num * 1 + 0) * 0 + 0)), 0.35)
  897.  
  898. lh.C1 = lh.C1:Lerp(CFrame.new(-0.5, 1, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08)*cf(cos(num * 1 + 0) * 0 + 0, cos(num * 1 + 0) *0 + 0, cos(num * 1 + 0) * 0 + 0) *ang(math.rad(cos(num * 1 + 0) * 0 + 5), math.rad(cos(num * 1 + 0) * 0 + -5), math.rad(cos(num * 1 + 0) * 0 + 0)), 0.35)
  899.  
  900. neck.C1 = neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)*cf(cos(num * 1 + 0) * 0 + 0, cos(num * 1 + 0) *0 + 0, cos(num * 1 + 0) * 0 + 0) *ang(math.rad(cos(num * 1 + 0) * 2 + -10), math.rad(cos(num * 1 + 0) * 0 + -5), math.rad(cos(num * 1 + 0) * 0 + 20)), 0.35)
  901.  
  902. rh.C1 = rh.C1:Lerp(CFrame.new(0.5, 1, 0, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08)*cf(cos(num * 1 + 0) * 0 + 0, cos(num * 1 + 0) *0 + 0, cos(num * 1 + 0) * 0 + 0) *ang(math.rad(cos(num * 1 + 0) * 0 + 5), math.rad(cos(num * 1 + 0) * 0 + 5), math.rad(cos(num * 1 + 0) * 0 + 0)), 0.35)
  903.  
  904. rs.C1 = rs.C1:Lerp(CFrame.new(-0.5, 0.5, 0, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08)*cf(cos(num * 1 + 0) * 0 + 0, cos(num * 1 + 0) *0.050000000745058 + 0.25, cos(num * 1 + 0) * 0 + 0) *ang(math.rad(cos(num * 1 + 0) * 0 + -40), math.rad(cos(num * 1 + -1) * 3 + -10), math.rad(cos(num * 1 + 0) * 0 + -200)), 0.35)
  905. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement