Advertisement
wamandnj

Untitled

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