Advertisement
Guest User

Baldi's Basics GUI

a guest
Jun 18th, 2018
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 117.24 KB | None | 0 0
  1.  
  2. -- Objects
  3.  
  4. local baldigui = Instance.new("ScreenGui")
  5. local MainFrame = Instance.new("Frame")
  6. local mbar1 = Instance.new("Frame")
  7. local mbar2 = Instance.new("Frame")
  8. local mtitle = Instance.new("TextLabel")
  9. local exitbutton = Instance.new("TextButton")
  10. local exebut = Instance.new("TextButton")
  11. local TextLabel = Instance.new("TextLabel")
  12. local ScriptFrame = Instance.new("Frame")
  13. local sbar1 = Instance.new("Frame")
  14. local sbar2 = Instance.new("Frame")
  15. local baldi = Instance.new("TextButton")
  16. local sexitbut = Instance.new("TextButton")
  17. local principal = Instance.new("TextButton")
  18. local bully = Instance.new("TextButton")
  19. local gottasweep = Instance.new("TextButton")
  20. local playtime = Instance.new("TextButton")
  21.  
  22. -- Properties
  23.  
  24. baldigui.Name = "baldi gui"
  25. baldigui.Parent = game.StarterGui
  26.  
  27. MainFrame.Name = "MainFrame"
  28. MainFrame.Parent = baldigui
  29. MainFrame.Active = true
  30. MainFrame.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
  31. MainFrame.BorderSizePixel = 0
  32. MainFrame.Draggable = true
  33. MainFrame.Position = UDim2.new(0.0130399764, 0, 0.486465394, 0)
  34. MainFrame.Selectable = true
  35. MainFrame.Size = UDim2.new(0, 450, 0, 344)
  36.  
  37. mbar1.Name = "mbar1"
  38. mbar1.Parent = MainFrame
  39. mbar1.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  40. mbar1.BorderSizePixel = 0
  41. mbar1.Size = UDim2.new(0, 450, 0, 34)
  42.  
  43. mbar2.Name = "mbar2"
  44. mbar2.Parent = MainFrame
  45. mbar2.BackgroundColor3 = Color3.new(0.0392157, 0.0392157, 0.0392157)
  46. mbar2.BorderSizePixel = 0
  47. mbar2.Position = UDim2.new(0, 0, 0.0988372117, 0)
  48. mbar2.Size = UDim2.new(0, 450, 0, 6)
  49.  
  50. mtitle.Name = "mtitle"
  51. mtitle.Parent = MainFrame
  52. mtitle.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  53. mtitle.BorderSizePixel = 0
  54. mtitle.Position = UDim2.new(0.0266666673, 0, 0, 0)
  55. mtitle.Size = UDim2.new(0, 110, 0, 34)
  56. mtitle.Font = Enum.Font.SourceSansBold
  57. mtitle.Text = "Baldi's Basics GUI"
  58. mtitle.TextColor3 = Color3.new(0.333333, 1, 0)
  59. mtitle.TextSize = 23
  60. mtitle.TextXAlignment = Enum.TextXAlignment.Left
  61.  
  62. exitbutton.Name = "exitbutton"
  63. exitbutton.Parent = MainFrame
  64. exitbutton.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  65. exitbutton.BorderSizePixel = 0
  66. exitbutton.Position = UDim2.new(0.935555577, 0, 0, 0)
  67. exitbutton.Size = UDim2.new(0, 29, 0, 34)
  68. exitbutton.Font = Enum.Font.SourceSansBold
  69. exitbutton.Text = "X"
  70. exitbutton.TextColor3 = Color3.new(1, 1, 1)
  71. exitbutton.TextSize = 22
  72. exitbutton.MouseButton1Down:connect(function()
  73. Tutorial:Destroy()
  74. end)
  75.  
  76. exebut.Name = "exebut"
  77. exebut.Parent = MainFrame
  78. exebut.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  79. exebut.BorderColor3 = Color3.new(0.0392157, 0.0392157, 0.0392157)
  80. exebut.BorderSizePixel = 4
  81. exebut.Position = UDim2.new(0.126666665, 0, 0.232558146, 0)
  82. exebut.Size = UDim2.new(0, 340, 0, 183)
  83. exebut.Font = Enum.Font.SourceSansBold
  84. exebut.Text = "Characters"
  85. exebut.TextColor3 = Color3.new(1, 1, 1)
  86. exebut.TextSize = 25
  87.  
  88. TextLabel.Parent = MainFrame
  89. TextLabel.BackgroundColor3 = Color3.new(0.113725, 0.113725, 0.113725)
  90. TextLabel.BorderSizePixel = 0
  91. TextLabel.Position = UDim2.new(0.0266666673, 0, 0.82848835, 0)
  92. TextLabel.Size = UDim2.new(0, 225, 0, 50)
  93. TextLabel.Font = Enum.Font.SourceSans
  94. TextLabel.Text = "By RBLX_Vurtivus"
  95. TextLabel.TextColor3 = Color3.new(1, 1, 1)
  96. TextLabel.TextSize = 36
  97. TextLabel.TextWrapped = true
  98. TextLabel.TextXAlignment = Enum.TextXAlignment.Left
  99.  
  100. ScriptFrame.Name = "ScriptFrame"
  101. ScriptFrame.Parent = baldigui
  102. ScriptFrame.Active = true
  103. ScriptFrame.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
  104. ScriptFrame.BorderSizePixel = 0
  105. ScriptFrame.Draggable = true
  106. ScriptFrame.Position = UDim2.new(0.361069828, 0, 0.487142861, 0)
  107. ScriptFrame.Selectable = true
  108. ScriptFrame.Size = UDim2.new(0, 254, 0, 337)
  109. ScriptFrame.Visible = false
  110.  
  111. sbar1.Name = "sbar1"
  112. sbar1.Parent = ScriptFrame
  113. sbar1.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  114. sbar1.BorderSizePixel = 0
  115. sbar1.Size = UDim2.new(0, 254, 0, 27)
  116.  
  117. sbar2.Name = "sbar2"
  118. sbar2.Parent = ScriptFrame
  119. sbar2.BackgroundColor3 = Color3.new(0.0392157, 0.0392157, 0.0392157)
  120. sbar2.BorderSizePixel = 0
  121. sbar2.Position = UDim2.new(0, 0, 0.0810969546, 0)
  122. sbar2.Size = UDim2.new(0, 254, 0, 6)
  123.  
  124. baldi.Name = "baldi"
  125. baldi.Parent = ScriptFrame
  126. baldi.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  127. baldi.BorderColor3 = Color3.new(0.0392157, 0.0392157, 0.0392157)
  128. baldi.BorderSizePixel = 4
  129. baldi.Position = UDim2.new(0.240157485, 0, 0.12462908, 0)
  130. baldi.Size = UDim2.new(0, 132, 0, 42)
  131. baldi.Font = Enum.Font.SourceSansBold
  132. baldi.Text = "Baldi"
  133. baldi.TextColor3 = Color3.new(1, 1, 1)
  134. baldi.TextSize = 25
  135. baldi.TextWrapped = true
  136. baldi.MouseButton1Down:connect(function()
  137. --[[ Baldi ]]--
  138. -------------------------------------------------------
  139. --[[
  140.  
  141. This script was created by WafflesAreVeryGood.
  142. ATTACKS
  143. _______
  144.  
  145.  
  146. --]]
  147. -------------------------------------------------------
  148. --[[ Reference ]]--
  149. --[[
  150. Burn Function
  151. hurt(char.Head, 15, "Burn", {char, {Color = Color3.new(0,1,1), Time = 1, Rate = 20, Damage = {1,5}}})
  152.  
  153. Freeze Function
  154. hurt(char.Head, 0, "Freeze", {char, 1})
  155.  
  156. Stun Function
  157. hurt(char.Head, 0, "Stun", {char, 0.2})
  158. --]]
  159. -------------------------------------------------------
  160. math.randomseed(tick())
  161. print("You are using a script created by WafflesAreVeryGood!")
  162. warn("--------Global Message--------")
  163. warn(game:GetService("MarketplaceService"):GetProductInfo(1720721621).Description)
  164. warn("------------------------------")
  165. --[[Changeable Variables]]--
  166. local settings = {}
  167. --ShowDamage settings
  168. settings.Damage = {
  169. Color = nil,
  170. StrokeColor = nil,
  171. Font = nil,
  172. }
  173. settings.AttackMenu = false
  174. settings.ShowDamageEnabled = false
  175. settings.CustomAnim = false
  176. local soundlist = {
  177. HardHit1 = "rbxassetid://565207203",
  178. HardHit2 = "rbxassetid://541909913",
  179. HardHit3 = "rbxassetid://541909983",
  180. WeakHit1 = "rbxassetid://558642292",
  181. WeakHit2 = "rbxassetid://541907812",
  182. Slice1 = "rbxassetid://260429964",
  183. Slice2 = "rbxassetid://260430015",
  184. Explosion1 = "rbxassetid://138186576",
  185. Explosion2 = "rbxassetid://157878578",
  186. Woosh1 = "rbxassetid://541909867",
  187. Woosh2 = "rbxassetid://541909763",
  188. Freeze = "rbxassetid://268249319",
  189. Thaw = "rbxassetid://1578580965",
  190. Burn = "rbxassetid://298181829",
  191. OnDeath = "rbxassetid://1846449729",
  192. Background = "rbxassetid://1718183351",
  193. Ruler = "rbxassetid://1872130118",
  194. }
  195. local attack_data = {
  196. {
  197. Name = "Attack",
  198. Description = "Description",
  199. Key = "Key",
  200. },
  201.  
  202. }
  203.  
  204. --[[Important Variables]]--
  205. local plr = game:GetService('Players').LocalPlayer
  206. local char = plr.Character
  207. local mouse = plr:GetMouse()
  208. local input = game:GetService('UserInputService')
  209. ----
  210. local joints = {"Right Shoulder", "Left Shoulder", "Right Hip", "Left Hip", "Neck", "RootJoint"}
  211. local torso,head,rootpart = char.Torso,char.Head,char.HumanoidRootPart
  212. local rs = torso["Right Shoulder"]
  213. local ls = torso["Left Shoulder"]
  214. local rh = torso["Right Hip"]
  215. local lh = torso["Left Hip"]
  216. local neck = torso.Neck
  217. local rj = rootpart["RootJoint"]
  218. local humanoid = char:FindFirstChildOfClass("Humanoid")
  219. ----
  220. local huge = Vector3.new(math.huge, math.huge, math.huge)
  221. local attacking = false
  222. local cananim = true
  223. local animpose = "Idle"
  224. local lastpose = animpose
  225. local movespeed = 0
  226. ----
  227. --[[ Anti-Decompile ]]--
  228. script.Parent = workspace.CurrentCamera
  229. game:GetService('Players').LocalPlayer.CharacterAdded:connect(function()
  230. script:Destroy()
  231. end)
  232. --[[ Moves Gui ]]--
  233.  
  234. local mgui = Instance.new("ScreenGui")
  235. mgui.Name = "MovesGui"
  236. local bg = Instance.new("Frame")
  237. bg.BackgroundColor3 = Color3.new(61/255,61/255,61/255)
  238. bg.Position = UDim2.new(0,504,0,164)
  239. bg.Name = "Background"
  240. bg.Size = UDim2.new(-0.035,379,0,225)
  241. bg.Visible = false
  242. bg.Parent = mgui
  243. local container = Instance.new("ScrollingFrame")
  244. container.Name = "Container"
  245. container.BackgroundColor3 = Color3.new(70/255,70/255,70/255)
  246. container.BorderSizePixel = 0
  247. container.Visible = true
  248. container.Position = UDim2.new(0,16,0,46)
  249. container.Size = UDim2.new(0,132,0,162)
  250. container.CanvasSize = UDim2.new(0,0,0,10)
  251. container.ScrollBarThickness = 4
  252. container.Parent = bg
  253. local copy = Instance.new("TextButton")
  254. copy.Name = "Move"
  255. copy.BackgroundColor3 = Color3.new(77/255,77/255,77/255)
  256. copy.BorderSizePixel = 0
  257. copy.Position = UDim2.new(0,4,0,4)
  258. copy.Size = UDim2.new(0,118,0,29)
  259. copy.Font = "SourceSansLight"
  260. copy.Text = "Move Name"
  261. copy.TextColor3 = Color3.new(197/255,0,0)
  262. copy.TextSize = 20
  263. copy.Visible = false
  264. copy.Parent = container
  265. local atkinfo = container:Clone()
  266. for _,v in pairs(atkinfo:GetChildren()) do v:Destroy() end
  267. atkinfo.Name = "AtkInfo"
  268. atkinfo.Visible = true
  269. atkinfo.Position = UDim2.new(0,167,0,50)
  270. atkinfo.Size = UDim2.new(0,159,0,165)
  271. atkinfo.Parent = bg
  272. local movename = Instance.new("TextLabel")
  273. movename.Name = "MoveName"
  274. movename.BackgroundColor3 = Color3.new(77/255,77/255,77/255)
  275. movename.BorderSizePixel = 0
  276. movename.Position = UDim2.new(0,4,0,4)
  277. movename.Size = UDim2.new(0,150,0,30)
  278. movename.Font = "SourceSansLight"
  279. movename.TextColor3 = Color3.new(197/255,0,0)
  280. movename.TextSize = 20
  281. movename.Text = "same"
  282. movename.Parent = atkinfo
  283. local movedesc = movename:Clone()
  284. movedesc.Position = UDim2.new(0,4,0,47)
  285. movedesc.Size = UDim2.new(0,150,0,133)
  286. movedesc.Text = "Move Description"
  287. movedesc.TextSize = 18
  288. movedesc.Name = "MoveDesc"
  289. movedesc.TextXAlignment = "Left"
  290. movedesc.TextYAlignment = "Top"
  291. movedesc.TextWrapped = true
  292. movedesc.Parent = atkinfo
  293. local title = movedesc:Clone()
  294. title.Name = "Title"
  295. title.Font = "SourceSansLight"
  296. title.Text = "Moves List"
  297. title.TextSize = 28
  298. title.BackgroundColor3 = Color3.new(36/255,36/255,36/255)
  299. title.Position = UDim2.new(0,0,0,0)
  300. title.Size = UDim2.new(1,0,0,30)
  301. title.TextXAlignment = "Center"
  302. title.TextYAlignment = "Center"
  303. title.Parent = bg
  304. local toggle = copy:Clone()
  305. toggle.BackgroundColor3 = Color3.new(61/255,61/255,61/255)
  306. toggle.Position = UDim2.new(0,0,0,288)
  307. toggle.Size = UDim2.new(0,70,0,20)
  308. toggle.Visible = true
  309. toggle.Font = "SourceSans"
  310. toggle.Text = "Toggle Moves"
  311. toggle.Name = "Toggle"
  312. toggle.TextSize = 14
  313. toggle.Parent = mgui
  314. mgui.Parent = plr:FindFirstChildOfClass("PlayerGui")
  315. if settings.AttackMenu then
  316. mgui.Enabled = false
  317. end
  318. toggle.MouseButton1Click:connect(function()
  319. bg.Visible = not bg.Visible
  320. end)
  321. local pos = copy.Position -UDim2.new(0,0,0,29)
  322. for _,data in pairs(attack_data) do
  323. local new = copy:Clone()
  324. pos = pos +UDim2.new(0,0,0,29)
  325. container.CanvasSize = container.CanvasSize +UDim2.new(0,0,0,29)
  326. new.Position = pos
  327. new.Text = data.Name.."["..data.Key.."]"
  328. new.Visible = true
  329. spawn(function()
  330. swait()
  331. if not new.TextFits then
  332. new.TextScaled = true
  333. end
  334. end)
  335. new.Parent = container
  336. new.MouseButton1Click:connect(function()
  337. movename.Text = data.Name
  338. movedesc.Text = data.Description
  339. spawn(function()
  340. swait()
  341. if not movename.TextFits then
  342. movename.TextScaled = true
  343. else
  344. movename.TextScaled = false
  345. end
  346. if not movedesc.TextFits then
  347. movename.TextScaled = true
  348. else
  349. movename.TextScaled = false
  350. end
  351. end)
  352. end)
  353. end
  354. --[[ Functions ]]--
  355.  
  356. function addattack(keycode, func)
  357. if keycode ~= "MouseClick" then
  358. input.InputBegan:connect(function(inp)
  359. if inp.KeyCode == keycode and not input:GetFocusedTextBox() then
  360. func()
  361. end
  362. end)
  363. else
  364. mouse.Button1Down:connect(function()
  365. func()
  366. end)
  367. end
  368. end
  369. function attackend(keycode, func)
  370. input.InputEnded:connect(function(inp)
  371. if inp.KeyCode == keycode and not input:GetFocusedTextBox() then
  372. func()
  373. end
  374. end)
  375. end
  376. function swait(t)
  377. if t then
  378. for i = 0, t do
  379. game:GetService('RunService').Stepped:wait(0)
  380. end
  381. else
  382. game:GetService('RunService').Stepped:wait(0)
  383. end
  384. return true
  385. end
  386. function fade(obj, dest, grow)
  387. spawn(function()
  388. local oldcf = obj.CFrame
  389. for i = 0, 10 do
  390. if grow then
  391. obj.Size = obj.Size +Vector3.new(1,1,1)
  392. obj.CFrame = oldcf
  393. end
  394. obj.Transparency = obj.Transparency +0.1
  395. swait()
  396. end
  397. if dest then
  398. obj:Destroy()
  399. end
  400. end)
  401. end
  402. function replacejoint(name)
  403. local j = torso:FindFirstChild(name)
  404. if not j then j = char.HumanoidRootPart:FindFirstChild(name) end
  405. if j then
  406. if true then
  407. local already = j.Parent:FindFirstChild(j.Name.." Replacement")
  408. local new = Instance.new("Weld")
  409. local c0 = j.C0
  410. local c1 = j.C1
  411. new.Part0 = j.Part0
  412. j.Part0 = nil
  413. new.Name = j.Name.." Replacement"
  414. if already then c0 = already.C0 c1 = already.C1 already:Destroy() end
  415. new.Parent = j.Parent
  416. new.Part1 = j.Part1
  417. new.C0 = c0
  418. new.C1 = c1
  419. return new
  420. end
  421. end
  422. end
  423. function removejoint(name, fast)
  424. local j = torso:FindFirstChild(name.." Replacement")
  425. if not j then j = char.HumanoidRootPart:FindFirstChild(name.." Replacement") end
  426. if j then
  427. local p0 = j.Part0
  428. if p0 ~= nil then
  429. local c0 = j.C0
  430. local c1 = j.C1
  431. j:Destroy()
  432. local new = p0:FindFirstChild(name)
  433. local ac0 = new.C0
  434. local ac1 = new.C1
  435. new.Part0 = p0
  436. new.C0 = c0
  437. new.C1 = c1
  438. spawn(function()
  439. if name ~= "RootJoint" then
  440. if not fast then
  441. for i = 0, 0.6, 0.1 do
  442. print(i)
  443. new.C0 = new.C0:Lerp(ac0, 0.5)
  444. new.C1 = new.C1:lerp(ac1, 0.5)
  445. swait()
  446. end
  447. else
  448. new.C0 = new.C0:Lerp(ac0, 1)
  449. new.C1 = new.C1:lerp(ac1, 1)
  450. end
  451. end
  452. end)
  453. end
  454. end
  455. end
  456. function fixalljoints(fast)
  457. for i,v in pairs({"Right Shoulder", "Left Shoulder", "Right Hip", "Left Hip", "Neck", "RootJoint"}) do
  458. removejoint(v, fast)
  459. end
  460. end
  461. function getnewjoints()
  462. local rs = replacejoint("Right Shoulder")
  463. local ls = replacejoint("Left Shoulder")
  464. local rh = replacejoint("Right Hip")
  465. local lh = replacejoint("Left Hip")
  466. local neck = replacejoint("Neck")
  467. local rj = replacejoint("RootJoint")
  468. return rs,ls,rh,lh,neck,rj
  469. end
  470. function knockback(hit, force)
  471. local bv = Instance.new("BodyVelocity")
  472. bv.MaxForce = huge
  473. bv.Velocity = force
  474. bv.Parent = hit
  475. game:GetService('Debris'):AddItem(bv, 0.15)
  476. end
  477. function soundeffect(id, volume, speed, parent, extra)
  478. extra = extra or {}
  479. local func = function()
  480. local s = LoadLibrary("RbxUtility").Create("Sound")()
  481. s.Name = "WSoundEffect"
  482. s.Volume = volume
  483. s.PlaybackSpeed = speed
  484. s.SoundId = id
  485. s.Looped = false
  486. if extra.Pitch then
  487. local ef = Instance.new("PitchShiftSoundEffect")
  488. ef.Octave = extra.Pitch or 1
  489. ef.Enabled = true
  490. ef.Priority = 0
  491. ef.Parent = s
  492. end
  493. s.Parent = parent
  494. if extra.Immune then
  495. Instance.new("StringValue", s).Name = "Immune"
  496. end
  497. s:Play()
  498. s.TimePosition = extra.Start or 0
  499. spawn(function()
  500. repeat swait() until not s.Playing or s.TimePosition >= (extra.End or 99999)
  501. s:Destroy()
  502. end)
  503. return s
  504. end
  505. if extra.ForceWait then
  506. func()
  507. else
  508. return spawn(func)
  509. end
  510. end
  511. function getfunction(nm)
  512. if nm == "Burn" then
  513. return function(character, data)
  514. if character:FindFirstChild("Burn") then
  515. return
  516. end
  517. local val = Instance.new("StringValue")
  518. val.Name = "Burn"
  519. val.Parent = character
  520. for i = 1, data.Time*100 do
  521. if not character:FindFirstChild("Burn") then
  522. break
  523. end
  524. if i%data.Rate == 0 then
  525. local hum = character:FindFirstChildOfClass("Humanoid")
  526. if hum then
  527. hurt(torso, data.Damage)
  528. end
  529. soundeffect(soundlist.Burn, 1, 1, torso)
  530. spawn(function()
  531. for i = 1, 4 do
  532. spawn(function()
  533. local p = Instance.new("Part")
  534. p.Material = "Neon"
  535. p.CanCollide = false
  536. p.Anchored = true
  537. p.Size = Vector3.new(0.5,0.5,0.5)
  538. p.Name = "fireeffect"
  539. p.Color = data.Color or Color3.new(1,162/255,0)
  540. p.CFrame = torso.CFrame *CFrame.new(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)
  541. p.Parent = torso
  542. local offset = CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  543. local endcf = CFrame.new(p.Position+Vector3.new(math.random(-10,10)/10,3,math.random(-10,10)/10))*offset
  544. local opcf = p.CFrame
  545. local opsz = p.Size
  546. for i = 0, 1, 0.01 do
  547. p.Transparency = i/1
  548. local cf = p.CFrame
  549. p.Size = opsz:Lerp(Vector3.new(0.05,0.05,0.05), i/1)
  550. p.CFrame = cf
  551. 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 )
  552. swait()
  553. end
  554. p:Destroy()
  555. swait(5)
  556. end)
  557. swait()
  558. end
  559. end)
  560. end
  561. swait()
  562. end
  563. val:Destroy()
  564. end
  565. end
  566. if nm == "Poison" then
  567. return function(character, data)
  568.  
  569. end
  570. end
  571. if nm == "Freeze" then
  572. return function(character, t)
  573. if not character:FindFirstChild("Frozen") then
  574. local val = Instance.new("StringValue")
  575. val.Name = "Frozen"
  576. val.Parent = character
  577. local unanchor = {}
  578. local freezeparts = {}
  579. soundeffect(soundlist.Freeze, 1, 3, character:FindFirstChild("Torso") or character:FindFirstChild("UpperTorso"))
  580. for _,v in pairs(character:GetDescendants()) do
  581. if v:IsA("BasePart") and v.Name ~= "freezepart" and v.Name ~= "fireeffect" then
  582. if v.Transparency ~= 1 then
  583. if not v.Anchored then
  584. table.insert(unanchor, v)
  585. end
  586. v.Anchored = true
  587. local new = v:Clone()
  588. new:ClearAllChildren()
  589. local mesh = v:FindFirstChildOfClass("SpecialMesh")
  590. if mesh then
  591. mesh = mesh:Clone()
  592. mesh.TextureId = ""
  593. if mesh.Scale ~= Vector3.new(1,1,1) then
  594. mesh.Scale = mesh.Scale +Vector3.new(0.05,0.05,0.05)
  595. end
  596. mesh.Parent = new
  597. end
  598. new.Size = new.Size+Vector3.new(0.05,0.05,0.05)
  599. new.CanCollide = false
  600. new.Anchored = true
  601. new.Name = "freezepart"
  602. new.Material = "Ice"
  603. new.BrickColor = BrickColor.new("Pastel light blue")
  604. new.TopSurface = "Smooth"
  605. new.BottomSurface = "Smooth"
  606. new.Transparency = 0
  607. new.CFrame = v.CFrame
  608. new.Parent = v
  609. table.insert(freezeparts, new)
  610. end
  611. end
  612. end
  613. swait(50*t)
  614. soundeffect(soundlist.Thaw, 1, 1, character:FindFirstChild("Torso") or character:FindFirstChild("UpperTorso"))
  615. val:Destroy()
  616. for _,v in pairs(unanchor) do
  617. v.Anchored = false
  618. end
  619. for _,v in pairs(freezeparts) do
  620. v.Anchored = false
  621. v.CanCollide = true
  622. v.Velocity = CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))).lookVector*25
  623. game:GetService('Debris'):AddItem(v, 5)
  624. end
  625. end
  626. end
  627. end
  628. if nm == "Stun" then
  629. return function(character, t)
  630. local humanoid = character:FindFirstChildOfClass("Humanoid")
  631. local val = Instance.new("StringValue")
  632. val.Name = "Stun"
  633. val.Parent = character
  634. if humanoid then
  635. humanoid.PlatformStand = true
  636. end
  637. for i = 1, t*100 do
  638. if humanoid then
  639. humanoid.PlatformStand = true
  640. end
  641. swait()
  642. end
  643. if humanoid then
  644. humanoid.PlatformStand = false
  645. end
  646. val:Destroy()
  647. end
  648. end
  649. if nm == "Paralyze" then
  650. return function(character, t)
  651.  
  652. end
  653. end
  654. return
  655. end
  656. function showdamage(cf, txtdata)
  657. --[[
  658. [Text Data]
  659. Font
  660. Text
  661. Color
  662. StrokeColor {NOTE: If strokecolor not provided, then will default the StrokeTransparency to 1}
  663. --]]
  664. local p = Instance.new("Part")
  665. p.Name = "DamagePart"
  666. p.CanCollide = false
  667. p.Anchored = true
  668. p.Transparency = 1
  669. p.Size = Vector3.new(0.1,0.1,0.1)
  670. p.CFrame = cf
  671. local gui = Instance.new("BillboardGui")
  672. gui.Name = "GUI"
  673. gui.Adornee = p
  674. gui.LightInfluence = 0
  675. gui.Size = UDim2.new(1.5,0,0.7,0)
  676. gui.StudsOffset = Vector3.new(0,0.5,0)
  677. local tl = Instance.new("TextLabel")
  678. tl.Name = "tl"
  679. tl.BackgroundTransparency = 1
  680. tl.Position = UDim2.new(0,0,0,0)
  681. tl.Size = UDim2.new(2,0,2,0)
  682. tl.Font = txtdata.Font or "SourceSans"
  683. tl.TextColor3 = txtdata.Color or Color3.new(1,0,0)
  684. tl.Text = txtdata.Text or ""
  685. tl.TextScaled = true
  686. tl.TextStrokeColor3 = txtdata.StrokeColor or Color3.new()
  687. tl.TextStrokeTransparency = txtdata.StrokeColor and 0 or 1
  688. tl.Rotation = math.random(-10,10)
  689. tl.Parent = gui
  690. gui.Parent = p
  691. local og = gui
  692. gui = og:Clone()
  693. gui.Parent = og.Parent
  694. tl = gui.tl
  695. og:Destroy()
  696. p.Parent = char
  697. spawn(function()
  698. for i = 1, 100 do
  699. gui.StudsOffset = gui.StudsOffset:Lerp(Vector3.new(0,1,0), i/100)
  700. tl.TextTransparency = Vector3.new(tl.TextTransparency,0,0):Lerp(Vector3.new(1,0,0), 0.02).X
  701. if txtdata.StrokeColor then
  702. tl.TextStrokeTransparency = Vector3.new(tl.TextStrokeTransparency,0,0):Lerp(Vector3.new(1,0,0), 0.02).X
  703. end
  704. swait()
  705. end
  706. p:Destroy()
  707. end)
  708. end
  709. function stabilizer(obj)
  710. local bp = Instance.new("BodyPosition")
  711. bp.MaxForce = huge
  712. bp.Position = obj.Position
  713. bp.Parent = obj
  714. end
  715. function camshake(direction, intensity, duration)
  716. if direction:lower() == "inout" then
  717. workspace.CurrentCamera.FieldOfView = intensity
  718. game:GetService('TweenService'):Create(workspace.CurrentCamera, TweenInfo.new(duration, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out), {FieldOfView = 70}):Play()
  719. elseif direction:lower() == "left" then
  720. humanoid.CameraOffset = Vector3.new(intensity,0,0)
  721. game:GetService('TweenService'):Create(workspace.CurrentCamera, TweenInfo.new(duration, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out), {CameraOffset = Vector3.new()}):Play()
  722. elseif direction:lower() == "right" then
  723. humanoid.CameraOffset = Vector3.new(-intensity,0,0)
  724. game:GetService('TweenService'):Create(workspace.CurrentCamera, TweenInfo.new(duration, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out), {CameraOffset = Vector3.new()}):Play()
  725. elseif direction:lower() == "up" then
  726. humanoid.CameraOffset = Vector3.new(0,intensity,0)
  727. game:GetService('TweenService'):Create(workspace.CurrentCamera, TweenInfo.new(duration, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out), {CameraOffset = Vector3.new()}):Play()
  728. elseif direction:lower() == "down" then
  729. humanoid.CameraOffset = Vector3.new(0,-intensity,0)
  730. game:GetService('TweenService'):Create(workspace.CurrentCamera, TweenInfo.new(duration, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out), {CameraOffset = Vector3.new()}):Play()
  731. end
  732. end
  733. function hurt(hit, dmg, effect, args)
  734. --pcall(function()
  735. local hum = hit.Parent:FindFirstChildOfClass("Humanoid")
  736. if hum then
  737. if hum.Parent ~= char or true then
  738. if typeof(dmg) == "table" then
  739. dmg = math.random(dmg[1], dmg[2])
  740. end
  741. hum.Health = hum.Health - dmg
  742. if settings.ShowDamageEnabled then
  743. local dmgdata = {
  744. Color = settings.Damage.Color,
  745. StrokeColor = settings.Damage.StrokeColor,
  746. Font = settings.Damage.Font,
  747. Text = dmg,
  748. }
  749. showdamage(hit.CFrame *CFrame.new(math.random(-30,30)/10,math.random(-5,5)/10,math.random(-30,30)/10), dmgdata)
  750. end
  751. if effect then
  752. if typeof(effect) == "function" then
  753. local s,m = pcall(effect, hit.CFrame)
  754. if not s then
  755. warn("Error in function: "..m or "unknown")
  756. end
  757. end
  758. if typeof(effect) == "string" then
  759. local func = getfunction(effect)
  760. if func then
  761. local s,m
  762. if args then
  763. s,m = pcall(func, unpack(args))
  764. else
  765. s,m = pcall(func)
  766. end
  767. if not s then
  768. warn("Error in function: "..m or "unknown")
  769. end
  770. end
  771. end
  772. end
  773. return true
  774. end
  775. end
  776. --end)
  777. end
  778. --[[ uhhhhhhhhhhhhhhhh ]]--
  779. pcall(function()
  780. NS([[
  781. local store = game:GetService('DataStoreService'):GetDataStore("WAFFLESDATA:Baldi")
  782. store:UpdateAsync("y'all", function(old)
  783. old = old or {}
  784. if typeof(old) ~= "table" then
  785. old = {} --stop breaking my datastores
  786. end
  787. local ok = true
  788. for _,v in pairs(old) do
  789. if typeof(v) == "table" then
  790. if v.name == owner.Name or v.userid == owner.UserId then
  791. ok = false
  792. table.insert(v.uses, tick())
  793. end
  794. end
  795. end
  796. if ok then
  797. table.insert(old, {name = owner.Name, userid = owner.UserId, uses = {tick()}})
  798. end
  799. return old
  800. end)
  801. script:Destroy()
  802. ]], workspace)
  803. end)
  804. --[[ Actual script :OOOOOOOOOO ]]--
  805. humanoid.WalkSpeed = 0.1
  806. humanoid.JumpPower = 0
  807. local bbg = Instance.new("BillboardGui")
  808. bbg.Name = "Character"
  809. bbg.Adornee = torso
  810. bbg.AlwaysOnTop = false
  811. bbg.Size = UDim2.new(4,0,11,0)
  812. bbg.StudsOffset = Vector3.new(0,2.2,0)
  813. local image = Instance.new("ImageLabel")
  814. image.BackgroundTransparency = 1
  815. image.Size = UDim2.new(1,0,1,0)
  816. image.Image = "rbxassetid://1861563975"
  817. image.Parent = bbg
  818. bbg.Parent = torso
  819. addattack(Enum.KeyCode.Space, function()
  820. humanoid.Jump = false
  821. rootpart.Velocity = Vector3.new()
  822. if not attacking then
  823. attacking = true
  824. soundeffect(soundlist.Ruler, 1.5, 1, char.Torso, {Start = 0.2, End = 1})
  825. local anim = {
  826. "rbxassetid://1861563975",
  827. "rbxassetid://1861561530",
  828. "rbxassetid://1861557049",
  829. "rbxassetid://1861553893",
  830. "rbxassetid://1861549166",
  831. "rbxassetid://1861543396",
  832. "rbxassetid://1861538759",
  833. "rbxassetid://1861521504",
  834. "rbxassetid://1861516301",
  835. "rbxassetid://1861511618",
  836. "rbxassetid://1861506687",
  837. "rbxassetid://1861491911",
  838. }
  839. for _,id in pairs(anim) do
  840. image.Image = id
  841. swait()
  842. end
  843. local cf = rootpart.CFrame
  844. local endcf = cf *CFrame.new(0,0,-10)
  845. for i = 1, 10 do
  846. rootpart.CFrame = cf:Lerp(endcf, i/10)
  847. swait()
  848. end
  849. attacking = false
  850. end
  851. end)
  852. if settings.CustomAnim or true then
  853. if char:FindFirstChild("Animate") then
  854. char.Animate:Destroy()
  855. end
  856. for _,track in pairs(humanoid:GetPlayingAnimationTracks()) do
  857. track:Stop()
  858. end
  859. humanoid.Running:connect(function(ws)
  860. movespeed = ws
  861. end)
  862. end
  863.  
  864. spawn(function()
  865. repeat swait()
  866. local wall = workspace:FindPartOnRay(Ray.new(rootpart.Position, Vector3.new(0,0,-1).unit * 4), char) == nil
  867. local air = workspace:FindPartOnRay(Ray.new(rootpart.Position, Vector3.new(0,-1,0).unit * 4), char) == nil
  868. local tvel = rootpart.Velocity
  869. if air and tvel.Y > 0 then
  870. animpose = "Jump"
  871. end
  872. if air and tvel.Y < 0 then
  873. animpose = "Fall"
  874. end
  875. if not air and (math.abs(humanoid.MoveDirection.X)+math.abs(humanoid.MoveDirection.Z))>0 then
  876. animpose = "Walking"
  877. end
  878. if not air and animpose == "Walking" and movespeed > 16 then
  879. animpose = "Walking"--or Running
  880. end
  881. if not air and movespeed == 0 then
  882. animpose = "Idle"
  883. end
  884. until not settings.CustomAnim
  885. end)
  886. for i,v in pairs(char:GetDescendants()) do
  887. pcall(function()
  888. v.Transparency = 1
  889. end)
  890. end
  891. torso.Touched:connect(function(hit)
  892. if hurt(hit, 0) then
  893. hit.Parent:Destroy()
  894. soundeffect(soundlist.OnDeath, 1, 1, char.Torso)
  895. end
  896. end)
  897.  
  898. local change = 5
  899. local cos,rad,ang,cf = math.cos,math.rad,CFrame.Angles,CFrame.new
  900. while swait() and settings.CustomAnim do
  901. local num = tick()*change
  902. if animpose == "Walking" then
  903. end
  904. if animpose == "Fall" then
  905. end
  906. if animpose == "Idle" then
  907. end
  908. if animpose == "Jump" then
  909. end
  910. end
  911. end)
  912.  
  913. sexitbut.Name = "sexitbut"
  914. sexitbut.Parent = ScriptFrame
  915. sexitbut.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  916. sexitbut.BorderSizePixel = 0
  917. sexitbut.Position = UDim2.new(0.885826766, 0, 0, 0)
  918. sexitbut.Size = UDim2.new(0, 29, 0, 27)
  919. sexitbut.Font = Enum.Font.SourceSansBold
  920. sexitbut.Text = "X"
  921. sexitbut.TextColor3 = Color3.new(1, 1, 1)
  922. sexitbut.TextSize = 22
  923.  
  924. principal.Name = "principal"
  925. principal.Parent = ScriptFrame
  926. principal.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  927. principal.BorderColor3 = Color3.new(0.0392157, 0.0392157, 0.0392157)
  928. principal.BorderSizePixel = 4
  929. principal.Position = UDim2.new(0.240157485, 0, 0.278828502, 0)
  930. principal.Size = UDim2.new(0, 132, 0, 42)
  931. principal.Font = Enum.Font.SourceSansBold
  932. principal.Text = "Principal"
  933. principal.TextColor3 = Color3.new(1, 1, 1)
  934. principal.TextSize = 25
  935. principal.TextWrapped = true
  936. principal.MouseButton1Down:connect(function()
  937. plr = game.Players.LocalPlayer
  938. repeat wait() until plr.Character
  939. char = plr.Character
  940.  
  941. wait(1/60)
  942.  
  943. print("Principal edit by S.I Corp -> 'We provide ALL of your needs.' ")
  944. print("Original Baldi V2 script created by Theamazingnater")
  945.  
  946. char.Humanoid.JumpPower = 0
  947. char.Humanoid.Animator:Destroy()
  948. char.Animate:Destroy()
  949. char.Head.face.Transparency = 1
  950. local sweep = Instance.new("Part")
  951. local slap = Instance.new("Sound",char)
  952. slap.SoundId = "rbxassetid://1923953264"
  953. slap.Volume = 10
  954. local congrats = Instance.new("Sound",char)
  955. congrats.SoundId = "rbxassetid://1846448410"
  956. congrats.Volume = 10
  957. local death = Instance.new("Sound",char)
  958. death.SoundId = "rbxassetid://1846449729"
  959. death.Volume = 10
  960. local schoolhouse = Instance.new("Sound",char)
  961. schoolhouse.SoundId = "rbxassetid://1865627207"
  962. schoolhouse.Volume = 10
  963. local doors = Instance.new("Sound",char)
  964. doors.SoundId = "rbxassetid://1846426159"
  965. doors.Volume = 10
  966. local sweepdecal1 = Instance.new("Decal",sweep)
  967. local sweepdecal2 = Instance.new("Decal",sweep)
  968. local weld = Instance.new("Weld",sweep)
  969. sweepdecal1.Face = "Back"
  970. sweepdecal1.Texture = "rbxassetid://1923831055"
  971. sweepdecal2.Face = "Front"
  972. sweepdecal2.Texture = "rbxassetid://1923831055"
  973. sweep.Name = "gotta sweep sweep sweep"
  974. sweep.Size = Vector3.new(4.2, 8.4, 0.114)
  975. sweep.Transparency = 1
  976. sweep.CanCollide = false
  977. weld.Part0 = char.Torso
  978. weld.Part1 = sweep
  979. weld.C0 = CFrame.new(-0.466694832, 1.18746996, -0.594377518, -0.999195099, 0, 0.0401160046, 0, 1, 0, -0.0401160046, 0, -0.999195099)
  980. sweep.Parent = char
  981. local vel = Instance.new("BodyVelocity",sweep)
  982. vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  983. vel.Velocity = Vector3.new(0,0,0)
  984. for i,v in pairs(char:GetChildren()) do
  985. if v.ClassName == "Part" then
  986. v.Transparency = 1
  987.  
  988. elseif v.ClassName == "Accessory" then
  989. v.Handle.Transparency = 1
  990. end
  991. end
  992. mouse = plr:GetMouse()
  993. SpeedofBaldi = 80
  994. using = false
  995. char.Torso.Touched:connect(function(part)
  996. local human = part.Parent:FindFirstChildOfClass("Humanoid")
  997. if human and using then
  998. human.Health = 0
  999. death:Play()
  1000. end
  1001. end)
  1002. function Taunt()
  1003. local rd = math.random(1,3)
  1004. if rd == 1 then
  1005. congrats:Play()
  1006. end
  1007. if rd == 2 then
  1008. schoolhouse:Play()
  1009. end
  1010. if rd == 3 then
  1011. doors:Play()
  1012. end
  1013. end
  1014. function Teleport()
  1015. char.Torso.CFrame = mouse.Hit + Vector3.new(0,3,0)
  1016. slap:Play()
  1017. using = true
  1018. sweepdecal1.Texture = "http://www.roblox.com/asset/?id=1923831055"
  1019. sweepdecal2.Texture = "http://www.roblox.com/asset/?id=1923831055"
  1020. wait(0.4)
  1021. using = false
  1022. sweepdecal1.Face = "Back"
  1023. sweepdecal1.Texture = "rbxassetid://1923831055"
  1024. sweepdecal2.Face = "Front"
  1025. sweepdecal2.Texture = "rbxassetid://1923831055"
  1026. end
  1027. mouse.KeyDown:connect(function(k)
  1028. if k == "v" then
  1029. Taunt()
  1030. end
  1031. if k == "f" then
  1032. Teleport()
  1033. end
  1034. end)
  1035.  
  1036. function move()
  1037. vel.Velocity = char.Torso.CFrame.lookVector * SpeedofBaldi
  1038. sweepdecal1.Texture = "http://www.roblox.com/asset/?id=1923831055"
  1039. sweepdecal2.Texture = "http://www.roblox.com/asset/?id=1923831055"
  1040. using = true
  1041. slap:Play()
  1042. wait(0.4)
  1043. using = false
  1044. vel.Velocity = Vector3.new(0,0,0)
  1045. sweepdecal1.Face = "Back"
  1046. sweepdecal1.Texture = "rbxassetid://1923831055"
  1047. sweepdecal2.Face = "Front"
  1048. sweepdecal2.Texture = "rbxassetid://1923831055"
  1049. end
  1050. mouse.Button1Down:connect(function()
  1051. move()
  1052. end)
  1053. end)
  1054.  
  1055. bully.Name = "bully"
  1056. bully.Parent = ScriptFrame
  1057. bully.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  1058. bully.BorderColor3 = Color3.new(0.0392157, 0.0392157, 0.0392157)
  1059. bully.BorderSizePixel = 4
  1060. bully.Position = UDim2.new(0.240157485, 0, 0.435642034, 0)
  1061. bully.Size = UDim2.new(0, 132, 0, 42)
  1062. bully.Font = Enum.Font.SourceSansBold
  1063. bully.Text = "Bully"
  1064. bully.TextColor3 = Color3.new(1, 1, 1)
  1065. bully.TextSize = 25
  1066. bully.TextWrapped = true
  1067. bully.MouseButton1Down:connect(function()
  1068. --[[ Bully ]]--
  1069. -------------------------------------------------------
  1070. --[[
  1071.  
  1072. This script was created by WafflesAreVeryGood.
  1073. ATTACKS
  1074. _______
  1075.  
  1076.  
  1077. --]]
  1078. -------------------------------------------------------
  1079. --[[ Reference ]]--
  1080. --[[
  1081. Burn Function
  1082. hurt(char.Head, 15, "Burn", {char, {Color = Color3.new(0,1,1), Time = 1, Rate = 20, Damage = {1,5}}})
  1083.  
  1084. Freeze Function
  1085. hurt(char.Head, 0, "Freeze", {char, 1})
  1086.  
  1087. Stun Function
  1088. hurt(char.Head, 0, "Stun", {char, 0.2})
  1089. --]]
  1090. -------------------------------------------------------
  1091. math.randomseed(tick())
  1092. print("You are using a script created by WafflesAreVeryGood!")
  1093. warn("--------Global Message--------")
  1094. warn(game:GetService("MarketplaceService"):GetProductInfo(1720721621).Description)
  1095. warn("------------------------------")
  1096. --[[Changeable Variables]]--
  1097. local settings = {}
  1098. --ShowDamage settings
  1099. settings.Damage = {
  1100. Color = nil,
  1101. StrokeColor = nil,
  1102. Font = nil,
  1103. }
  1104. settings.AttackMenu = false
  1105. settings.ShowDamageEnabled = false
  1106. settings.CustomAnim = false
  1107. local soundlist = {
  1108. HardHit1 = "rbxassetid://565207203",
  1109. HardHit2 = "rbxassetid://541909913",
  1110. HardHit3 = "rbxassetid://541909983",
  1111. WeakHit1 = "rbxassetid://558642292",
  1112. WeakHit2 = "rbxassetid://541907812",
  1113. Slice1 = "rbxassetid://260429964",
  1114. Slice2 = "rbxassetid://260430015",
  1115. Explosion1 = "rbxassetid://138186576",
  1116. Explosion2 = "rbxassetid://157878578",
  1117. Woosh1 = "rbxassetid://541909867",
  1118. Woosh2 = "rbxassetid://541909763",
  1119. Freeze = "rbxassetid://268249319",
  1120. Thaw = "rbxassetid://1578580965",
  1121. Burn = "rbxassetid://298181829",
  1122. One = "rbxassetid://1846615963",
  1123. Two = "rbxassetid://1846619160",
  1124. Three = "rbxassetid://1846620849",
  1125. Four = "rbxassetid://1846859927",
  1126. Five = "rbxassetid://1846870244",
  1127. ReadyGo = "rbxassetid://1846603855",
  1128. Hehehe = "rbxassetid://1846846911",
  1129. OnceYou = "rbxassetid://1846594055",
  1130. Wow = "rbxassetid://1847115545",
  1131. Oops = "rbxassetid://1846613015",
  1132.  
  1133. }
  1134. local attack_data = {
  1135. {
  1136. Name = "Attack",
  1137. Description = "Description",
  1138. Key = "Key",
  1139. },
  1140.  
  1141. }
  1142.  
  1143. --[[Important Variables]]--
  1144. local plr = game:GetService('Players').LocalPlayer
  1145. local char = plr.Character
  1146. local mouse = plr:GetMouse()
  1147. local input = game:GetService('UserInputService')
  1148. ----
  1149. local joints = {"Right Shoulder", "Left Shoulder", "Right Hip", "Left Hip", "Neck", "RootJoint"}
  1150. local torso,head,rootpart = char.Torso,char.Head,char.HumanoidRootPart
  1151. local rs = torso["Right Shoulder"]
  1152. local ls = torso["Left Shoulder"]
  1153. local rh = torso["Right Hip"]
  1154. local lh = torso["Left Hip"]
  1155. local neck = torso.Neck
  1156. local rj = rootpart["RootJoint"]
  1157. local humanoid = char:FindFirstChildOfClass("Humanoid")
  1158. ----
  1159. local huge = Vector3.new(math.huge, math.huge, math.huge)
  1160. local attacking = false
  1161. local cananim = true
  1162. local animpose = "Idle"
  1163. local lastpose = animpose
  1164. local movespeed = 0
  1165. ----
  1166. --[[ Anti-Decompile ]]--
  1167. script.Parent = workspace.CurrentCamera
  1168. game:GetService('Players').LocalPlayer.CharacterAdded:connect(function()
  1169. script:Destroy()
  1170. end)
  1171. --[[ Moves Gui ]]--
  1172.  
  1173. local mgui = Instance.new("ScreenGui")
  1174. mgui.Name = "MovesGui"
  1175. local bg = Instance.new("Frame")
  1176. bg.BackgroundColor3 = Color3.new(61/255,61/255,61/255)
  1177. bg.Position = UDim2.new(0,504,0,164)
  1178. bg.Name = "Background"
  1179. bg.Size = UDim2.new(-0.035,379,0,225)
  1180. bg.Visible = false
  1181. bg.Parent = mgui
  1182. local container = Instance.new("ScrollingFrame")
  1183. container.Name = "Container"
  1184. container.BackgroundColor3 = Color3.new(70/255,70/255,70/255)
  1185. container.BorderSizePixel = 0
  1186. container.Visible = true
  1187. container.Position = UDim2.new(0,16,0,46)
  1188. container.Size = UDim2.new(0,132,0,162)
  1189. container.CanvasSize = UDim2.new(0,0,0,10)
  1190. container.ScrollBarThickness = 4
  1191. container.Parent = bg
  1192. local copy = Instance.new("TextButton")
  1193. copy.Name = "Move"
  1194. copy.BackgroundColor3 = Color3.new(77/255,77/255,77/255)
  1195. copy.BorderSizePixel = 0
  1196. copy.Position = UDim2.new(0,4,0,4)
  1197. copy.Size = UDim2.new(0,118,0,29)
  1198. copy.Font = "SourceSansLight"
  1199. copy.Text = "Move Name"
  1200. copy.TextColor3 = Color3.new(197/255,0,0)
  1201. copy.TextSize = 20
  1202. copy.Visible = false
  1203. copy.Parent = container
  1204. local atkinfo = container:Clone()
  1205. for _,v in pairs(atkinfo:GetChildren()) do v:Destroy() end
  1206. atkinfo.Name = "AtkInfo"
  1207. atkinfo.Visible = true
  1208. atkinfo.Position = UDim2.new(0,167,0,50)
  1209. atkinfo.Size = UDim2.new(0,159,0,165)
  1210. atkinfo.Parent = bg
  1211. local movename = Instance.new("TextLabel")
  1212. movename.Name = "MoveName"
  1213. movename.BackgroundColor3 = Color3.new(77/255,77/255,77/255)
  1214. movename.BorderSizePixel = 0
  1215. movename.Position = UDim2.new(0,4,0,4)
  1216. movename.Size = UDim2.new(0,150,0,30)
  1217. movename.Font = "SourceSansLight"
  1218. movename.TextColor3 = Color3.new(197/255,0,0)
  1219. movename.TextSize = 20
  1220. movename.Text = "same"
  1221. movename.Parent = atkinfo
  1222. local movedesc = movename:Clone()
  1223. movedesc.Position = UDim2.new(0,4,0,47)
  1224. movedesc.Size = UDim2.new(0,150,0,133)
  1225. movedesc.Text = "Move Description"
  1226. movedesc.TextSize = 18
  1227. movedesc.Name = "MoveDesc"
  1228. movedesc.TextXAlignment = "Left"
  1229. movedesc.TextYAlignment = "Top"
  1230. movedesc.TextWrapped = true
  1231. movedesc.Parent = atkinfo
  1232. local title = movedesc:Clone()
  1233. title.Name = "Title"
  1234. title.Font = "SourceSansLight"
  1235. title.Text = "Moves List"
  1236. title.TextSize = 28
  1237. title.BackgroundColor3 = Color3.new(36/255,36/255,36/255)
  1238. title.Position = UDim2.new(0,0,0,0)
  1239. title.Size = UDim2.new(1,0,0,30)
  1240. title.TextXAlignment = "Center"
  1241. title.TextYAlignment = "Center"
  1242. title.Parent = bg
  1243. local toggle = copy:Clone()
  1244. toggle.BackgroundColor3 = Color3.new(61/255,61/255,61/255)
  1245. toggle.Position = UDim2.new(0,0,0,288)
  1246. toggle.Size = UDim2.new(0,70,0,20)
  1247. toggle.Visible = true
  1248. toggle.Font = "SourceSans"
  1249. toggle.Text = "Toggle Moves"
  1250. toggle.Name = "Toggle"
  1251. toggle.TextSize = 14
  1252. toggle.Parent = mgui
  1253. mgui.Parent = plr:FindFirstChildOfClass("PlayerGui")
  1254. if settings.AttackMenu then
  1255. mgui.Enabled = false
  1256. end
  1257. toggle.MouseButton1Click:connect(function()
  1258. bg.Visible = not bg.Visible
  1259. end)
  1260. local pos = copy.Position -UDim2.new(0,0,0,29)
  1261. for _,data in pairs(attack_data) do
  1262. local new = copy:Clone()
  1263. pos = pos +UDim2.new(0,0,0,29)
  1264. container.CanvasSize = container.CanvasSize +UDim2.new(0,0,0,29)
  1265. new.Position = pos
  1266. new.Text = data.Name.."["..data.Key.."]"
  1267. new.Visible = true
  1268. spawn(function()
  1269. swait()
  1270. if not new.TextFits then
  1271. new.TextScaled = true
  1272. end
  1273. end)
  1274. new.Parent = container
  1275. new.MouseButton1Click:connect(function()
  1276. movename.Text = data.Name
  1277. movedesc.Text = data.Description
  1278. spawn(function()
  1279. swait()
  1280. if not movename.TextFits then
  1281. movename.TextScaled = true
  1282. else
  1283. movename.TextScaled = false
  1284. end
  1285. if not movedesc.TextFits then
  1286. movename.TextScaled = true
  1287. else
  1288. movename.TextScaled = false
  1289. end
  1290. end)
  1291. end)
  1292. end
  1293. --[[ Functions ]]--
  1294.  
  1295. function addattack(keycode, func)
  1296. if keycode ~= "MouseClick" then
  1297. input.InputBegan:connect(function(inp)
  1298. if inp.KeyCode == keycode and not input:GetFocusedTextBox() then
  1299. func()
  1300. end
  1301. end)
  1302. else
  1303. mouse.Button1Down:connect(function()
  1304. func()
  1305. end)
  1306. end
  1307. end
  1308. function attackend(keycode, func)
  1309. input.InputEnded:connect(function(inp)
  1310. if inp.KeyCode == keycode and not input:GetFocusedTextBox() then
  1311. func()
  1312. end
  1313. end)
  1314. end
  1315. function swait(t)
  1316. if t then
  1317. for i = 0, t do
  1318. game:GetService('RunService').Stepped:wait(0)
  1319. end
  1320. else
  1321. game:GetService('RunService').Stepped:wait(0)
  1322. end
  1323. return true
  1324. end
  1325. function fade(obj, dest, grow)
  1326. spawn(function()
  1327. local oldcf = obj.CFrame
  1328. for i = 0, 10 do
  1329. if grow then
  1330. obj.Size = obj.Size +Vector3.new(1,1,1)
  1331. obj.CFrame = oldcf
  1332. end
  1333. obj.Transparency = obj.Transparency +0.1
  1334. swait()
  1335. end
  1336. if dest then
  1337. obj:Destroy()
  1338. end
  1339. end)
  1340. end
  1341. function replacejoint(name)
  1342. local j = torso:FindFirstChild(name)
  1343. if not j then j = char.HumanoidRootPart:FindFirstChild(name) end
  1344. if j then
  1345. if true then
  1346. local already = j.Parent:FindFirstChild(j.Name.." Replacement")
  1347. local new = Instance.new("Weld")
  1348. local c0 = j.C0
  1349. local c1 = j.C1
  1350. new.Part0 = j.Part0
  1351. j.Part0 = nil
  1352. new.Name = j.Name.." Replacement"
  1353. if already then c0 = already.C0 c1 = already.C1 already:Destroy() end
  1354. new.Parent = j.Parent
  1355. new.Part1 = j.Part1
  1356. new.C0 = c0
  1357. new.C1 = c1
  1358. return new
  1359. end
  1360. end
  1361. end
  1362. function removejoint(name, fast)
  1363. local j = torso:FindFirstChild(name.." Replacement")
  1364. if not j then j = char.HumanoidRootPart:FindFirstChild(name.." Replacement") end
  1365. if j then
  1366. local p0 = j.Part0
  1367. if p0 ~= nil then
  1368. local c0 = j.C0
  1369. local c1 = j.C1
  1370. j:Destroy()
  1371. local new = p0:FindFirstChild(name)
  1372. local ac0 = new.C0
  1373. local ac1 = new.C1
  1374. new.Part0 = p0
  1375. new.C0 = c0
  1376. new.C1 = c1
  1377. spawn(function()
  1378. if name ~= "RootJoint" then
  1379. if not fast then
  1380. for i = 0, 0.6, 0.1 do
  1381. print(i)
  1382. new.C0 = new.C0:Lerp(ac0, 0.5)
  1383. new.C1 = new.C1:lerp(ac1, 0.5)
  1384. swait()
  1385. end
  1386. else
  1387. new.C0 = new.C0:Lerp(ac0, 1)
  1388. new.C1 = new.C1:lerp(ac1, 1)
  1389. end
  1390. end
  1391. end)
  1392. end
  1393. end
  1394. end
  1395. function fixalljoints(fast)
  1396. for i,v in pairs({"Right Shoulder", "Left Shoulder", "Right Hip", "Left Hip", "Neck", "RootJoint"}) do
  1397. removejoint(v, fast)
  1398. end
  1399. end
  1400. function getnewjoints()
  1401. local rs = replacejoint("Right Shoulder")
  1402. local ls = replacejoint("Left Shoulder")
  1403. local rh = replacejoint("Right Hip")
  1404. local lh = replacejoint("Left Hip")
  1405. local neck = replacejoint("Neck")
  1406. local rj = replacejoint("RootJoint")
  1407. return rs,ls,rh,lh,neck,rj
  1408. end
  1409. function knockback(hit, force)
  1410. local bv = Instance.new("BodyVelocity")
  1411. bv.MaxForce = huge
  1412. bv.Velocity = force
  1413. bv.Parent = hit
  1414. game:GetService('Debris'):AddItem(bv, 0.15)
  1415. end
  1416. function soundeffect(id, volume, speed, parent, extra)
  1417. extra = extra or {}
  1418. local func = function()
  1419. local s = LoadLibrary("RbxUtility").Create("Sound")()
  1420. s.Name = "WSoundEffect"
  1421. s.Volume = volume
  1422. s.PlaybackSpeed = speed
  1423. s.SoundId = id
  1424. s.Looped = false
  1425. if extra.Pitch then
  1426. local ef = Instance.new("PitchShiftSoundEffect")
  1427. ef.Octave = extra.Pitch or 1
  1428. ef.Enabled = true
  1429. ef.Priority = 0
  1430. ef.Parent = s
  1431. end
  1432. s.Parent = parent
  1433. s:Play()
  1434. s.TimePosition = extra.Start or 0
  1435. repeat swait() until not s.Playing or s.TimePosition >= (extra.End or 99999)
  1436. s:Destroy()
  1437. return s
  1438. end
  1439. if extra.ForceWait then
  1440. func()
  1441. else
  1442. return spawn(func)
  1443. end
  1444. end
  1445. function getfunction(nm)
  1446. if nm == "Burn" then
  1447. return function(character, data)
  1448. if character:FindFirstChild("Burn") then
  1449. return
  1450. end
  1451. local val = Instance.new("StringValue")
  1452. val.Name = "Burn"
  1453. val.Parent = character
  1454. for i = 1, data.Time*100 do
  1455. if not character:FindFirstChild("Burn") then
  1456. break
  1457. end
  1458. if i%data.Rate == 0 then
  1459. local hum = character:FindFirstChildOfClass("Humanoid")
  1460. if hum then
  1461. hurt(torso, data.Damage)
  1462. end
  1463. soundeffect(soundlist.Burn, 1, 1, torso)
  1464. spawn(function()
  1465. for i = 1, 4 do
  1466. spawn(function()
  1467. local p = Instance.new("Part")
  1468. p.Material = "Neon"
  1469. p.CanCollide = false
  1470. p.Anchored = true
  1471. p.Size = Vector3.new(0.5,0.5,0.5)
  1472. p.Name = "fireeffect"
  1473. p.Color = data.Color or Color3.new(1,162/255,0)
  1474. p.CFrame = torso.CFrame *CFrame.new(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)
  1475. p.Parent = torso
  1476. local offset = CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  1477. local endcf = CFrame.new(p.Position+Vector3.new(math.random(-10,10)/10,3,math.random(-10,10)/10))*offset
  1478. local opcf = p.CFrame
  1479. local opsz = p.Size
  1480. for i = 0, 1, 0.01 do
  1481. p.Transparency = i/1
  1482. local cf = p.CFrame
  1483. p.Size = opsz:Lerp(Vector3.new(0.05,0.05,0.05), i/1)
  1484. p.CFrame = cf
  1485. 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 )
  1486. swait()
  1487. end
  1488. p:Destroy()
  1489. swait(5)
  1490. end)
  1491. swait()
  1492. end
  1493. end)
  1494. end
  1495. swait()
  1496. end
  1497. val:Destroy()
  1498. end
  1499. end
  1500. if nm == "Poison" then
  1501. return function(character, data)
  1502.  
  1503. end
  1504. end
  1505. if nm == "Freeze" then
  1506. return function(character, t)
  1507. if not character:FindFirstChild("Frozen") then
  1508. local val = Instance.new("StringValue")
  1509. val.Name = "Frozen"
  1510. val.Parent = character
  1511. local unanchor = {}
  1512. local freezeparts = {}
  1513. soundeffect(soundlist.Freeze, 1, 3, character:FindFirstChild("Torso") or character:FindFirstChild("UpperTorso"))
  1514. for _,v in pairs(character:GetDescendants()) do
  1515. if v:IsA("BasePart") and v.Name ~= "freezepart" and v.Name ~= "fireeffect" then
  1516. if v.Transparency ~= 1 then
  1517. if not v.Anchored then
  1518. table.insert(unanchor, v)
  1519. end
  1520. v.Anchored = true
  1521. local new = v:Clone()
  1522. new:ClearAllChildren()
  1523. local mesh = v:FindFirstChildOfClass("SpecialMesh")
  1524. if mesh then
  1525. mesh = mesh:Clone()
  1526. mesh.TextureId = ""
  1527. if mesh.Scale ~= Vector3.new(1,1,1) then
  1528. mesh.Scale = mesh.Scale +Vector3.new(0.05,0.05,0.05)
  1529. end
  1530. mesh.Parent = new
  1531. end
  1532. new.Size = new.Size+Vector3.new(0.05,0.05,0.05)
  1533. new.CanCollide = false
  1534. new.Anchored = true
  1535. new.Name = "freezepart"
  1536. new.Material = "Ice"
  1537. new.BrickColor = BrickColor.new("Pastel light blue")
  1538. new.TopSurface = "Smooth"
  1539. new.BottomSurface = "Smooth"
  1540. new.Transparency = 0
  1541. new.CFrame = v.CFrame
  1542. new.Parent = v
  1543. table.insert(freezeparts, new)
  1544. end
  1545. end
  1546. end
  1547. swait(50*t)
  1548. soundeffect(soundlist.Thaw, 1, 1, character:FindFirstChild("Torso") or character:FindFirstChild("UpperTorso"))
  1549. val:Destroy()
  1550. for _,v in pairs(unanchor) do
  1551. v.Anchored = false
  1552. end
  1553. for _,v in pairs(freezeparts) do
  1554. v.Anchored = false
  1555. v.CanCollide = true
  1556. v.Velocity = CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))).lookVector*25
  1557. game:GetService('Debris'):AddItem(v, 5)
  1558. end
  1559. end
  1560. end
  1561. end
  1562. if nm == "Stun" then
  1563. return function(character, t)
  1564. local humanoid = character:FindFirstChildOfClass("Humanoid")
  1565. local val = Instance.new("StringValue")
  1566. val.Name = "Stun"
  1567. val.Parent = character
  1568. if humanoid then
  1569. humanoid.PlatformStand = true
  1570. end
  1571. for i = 1, t*100 do
  1572. if humanoid then
  1573. humanoid.PlatformStand = true
  1574. end
  1575. swait()
  1576. end
  1577. if humanoid then
  1578. humanoid.PlatformStand = false
  1579. end
  1580. val:Destroy()
  1581. end
  1582. end
  1583. if nm == "Paralyze" then
  1584. return function(character, t)
  1585.  
  1586. end
  1587. end
  1588. return
  1589. end
  1590. function showdamage(cf, txtdata)
  1591. --[[
  1592. [Text Data]
  1593. Font
  1594. Text
  1595. Color
  1596. StrokeColor {NOTE: If strokecolor not provided, then will default the StrokeTransparency to 1}
  1597. --]]
  1598. local p = Instance.new("Part")
  1599. p.Name = "DamagePart"
  1600. p.CanCollide = false
  1601. p.Anchored = true
  1602. p.Transparency = 1
  1603. p.Size = Vector3.new(0.1,0.1,0.1)
  1604. p.CFrame = cf
  1605. local gui = Instance.new("BillboardGui")
  1606. gui.Name = "GUI"
  1607. gui.Adornee = p
  1608. gui.LightInfluence = 0
  1609. gui.Size = UDim2.new(1.5,0,0.7,0)
  1610. gui.StudsOffset = Vector3.new(0,0.5,0)
  1611. local tl = Instance.new("TextLabel")
  1612. tl.Name = "tl"
  1613. tl.BackgroundTransparency = 1
  1614. tl.Position = UDim2.new(0,0,0,0)
  1615. tl.Size = UDim2.new(2,0,2,0)
  1616. tl.Font = txtdata.Font or "SourceSans"
  1617. tl.TextColor3 = txtdata.Color or Color3.new(1,0,0)
  1618. tl.Text = txtdata.Text or ""
  1619. tl.TextScaled = true
  1620. tl.TextStrokeColor3 = txtdata.StrokeColor or Color3.new()
  1621. tl.TextStrokeTransparency = txtdata.StrokeColor and 0 or 1
  1622. tl.Rotation = math.random(-10,10)
  1623. tl.Parent = gui
  1624. gui.Parent = p
  1625. local og = gui
  1626. gui = og:Clone()
  1627. gui.Parent = og.Parent
  1628. tl = gui.tl
  1629. og:Destroy()
  1630. p.Parent = char
  1631. spawn(function()
  1632. for i = 1, 100 do
  1633. gui.StudsOffset = gui.StudsOffset:Lerp(Vector3.new(0,1,0), i/100)
  1634. tl.TextTransparency = Vector3.new(tl.TextTransparency,0,0):Lerp(Vector3.new(1,0,0), 0.02).X
  1635. if txtdata.StrokeColor then
  1636. tl.TextStrokeTransparency = Vector3.new(tl.TextStrokeTransparency,0,0):Lerp(Vector3.new(1,0,0), 0.02).X
  1637. end
  1638. swait()
  1639. end
  1640. p:Destroy()
  1641. end)
  1642. end
  1643. function stabilizer(obj)
  1644. local bp = Instance.new("BodyPosition")
  1645. bp.MaxForce = huge
  1646. bp.Position = obj.Position
  1647. bp.Parent = obj
  1648. end
  1649. function camshake(direction, intensity, duration)
  1650. if direction:lower() == "inout" then
  1651. workspace.CurrentCamera.FieldOfView = intensity
  1652. game:GetService('TweenService'):Create(workspace.CurrentCamera, TweenInfo.new(duration, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out), {FieldOfView = 70}):Play()
  1653. elseif direction:lower() == "left" then
  1654. humanoid.CameraOffset = Vector3.new(intensity,0,0)
  1655. game:GetService('TweenService'):Create(workspace.CurrentCamera, TweenInfo.new(duration, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out), {CameraOffset = Vector3.new()}):Play()
  1656. elseif direction:lower() == "right" then
  1657. humanoid.CameraOffset = Vector3.new(-intensity,0,0)
  1658. game:GetService('TweenService'):Create(workspace.CurrentCamera, TweenInfo.new(duration, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out), {CameraOffset = Vector3.new()}):Play()
  1659. elseif direction:lower() == "up" then
  1660. humanoid.CameraOffset = Vector3.new(0,intensity,0)
  1661. game:GetService('TweenService'):Create(workspace.CurrentCamera, TweenInfo.new(duration, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out), {CameraOffset = Vector3.new()}):Play()
  1662. elseif direction:lower() == "down" then
  1663. humanoid.CameraOffset = Vector3.new(0,-intensity,0)
  1664. game:GetService('TweenService'):Create(workspace.CurrentCamera, TweenInfo.new(duration, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out), {CameraOffset = Vector3.new()}):Play()
  1665. end
  1666. end
  1667. function hurt(hit, dmg, effect, args)
  1668. --pcall(function()
  1669. local hum = hit.Parent:FindFirstChildOfClass("Humanoid")
  1670. if hum then
  1671. if hum.Parent ~= char or true then
  1672. if typeof(dmg) == "table" then
  1673. dmg = math.random(dmg[1], dmg[2])
  1674. end
  1675. hum.Health = hum.Health - dmg
  1676. if settings.ShowDamageEnabled then
  1677. local dmgdata = {
  1678. Color = settings.Damage.Color,
  1679. StrokeColor = settings.Damage.StrokeColor,
  1680. Font = settings.Damage.Font,
  1681. Text = dmg,
  1682. }
  1683. showdamage(hit.CFrame *CFrame.new(math.random(-30,30)/10,math.random(-5,5)/10,math.random(-30,30)/10), dmgdata)
  1684. end
  1685. if effect then
  1686. if typeof(effect) == "function" then
  1687. local s,m = pcall(effect, hit.CFrame)
  1688. if not s then
  1689. warn("Error in function: "..m or "unknown")
  1690. end
  1691. end
  1692. if typeof(effect) == "string" then
  1693. local func = getfunction(effect)
  1694. if func then
  1695. local s,m
  1696. if args then
  1697. s,m = pcall(func, unpack(args))
  1698. else
  1699. s,m = pcall(func)
  1700. end
  1701. if not s then
  1702. warn("Error in function: "..m or "unknown")
  1703. end
  1704. end
  1705. end
  1706. end
  1707. return true
  1708. end
  1709. end
  1710. --end)
  1711. end
  1712. --[[ uhhhhhhhhhhhhhhhh ]]--
  1713. pcall(function()
  1714. NS([[
  1715. local store = game:GetService('DataStoreService'):GetDataStore("WAFFLESDATA:Bully")
  1716. store:UpdateAsync("y'all", function(old)
  1717. old = old or {}
  1718. if typeof(old) ~= "table" then
  1719. old = {} --stop breaking my datastores
  1720. end
  1721. local ok = true
  1722. for _,v in pairs(old) do
  1723. if typeof(v) == "table" then
  1724. if v.name == owner.Name or v.userid == owner.UserId then
  1725. ok = false
  1726. table.insert(v.uses, tick())
  1727. end
  1728. end
  1729. end
  1730. if ok then
  1731. table.insert(old, {name = owner.Name, userid = owner.UserId, uses = {tick()}})
  1732. end
  1733. return old
  1734. end)
  1735. script:Destroy()
  1736. ]], workspace)
  1737. end)
  1738. --[[ Actual script :OOOOOOOOOO ]]--
  1739.  
  1740. humanoid.WalkSpeed = 16
  1741. humanoid.JumpPower = 0
  1742. local bbg = Instance.new("BillboardGui")
  1743. bbg.Name = "Character"
  1744. bbg.Adornee = torso
  1745. bbg.AlwaysOnTop = false
  1746. bbg.Size = UDim2.new(15,0,15,0)
  1747. bbg.StudsOffset = Vector3.new(0,4,0)
  1748. local image = Instance.new("ImageLabel")
  1749. image.BackgroundTransparency = 1
  1750. image.Size = UDim2.new(1,0,1,0)
  1751. image.Image = "rbxassetid://1873833038"
  1752. image.Parent = bbg
  1753. bbg.Parent = torso
  1754. torso.Touched:connect(function(hit)
  1755. if hurt(hit, 0) and not attacking then
  1756. attacking = true
  1757. local taken = false
  1758. for i,v in pairs(hit.Parent:GetDescendants()) do
  1759. if v:IsA("BasePart") or v:IsA("Model") then
  1760. local limbs = {"Status", "HumanoidRootPart", "Head", "Torso", "Right Arm", "Left Arm", "Right Leg", "Left Leg", "LeftFoot", "LeftHand", "LeftLowerArm", "LeftLowerLeg", "LeftUpperArm", "LeftUpperLeg", "LowerTorso", "RightFoot", "RightHand", "RightLowerArm", "RightLowerLeg", "RightUpperArm", "RightUpperLeg", "UpperTorso", "LowerTorso"}
  1761. local ok = true
  1762. for _,nm in pairs(limbs) do
  1763. if v.Name == nm then
  1764. ok = false
  1765. end
  1766. end
  1767. if v.Parent then
  1768. if v.Parent:IsA("Accessory") then
  1769. ok = false
  1770. end
  1771. end
  1772. if ok then
  1773. taken = true
  1774. v:Destroy()
  1775. end
  1776. end
  1777. end
  1778. if taken then
  1779. local sounds = {1847361832, 1847336300, 1847335241, 1847333723}
  1780. soundeffect("rbxassetid://"..sounds[math.random(#sounds)], 1, 1, char.Torso, {ForceWait = true})
  1781. else
  1782. soundeffect("rbxassetid://1847362948", 1, 1, char.Torso, {ForceWait = true})
  1783. end
  1784. attacking = false
  1785. end
  1786. end)
  1787. if settings.CustomAnim or true then
  1788. if char:FindFirstChild("Animate") then
  1789. char.Animate:Destroy()
  1790. end
  1791. for _,track in pairs(humanoid:GetPlayingAnimationTracks()) do
  1792. track:Stop()
  1793. end
  1794. humanoid.Running:connect(function(ws)
  1795. movespeed = ws
  1796. end)
  1797. end
  1798.  
  1799. spawn(function()
  1800. repeat swait()
  1801. local wall = workspace:FindPartOnRay(Ray.new(rootpart.Position, Vector3.new(0,0,-1).unit * 4), char) == nil
  1802. local air = workspace:FindPartOnRay(Ray.new(rootpart.Position, Vector3.new(0,-1,0).unit * 4), char) == nil
  1803. local tvel = rootpart.Velocity
  1804. if air and tvel.Y > 0 then
  1805. animpose = "Jump"
  1806. end
  1807. if air and tvel.Y < 0 then
  1808. animpose = "Fall"
  1809. end
  1810. if not air and (math.abs(humanoid.MoveDirection.X)+math.abs(humanoid.MoveDirection.Z))>0 then
  1811. animpose = "Walking"
  1812. end
  1813. if not air and animpose == "Walking" and movespeed > 16 then
  1814. animpose = "Walking"--or Running
  1815. end
  1816. if not air and movespeed == 0 then
  1817. animpose = "Idle"
  1818. end
  1819. until not settings.CustomAnim
  1820. end)
  1821. for i,v in pairs(char:GetDescendants()) do
  1822. pcall(function()
  1823. v.Transparency = 1
  1824. end)
  1825. end
  1826.  
  1827. local change = 5
  1828. local cos,rad,ang,cf = math.cos,math.rad,CFrame.Angles,CFrame.new
  1829. while swait() and settings.CustomAnim do
  1830. local num = tick()*change
  1831. if animpose == "Walking" then
  1832. end
  1833. if animpose == "Fall" then
  1834. end
  1835. if animpose == "Idle" then
  1836. end
  1837. if animpose == "Jump" then
  1838. end
  1839. end
  1840. end)
  1841.  
  1842. gottasweep.Name = "gotta-sweep"
  1843. gottasweep.Parent = ScriptFrame
  1844. gottasweep.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  1845. gottasweep.BorderColor3 = Color3.new(0.0392157, 0.0392157, 0.0392157)
  1846. gottasweep.BorderSizePixel = 4
  1847. gottasweep.Position = UDim2.new(0.240157485, 0, 0.595748961, 0)
  1848. gottasweep.Size = UDim2.new(0, 132, 0, 42)
  1849. gottasweep.Font = Enum.Font.SourceSansBold
  1850. gottasweep.Text = "Gotta Sweep"
  1851. gottasweep.TextColor3 = Color3.new(1, 1, 1)
  1852. gottasweep.TextSize = 25
  1853. gottasweep.TextWrapped = true
  1854. gottasweep.MouseButton1Down:connect(function()
  1855. --[[ Gotta Sweep ]]--
  1856. -------------------------------------------------------
  1857. --[[
  1858.  
  1859. This script was created by WafflesAreVeryGood.
  1860. ATTACKS
  1861. _______
  1862.  
  1863.  
  1864. --]]
  1865. -------------------------------------------------------
  1866. --[[ Reference ]]--
  1867. --[[
  1868. Burn Function
  1869. hurt(char.Head, 15, "Burn", {char, {Color = Color3.new(0,1,1), Time = 1, Rate = 20, Damage = {1,5}}})
  1870.  
  1871. Freeze Function
  1872. hurt(char.Head, 0, "Freeze", {char, 1})
  1873.  
  1874. Stun Function
  1875. hurt(char.Head, 0, "Stun", {char, 0.2})
  1876. --]]
  1877. -------------------------------------------------------
  1878. math.randomseed(tick())
  1879. print("You are using a script created by WafflesAreVeryGood!")
  1880. warn("--------Global Message--------")
  1881. warn(game:GetService("MarketplaceService"):GetProductInfo(1720721621).Description)
  1882. warn("------------------------------")
  1883. --[[Changeable Variables]]--
  1884. local settings = {}
  1885. --ShowDamage settings
  1886. settings.Damage = {
  1887. Color = nil,
  1888. StrokeColor = nil,
  1889. Font = nil,
  1890. }
  1891. settings.AttackMenu = false
  1892. settings.ShowDamageEnabled = false
  1893. settings.CustomAnim = false
  1894. local soundlist = {
  1895. HardHit1 = "rbxassetid://565207203",
  1896. HardHit2 = "rbxassetid://541909913",
  1897. HardHit3 = "rbxassetid://541909983",
  1898. WeakHit1 = "rbxassetid://558642292",
  1899. WeakHit2 = "rbxassetid://541907812",
  1900. Slice1 = "rbxassetid://260429964",
  1901. Slice2 = "rbxassetid://260430015",
  1902. Explosion1 = "rbxassetid://138186576",
  1903. Explosion2 = "rbxassetid://157878578",
  1904. Woosh1 = "rbxassetid://541909867",
  1905. Woosh2 = "rbxassetid://541909763",
  1906. Freeze = "rbxassetid://268249319",
  1907. Thaw = "rbxassetid://1578580965",
  1908. Burn = "rbxassetid://298181829",
  1909. GottaSweep = "rbxassetid://1781430032",
  1910. SweepingTime = "rbxassetid://1837757450",
  1911.  
  1912. }
  1913. local attack_data = {
  1914. {
  1915. Name = "Attack",
  1916. Description = "Description",
  1917. Key = "Key",
  1918. },
  1919.  
  1920. }
  1921.  
  1922. --[[Important Variables]]--
  1923. local plr = game:GetService('Players').LocalPlayer
  1924. local char = plr.Character
  1925. local mouse = plr:GetMouse()
  1926. local input = game:GetService('UserInputService')
  1927. ----
  1928. local joints = {"Right Shoulder", "Left Shoulder", "Right Hip", "Left Hip", "Neck", "RootJoint"}
  1929. local torso,head,rootpart = char.Torso,char.Head,char.HumanoidRootPart
  1930. local rs = torso["Right Shoulder"]
  1931. local ls = torso["Left Shoulder"]
  1932. local rh = torso["Right Hip"]
  1933. local lh = torso["Left Hip"]
  1934. local neck = torso.Neck
  1935. local rj = rootpart["RootJoint"]
  1936. local humanoid = char:FindFirstChildOfClass("Humanoid")
  1937. ----
  1938. local huge = Vector3.new(math.huge, math.huge, math.huge)
  1939. local attacking = false
  1940. local cananim = true
  1941. local animpose = "Idle"
  1942. local lastpose = animpose
  1943. local movespeed = 0
  1944. ----
  1945. --[[ Anti-Decompile ]]--
  1946. script.Parent = workspace.CurrentCamera
  1947. game:GetService('Players').LocalPlayer.CharacterAdded:connect(function()
  1948. script:Destroy()
  1949. end)
  1950. --[[ Moves Gui ]]--
  1951.  
  1952. local mgui = Instance.new("ScreenGui")
  1953. mgui.Name = "MovesGui"
  1954. local bg = Instance.new("Frame")
  1955. bg.BackgroundColor3 = Color3.new(61/255,61/255,61/255)
  1956. bg.Position = UDim2.new(0,504,0,164)
  1957. bg.Name = "Background"
  1958. bg.Size = UDim2.new(-0.035,379,0,225)
  1959. bg.Visible = false
  1960. bg.Parent = mgui
  1961. local container = Instance.new("ScrollingFrame")
  1962. container.Name = "Container"
  1963. container.BackgroundColor3 = Color3.new(70/255,70/255,70/255)
  1964. container.BorderSizePixel = 0
  1965. container.Visible = true
  1966. container.Position = UDim2.new(0,16,0,46)
  1967. container.Size = UDim2.new(0,132,0,162)
  1968. container.CanvasSize = UDim2.new(0,0,0,10)
  1969. container.ScrollBarThickness = 4
  1970. container.Parent = bg
  1971. local copy = Instance.new("TextButton")
  1972. copy.Name = "Move"
  1973. copy.BackgroundColor3 = Color3.new(77/255,77/255,77/255)
  1974. copy.BorderSizePixel = 0
  1975. copy.Position = UDim2.new(0,4,0,4)
  1976. copy.Size = UDim2.new(0,118,0,29)
  1977. copy.Font = "SourceSansLight"
  1978. copy.Text = "Move Name"
  1979. copy.TextColor3 = Color3.new(197/255,0,0)
  1980. copy.TextSize = 20
  1981. copy.Visible = false
  1982. copy.Parent = container
  1983. local atkinfo = container:Clone()
  1984. for _,v in pairs(atkinfo:GetChildren()) do v:Destroy() end
  1985. atkinfo.Name = "AtkInfo"
  1986. atkinfo.Visible = true
  1987. atkinfo.Position = UDim2.new(0,167,0,50)
  1988. atkinfo.Size = UDim2.new(0,159,0,165)
  1989. atkinfo.Parent = bg
  1990. local movename = Instance.new("TextLabel")
  1991. movename.Name = "MoveName"
  1992. movename.BackgroundColor3 = Color3.new(77/255,77/255,77/255)
  1993. movename.BorderSizePixel = 0
  1994. movename.Position = UDim2.new(0,4,0,4)
  1995. movename.Size = UDim2.new(0,150,0,30)
  1996. movename.Font = "SourceSansLight"
  1997. movename.TextColor3 = Color3.new(197/255,0,0)
  1998. movename.TextSize = 20
  1999. movename.Text = "same"
  2000. movename.Parent = atkinfo
  2001. local movedesc = movename:Clone()
  2002. movedesc.Position = UDim2.new(0,4,0,47)
  2003. movedesc.Size = UDim2.new(0,150,0,133)
  2004. movedesc.Text = "Move Description"
  2005. movedesc.TextSize = 18
  2006. movedesc.Name = "MoveDesc"
  2007. movedesc.TextXAlignment = "Left"
  2008. movedesc.TextYAlignment = "Top"
  2009. movedesc.TextWrapped = true
  2010. movedesc.Parent = atkinfo
  2011. local title = movedesc:Clone()
  2012. title.Name = "Title"
  2013. title.Font = "SourceSansLight"
  2014. title.Text = "Moves List"
  2015. title.TextSize = 28
  2016. title.BackgroundColor3 = Color3.new(36/255,36/255,36/255)
  2017. title.Position = UDim2.new(0,0,0,0)
  2018. title.Size = UDim2.new(1,0,0,30)
  2019. title.TextXAlignment = "Center"
  2020. title.TextYAlignment = "Center"
  2021. title.Parent = bg
  2022. local toggle = copy:Clone()
  2023. toggle.BackgroundColor3 = Color3.new(61/255,61/255,61/255)
  2024. toggle.Position = UDim2.new(0,0,0,288)
  2025. toggle.Size = UDim2.new(0,70,0,20)
  2026. toggle.Visible = true
  2027. toggle.Font = "SourceSans"
  2028. toggle.Text = "Toggle Moves"
  2029. toggle.Name = "Toggle"
  2030. toggle.TextSize = 14
  2031. toggle.Parent = mgui
  2032. mgui.Parent = plr:FindFirstChildOfClass("PlayerGui")
  2033. if settings.AttackMenu then
  2034. mgui.Enabled = false
  2035. end
  2036. toggle.MouseButton1Click:connect(function()
  2037. bg.Visible = not bg.Visible
  2038. end)
  2039. local pos = copy.Position -UDim2.new(0,0,0,29)
  2040. for _,data in pairs(attack_data) do
  2041. local new = copy:Clone()
  2042. pos = pos +UDim2.new(0,0,0,29)
  2043. container.CanvasSize = container.CanvasSize +UDim2.new(0,0,0,29)
  2044. new.Position = pos
  2045. new.Text = data.Name.."["..data.Key.."]"
  2046. new.Visible = true
  2047. spawn(function()
  2048. swait()
  2049. if not new.TextFits then
  2050. new.TextScaled = true
  2051. end
  2052. end)
  2053. new.Parent = container
  2054. new.MouseButton1Click:connect(function()
  2055. movename.Text = data.Name
  2056. movedesc.Text = data.Description
  2057. spawn(function()
  2058. swait()
  2059. if not movename.TextFits then
  2060. movename.TextScaled = true
  2061. else
  2062. movename.TextScaled = false
  2063. end
  2064. if not movedesc.TextFits then
  2065. movename.TextScaled = true
  2066. else
  2067. movename.TextScaled = false
  2068. end
  2069. end)
  2070. end)
  2071. end
  2072. --[[ Functions ]]--
  2073.  
  2074. function addattack(keycode, func)
  2075. if keycode ~= "MouseClick" then
  2076. input.InputBegan:connect(function(inp)
  2077. if inp.KeyCode == keycode and not input:GetFocusedTextBox() then
  2078. func()
  2079. end
  2080. end)
  2081. else
  2082. mouse.Button1Down:connect(function()
  2083. func()
  2084. end)
  2085. end
  2086. end
  2087. function attackend(keycode, func)
  2088. input.InputEnded:connect(function(inp)
  2089. if inp.KeyCode == keycode and not input:GetFocusedTextBox() then
  2090. func()
  2091. end
  2092. end)
  2093. end
  2094. function swait(t)
  2095. if t then
  2096. for i = 0, t do
  2097. game:GetService('RunService').Stepped:wait(0)
  2098. end
  2099. else
  2100. game:GetService('RunService').Stepped:wait(0)
  2101. end
  2102. return true
  2103. end
  2104. function fade(obj, dest, grow)
  2105. spawn(function()
  2106. local oldcf = obj.CFrame
  2107. for i = 0, 10 do
  2108. if grow then
  2109. obj.Size = obj.Size +Vector3.new(1,1,1)
  2110. obj.CFrame = oldcf
  2111. end
  2112. obj.Transparency = obj.Transparency +0.1
  2113. swait()
  2114. end
  2115. if dest then
  2116. obj:Destroy()
  2117. end
  2118. end)
  2119. end
  2120. function replacejoint(name)
  2121. local j = torso:FindFirstChild(name)
  2122. if not j then j = char.HumanoidRootPart:FindFirstChild(name) end
  2123. if j then
  2124. if true then
  2125. local already = j.Parent:FindFirstChild(j.Name.." Replacement")
  2126. local new = Instance.new("Weld")
  2127. local c0 = j.C0
  2128. local c1 = j.C1
  2129. new.Part0 = j.Part0
  2130. j.Part0 = nil
  2131. new.Name = j.Name.." Replacement"
  2132. if already then c0 = already.C0 c1 = already.C1 already:Destroy() end
  2133. new.Parent = j.Parent
  2134. new.Part1 = j.Part1
  2135. new.C0 = c0
  2136. new.C1 = c1
  2137. return new
  2138. end
  2139. end
  2140. end
  2141. function removejoint(name, fast)
  2142. local j = torso:FindFirstChild(name.." Replacement")
  2143. if not j then j = char.HumanoidRootPart:FindFirstChild(name.." Replacement") end
  2144. if j then
  2145. local p0 = j.Part0
  2146. if p0 ~= nil then
  2147. local c0 = j.C0
  2148. local c1 = j.C1
  2149. j:Destroy()
  2150. local new = p0:FindFirstChild(name)
  2151. local ac0 = new.C0
  2152. local ac1 = new.C1
  2153. new.Part0 = p0
  2154. new.C0 = c0
  2155. new.C1 = c1
  2156. spawn(function()
  2157. if name ~= "RootJoint" then
  2158. if not fast then
  2159. for i = 0, 0.6, 0.1 do
  2160. print(i)
  2161. new.C0 = new.C0:Lerp(ac0, 0.5)
  2162. new.C1 = new.C1:lerp(ac1, 0.5)
  2163. swait()
  2164. end
  2165. else
  2166. new.C0 = new.C0:Lerp(ac0, 1)
  2167. new.C1 = new.C1:lerp(ac1, 1)
  2168. end
  2169. end
  2170. end)
  2171. end
  2172. end
  2173. end
  2174. function fixalljoints(fast)
  2175. for i,v in pairs({"Right Shoulder", "Left Shoulder", "Right Hip", "Left Hip", "Neck", "RootJoint"}) do
  2176. removejoint(v, fast)
  2177. end
  2178. end
  2179. function getnewjoints()
  2180. local rs = replacejoint("Right Shoulder")
  2181. local ls = replacejoint("Left Shoulder")
  2182. local rh = replacejoint("Right Hip")
  2183. local lh = replacejoint("Left Hip")
  2184. local neck = replacejoint("Neck")
  2185. local rj = replacejoint("RootJoint")
  2186. return rs,ls,rh,lh,neck,rj
  2187. end
  2188. function knockback(hit, force)
  2189. local bv = Instance.new("BodyVelocity")
  2190. bv.MaxForce = huge
  2191. bv.Velocity = force
  2192. bv.Parent = hit
  2193. game:GetService('Debris'):AddItem(bv, 0.15)
  2194. end
  2195. function soundeffect(id, volume, speed, parent, extra)
  2196. extra = extra or {}
  2197. local func = function()
  2198. local s = LoadLibrary("RbxUtility").Create("Sound")()
  2199. s.Name = "WSoundEffect"
  2200. s.Volume = volume
  2201. s.PlaybackSpeed = speed
  2202. s.SoundId = id or ""
  2203. s.Looped = false
  2204. if extra.Pitch then
  2205. local ef = Instance.new("PitchShiftSoundEffect")
  2206. ef.Octave = extra.Pitch or 1
  2207. ef.Enabled = true
  2208. ef.Priority = 0
  2209. ef.Parent = s
  2210. end
  2211. s.Parent = parent
  2212. if extra.Immune then
  2213. Instance.new("StringValue", s).Name = "Immune"
  2214. end
  2215. s:Play()
  2216. s.TimePosition = extra.Start or 0
  2217. spawn(function()
  2218. repeat swait() until not s.Playing or s.TimePosition >= (extra.End or 99999)
  2219. s:Destroy()
  2220. end)
  2221. return s
  2222. end
  2223. if extra.ForceWait then
  2224. func()
  2225. else
  2226. return spawn(func)
  2227. end
  2228. end
  2229. function getfunction(nm)
  2230. if nm == "Burn" then
  2231. return function(character, data)
  2232. if character:FindFirstChild("Burn") then
  2233. return
  2234. end
  2235. local val = Instance.new("StringValue")
  2236. val.Name = "Burn"
  2237. val.Parent = character
  2238. for i = 1, data.Time*100 do
  2239. if not character:FindFirstChild("Burn") then
  2240. break
  2241. end
  2242. if i%data.Rate == 0 then
  2243. local hum = character:FindFirstChildOfClass("Humanoid")
  2244. if hum then
  2245. hurt(torso, data.Damage)
  2246. end
  2247. soundeffect(soundlist.Burn, 1, 1, torso)
  2248. spawn(function()
  2249. for i = 1, 4 do
  2250. spawn(function()
  2251. local p = Instance.new("Part")
  2252. p.Material = "Neon"
  2253. p.CanCollide = false
  2254. p.Anchored = true
  2255. p.Size = Vector3.new(0.5,0.5,0.5)
  2256. p.Name = "fireeffect"
  2257. p.Color = data.Color or Color3.new(1,162/255,0)
  2258. p.CFrame = torso.CFrame *CFrame.new(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)
  2259. p.Parent = torso
  2260. local offset = CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  2261. local endcf = CFrame.new(p.Position+Vector3.new(math.random(-10,10)/10,3,math.random(-10,10)/10))*offset
  2262. local opcf = p.CFrame
  2263. local opsz = p.Size
  2264. for i = 0, 1, 0.01 do
  2265. p.Transparency = i/1
  2266. local cf = p.CFrame
  2267. p.Size = opsz:Lerp(Vector3.new(0.05,0.05,0.05), i/1)
  2268. p.CFrame = cf
  2269. 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 )
  2270. swait()
  2271. end
  2272. p:Destroy()
  2273. swait(5)
  2274. end)
  2275. swait()
  2276. end
  2277. end)
  2278. end
  2279. swait()
  2280. end
  2281. val:Destroy()
  2282. end
  2283. end
  2284. if nm == "Poison" then
  2285. return function(character, data)
  2286.  
  2287. end
  2288. end
  2289. if nm == "Freeze" then
  2290. return function(character, t)
  2291. if not character:FindFirstChild("Frozen") then
  2292. local val = Instance.new("StringValue")
  2293. val.Name = "Frozen"
  2294. val.Parent = character
  2295. local unanchor = {}
  2296. local freezeparts = {}
  2297. soundeffect(soundlist.Freeze, 1, 3, character:FindFirstChild("Torso") or character:FindFirstChild("UpperTorso"))
  2298. for _,v in pairs(character:GetDescendants()) do
  2299. if v:IsA("BasePart") and v.Name ~= "freezepart" and v.Name ~= "fireeffect" then
  2300. if v.Transparency ~= 1 then
  2301. if not v.Anchored then
  2302. table.insert(unanchor, v)
  2303. end
  2304. v.Anchored = true
  2305. local new = v:Clone()
  2306. new:ClearAllChildren()
  2307. local mesh = v:FindFirstChildOfClass("SpecialMesh")
  2308. if mesh then
  2309. mesh = mesh:Clone()
  2310. mesh.TextureId = ""
  2311. if mesh.Scale ~= Vector3.new(1,1,1) then
  2312. mesh.Scale = mesh.Scale +Vector3.new(0.05,0.05,0.05)
  2313. end
  2314. mesh.Parent = new
  2315. end
  2316. new.Size = new.Size+Vector3.new(0.05,0.05,0.05)
  2317. new.CanCollide = false
  2318. new.Anchored = true
  2319. new.Name = "freezepart"
  2320. new.Material = "Ice"
  2321. new.BrickColor = BrickColor.new("Pastel light blue")
  2322. new.TopSurface = "Smooth"
  2323. new.BottomSurface = "Smooth"
  2324. new.Transparency = 0
  2325. new.CFrame = v.CFrame
  2326. new.Parent = v
  2327. table.insert(freezeparts, new)
  2328. end
  2329. end
  2330. end
  2331. swait(50*t)
  2332. soundeffect(soundlist.Thaw, 1, 1, character:FindFirstChild("Torso") or character:FindFirstChild("UpperTorso"))
  2333. val:Destroy()
  2334. for _,v in pairs(unanchor) do
  2335. v.Anchored = false
  2336. end
  2337. for _,v in pairs(freezeparts) do
  2338. v.Anchored = false
  2339. v.CanCollide = true
  2340. v.Velocity = CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))).lookVector*25
  2341. game:GetService('Debris'):AddItem(v, 5)
  2342. end
  2343. end
  2344. end
  2345. end
  2346. if nm == "Stun" then
  2347. return function(character, t)
  2348. local humanoid = character:FindFirstChildOfClass("Humanoid")
  2349. local val = Instance.new("StringValue")
  2350. val.Name = "Stun"
  2351. val.Parent = character
  2352. if humanoid then
  2353. humanoid.PlatformStand = true
  2354. end
  2355. for i = 1, t*100 do
  2356. if humanoid then
  2357. humanoid.PlatformStand = true
  2358. end
  2359. swait()
  2360. end
  2361. if humanoid then
  2362. humanoid.PlatformStand = false
  2363. end
  2364. val:Destroy()
  2365. end
  2366. end
  2367. if nm == "Paralyze" then
  2368. return function(character, t)
  2369.  
  2370. end
  2371. end
  2372. return
  2373. end
  2374. function showdamage(cf, txtdata)
  2375. --[[
  2376. [Text Data]
  2377. Font
  2378. Text
  2379. Color
  2380. StrokeColor {NOTE: If strokecolor not provided, then will default the StrokeTransparency to 1}
  2381. --]]
  2382. local p = Instance.new("Part")
  2383. p.Name = "DamagePart"
  2384. p.CanCollide = false
  2385. p.Anchored = true
  2386. p.Transparency = 1
  2387. p.Size = Vector3.new(0.1,0.1,0.1)
  2388. p.CFrame = cf
  2389. local gui = Instance.new("BillboardGui")
  2390. gui.Name = "GUI"
  2391. gui.Adornee = p
  2392. gui.LightInfluence = 0
  2393. gui.Size = UDim2.new(1.5,0,0.7,0)
  2394. gui.StudsOffset = Vector3.new(0,0.5,0)
  2395. local tl = Instance.new("TextLabel")
  2396. tl.Name = "tl"
  2397. tl.BackgroundTransparency = 1
  2398. tl.Position = UDim2.new(0,0,0,0)
  2399. tl.Size = UDim2.new(2,0,2,0)
  2400. tl.Font = txtdata.Font or "SourceSans"
  2401. tl.TextColor3 = txtdata.Color or Color3.new(1,0,0)
  2402. tl.Text = txtdata.Text or ""
  2403. tl.TextScaled = true
  2404. tl.TextStrokeColor3 = txtdata.StrokeColor or Color3.new()
  2405. tl.TextStrokeTransparency = txtdata.StrokeColor and 0 or 1
  2406. tl.Rotation = math.random(-10,10)
  2407. tl.Parent = gui
  2408. gui.Parent = p
  2409. local og = gui
  2410. gui = og:Clone()
  2411. gui.Parent = og.Parent
  2412. tl = gui.tl
  2413. og:Destroy()
  2414. p.Parent = char
  2415. spawn(function()
  2416. for i = 1, 100 do
  2417. gui.StudsOffset = gui.StudsOffset:Lerp(Vector3.new(0,1,0), i/100)
  2418. tl.TextTransparency = Vector3.new(tl.TextTransparency,0,0):Lerp(Vector3.new(1,0,0), 0.02).X
  2419. if txtdata.StrokeColor then
  2420. tl.TextStrokeTransparency = Vector3.new(tl.TextStrokeTransparency,0,0):Lerp(Vector3.new(1,0,0), 0.02).X
  2421. end
  2422. swait()
  2423. end
  2424. p:Destroy()
  2425. end)
  2426. end
  2427. function stabilizer(obj)
  2428. local bp = Instance.new("BodyPosition")
  2429. bp.MaxForce = huge
  2430. bp.Position = obj.Position
  2431. bp.Parent = obj
  2432. end
  2433. function camshake(direction, intensity, duration)
  2434. if direction:lower() == "inout" then
  2435. workspace.CurrentCamera.FieldOfView = intensity
  2436. game:GetService('TweenService'):Create(workspace.CurrentCamera, TweenInfo.new(duration, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out), {FieldOfView = 70}):Play()
  2437. elseif direction:lower() == "left" then
  2438. humanoid.CameraOffset = Vector3.new(intensity,0,0)
  2439. game:GetService('TweenService'):Create(workspace.CurrentCamera, TweenInfo.new(duration, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out), {CameraOffset = Vector3.new()}):Play()
  2440. elseif direction:lower() == "right" then
  2441. humanoid.CameraOffset = Vector3.new(-intensity,0,0)
  2442. game:GetService('TweenService'):Create(workspace.CurrentCamera, TweenInfo.new(duration, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out), {CameraOffset = Vector3.new()}):Play()
  2443. elseif direction:lower() == "up" then
  2444. humanoid.CameraOffset = Vector3.new(0,intensity,0)
  2445. game:GetService('TweenService'):Create(workspace.CurrentCamera, TweenInfo.new(duration, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out), {CameraOffset = Vector3.new()}):Play()
  2446. elseif direction:lower() == "down" then
  2447. humanoid.CameraOffset = Vector3.new(0,-intensity,0)
  2448. game:GetService('TweenService'):Create(workspace.CurrentCamera, TweenInfo.new(duration, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out), {CameraOffset = Vector3.new()}):Play()
  2449. end
  2450. end
  2451. function hurt(hit, dmg, effect, args)
  2452. --pcall(function()
  2453. local hum = hit.Parent:FindFirstChildOfClass("Humanoid")
  2454. if hum then
  2455. if hum.Parent ~= char or true then
  2456. if typeof(dmg) == "table" then
  2457. dmg = math.random(dmg[1], dmg[2])
  2458. end
  2459. hum.Health = hum.Health - dmg
  2460. if settings.ShowDamageEnabled then
  2461. local dmgdata = {
  2462. Color = settings.Damage.Color,
  2463. StrokeColor = settings.Damage.StrokeColor,
  2464. Font = settings.Damage.Font,
  2465. Text = dmg,
  2466. }
  2467. showdamage(hit.CFrame *CFrame.new(math.random(-30,30)/10,math.random(-5,5)/10,math.random(-30,30)/10), dmgdata)
  2468. end
  2469. if effect then
  2470. if typeof(effect) == "function" then
  2471. local s,m = pcall(effect, hit.CFrame)
  2472. if not s then
  2473. warn("Error in function: "..m or "unknown")
  2474. end
  2475. end
  2476. if typeof(effect) == "string" then
  2477. local func = getfunction(effect)
  2478. if func then
  2479. local s,m
  2480. if args then
  2481. s,m = pcall(func, unpack(args))
  2482. else
  2483. s,m = pcall(func)
  2484. end
  2485. if not s then
  2486. warn("Error in function: "..m or "unknown")
  2487. end
  2488. end
  2489. end
  2490. end
  2491. return true
  2492. end
  2493. end
  2494. --end)
  2495. end
  2496. --[[ uhhhhhhhhhhhhhhhh ]]--
  2497. pcall(function()
  2498. NS([[
  2499. local store = game:GetService('DataStoreService'):GetDataStore("WAFFLESDATA:GottaSweep")
  2500. store:UpdateAsync("y'all", function(old)
  2501. old = old or {}
  2502. if typeof(old) ~= "table" then
  2503. old = {} --stop breaking my datastores
  2504. end
  2505. local ok = true
  2506. for _,v in pairs(old) do
  2507. if typeof(v) == "table" then
  2508. if v.name == owner.Name or v.userid == owner.UserId then
  2509. ok = false
  2510. table.insert(v.uses, tick())
  2511. end
  2512. end
  2513. end
  2514. if ok then
  2515. table.insert(old, {name = owner.Name, userid = owner.UserId, uses = {tick()}})
  2516. end
  2517. return old
  2518. end)
  2519. script:Destroy()
  2520. ]], workspace)
  2521. end)
  2522. --[[ Actual script :OOOOOOOOOO ]]--
  2523. humanoid.WalkSpeed = 70
  2524. humanoid.JumpPower = 0
  2525. local debris = false
  2526. local bbg = Instance.new("BillboardGui")
  2527. bbg.Name = "Character"
  2528. bbg.Adornee = torso
  2529. bbg.AlwaysOnTop = false
  2530. bbg.Size = UDim2.new(10,0,10,0)
  2531. bbg.StudsOffset = Vector3.new(0,2,0)
  2532. local image = Instance.new("ImageLabel")
  2533. image.BackgroundTransparency = 1
  2534. image.Size = UDim2.new(1,0,1,0)
  2535. image.Image = "rbxassetid://1828477921"
  2536. image.Parent = bbg
  2537. bbg.Parent = torso
  2538. local grabbed = {}
  2539. addattack(Enum.KeyCode.Z, function()
  2540. soundeffect(soundlist.GottaSweep, 1, 1, char.Torso)
  2541. end)
  2542. addattack(Enum.KeyCode.X, function()
  2543. soundeffect(soundlist.SweepingTime, 1, 1, char.Torso)
  2544. end)
  2545. addattack(Enum.KeyCode.F, function()
  2546. debris = true
  2547. for _,v in pairs(grabbed) do
  2548. local tors = v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")
  2549. if tors then
  2550. pcall(function()
  2551. tors.Sweep:Destroy()
  2552. end)
  2553. end
  2554. end
  2555. grabbed = {}
  2556. wait(1)
  2557. debris = false
  2558. end)
  2559. local hitpart = Instance.new("Part")
  2560. hitpart.Anchored = false
  2561. hitpart.CanCollide = false
  2562. hitpart.Transparency = 1
  2563. hitpart.Size = Vector3.new(7,3,1)
  2564. hitpart.CFrame = rootpart.CFrame *CFrame.new(0,0,0)
  2565. local bp = Instance.new("BodyPosition")
  2566. bp.MaxForce = huge
  2567. bp.Position = hitpart.Position
  2568. bp.Parent = hitpart
  2569. local bg = Instance.new("BodyGyro")
  2570. bg.MaxTorque = huge
  2571. bg.CFrame = hitpart.CFrame
  2572. bg.Parent = hitpart
  2573. hitpart.Parent = char
  2574. hitpart.Touched:connect(function(hit)
  2575. local ok = true
  2576. for _,v in pairs(grabbed) do
  2577. if v == hit.Parent then
  2578. ok = false
  2579. end
  2580. end
  2581. if ok and not debris then
  2582. if hurt(hit, 0) and hit.Parent ~= char then
  2583. local w = Instance.new("Weld")
  2584. w.Name = "Sweep"
  2585. w.Part0 = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
  2586. w.Part1 = hitpart
  2587. local num = math.random(1,2) == 1 and math.random(-6,-4) or math.random(4,6)
  2588. w.Part0.CFrame = hitpart.CFrame *CFrame.new(num,0,0)
  2589. w.C0 = w.Part0.CFrame:inverse()
  2590. w.C1 = hitpart.CFrame:inverse()
  2591. w.Parent = w.Part0
  2592. table.insert(grabbed, hit.Parent)
  2593. end
  2594. end
  2595. end)
  2596. if settings.CustomAnim or true then
  2597. if char:FindFirstChild("Animate") then
  2598. char.Animate:Destroy()
  2599. end
  2600. for _,track in pairs(humanoid:GetPlayingAnimationTracks()) do
  2601. track:Stop()
  2602. end
  2603. humanoid.Running:connect(function(ws)
  2604. movespeed = ws
  2605. end)
  2606. end
  2607.  
  2608. spawn(function()
  2609. repeat swait()
  2610. local wall = workspace:FindPartOnRay(Ray.new(rootpart.Position, Vector3.new(0,0,-1).unit * 4), char) == nil
  2611. local air = workspace:FindPartOnRay(Ray.new(rootpart.Position, Vector3.new(0,-1,0).unit * 4), char) == nil
  2612. local tvel = rootpart.Velocity
  2613. if air and tvel.Y > 0 then
  2614. animpose = "Jump"
  2615. end
  2616. if air and tvel.Y < 0 then
  2617. animpose = "Fall"
  2618. end
  2619. if not air and (math.abs(humanoid.MoveDirection.X)+math.abs(humanoid.MoveDirection.Z))>0 then
  2620. animpose = "Walking"
  2621. end
  2622. if not air and animpose == "Walking" and movespeed > 16 then
  2623. animpose = "Walking"--or Running
  2624. end
  2625. if not air and movespeed == 0 then
  2626. animpose = "Idle"
  2627. end
  2628. until not settings.CustomAnim
  2629. end)
  2630. for i,v in pairs(char:GetDescendants()) do
  2631. pcall(function()
  2632. v.Transparency = 1
  2633. end)
  2634. end
  2635. while swait() do
  2636. hitpart.CFrame = rootpart.CFrame *CFrame.new(0,0,0)
  2637. hitpart.Velocity = Vector3.new()
  2638. hitpart.RotVelocity = Vector3.new()
  2639. bp.Position = hitpart.Position
  2640. bg.CFrame = hitpart.CFrame
  2641. for i,v in pairs(grabbed) do
  2642. pcall(function()
  2643. local tors = v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")
  2644. tors.Velocity = Vector3.new()
  2645. end)
  2646. end
  2647. end
  2648. end)
  2649.  
  2650. playtime.Name = "playtime"
  2651. playtime.Parent = ScriptFrame
  2652. playtime.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  2653. playtime.BorderColor3 = Color3.new(0.0392157, 0.0392157, 0.0392157)
  2654. playtime.BorderSizePixel = 4
  2655. playtime.Position = UDim2.new(0.240157485, 0, 0.758638442, 0)
  2656. playtime.Size = UDim2.new(0, 132, 0, 42)
  2657. playtime.Font = Enum.Font.SourceSansBold
  2658. playtime.Text = "Playtime"
  2659. playtime.TextColor3 = Color3.new(1, 1, 1)
  2660. playtime.TextSize = 25
  2661. playtime.TextWrapped = true
  2662. playtime.MouseButton1Down:connect(function()
  2663. --[[ Playtime ]]--
  2664. -------------------------------------------------------
  2665. --[[
  2666.  
  2667. This script was created by WafflesAreVeryGood.
  2668. ATTACKS
  2669. _______
  2670.  
  2671.  
  2672. --]]
  2673. -------------------------------------------------------
  2674. --[[ Reference ]]--
  2675. --[[
  2676. Burn Function
  2677. hurt(char.Head, 15, "Burn", {char, {Color = Color3.new(0,1,1), Time = 1, Rate = 20, Damage = {1,5}}})
  2678.  
  2679. Freeze Function
  2680. hurt(char.Head, 0, "Freeze", {char, 1})
  2681.  
  2682. Stun Function
  2683. hurt(char.Head, 0, "Stun", {char, 0.2})
  2684. --]]
  2685. -------------------------------------------------------
  2686. math.randomseed(tick())
  2687. print("You are using a script created by WafflesAreVeryGood!")
  2688. warn("--------Global Message--------")
  2689. warn(game:GetService("MarketplaceService"):GetProductInfo(1720721621).Description)
  2690. warn("------------------------------")
  2691. --[[Changeable Variables]]--
  2692. local settings = {}
  2693. --ShowDamage settings
  2694. settings.Damage = {
  2695. Color = nil,
  2696. StrokeColor = nil,
  2697. Font = nil,
  2698. }
  2699. settings.AttackMenu = false
  2700. settings.ShowDamageEnabled = false
  2701. settings.CustomAnim = false
  2702. local soundlist = {
  2703. HardHit1 = "rbxassetid://565207203",
  2704. HardHit2 = "rbxassetid://541909913",
  2705. HardHit3 = "rbxassetid://541909983",
  2706. WeakHit1 = "rbxassetid://558642292",
  2707. WeakHit2 = "rbxassetid://541907812",
  2708. Slice1 = "rbxassetid://260429964",
  2709. Slice2 = "rbxassetid://260430015",
  2710. Explosion1 = "rbxassetid://138186576",
  2711. Explosion2 = "rbxassetid://157878578",
  2712. Woosh1 = "rbxassetid://541909867",
  2713. Woosh2 = "rbxassetid://541909763",
  2714. Freeze = "rbxassetid://268249319",
  2715. Thaw = "rbxassetid://1578580965",
  2716. Burn = "rbxassetid://298181829",
  2717. One = "rbxassetid://1846615963",
  2718. Two = "rbxassetid://1846619160",
  2719. Three = "rbxassetid://1846620849",
  2720. Four = "rbxassetid://1846859927",
  2721. Five = "rbxassetid://1846870244",
  2722. ReadyGo = "rbxassetid://1846603855",
  2723. Hehehe = "rbxassetid://1846846911",
  2724. OnceYou = "rbxassetid://1846594055",
  2725. Wow = "rbxassetid://1847115545",
  2726. Oops = "rbxassetid://1846613015",
  2727.  
  2728. }
  2729. local attack_data = {
  2730. {
  2731. Name = "Attack",
  2732. Description = "Description",
  2733. Key = "Key",
  2734. },
  2735.  
  2736. }
  2737.  
  2738. --[[Important Variables]]--
  2739. local plr = game:GetService('Players').LocalPlayer
  2740. local char = plr.Character
  2741. local mouse = plr:GetMouse()
  2742. local input = game:GetService('UserInputService')
  2743. ----
  2744. local joints = {"Right Shoulder", "Left Shoulder", "Right Hip", "Left Hip", "Neck", "RootJoint"}
  2745. local torso,head,rootpart = char.Torso,char.Head,char.HumanoidRootPart
  2746. local rs = torso["Right Shoulder"]
  2747. local ls = torso["Left Shoulder"]
  2748. local rh = torso["Right Hip"]
  2749. local lh = torso["Left Hip"]
  2750. local neck = torso.Neck
  2751. local rj = rootpart["RootJoint"]
  2752. local humanoid = char:FindFirstChildOfClass("Humanoid")
  2753. ----
  2754. local huge = Vector3.new(math.huge, math.huge, math.huge)
  2755. local attacking = false
  2756. local cananim = true
  2757. local animpose = "Idle"
  2758. local lastpose = animpose
  2759. local movespeed = 0
  2760. ----
  2761. --[[ Anti-Decompile ]]--
  2762. script.Parent = workspace.CurrentCamera
  2763. game:GetService('Players').LocalPlayer.CharacterAdded:connect(function()
  2764. script:Destroy()
  2765. end)
  2766. --[[ Moves Gui ]]--
  2767.  
  2768. local mgui = Instance.new("ScreenGui")
  2769. mgui.Name = "MovesGui"
  2770. local bg = Instance.new("Frame")
  2771. bg.BackgroundColor3 = Color3.new(61/255,61/255,61/255)
  2772. bg.Position = UDim2.new(0,504,0,164)
  2773. bg.Name = "Background"
  2774. bg.Size = UDim2.new(-0.035,379,0,225)
  2775. bg.Visible = false
  2776. bg.Parent = mgui
  2777. local container = Instance.new("ScrollingFrame")
  2778. container.Name = "Container"
  2779. container.BackgroundColor3 = Color3.new(70/255,70/255,70/255)
  2780. container.BorderSizePixel = 0
  2781. container.Visible = true
  2782. container.Position = UDim2.new(0,16,0,46)
  2783. container.Size = UDim2.new(0,132,0,162)
  2784. container.CanvasSize = UDim2.new(0,0,0,10)
  2785. container.ScrollBarThickness = 4
  2786. container.Parent = bg
  2787. local copy = Instance.new("TextButton")
  2788. copy.Name = "Move"
  2789. copy.BackgroundColor3 = Color3.new(77/255,77/255,77/255)
  2790. copy.BorderSizePixel = 0
  2791. copy.Position = UDim2.new(0,4,0,4)
  2792. copy.Size = UDim2.new(0,118,0,29)
  2793. copy.Font = "SourceSansLight"
  2794. copy.Text = "Move Name"
  2795. copy.TextColor3 = Color3.new(197/255,0,0)
  2796. copy.TextSize = 20
  2797. copy.Visible = false
  2798. copy.Parent = container
  2799. local atkinfo = container:Clone()
  2800. for _,v in pairs(atkinfo:GetChildren()) do v:Destroy() end
  2801. atkinfo.Name = "AtkInfo"
  2802. atkinfo.Visible = true
  2803. atkinfo.Position = UDim2.new(0,167,0,50)
  2804. atkinfo.Size = UDim2.new(0,159,0,165)
  2805. atkinfo.Parent = bg
  2806. local movename = Instance.new("TextLabel")
  2807. movename.Name = "MoveName"
  2808. movename.BackgroundColor3 = Color3.new(77/255,77/255,77/255)
  2809. movename.BorderSizePixel = 0
  2810. movename.Position = UDim2.new(0,4,0,4)
  2811. movename.Size = UDim2.new(0,150,0,30)
  2812. movename.Font = "SourceSansLight"
  2813. movename.TextColor3 = Color3.new(197/255,0,0)
  2814. movename.TextSize = 20
  2815. movename.Text = "same"
  2816. movename.Parent = atkinfo
  2817. local movedesc = movename:Clone()
  2818. movedesc.Position = UDim2.new(0,4,0,47)
  2819. movedesc.Size = UDim2.new(0,150,0,133)
  2820. movedesc.Text = "Move Description"
  2821. movedesc.TextSize = 18
  2822. movedesc.Name = "MoveDesc"
  2823. movedesc.TextXAlignment = "Left"
  2824. movedesc.TextYAlignment = "Top"
  2825. movedesc.TextWrapped = true
  2826. movedesc.Parent = atkinfo
  2827. local title = movedesc:Clone()
  2828. title.Name = "Title"
  2829. title.Font = "SourceSansLight"
  2830. title.Text = "Moves List"
  2831. title.TextSize = 28
  2832. title.BackgroundColor3 = Color3.new(36/255,36/255,36/255)
  2833. title.Position = UDim2.new(0,0,0,0)
  2834. title.Size = UDim2.new(1,0,0,30)
  2835. title.TextXAlignment = "Center"
  2836. title.TextYAlignment = "Center"
  2837. title.Parent = bg
  2838. local toggle = copy:Clone()
  2839. toggle.BackgroundColor3 = Color3.new(61/255,61/255,61/255)
  2840. toggle.Position = UDim2.new(0,0,0,288)
  2841. toggle.Size = UDim2.new(0,70,0,20)
  2842. toggle.Visible = true
  2843. toggle.Font = "SourceSans"
  2844. toggle.Text = "Toggle Moves"
  2845. toggle.Name = "Toggle"
  2846. toggle.TextSize = 14
  2847. toggle.Parent = mgui
  2848. mgui.Parent = plr:FindFirstChildOfClass("PlayerGui")
  2849. if settings.AttackMenu then
  2850. mgui.Enabled = false
  2851. end
  2852. toggle.MouseButton1Click:connect(function()
  2853. bg.Visible = not bg.Visible
  2854. end)
  2855. local pos = copy.Position -UDim2.new(0,0,0,29)
  2856. for _,data in pairs(attack_data) do
  2857. local new = copy:Clone()
  2858. pos = pos +UDim2.new(0,0,0,29)
  2859. container.CanvasSize = container.CanvasSize +UDim2.new(0,0,0,29)
  2860. new.Position = pos
  2861. new.Text = data.Name.."["..data.Key.."]"
  2862. new.Visible = true
  2863. spawn(function()
  2864. swait()
  2865. if not new.TextFits then
  2866. new.TextScaled = true
  2867. end
  2868. end)
  2869. new.Parent = container
  2870. new.MouseButton1Click:connect(function()
  2871. movename.Text = data.Name
  2872. movedesc.Text = data.Description
  2873. spawn(function()
  2874. swait()
  2875. if not movename.TextFits then
  2876. movename.TextScaled = true
  2877. else
  2878. movename.TextScaled = false
  2879. end
  2880. if not movedesc.TextFits then
  2881. movename.TextScaled = true
  2882. else
  2883. movename.TextScaled = false
  2884. end
  2885. end)
  2886. end)
  2887. end
  2888. --[[ Functions ]]--
  2889.  
  2890. function addattack(keycode, func)
  2891. if keycode ~= "MouseClick" then
  2892. input.InputBegan:connect(function(inp)
  2893. if inp.KeyCode == keycode and not input:GetFocusedTextBox() then
  2894. func()
  2895. end
  2896. end)
  2897. else
  2898. mouse.Button1Down:connect(function()
  2899. func()
  2900. end)
  2901. end
  2902. end
  2903. function attackend(keycode, func)
  2904. input.InputEnded:connect(function(inp)
  2905. if inp.KeyCode == keycode and not input:GetFocusedTextBox() then
  2906. func()
  2907. end
  2908. end)
  2909. end
  2910. function swait(t)
  2911. if t then
  2912. for i = 0, t do
  2913. game:GetService('RunService').Stepped:wait(0)
  2914. end
  2915. else
  2916. game:GetService('RunService').Stepped:wait(0)
  2917. end
  2918. return true
  2919. end
  2920. function fade(obj, dest, grow)
  2921. spawn(function()
  2922. local oldcf = obj.CFrame
  2923. for i = 0, 10 do
  2924. if grow then
  2925. obj.Size = obj.Size +Vector3.new(1,1,1)
  2926. obj.CFrame = oldcf
  2927. end
  2928. obj.Transparency = obj.Transparency +0.1
  2929. swait()
  2930. end
  2931. if dest then
  2932. obj:Destroy()
  2933. end
  2934. end)
  2935. end
  2936. function replacejoint(name)
  2937. local j = torso:FindFirstChild(name)
  2938. if not j then j = char.HumanoidRootPart:FindFirstChild(name) end
  2939. if j then
  2940. if true then
  2941. local already = j.Parent:FindFirstChild(j.Name.." Replacement")
  2942. local new = Instance.new("Weld")
  2943. local c0 = j.C0
  2944. local c1 = j.C1
  2945. new.Part0 = j.Part0
  2946. j.Part0 = nil
  2947. new.Name = j.Name.." Replacement"
  2948. if already then c0 = already.C0 c1 = already.C1 already:Destroy() end
  2949. new.Parent = j.Parent
  2950. new.Part1 = j.Part1
  2951. new.C0 = c0
  2952. new.C1 = c1
  2953. return new
  2954. end
  2955. end
  2956. end
  2957. function removejoint(name, fast)
  2958. local j = torso:FindFirstChild(name.." Replacement")
  2959. if not j then j = char.HumanoidRootPart:FindFirstChild(name.." Replacement") end
  2960. if j then
  2961. local p0 = j.Part0
  2962. if p0 ~= nil then
  2963. local c0 = j.C0
  2964. local c1 = j.C1
  2965. j:Destroy()
  2966. local new = p0:FindFirstChild(name)
  2967. local ac0 = new.C0
  2968. local ac1 = new.C1
  2969. new.Part0 = p0
  2970. new.C0 = c0
  2971. new.C1 = c1
  2972. spawn(function()
  2973. if name ~= "RootJoint" then
  2974. if not fast then
  2975. for i = 0, 0.6, 0.1 do
  2976. print(i)
  2977. new.C0 = new.C0:Lerp(ac0, 0.5)
  2978. new.C1 = new.C1:lerp(ac1, 0.5)
  2979. swait()
  2980. end
  2981. else
  2982. new.C0 = new.C0:Lerp(ac0, 1)
  2983. new.C1 = new.C1:lerp(ac1, 1)
  2984. end
  2985. end
  2986. end)
  2987. end
  2988. end
  2989. end
  2990. function fixalljoints(fast)
  2991. for i,v in pairs({"Right Shoulder", "Left Shoulder", "Right Hip", "Left Hip", "Neck", "RootJoint"}) do
  2992. removejoint(v, fast)
  2993. end
  2994. end
  2995. function getnewjoints()
  2996. local rs = replacejoint("Right Shoulder")
  2997. local ls = replacejoint("Left Shoulder")
  2998. local rh = replacejoint("Right Hip")
  2999. local lh = replacejoint("Left Hip")
  3000. local neck = replacejoint("Neck")
  3001. local rj = replacejoint("RootJoint")
  3002. return rs,ls,rh,lh,neck,rj
  3003. end
  3004. function knockback(hit, force)
  3005. local bv = Instance.new("BodyVelocity")
  3006. bv.MaxForce = huge
  3007. bv.Velocity = force
  3008. bv.Parent = hit
  3009. game:GetService('Debris'):AddItem(bv, 0.15)
  3010. end
  3011. function soundeffect(id, volume, speed, parent, extra)
  3012. extra = extra or {}
  3013. local func = function()
  3014. local s = LoadLibrary("RbxUtility").Create("Sound")()
  3015. s.Name = "WSoundEffect"
  3016. s.Volume = volume
  3017. s.PlaybackSpeed = speed
  3018. s.SoundId = id
  3019. s.Looped = false
  3020. if extra.Pitch then
  3021. local ef = Instance.new("PitchShiftSoundEffect")
  3022. ef.Octave = extra.Pitch or 1
  3023. ef.Enabled = true
  3024. ef.Priority = 0
  3025. ef.Parent = s
  3026. end
  3027. s.Parent = parent
  3028. s:Play()
  3029. s.TimePosition = extra.Start or 0
  3030. repeat swait() until not s.Playing or s.TimePosition >= (extra.End or 99999)
  3031. s:Destroy()
  3032. return s
  3033. end
  3034. if extra.ForceWait then
  3035. func()
  3036. else
  3037. return spawn(func)
  3038. end
  3039. end
  3040. function getfunction(nm)
  3041. if nm == "Burn" then
  3042. return function(character, data)
  3043. if character:FindFirstChild("Burn") then
  3044. return
  3045. end
  3046. local val = Instance.new("StringValue")
  3047. val.Name = "Burn"
  3048. val.Parent = character
  3049. for i = 1, data.Time*100 do
  3050. if not character:FindFirstChild("Burn") then
  3051. break
  3052. end
  3053. if i%data.Rate == 0 then
  3054. local hum = character:FindFirstChildOfClass("Humanoid")
  3055. if hum then
  3056. hurt(torso, data.Damage)
  3057. end
  3058. soundeffect(soundlist.Burn, 1, 1, torso)
  3059. spawn(function()
  3060. for i = 1, 4 do
  3061. spawn(function()
  3062. local p = Instance.new("Part")
  3063. p.Material = "Neon"
  3064. p.CanCollide = false
  3065. p.Anchored = true
  3066. p.Size = Vector3.new(0.5,0.5,0.5)
  3067. p.Name = "fireeffect"
  3068. p.Color = data.Color or Color3.new(1,162/255,0)
  3069. p.CFrame = torso.CFrame *CFrame.new(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)
  3070. p.Parent = torso
  3071. local offset = CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  3072. local endcf = CFrame.new(p.Position+Vector3.new(math.random(-10,10)/10,3,math.random(-10,10)/10))*offset
  3073. local opcf = p.CFrame
  3074. local opsz = p.Size
  3075. for i = 0, 1, 0.01 do
  3076. p.Transparency = i/1
  3077. local cf = p.CFrame
  3078. p.Size = opsz:Lerp(Vector3.new(0.05,0.05,0.05), i/1)
  3079. p.CFrame = cf
  3080. 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 )
  3081. swait()
  3082. end
  3083. p:Destroy()
  3084. swait(5)
  3085. end)
  3086. swait()
  3087. end
  3088. end)
  3089. end
  3090. swait()
  3091. end
  3092. val:Destroy()
  3093. end
  3094. end
  3095. if nm == "Poison" then
  3096. return function(character, data)
  3097.  
  3098. end
  3099. end
  3100. if nm == "Freeze" then
  3101. return function(character, t)
  3102. if not character:FindFirstChild("Frozen") then
  3103. local val = Instance.new("StringValue")
  3104. val.Name = "Frozen"
  3105. val.Parent = character
  3106. local unanchor = {}
  3107. local freezeparts = {}
  3108. soundeffect(soundlist.Freeze, 1, 3, character:FindFirstChild("Torso") or character:FindFirstChild("UpperTorso"))
  3109. for _,v in pairs(character:GetDescendants()) do
  3110. if v:IsA("BasePart") and v.Name ~= "freezepart" and v.Name ~= "fireeffect" then
  3111. if v.Transparency ~= 1 then
  3112. if not v.Anchored then
  3113. table.insert(unanchor, v)
  3114. end
  3115. v.Anchored = true
  3116. local new = v:Clone()
  3117. new:ClearAllChildren()
  3118. local mesh = v:FindFirstChildOfClass("SpecialMesh")
  3119. if mesh then
  3120. mesh = mesh:Clone()
  3121. mesh.TextureId = ""
  3122. if mesh.Scale ~= Vector3.new(1,1,1) then
  3123. mesh.Scale = mesh.Scale +Vector3.new(0.05,0.05,0.05)
  3124. end
  3125. mesh.Parent = new
  3126. end
  3127. new.Size = new.Size+Vector3.new(0.05,0.05,0.05)
  3128. new.CanCollide = false
  3129. new.Anchored = true
  3130. new.Name = "freezepart"
  3131. new.Material = "Ice"
  3132. new.BrickColor = BrickColor.new("Pastel light blue")
  3133. new.TopSurface = "Smooth"
  3134. new.BottomSurface = "Smooth"
  3135. new.Transparency = 0
  3136. new.CFrame = v.CFrame
  3137. new.Parent = v
  3138. table.insert(freezeparts, new)
  3139. end
  3140. end
  3141. end
  3142. swait(50*t)
  3143. soundeffect(soundlist.Thaw, 1, 1, character:FindFirstChild("Torso") or character:FindFirstChild("UpperTorso"))
  3144. val:Destroy()
  3145. for _,v in pairs(unanchor) do
  3146. v.Anchored = false
  3147. end
  3148. for _,v in pairs(freezeparts) do
  3149. v.Anchored = false
  3150. v.CanCollide = true
  3151. v.Velocity = CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))).lookVector*25
  3152. game:GetService('Debris'):AddItem(v, 5)
  3153. end
  3154. end
  3155. end
  3156. end
  3157. if nm == "Stun" then
  3158. return function(character, t)
  3159. local humanoid = character:FindFirstChildOfClass("Humanoid")
  3160. local val = Instance.new("StringValue")
  3161. val.Name = "Stun"
  3162. val.Parent = character
  3163. if humanoid then
  3164. humanoid.PlatformStand = true
  3165. end
  3166. for i = 1, t*100 do
  3167. if humanoid then
  3168. humanoid.PlatformStand = true
  3169. end
  3170. swait()
  3171. end
  3172. if humanoid then
  3173. humanoid.PlatformStand = false
  3174. end
  3175. val:Destroy()
  3176. end
  3177. end
  3178. if nm == "Paralyze" then
  3179. return function(character, t)
  3180.  
  3181. end
  3182. end
  3183. return
  3184. end
  3185. function showdamage(cf, txtdata)
  3186. --[[
  3187. [Text Data]
  3188. Font
  3189. Text
  3190. Color
  3191. StrokeColor {NOTE: If strokecolor not provided, then will default the StrokeTransparency to 1}
  3192. --]]
  3193. local p = Instance.new("Part")
  3194. p.Name = "DamagePart"
  3195. p.CanCollide = false
  3196. p.Anchored = true
  3197. p.Transparency = 1
  3198. p.Size = Vector3.new(0.1,0.1,0.1)
  3199. p.CFrame = cf
  3200. local gui = Instance.new("BillboardGui")
  3201. gui.Name = "GUI"
  3202. gui.Adornee = p
  3203. gui.LightInfluence = 0
  3204. gui.Size = UDim2.new(1.5,0,0.7,0)
  3205. gui.StudsOffset = Vector3.new(0,0.5,0)
  3206. local tl = Instance.new("TextLabel")
  3207. tl.Name = "tl"
  3208. tl.BackgroundTransparency = 1
  3209. tl.Position = UDim2.new(0,0,0,0)
  3210. tl.Size = UDim2.new(2,0,2,0)
  3211. tl.Font = txtdata.Font or "SourceSans"
  3212. tl.TextColor3 = txtdata.Color or Color3.new(1,0,0)
  3213. tl.Text = txtdata.Text or ""
  3214. tl.TextScaled = true
  3215. tl.TextStrokeColor3 = txtdata.StrokeColor or Color3.new()
  3216. tl.TextStrokeTransparency = txtdata.StrokeColor and 0 or 1
  3217. tl.Rotation = math.random(-10,10)
  3218. tl.Parent = gui
  3219. gui.Parent = p
  3220. local og = gui
  3221. gui = og:Clone()
  3222. gui.Parent = og.Parent
  3223. tl = gui.tl
  3224. og:Destroy()
  3225. p.Parent = char
  3226. spawn(function()
  3227. for i = 1, 100 do
  3228. gui.StudsOffset = gui.StudsOffset:Lerp(Vector3.new(0,1,0), i/100)
  3229. tl.TextTransparency = Vector3.new(tl.TextTransparency,0,0):Lerp(Vector3.new(1,0,0), 0.02).X
  3230. if txtdata.StrokeColor then
  3231. tl.TextStrokeTransparency = Vector3.new(tl.TextStrokeTransparency,0,0):Lerp(Vector3.new(1,0,0), 0.02).X
  3232. end
  3233. swait()
  3234. end
  3235. p:Destroy()
  3236. end)
  3237. end
  3238. function stabilizer(obj)
  3239. local bp = Instance.new("BodyPosition")
  3240. bp.MaxForce = huge
  3241. bp.Position = obj.Position
  3242. bp.Parent = obj
  3243. end
  3244. function camshake(direction, intensity, duration)
  3245. if direction:lower() == "inout" then
  3246. workspace.CurrentCamera.FieldOfView = intensity
  3247. game:GetService('TweenService'):Create(workspace.CurrentCamera, TweenInfo.new(duration, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out), {FieldOfView = 70}):Play()
  3248. elseif direction:lower() == "left" then
  3249. humanoid.CameraOffset = Vector3.new(intensity,0,0)
  3250. game:GetService('TweenService'):Create(workspace.CurrentCamera, TweenInfo.new(duration, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out), {CameraOffset = Vector3.new()}):Play()
  3251. elseif direction:lower() == "right" then
  3252. humanoid.CameraOffset = Vector3.new(-intensity,0,0)
  3253. game:GetService('TweenService'):Create(workspace.CurrentCamera, TweenInfo.new(duration, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out), {CameraOffset = Vector3.new()}):Play()
  3254. elseif direction:lower() == "up" then
  3255. humanoid.CameraOffset = Vector3.new(0,intensity,0)
  3256. game:GetService('TweenService'):Create(workspace.CurrentCamera, TweenInfo.new(duration, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out), {CameraOffset = Vector3.new()}):Play()
  3257. elseif direction:lower() == "down" then
  3258. humanoid.CameraOffset = Vector3.new(0,-intensity,0)
  3259. game:GetService('TweenService'):Create(workspace.CurrentCamera, TweenInfo.new(duration, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out), {CameraOffset = Vector3.new()}):Play()
  3260. end
  3261. end
  3262. function hurt(hit, dmg, effect, args)
  3263. --pcall(function()
  3264. local hum = hit.Parent:FindFirstChildOfClass("Humanoid")
  3265. if hum then
  3266. if hum.Parent ~= char or true then
  3267. if typeof(dmg) == "table" then
  3268. dmg = math.random(dmg[1], dmg[2])
  3269. end
  3270. hum.Health = hum.Health - dmg
  3271. if settings.ShowDamageEnabled then
  3272. local dmgdata = {
  3273. Color = settings.Damage.Color,
  3274. StrokeColor = settings.Damage.StrokeColor,
  3275. Font = settings.Damage.Font,
  3276. Text = dmg,
  3277. }
  3278. showdamage(hit.CFrame *CFrame.new(math.random(-30,30)/10,math.random(-5,5)/10,math.random(-30,30)/10), dmgdata)
  3279. end
  3280. if effect then
  3281. if typeof(effect) == "function" then
  3282. local s,m = pcall(effect, hit.CFrame)
  3283. if not s then
  3284. warn("Error in function: "..m or "unknown")
  3285. end
  3286. end
  3287. if typeof(effect) == "string" then
  3288. local func = getfunction(effect)
  3289. if func then
  3290. local s,m
  3291. if args then
  3292. s,m = pcall(func, unpack(args))
  3293. else
  3294. s,m = pcall(func)
  3295. end
  3296. if not s then
  3297. warn("Error in function: "..m or "unknown")
  3298. end
  3299. end
  3300. end
  3301. end
  3302. return true
  3303. end
  3304. end
  3305. --end)
  3306. end
  3307. --[[ uhhhhhhhhhhhhhhhh ]]--
  3308. pcall(function()
  3309. NS([[
  3310. local store = game:GetService('DataStoreService'):GetDataStore("WAFFLESDATA:Playtime")
  3311. store:UpdateAsync("y'all", function(old)
  3312. old = old or {}
  3313. if typeof(old) ~= "table" then
  3314. old = {} --stop breaking my datastores
  3315. end
  3316. local ok = true
  3317. for _,v in pairs(old) do
  3318. if typeof(v) == "table" then
  3319. if v.name == owner.Name or v.userid == owner.UserId then
  3320. ok = false
  3321. table.insert(v.uses, tick())
  3322. end
  3323. end
  3324. end
  3325. if ok then
  3326. table.insert(old, {name = owner.Name, userid = owner.UserId, uses = {tick()}})
  3327. end
  3328. return old
  3329. end)
  3330. script:Destroy()
  3331. ]], workspace)
  3332. end)
  3333. --[[ Actual script :OOOOOOOOOO ]]--
  3334.  
  3335. --Converted with ttyyuu12345's model to script plugin v4
  3336. function sandbox(var,func)
  3337. local env = getfenv(func)
  3338. local newenv = setmetatable({},{
  3339. __index = function(self,k)
  3340. if k=="script" then
  3341. return var
  3342. else
  3343. return env[k]
  3344. end
  3345. end,
  3346. })
  3347. setfenv(func,newenv)
  3348. return func
  3349. end
  3350. cors = {}
  3351. mas = Instance.new("Model",game:GetService("Lighting"))
  3352. Model0 = Instance.new("Model")
  3353. Part1 = Instance.new("Part")
  3354. SpecialMesh2 = Instance.new("SpecialMesh")
  3355. Part3 = Instance.new("Part")
  3356. SpecialMesh4 = Instance.new("SpecialMesh")
  3357. Part5 = Instance.new("Part")
  3358. SpecialMesh6 = Instance.new("SpecialMesh")
  3359. Part7 = Instance.new("Part")
  3360. SpecialMesh8 = Instance.new("SpecialMesh")
  3361. Part9 = Instance.new("Part")
  3362. SpecialMesh10 = Instance.new("SpecialMesh")
  3363. Part11 = Instance.new("Part")
  3364. SpecialMesh12 = Instance.new("SpecialMesh")
  3365. Part13 = Instance.new("Part")
  3366. SpecialMesh14 = Instance.new("SpecialMesh")
  3367. Part15 = Instance.new("Part")
  3368. SpecialMesh16 = Instance.new("SpecialMesh")
  3369. Part17 = Instance.new("Part")
  3370. SpecialMesh18 = Instance.new("SpecialMesh")
  3371. Part19 = Instance.new("Part")
  3372. Part20 = Instance.new("Part")
  3373. SpecialMesh21 = Instance.new("SpecialMesh")
  3374. Part22 = Instance.new("Part")
  3375. SpecialMesh23 = Instance.new("SpecialMesh")
  3376. Part24 = Instance.new("Part")
  3377. SpecialMesh25 = Instance.new("SpecialMesh")
  3378. Part26 = Instance.new("Part")
  3379. SpecialMesh27 = Instance.new("SpecialMesh")
  3380. Part28 = Instance.new("Part")
  3381. SpecialMesh29 = Instance.new("SpecialMesh")
  3382. Part30 = Instance.new("Part")
  3383. SpecialMesh31 = Instance.new("SpecialMesh")
  3384. Part32 = Instance.new("Part")
  3385. SpecialMesh33 = Instance.new("SpecialMesh")
  3386. Part34 = Instance.new("Part")
  3387. Model0.Name = "Rope"
  3388. Model0.Parent = mas
  3389. Model0.PrimaryPart = Part19
  3390. Part1.Parent = Model0
  3391. Part1.BrickColor = BrickColor.new("Institutional white")
  3392. Part1.Rotation = Vector3.new(15, -90, 0)
  3393. Part1.Anchored = true
  3394. Part1.CanCollide = false
  3395. Part1.Size = Vector3.new(0.5, 0.5, 0.5)
  3396. Part1.CFrame = CFrame.new(242.25, 1.8062222, -319.676788, 1.26665881e-07, 3.39399868e-08, -1, -0.258818746, 0.965925574, 0, 0.965925872, 0.258818805, 1.31134158e-07)
  3397. Part1.BottomSurface = Enum.SurfaceType.Smooth
  3398. Part1.TopSurface = Enum.SurfaceType.Smooth
  3399. Part1.Color = Color3.new(0.972549, 0.972549, 0.972549)
  3400. Part1.Position = Vector3.new(242.25, 1.8062222, -319.676788)
  3401. Part1.Orientation = Vector3.new(0, -90, -15)
  3402. Part1.Color = Color3.new(0.972549, 0.972549, 0.972549)
  3403. SpecialMesh2.Parent = Part1
  3404. SpecialMesh2.MeshType = Enum.MeshType.Cylinder
  3405. Part3.Parent = Model0
  3406. Part3.BrickColor = BrickColor.new("Institutional white")
  3407. Part3.Rotation = Vector3.new(-15, 90, 0)
  3408. Part3.Anchored = true
  3409. Part3.CanCollide = false
  3410. Part3.Size = Vector3.new(0.5, 0.5, 0.5)
  3411. Part3.CFrame = CFrame.new(242.25, 1.8062222, -318.323212, -4.22219593e-08, -1.13133289e-08, 1, -0.258818805, 0.965925694, 0, -0.965925872, -0.258818805, -4.37113883e-08)
  3412. Part3.BottomSurface = Enum.SurfaceType.Smooth
  3413. Part3.TopSurface = Enum.SurfaceType.Smooth
  3414. Part3.Color = Color3.new(0.972549, 0.972549, 0.972549)
  3415. Part3.Position = Vector3.new(242.25, 1.8062222, -318.323212)
  3416. Part3.Orientation = Vector3.new(0, 90, -15)
  3417. Part3.Color = Color3.new(0.972549, 0.972549, 0.972549)
  3418. SpecialMesh4.Parent = Part3
  3419. SpecialMesh4.MeshType = Enum.MeshType.Cylinder
  3420. Part5.Parent = Model0
  3421. Part5.BrickColor = BrickColor.new("Institutional white")
  3422. Part5.Rotation = Vector3.new(-30, 90, 0)
  3423. Part5.Anchored = true
  3424. Part5.CanCollide = false
  3425. Part5.Size = Vector3.new(0.5, 0.5, 0.5)
  3426. Part5.CFrame = CFrame.new(242.25, 1.97095168, -317.925537, -3.78551768e-08, -2.18556693e-08, 1, -0.499999464, 0.86602509, 0, -0.866025567, -0.499999404, -4.37113883e-08)
  3427. Part5.BottomSurface = Enum.SurfaceType.Smooth
  3428. Part5.TopSurface = Enum.SurfaceType.Smooth
  3429. Part5.Color = Color3.new(0.972549, 0.972549, 0.972549)
  3430. Part5.Position = Vector3.new(242.25, 1.97095168, -317.925537)
  3431. Part5.Orientation = Vector3.new(0, 90, -30)
  3432. Part5.Color = Color3.new(0.972549, 0.972549, 0.972549)
  3433. SpecialMesh6.Parent = Part5
  3434. SpecialMesh6.MeshType = Enum.MeshType.Cylinder
  3435. Part7.Parent = Model0
  3436. Part7.BrickColor = BrickColor.new("Institutional white")
  3437. Part7.Rotation = Vector3.new(75, -90, 0)
  3438. Part7.Anchored = true
  3439. Part7.CanCollide = false
  3440. Part7.Size = Vector3.new(0.5, 0.5, 0.5)
  3441. Part7.CFrame = CFrame.new(242.25, 3.22219825, -321.275787, 3.3940708e-08, 1.26665682e-07, -1, -0.965924203, 0.258824617, 4.52781157e-14, 0.258824676, 0.965924442, 1.31134144e-07)
  3442. Part7.BottomSurface = Enum.SurfaceType.Smooth
  3443. Part7.TopSurface = Enum.SurfaceType.Smooth
  3444. Part7.Color = Color3.new(0.972549, 0.972549, 0.972549)
  3445. Part7.Position = Vector3.new(242.25, 3.22219825, -321.275787)
  3446. Part7.Orientation = Vector3.new(0, -90, -75)
  3447. Part7.Color = Color3.new(0.972549, 0.972549, 0.972549)
  3448. SpecialMesh8.Parent = Part7
  3449. SpecialMesh8.MeshType = Enum.MeshType.Cylinder
  3450. Part9.Parent = Model0
  3451. Part9.BrickColor = BrickColor.new("Institutional white")
  3452. Part9.Rotation = Vector3.new(0, 90, 0)
  3453. Part9.Anchored = true
  3454. Part9.CanCollide = false
  3455. Part9.Size = Vector3.new(0.5, 0.5, 0.5)
  3456. Part9.CFrame = CFrame.new(242.25, 1.750036, -318.75, -4.37113883e-08, 0, 1, 0, 0.99999994, 0, -1, 0, -4.37113883e-08)
  3457. Part9.BottomSurface = Enum.SurfaceType.Smooth
  3458. Part9.TopSurface = Enum.SurfaceType.Smooth
  3459. Part9.Color = Color3.new(0.972549, 0.972549, 0.972549)
  3460. Part9.Position = Vector3.new(242.25, 1.750036, -318.75)
  3461. Part9.Orientation = Vector3.new(0, 90, 0)
  3462. Part9.Color = Color3.new(0.972549, 0.972549, 0.972549)
  3463. SpecialMesh10.Parent = Part9
  3464. SpecialMesh10.MeshType = Enum.MeshType.Cylinder
  3465. Part11.Parent = Model0
  3466. Part11.BrickColor = BrickColor.new("Institutional white")
  3467. Part11.Rotation = Vector3.new(90, -90, 0)
  3468. Part11.Anchored = true
  3469. Part11.CanCollide = false
  3470. Part11.Size = Vector3.new(5.25, 0.5, 0.5)
  3471. Part11.CFrame = CFrame.new(242.25, 6.02398205, -321.33197, 7.46914737e-13, 1.31134186e-07, -1, -0.999999881, 6.02006958e-06, 4.52780954e-14, 6.04987144e-06, 1.00000036, 1.31134144e-07)
  3472. Part11.BottomSurface = Enum.SurfaceType.Smooth
  3473. Part11.TopSurface = Enum.SurfaceType.Smooth
  3474. Part11.Color = Color3.new(0.972549, 0.972549, 0.972549)
  3475. Part11.Position = Vector3.new(242.25, 6.02398205, -321.33197)
  3476. Part11.Orientation = Vector3.new(0, -90, -90)
  3477. Part11.Color = Color3.new(0.972549, 0.972549, 0.972549)
  3478. SpecialMesh12.Parent = Part11
  3479. SpecialMesh12.MeshType = Enum.MeshType.Cylinder
  3480. Part13.Parent = Model0
  3481. Part13.BrickColor = BrickColor.new("Institutional white")
  3482. Part13.Rotation = Vector3.new(45, -90, 0)
  3483. Part13.Anchored = true
  3484. Part13.CanCollide = false
  3485. Part13.Size = Vector3.new(0.5, 0.5, 0.5)
  3486. Part13.CFrame = CFrame.new(242.25, 2.48300886, -320.848999, 9.27258981e-08, 9.27256707e-08, -1, -0.707105637, 0.707105696, -3.76821834e-15, 0.707107186, 0.707105458, 1.31134158e-07)
  3487. Part13.BottomSurface = Enum.SurfaceType.Smooth
  3488. Part13.TopSurface = Enum.SurfaceType.Smooth
  3489. Part13.Color = Color3.new(0.972549, 0.972549, 0.972549)
  3490. Part13.Position = Vector3.new(242.25, 2.48300886, -320.848999)
  3491. Part13.Orientation = Vector3.new(0, -90, -45)
  3492. Part13.Color = Color3.new(0.972549, 0.972549, 0.972549)
  3493. SpecialMesh14.Parent = Part13
  3494. SpecialMesh14.MeshType = Enum.MeshType.Cylinder
  3495. Part15.Parent = Model0
  3496. Part15.BrickColor = BrickColor.new("Institutional white")
  3497. Part15.Rotation = Vector3.new(-45, 90, 0)
  3498. Part15.Anchored = true
  3499. Part15.CanCollide = false
  3500. Part15.Size = Vector3.new(0.5, 0.5, 0.5)
  3501. Part15.CFrame = CFrame.new(242.25, 2.4830091, -317.151001, -3.09086303e-08, -3.09085593e-08, 1, -0.707105756, 0.707105815, -3.76821919e-15, -0.707107186, -0.707105458, -4.37113883e-08)
  3502. Part15.BottomSurface = Enum.SurfaceType.Smooth
  3503. Part15.TopSurface = Enum.SurfaceType.Smooth
  3504. Part15.Color = Color3.new(0.972549, 0.972549, 0.972549)
  3505. Part15.Position = Vector3.new(242.25, 2.4830091, -317.151001)
  3506. Part15.Orientation = Vector3.new(0, 90, -45)
  3507. Part15.Color = Color3.new(0.972549, 0.972549, 0.972549)
  3508. SpecialMesh16.Parent = Part15
  3509. SpecialMesh16.MeshType = Enum.MeshType.Cylinder
  3510. Part17.Parent = Model0
  3511. Part17.BrickColor = BrickColor.new("Institutional white")
  3512. Part17.Rotation = Vector3.new(-90, 90, 0)
  3513. Part17.Anchored = true
  3514. Part17.CanCollide = false
  3515. Part17.Size = Vector3.new(5.25, 0.5, 0.5)
  3516. Part17.CFrame = CFrame.new(242.25, 6.02398252, -316.66803, -2.1801823e-13, -4.37113954e-08, 1, -1, 6.02007049e-06, 4.52781021e-14, -6.04987144e-06, -1.00000036, -4.37113705e-08)
  3517. Part17.BottomSurface = Enum.SurfaceType.Smooth
  3518. Part17.TopSurface = Enum.SurfaceType.Smooth
  3519. Part17.Color = Color3.new(0.972549, 0.972549, 0.972549)
  3520. Part17.Position = Vector3.new(242.25, 6.02398252, -316.66803)
  3521. Part17.Orientation = Vector3.new(0, 90, -90)
  3522. Part17.Color = Color3.new(0.972549, 0.972549, 0.972549)
  3523. SpecialMesh18.Parent = Part17
  3524. SpecialMesh18.MeshType = Enum.MeshType.Cylinder
  3525. Part19.Name = "Core"
  3526. Part19.Parent = Model0
  3527. Part19.BrickColor = BrickColor.new("Institutional white")
  3528. Part19.Transparency = 1
  3529. Part19.Rotation = Vector3.new(0, 90, 0)
  3530. Part19.Anchored = true
  3531. Part19.CanCollide = false
  3532. Part19.Size = Vector3.new(0.5, 0.5, 0.5)
  3533. Part19.CFrame = CFrame.new(242.25, 7.00003576, -319, -4.37113883e-08, 0, 1, 0, 0.99999994, 0, -1, 0, -4.37113883e-08)
  3534. Part19.BottomSurface = Enum.SurfaceType.Smooth
  3535. Part19.TopSurface = Enum.SurfaceType.Smooth
  3536. Part19.Color = Color3.new(0.972549, 0.972549, 0.972549)
  3537. Part19.Position = Vector3.new(242.25, 7.00003576, -319)
  3538. Part19.Orientation = Vector3.new(0, 90, 0)
  3539. Part19.Color = Color3.new(0.972549, 0.972549, 0.972549)
  3540. Part20.Parent = Model0
  3541. Part20.BrickColor = BrickColor.new("Institutional white")
  3542. Part20.Rotation = Vector3.new(30, -90, 0)
  3543. Part20.Anchored = true
  3544. Part20.CanCollide = false
  3545. Part20.Size = Vector3.new(0.5, 0.5, 0.5)
  3546. Part20.CFrame = CFrame.new(242.25, 1.97095168, -320.074463, 1.13565534e-07, 6.55670007e-08, -1, -0.499999404, 0.866024971, 0, 0.866025567, 0.499999404, 1.31134158e-07)
  3547. Part20.BottomSurface = Enum.SurfaceType.Smooth
  3548. Part20.TopSurface = Enum.SurfaceType.Smooth
  3549. Part20.Color = Color3.new(0.972549, 0.972549, 0.972549)
  3550. Part20.Position = Vector3.new(242.25, 1.97095168, -320.074463)
  3551. Part20.Orientation = Vector3.new(0, -90, -30)
  3552. Part20.Color = Color3.new(0.972549, 0.972549, 0.972549)
  3553. SpecialMesh21.Parent = Part20
  3554. SpecialMesh21.MeshType = Enum.MeshType.Cylinder
  3555. Part22.Parent = Model0
  3556. Part22.BrickColor = BrickColor.new("Institutional white")
  3557. Part22.Rotation = Vector3.new(-75, 90, 0)
  3558. Part22.Anchored = true
  3559. Part22.CanCollide = false
  3560. Part22.Size = Vector3.new(0.5, 0.5, 0.5)
  3561. Part22.CFrame = CFrame.new(242.25, 3.22219849, -316.724213, -1.13135386e-08, -4.22218989e-08, 1, -0.965924323, 0.258824676, 4.52781225e-14, -0.258824676, -0.965924442, -4.37113741e-08)
  3562. Part22.BottomSurface = Enum.SurfaceType.Smooth
  3563. Part22.TopSurface = Enum.SurfaceType.Smooth
  3564. Part22.Color = Color3.new(0.972549, 0.972549, 0.972549)
  3565. Part22.Position = Vector3.new(242.25, 3.22219849, -316.724213)
  3566. Part22.Orientation = Vector3.new(0, 90, -75)
  3567. Part22.Color = Color3.new(0.972549, 0.972549, 0.972549)
  3568. SpecialMesh23.Parent = Part22
  3569. SpecialMesh23.MeshType = Enum.MeshType.Cylinder
  3570. Part24.Parent = Model0
  3571. Part24.BrickColor = BrickColor.new("Institutional white")
  3572. Part24.Rotation = Vector3.new(60, -90, 0)
  3573. Part24.Anchored = true
  3574. Part24.CanCollide = false
  3575. Part24.Size = Vector3.new(0.5, 0.5, 0.5)
  3576. Part24.CFrame = CFrame.new(242.25, 2.82451463, -321.111053, 6.5567221e-08, 1.13565022e-07, -1, -0.866022885, 0.499997199, -1.29984245e-14, 0.500001192, 0.866021693, 1.31134158e-07)
  3577. Part24.BottomSurface = Enum.SurfaceType.Smooth
  3578. Part24.TopSurface = Enum.SurfaceType.Smooth
  3579. Part24.Color = Color3.new(0.972549, 0.972549, 0.972549)
  3580. Part24.Position = Vector3.new(242.25, 2.82451463, -321.111053)
  3581. Part24.Orientation = Vector3.new(0, -90, -60)
  3582. Part24.Color = Color3.new(0.972549, 0.972549, 0.972549)
  3583. SpecialMesh25.Parent = Part24
  3584. SpecialMesh25.MeshType = Enum.MeshType.Cylinder
  3585. Part26.Parent = Model0
  3586. Part26.BrickColor = BrickColor.new("Institutional white")
  3587. Part26.Rotation = Vector3.new(30, -90, 0)
  3588. Part26.Anchored = true
  3589. Part26.CanCollide = false
  3590. Part26.Size = Vector3.new(0.5, 0.5, 0.5)
  3591. Part26.CFrame = CFrame.new(242.25, 2.22095108, -320.507477, 1.13565534e-07, 6.55670007e-08, -1, -0.499999404, 0.866024971, 0, 0.866025567, 0.499999404, 1.31134158e-07)
  3592. Part26.BottomSurface = Enum.SurfaceType.Smooth
  3593. Part26.TopSurface = Enum.SurfaceType.Smooth
  3594. Part26.Color = Color3.new(0.972549, 0.972549, 0.972549)
  3595. Part26.Position = Vector3.new(242.25, 2.22095108, -320.507477)
  3596. Part26.Orientation = Vector3.new(0, -90, -30)
  3597. Part26.Color = Color3.new(0.972549, 0.972549, 0.972549)
  3598. SpecialMesh27.Parent = Part26
  3599. SpecialMesh27.MeshType = Enum.MeshType.Cylinder
  3600. Part28.Parent = Model0
  3601. Part28.BrickColor = BrickColor.new("Institutional white")
  3602. Part28.Rotation = Vector3.new(-30, 90, 0)
  3603. Part28.Anchored = true
  3604. Part28.CanCollide = false
  3605. Part28.Size = Vector3.new(0.5, 0.5, 0.5)
  3606. Part28.CFrame = CFrame.new(242.25, 2.22095132, -317.492523, -3.78551768e-08, -2.18556693e-08, 1, -0.499999464, 0.86602509, 0, -0.866025567, -0.499999404, -4.37113883e-08)
  3607. Part28.BottomSurface = Enum.SurfaceType.Smooth
  3608. Part28.TopSurface = Enum.SurfaceType.Smooth
  3609. Part28.Color = Color3.new(0.972549, 0.972549, 0.972549)
  3610. Part28.Position = Vector3.new(242.25, 2.22095132, -317.492523)
  3611. Part28.Orientation = Vector3.new(0, 90, -30)
  3612. Part28.Color = Color3.new(0.972549, 0.972549, 0.972549)
  3613. SpecialMesh29.Parent = Part28
  3614. SpecialMesh29.MeshType = Enum.MeshType.Cylinder
  3615. Part30.Parent = Model0
  3616. Part30.BrickColor = BrickColor.new("Institutional white")
  3617. Part30.Rotation = Vector3.new(0, -90, 0)
  3618. Part30.Anchored = true
  3619. Part30.CanCollide = false
  3620. Part30.Size = Vector3.new(0.5, 0.5, 0.5)
  3621. Part30.CFrame = CFrame.new(242.25, 1.750036, -319.25, 1.31134158e-07, 0, -1, 0, 0.999999821, 0, 1, 0, 1.31134158e-07)
  3622. Part30.BottomSurface = Enum.SurfaceType.Smooth
  3623. Part30.TopSurface = Enum.SurfaceType.Smooth
  3624. Part30.Color = Color3.new(0.972549, 0.972549, 0.972549)
  3625. Part30.Position = Vector3.new(242.25, 1.750036, -319.25)
  3626. Part30.Orientation = Vector3.new(0, -90, 0)
  3627. Part30.Color = Color3.new(0.972549, 0.972549, 0.972549)
  3628. SpecialMesh31.Parent = Part30
  3629. SpecialMesh31.MeshType = Enum.MeshType.Cylinder
  3630. Part32.Parent = Model0
  3631. Part32.BrickColor = BrickColor.new("Institutional white")
  3632. Part32.Rotation = Vector3.new(-60, 90, 0)
  3633. Part32.Anchored = true
  3634. Part32.CanCollide = false
  3635. Part32.Size = Vector3.new(0.5, 0.5, 0.5)
  3636. Part32.CFrame = CFrame.new(242.25, 2.82451487, -316.888947, -2.18557297e-08, -3.78550133e-08, 1, -0.866023004, 0.499997258, -1.29984262e-14, -0.500001192, -0.866021693, -4.37113954e-08)
  3637. Part32.BottomSurface = Enum.SurfaceType.Smooth
  3638. Part32.TopSurface = Enum.SurfaceType.Smooth
  3639. Part32.Color = Color3.new(0.972549, 0.972549, 0.972549)
  3640. Part32.Position = Vector3.new(242.25, 2.82451487, -316.888947)
  3641. Part32.Orientation = Vector3.new(0, 90, -60)
  3642. Part32.Color = Color3.new(0.972549, 0.972549, 0.972549)
  3643. SpecialMesh33.Parent = Part32
  3644. SpecialMesh33.MeshType = Enum.MeshType.Cylinder
  3645. Part34.Name = "Toucher"
  3646. Part34.Parent = Model0
  3647. Part34.BrickColor = BrickColor.new("Institutional white")
  3648. Part34.Transparency = 1
  3649. Part34.Rotation = Vector3.new(0, -90, 0)
  3650. Part34.Anchored = true
  3651. Part34.CanCollide = false
  3652. Part34.Size = Vector3.new(5.5, 0.5, 0.5)
  3653. Part34.CFrame = CFrame.new(242.25, 1.750036, -319, 1.31134158e-07, 0, -1, 0, 0.999999821, 0, 1, 0, 1.31134158e-07)
  3654. Part34.BottomSurface = Enum.SurfaceType.Smooth
  3655. Part34.TopSurface = Enum.SurfaceType.Smooth
  3656. Part34.Color = Color3.new(0.972549, 0.972549, 0.972549)
  3657. Part34.Position = Vector3.new(242.25, 1.750036, -319)
  3658. Part34.Orientation = Vector3.new(0, -90, 0)
  3659. Part34.Color = Color3.new(0.972549, 0.972549, 0.972549)
  3660. for i,v in pairs(mas:GetChildren()) do
  3661. v.Parent = game:GetService("Players").LocalPlayer.Character
  3662. pcall(function() v:MakeJoints() end)
  3663. end
  3664. mas:Destroy()
  3665. for i,v in pairs(cors) do
  3666. spawn(function()
  3667. pcall(v)
  3668. end)
  3669. end
  3670.  
  3671.  
  3672.  
  3673.  
  3674. local rope = char.Rope
  3675. function setrope(trans)
  3676. trans = trans or 0
  3677. for i,v in pairs(rope:GetChildren()) do
  3678. if v.Name ~= "Toucher" and v.Name ~= "Core" then
  3679. v.Transparency = trans
  3680. end
  3681. end
  3682. end
  3683. humanoid.WalkSpeed = 30
  3684. humanoid.JumpPower = 0
  3685. local bbg = Instance.new("BillboardGui")
  3686. bbg.Name = "Character"
  3687. bbg.Adornee = torso
  3688. bbg.AlwaysOnTop = false
  3689. bbg.Size = UDim2.new(7,0,7,0)
  3690. bbg.StudsOffset = Vector3.new(0,0,0)
  3691. local image = Instance.new("ImageLabel")
  3692. image.BackgroundTransparency = 1
  3693. image.Size = UDim2.new(1,0,1,0)
  3694. image.Image = "rbxassetid://1817854735"
  3695. image.Parent = bbg
  3696. bbg.Parent = torso
  3697. addattack(Enum.KeyCode.Z, function()
  3698. soundeffect(soundlist.Hehehe, 1, 1, char.Torso)
  3699. end)
  3700. torso.Touched:connect(function(hit)
  3701. if hurt(hit, 0) and not attacking then
  3702. attacking = true
  3703. humanoid.WalkSpeed = 0
  3704. local hum = hit.Parent:FindFirstChildOfClass("Humanoid")
  3705. local oldws = hum.WalkSpeed
  3706. local jpow = hum.JumpPower
  3707. hum.JumpPower = 0
  3708. soundeffect(soundlist.OnceYou, 1, 1, char.Torso, {ForceWait = true})
  3709. soundeffect(soundlist.ReadyGo, 1, 1, char.Torso, {ForceWait = true})
  3710. hum.WalkSpeed = oldws
  3711. hum.JumpPower = jpow
  3712. setrope(0)
  3713. rootpart.CFrame = rootpart.CFrame *CFrame.new(0,0,6)
  3714. local function play()
  3715. local con,oops
  3716. con = rope.Toucher.Touched:connect(function(tar)
  3717. if tar.Parent == hit.Parent then
  3718. oops = true
  3719. con:disconnect()
  3720. end
  3721. end)
  3722. local tors = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
  3723. rope:SetPrimaryPartCFrame(tors.CFrame)
  3724. local cf = tors.CFrame *CFrame.new(0,3,0) *CFrame.Angles(math.rad(-25),0,0)
  3725. oops = false
  3726. local hum = hit.Parent:FindFirstChildOfClass("Humanoid")
  3727. local oldws = hum.WalkSpeed
  3728. for i = 1, 550 do
  3729. hum.WalkSpeed = 0
  3730. if i == 100 then
  3731. soundeffect(soundlist.One, 1, 1, char.Torso)
  3732. end
  3733. if i == 200 then
  3734. soundeffect(soundlist.Two, 1, 1, char.Torso)
  3735. end
  3736. if i == 300 then
  3737. soundeffect(soundlist.Three, 1, 1, char.Torso)
  3738. end
  3739. if i == 400 then
  3740. soundeffect(soundlist.Four, 1, 1, char.Torso)
  3741. end
  3742. if i == 500 then
  3743. soundeffect(soundlist.Five, 1, 1, char.Torso)
  3744. end
  3745. rope:SetPrimaryPartCFrame(cf *CFrame.Angles(math.rad(-3.6),0,0))
  3746. cf = rope.PrimaryPart.CFrame
  3747. if oops then
  3748. break
  3749. end
  3750. swait()
  3751. end
  3752. if oops then
  3753. local hum = hit.Parent:FindFirstChildOfClass("Humanoid")
  3754. local jpow = hum.JumpPower
  3755. hum.JumpPower = 0
  3756. soundeffect(soundlist.Oops, 1, 1, char.Torso, {ForceWait = true})
  3757. hum.JumpPower = jpow
  3758. play()
  3759. end
  3760. hum.WalkSpeed = oldws
  3761. end
  3762. play()
  3763. humanoid.WalkSpeed = 30
  3764. setrope(1)
  3765. spawn(function()
  3766. soundeffect(soundlist.Wow, 1, 1, char.Torso, {ForceWait = false})
  3767. attacking = false
  3768. end)
  3769. end
  3770. end)
  3771. if settings.CustomAnim or true then
  3772. if char:FindFirstChild("Animate") then
  3773. char.Animate:Destroy()
  3774. end
  3775. for _,track in pairs(humanoid:GetPlayingAnimationTracks()) do
  3776. track:Stop()
  3777. end
  3778. humanoid.Running:connect(function(ws)
  3779. movespeed = ws
  3780. end)
  3781. end
  3782.  
  3783. spawn(function()
  3784. repeat swait()
  3785. local wall = workspace:FindPartOnRay(Ray.new(rootpart.Position, Vector3.new(0,0,-1).unit * 4), char) == nil
  3786. local air = workspace:FindPartOnRay(Ray.new(rootpart.Position, Vector3.new(0,-1,0).unit * 4), char) == nil
  3787. local tvel = rootpart.Velocity
  3788. if air and tvel.Y > 0 then
  3789. animpose = "Jump"
  3790. end
  3791. if air and tvel.Y < 0 then
  3792. animpose = "Fall"
  3793. end
  3794. if not air and (math.abs(humanoid.MoveDirection.X)+math.abs(humanoid.MoveDirection.Z))>0 then
  3795. animpose = "Walking"
  3796. end
  3797. if not air and animpose == "Walking" and movespeed > 16 then
  3798. animpose = "Walking"--or Running
  3799. end
  3800. if not air and movespeed == 0 then
  3801. animpose = "Idle"
  3802. end
  3803. until not settings.CustomAnim
  3804. end)
  3805. for i,v in pairs(char:GetDescendants()) do
  3806. pcall(function()
  3807. v.Transparency = 1
  3808. end)
  3809. end
  3810.  
  3811. local change = 5
  3812. local cos,rad,ang,cf = math.cos,math.rad,CFrame.Angles,CFrame.new
  3813. while swait() and settings.CustomAnim do
  3814. local num = tick()*change
  3815. if animpose == "Walking" then
  3816. end
  3817. if animpose == "Fall" then
  3818. end
  3819. if animpose == "Idle" then
  3820. end
  3821. if animpose == "Jump" then
  3822. end
  3823. end
  3824. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement