TheLunarIsThinking_

Chill Time

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