Advertisement
Guest User

Untitled

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