McSans

Relax

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