Advertisement
DaOMEGAa32

fe sanic

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