Advertisement
DaOMEGAa32

fe sweep

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