Advertisement
Hermaxs

Untitled

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