Advertisement
5325325325

Untitled

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