ProKameron528

Untitled

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