LifeIsBoring

Untitled

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