DarkScriptZEditors

Relax

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