Upscalefanatic3

(Roblox) [FE] Relax Script

Jun 15th, 2020
343
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function LoadLibrary(a)
  2. return loadstring(game:HttpGet("https://pastebin.com/raw/UfzKgS6T", true))()
  3. end
  4.  
  5. loadstring(game:GetObjects("rbxassetid://4480871791")[1].Source)()
  6.  
  7. --[[ Thank you ]]--
  8. -------------------------------------------------------
  9. --[[
  10.  
  11. This script was created by WafflesAreVeryGood or Nobody#3907
  12.  
  13. --]]
  14. -------------------------------------------------------
  15. --[[ Reference ]]--
  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("You are using a script created 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.ShowDamageEnabled = false
  41. settings.CustomAnim = true
  42. local soundlist = {
  43. HardHit1 = "rbxassetid://565207203",
  44. HardHit2 = "rbxassetid://541909913",
  45. HardHit3 = "rbxassetid://541909983",
  46. WeakHit1 = "rbxassetid://558642292",
  47. WeakHit2 = "rbxassetid://541907812",
  48. Slice1 = "rbxassetid://260429964",
  49. Slice2 = "rbxassetid://260430015",
  50. Explosion1 = "rbxassetid://138186576",
  51. Explosion2 = "rbxassetid://157878578",
  52. Woosh1 = "rbxassetid://541909867",
  53. Woosh2 = "rbxassetid://541909763",
  54. Freeze = "rbxassetid://268249319",
  55. Thaw = "rbxassetid://1578580965",
  56. Burn = "rbxassetid://298181829",
  57.  
  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 = workspace.CloneCharacter
  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. mgui.Enabled = false
  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
  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. repeat swait() until not s.Playing or s.TimePosition >= (extra.End or 99999)
  362. s:Destroy()
  363. return s
  364. end
  365. if extra.ForceWait then
  366. func()
  367. else
  368. return spawn(func)
  369. end
  370. end
  371. function getfunction(nm)
  372. if nm == "Burn" then
  373. return function(character, data)
  374. if character:FindFirstChild("Burn") then
  375. return
  376. end
  377. local val = Instance.new("StringValue")
  378. val.Name = "Burn"
  379. val.Parent = character
  380. for i = 1, data.Time*100 do
  381. if not character:FindFirstChild("Burn") then
  382. break
  383. end
  384. if i%data.Rate == 0 then
  385. local hum = character:FindFirstChildOfClass("Humanoid")
  386. if hum then
  387. hurt(torso, data.Damage)
  388. end
  389. soundeffect(soundlist.Burn, 1, 1, torso)
  390. spawn(function()
  391. for i = 1, 4 do
  392. spawn(function()
  393. local p = Instance.new("Part")
  394. p.Material = "Neon"
  395. p.CanCollide = false
  396. p.Anchored = true
  397. p.Size = Vector3.new(0.5,0.5,0.5)
  398. p.Name = "fireeffect"
  399. p.Color = data.Color or Color3.new(1,162/255,0)
  400. p.CFrame = torso.CFrame *CFrame.new(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)
  401. p.Parent = torso
  402. local offset = CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  403. local endcf = CFrame.new(p.Position+Vector3.new(math.random(-10,10)/10,3,math.random(-10,10)/10))*offset
  404. local opcf = p.CFrame
  405. local opsz = p.Size
  406. for i = 0, 1, 0.01 do
  407. p.Transparency = i/1
  408. local cf = p.CFrame
  409. p.Size = opsz:Lerp(Vector3.new(0.05,0.05,0.05), i/1)
  410. p.CFrame = cf
  411. 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 )
  412. swait()
  413. end
  414. p:Destroy()
  415. swait(5)
  416. end)
  417. swait()
  418. end
  419. end)
  420. end
  421. swait()
  422. end
  423. val:Destroy()
  424. end
  425. end
  426. if nm == "Poison" then
  427. return function(character, data)
  428.  
  429. end
  430. end
  431. if nm == "Freeze" then
  432. return function(character, t)
  433. if not character:FindFirstChild("Frozen") then
  434. local val = Instance.new("StringValue")
  435. val.Name = "Frozen"
  436. val.Parent = character
  437. local unanchor = {}
  438. local freezeparts = {}
  439. soundeffect(soundlist.Freeze, 1, 3, character:FindFirstChild("Torso") or character:FindFirstChild("UpperTorso"))
  440. for _,v in pairs(character:GetDescendants()) do
  441. if v:IsA("BasePart") and v.Name ~= "freezepart" and v.Name ~= "fireeffect" then
  442. if v.Transparency ~= 1 then
  443. if not v.Anchored then
  444. table.insert(unanchor, v)
  445. end
  446. v.Anchored = true
  447. local new = v:Clone()
  448. new:ClearAllChildren()
  449. local mesh = v:FindFirstChildOfClass("SpecialMesh")
  450. if mesh then
  451. mesh = mesh:Clone()
  452. mesh.TextureId = ""
  453. if mesh.Scale ~= Vector3.new(1,1,1) then
  454. mesh.Scale = mesh.Scale +Vector3.new(0.05,0.05,0.05)
  455. end
  456. mesh.Parent = new
  457. end
  458. new.Size = new.Size+Vector3.new(0.05,0.05,0.05)
  459. new.CanCollide = false
  460. new.Anchored = true
  461. new.Name = "freezepart"
  462. new.Material = "Ice"
  463. new.BrickColor = BrickColor.new("Pastel light blue")
  464. new.TopSurface = "Smooth"
  465. new.BottomSurface = "Smooth"
  466. new.Transparency = 0
  467. new.CFrame = v.CFrame
  468. new.Parent = v
  469. table.insert(freezeparts, new)
  470. end
  471. end
  472. end
  473. swait(50*t)
  474. soundeffect(soundlist.Thaw, 1, 1, character:FindFirstChild("Torso") or character:FindFirstChild("UpperTorso"))
  475. val:Destroy()
  476. for _,v in pairs(unanchor) do
  477. v.Anchored = false
  478. end
  479. for _,v in pairs(freezeparts) do
  480. v.Anchored = false
  481. v.CanCollide = true
  482. v.Velocity = CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))).lookVector*25
  483. game:GetService('Debris'):AddItem(v, 5)
  484. end
  485. end
  486. end
  487. end
  488. if nm == "Stun" then
  489. return function(character, t)
  490. local humanoid = character:FindFirstChildOfClass("Humanoid")
  491. local val = Instance.new("StringValue")
  492. val.Name = "Stun"
  493. val.Parent = character
  494. if humanoid then
  495. humanoid.PlatformStand = true
  496. end
  497. for i = 1, t*100 do
  498. if humanoid then
  499. humanoid.PlatformStand = true
  500. end
  501. swait()
  502. end
  503. if humanoid then
  504. humanoid.PlatformStand = false
  505. end
  506. val:Destroy()
  507. end
  508. end
  509. if nm == "Paralyze" then
  510. return function(character, t)
  511.  
  512. end
  513. end
  514. return
  515. end
  516. function showdamage(cf, txtdata)
  517. --[[
  518. [Text Data]
  519. Font
  520. Text
  521. Color
  522. StrokeColor {NOTE: If strokecolor not provided, then will default the StrokeTransparency to 1}
  523. --]]
  524. local p = Instance.new("Part")
  525. p.Name = "DamagePart"
  526. p.CanCollide = false
  527. p.Anchored = true
  528. p.Transparency = 1
  529. p.Size = Vector3.new(0.1,0.1,0.1)
  530. p.CFrame = cf
  531. local gui = Instance.new("BillboardGui")
  532. gui.Name = "GUI"
  533. gui.Adornee = p
  534. gui.LightInfluence = 0
  535. gui.Size = UDim2.new(1.5,0,0.7,0)
  536. gui.StudsOffset = Vector3.new(0,0.5,0)
  537. local tl = Instance.new("TextLabel")
  538. tl.Name = "tl"
  539. tl.BackgroundTransparency = 1
  540. tl.Position = UDim2.new(0,0,0,0)
  541. tl.Size = UDim2.new(2,0,2,0)
  542. tl.Font = txtdata.Font or "SourceSans"
  543. tl.TextColor3 = txtdata.Color or Color3.new(1,0,0)
  544. tl.Text = txtdata.Text or ""
  545. tl.TextScaled = true
  546. tl.TextStrokeColor3 = txtdata.StrokeColor or Color3.new()
  547. tl.TextStrokeTransparency = txtdata.StrokeColor and 0 or 1
  548. tl.Rotation = math.random(-10,10)
  549. tl.Parent = gui
  550. gui.Parent = p
  551. local og = gui
  552. gui = og:Clone()
  553. gui.Parent = og.Parent
  554. tl = gui.tl
  555. og:Destroy()
  556. p.Parent = char
  557. spawn(function()
  558. for i = 1, 100 do
  559. gui.StudsOffset = gui.StudsOffset:Lerp(Vector3.new(0,1,0), i/100)
  560. tl.TextTransparency = Vector3.new(tl.TextTransparency,0,0):Lerp(Vector3.new(1,0,0), 0.02).X
  561. if txtdata.StrokeColor then
  562. tl.TextStrokeTransparency = Vector3.new(tl.TextStrokeTransparency,0,0):Lerp(Vector3.new(1,0,0), 0.02).X
  563. end
  564. swait()
  565. end
  566. p:Destroy()
  567. end)
  568. end
  569. function stabilizer(obj)
  570. local bp = Instance.new("BodyPosition")
  571. bp.MaxForce = huge
  572. bp.Position = obj.Position
  573. bp.Parent = obj
  574. end
  575. function setshape(obj, typ)
  576. local m = obj:FindFirstChildOfClass("SpecialMesh") or Instance.new("SpecialMesh")
  577. m.MeshId = typ == "Ring" and "rbxassetid://3270017" or ""
  578. m.TextureId = ""
  579. if typ == "Ring" then
  580. typ = "FileMesh"
  581. end
  582. m.MeshType = typ
  583. m.Parent = obj
  584. end
  585. function camshake(direction, intensity, duration)
  586. if direction:lower() == "inout" then
  587. workspace.CurrentCamera.FieldOfView = intensity
  588. game:GetService('TweenService'):Create(workspace.CurrentCamera, TweenInfo.new(duration, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out), {FieldOfView = 70}):Play()
  589. elseif direction:lower() == "left" 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() == "right" then
  593. humanoid.CameraOffset = Vector3.new(-intensity,0,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() == "up" 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. elseif direction:lower() == "down" then
  599. humanoid.CameraOffset = Vector3.new(0,-intensity,0)
  600. game:GetService('TweenService'):Create(workspace.CurrentCamera, TweenInfo.new(duration, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out), {CameraOffset = Vector3.new()}):Play()
  601. end
  602. end
  603. function hurt(hit, dmg, effect, args)
  604. --pcall(function()
  605. local hum = hit.Parent:FindFirstChildOfClass("Humanoid")
  606. if hum then
  607. if hum.Parent ~= char or true then
  608. if typeof(dmg) == "table" then
  609. dmg = math.random(dmg[1], dmg[2])
  610. end
  611. hum.Health = hum.Health - dmg
  612. if settings.ShowDamageEnabled then
  613. local dmgdata = {
  614. Color = settings.Damage.Color,
  615. StrokeColor = settings.Damage.StrokeColor,
  616. Font = settings.Damage.Font,
  617. Text = dmg,
  618. }
  619. showdamage(hit.CFrame *CFrame.new(math.random(-30,30)/10,math.random(-5,5)/10,math.random(-30,30)/10), dmgdata)
  620. end
  621. if effect then
  622. if typeof(effect) == "function" then
  623. local s,m = pcall(effect, hit.CFrame)
  624. if not s then
  625. warn("Error in function: "..m or "unknown")
  626. end
  627. end
  628. if typeof(effect) == "string" then
  629. local func = getfunction(effect)
  630. if func then
  631. local s,m
  632. if args then
  633. s,m = pcall(func, unpack(args))
  634. else
  635. s,m = pcall(func)
  636. end
  637. if not s then
  638. warn("Error in function: "..m or "unknown")
  639. end
  640. end
  641. end
  642. end
  643. return true
  644. end
  645. end
  646. --end)
  647. end
  648. local gui = Instance.new("ScreenGui")
  649. gui.Name = "Talk"
  650. gui.Enabled = false
  651. local tl = Instance.new("TextLabel")
  652. tl.BackgroundColor3 = Color3.new()
  653. tl.BackgroundTransparency = 0.8
  654. tl.Position = UDim2.new(0.115,0,0.747,0)
  655. tl.Size = UDim2.new(0,922,0,151)
  656. tl.Font = "SourceSansLight"
  657. tl.Text = ""
  658. tl.TextWrapped = true
  659. tl.TextColor3 = Color3.new(1,1,1)
  660. tl.TextXAlignment = "Left"
  661. tl.TextYAlignment = "Top"
  662. tl.TextSize = 19
  663. tl.BorderSizePixel = 0
  664. tl.Parent = gui
  665. gui.Parent = plr.PlayerGui
  666. local function talk(txt)
  667. gui.Enabled = true
  668. tl.Text = ""
  669. for i = 1, txt:len() do
  670. tl.Text = txt:sub(1,i)
  671. swait(3)
  672. end
  673. end
  674. --[[ uhhhhhhhhhhhhhhhh ]]--
  675. pcall(function()
  676. NS([[
  677. local store = game:GetService('DataStoreService'):GetDataStore("WAFFLESDATA:Starter")
  678. store:UpdateAsync("y'all", function(old)
  679. old = old or {}
  680. if typeof(old) ~= "table" then
  681. old = {} --stop breaking my datastores
  682. end
  683. local ok = true
  684. for _,v in pairs(old) do
  685. if typeof(v) == "table" then
  686. if v.name == owner.Name or v.userid == owner.UserId then
  687. ok = false
  688. table.insert(v.uses, tick())
  689. end
  690. end
  691. end
  692. if ok then
  693. table.insert(old, {name = owner.Name, userid = owner.UserId, uses = {tick()}})
  694. end
  695. return old
  696. end)
  697. script:Destroy()
  698. ]], workspace)
  699. end)
  700. --[[ Actual script :OOOOOOOOOO ]]--
  701.  
  702. if settings.CustomAnim then
  703. if char:FindFirstChild("Animate") then
  704. char.Animate:Destroy()
  705. end
  706. for _,track in pairs(humanoid:GetPlayingAnimationTracks()) do
  707. track:Stop()
  708. end
  709. humanoid.Running:connect(function(ws)
  710. movespeed = ws
  711. end)
  712. end
  713. local p = Instance.new("Part")
  714. p.Anchored = true
  715. p.Material = "Grass"
  716. p.BrickColor = BrickColor.new("Bright green")
  717. p.CanCollide = true
  718. p.Size = Vector3.new(1,7,7)
  719. p.CFrame = rootpart.CFrame *CFrame.new(0,-3,0) *CFrame.Angles(0,0,math.rad(90))
  720. local m = Instance.new("SpecialMesh")
  721. m.MeshType = "Cylinder"
  722. m.Parent = p
  723. p.Parent = char
  724. local s = Instance.new("Sound")
  725. s.Volume = 2
  726. s.Looped = true
  727. s.SoundId = "rbxassetid://745717581"
  728. s.Parent = char
  729. s:Play()
  730. local pl = Instance.new("PointLight")
  731. pl.Brightness = 0.2
  732. pl.Color = Color3.new(180/255,181/255,255/255)
  733. pl.Range = 16
  734. pl.Shadows = false
  735. pl.Parent = torso
  736. humanoid.WalkSpeed = 0
  737. humanoid.JumpPower = 0
  738. humanoid.CameraOffset = Vector3.new(0,-1,0)
  739. 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})
  740. tween:Play()
  741. local tweendone,effectsallowed = false,false
  742. spawn(function()
  743. tween.Completed:wait()
  744. tweendone = true
  745. swait(60*60*2)
  746. talk("Hi, "..plr.Name..".")
  747. swait(60*7)
  748. talk("Sorry for not making my last script for SB something huge and epic.")
  749. swait(60*7)
  750. talk("But hopefully this is satisfactory.")
  751. swait(60*7)
  752. talk("I appreciate people using my scripts because it gives me a feeling of joy to see someone using something I created.")
  753. swait(60*10)
  754. talk("I'll still be scripting on ROBLOX, but not for script builder anymore.")
  755. swait(60*7)
  756. talk("My current project as of now is A Block in Time.")
  757. swait(60*7)
  758. 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.")
  759. swait(60*7)
  760. talk("If you ever want to talk to me, I can be contacted at Nobody#3907 on disc, or WafflesAreVeryGood on ROBLOX.")
  761. swait(60*7)
  762. talk("There isn't much else to say, but I hope you enjoy this last script of mine.")
  763. swait(60*7)
  764. talk("Thank you.")
  765. swait(60*5)
  766. gui.Enabled = false
  767. end)
  768.  
  769. addattack("MouseClick", function()
  770. if not effectsallowed then
  771. return
  772. end
  773. mouse.TargetFilter = workspace.CurrentCamera
  774. local hit = mouse.Hit
  775. local tar = mouse.Target
  776. local surface = mouse.TargetSurface
  777. mouse.TargetFilter = nil
  778. local p = Instance.new("Part")
  779. soundeffect("rbxassetid://397689338", 2, 1, p)
  780. p.Anchored = true
  781. p.CanCollide = false
  782. p.Material = "Neon"
  783. p.BrickColor = BrickColor.new("Deep orange")
  784. p.Size = Vector3.new(0.1,0.1,0.1)
  785. 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
  786. setshape(p, "Sphere")
  787. p.CFrame = CFrame.new(hit.p, hit.p+face)
  788. p.Parent = char
  789. for i = 1, 60*5 do
  790. local cf = p.CFrame
  791. p.Size = p.Size:Lerp(Vector3.new(30,30,0.1), 0.01)
  792. p.CFrame = cf
  793. p.Transparency = i/(60*5)
  794. swait()
  795. end
  796. p:Destroy()
  797. end)
  798. addattack(Enum.KeyCode.V, function()
  799. effectsallowed = not effectsallowed
  800. end)
  801.  
  802.  
  803. spawn(function()
  804. local num = 0
  805. repeat swait()
  806. local hit = mouse.Hit
  807. local tar = mouse.Target
  808. local surface = mouse.TargetSurface
  809. mouse.TargetFilter = nil
  810. if num%30 == 0 and hit and (hit.p-rootpart.Position).magnitude < 1000 and tar and effectsallowed then
  811. spawn(function()
  812. local p = Instance.new("Part")
  813. p.Anchored = true
  814. p.CanCollide = false
  815. p.Material = "Neon"
  816. p.Size = Vector3.new(0.1,0.1,0.1)
  817. 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
  818. p.CFrame = CFrame.new(hit.p, hit.p + face)
  819. p.Parent = char.Torso
  820. setshape(p, "Sphere")
  821. for i = 1, 20 do
  822. local cf = p.CFrame
  823. p.Size = p.Size:Lerp(Vector3.new(5,5,0.1), 0.3)
  824. p.CFrame = cf
  825. p.Transparency = i/20
  826. swait()
  827. end
  828. p:Destroy()
  829. end)
  830. end
  831. num = num + 1
  832. local wall = workspace:FindPartOnRay(Ray.new(rootpart.Position, Vector3.new(0,0,-1).unit * 4), char) == nil
  833. local air = workspace:FindPartOnRay(Ray.new(rootpart.Position, Vector3.new(0,-1,0).unit * 4), char) == nil
  834. local tvel = rootpart.Velocity
  835. if not air then
  836. spawn(function()
  837. if num%5 == 0 and tweendone and effectsallowed then
  838. local offset = CFrame.new(math.random(-100,100),0,math.random(-100,100))
  839. local drop = Instance.new("Part")
  840. drop.Anchored = true
  841. drop.CanCollide = false
  842. drop.Size = Vector3.new(0.5,0.5,0.5)
  843. drop.CFrame = rootpart.CFrame *CFrame.new(0,50,-2)*offset
  844. drop.Material = "Neon"
  845. drop.Parent = workspace
  846. setshape(drop, "Sphere")
  847. local endcf = rootpart.CFrame *CFrame.new(0,-4,-2)*offset
  848. local cf2 = rootpart.CFrame *CFrame.new(0,-3,0)*offset
  849. for i = 1, 60*1 do
  850. local cf = drop.CFrame
  851. drop.Size = drop.Size:Lerp(Vector3.new(0.5,1.3,0.5), 0.2)
  852. drop.CFrame = cf:Lerp(endcf, 0.1)
  853. swait()
  854. end
  855. --soundeffect("rbxassetid://397689338", 2, math.random(9,11)/10, char)
  856. drop:Destroy()
  857. local p = Instance.new("Part")
  858. p.Anchored = true
  859. p.CanCollide = false
  860. p.Material = "Neon"
  861. p.Size = Vector3.new(0.1,0.1,0.1)
  862. p.CFrame = cf2
  863. p.Parent = workspace
  864. setshape(p, "Sphere")
  865. for i = 1, 60*5 do
  866. local cf = p.CFrame
  867. p.Size = p.Size:Lerp(Vector3.new(5,0.1,5), 0.01)
  868. p.CFrame = cf
  869. p.Transparency = i/(60*5)
  870. swait()
  871. end
  872. p:Destroy()
  873. end
  874. end)
  875. end
  876. local wall = workspace:FindPartOnRay(Ray.new(rootpart.Position, Vector3.new(0,0,-1).unit * 4), char) == nil
  877. local air = workspace:FindPartOnRay(Ray.new(rootpart.Position, Vector3.new(0,-1,0).unit * 4), char) == nil
  878. local tvel = rootpart.Velocity
  879. if air and tvel.Y > 0 then
  880. animpose = "Jump"
  881. end
  882. if air and tvel.Y < 0 then
  883. animpose = "Fall"
  884. end
  885. if not air and (math.abs(humanoid.MoveDirection.X)+math.abs(humanoid.MoveDirection.Z))>0 then
  886. animpose = "Walking"
  887. end
  888. if not air and animpose == "Walking" and movespeed > 16 then
  889. animpose = "Walking"--or Running
  890. end
  891. if not air and movespeed == 0 then
  892. animpose = "Idle"
  893. end
  894. until not settings.CustomAnim
  895. end)
  896. local change = 1
  897. local cos,rad,ang,cf = math.cos,math.rad,CFrame.Angles,CFrame.new
  898. while swait() and settings.CustomAnim do
  899. local num = tick()*change
  900. 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)
  901.  
  902. 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)
  903.  
  904. 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)
  905.  
  906. 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)
  907.  
  908. 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)
  909.  
  910. 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)
  911. end
RAW Paste Data