Advertisement
valentino2016

Baldi Fe

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