Goo345

baldi i guess

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