Advertisement
MESCRIPT

gotta SCRIPT SCRIPT SCRIPT

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