Noobark

FE krystal dance

Mar 7th, 2025
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.34 KB | Gaming | 0 0
  1. local player = game.Players.LocalPlayer
  2. local StarterGui = game:GetService("StarterGui")
  3. function notifyPlayer(title, text)
  4. StarterGui:SetCore("SendNotification", {
  5. Title = title;
  6. Text = text;
  7. Duration = 20;
  8. })
  9. end
  10.  
  11.  
  12. notifyPlayer("Nameless Animation V4", "Originally Made By MyWorld")
  13. notifyPlayer("Created", "By Gazer_ha")
  14. notifyPlayer("Energize", "Credit To The Owner.. Who?")
  15.  
  16.  
  17.  
  18. local fake_transparency = 1
  19. local Motors = {
  20. ["Left Hip"] = 0,
  21. ["Neck"] = 0,
  22. ["Left Shoulder"] = 0,
  23. ["Right Hip"] = 0,
  24. ["Right Shoulder"] = 0
  25. }
  26. local TS = game:GetService("TweenService")
  27. local function getnext(tbl, number)
  28. local closestDiff = math.huge
  29. local closestValue = 0
  30. for i, v in pairs(tbl) do
  31. if i > number and i - number < closestDiff then
  32. closestDiff = i - number
  33. closestValue = i
  34. end
  35. end
  36. return closestValue
  37. end
  38. local function kftotbl(kf)
  39. local tbl3 = {}
  40. for _, v in pairs(kf:GetDescendants()) do
  41. if v:IsA("Pose") then
  42. tbl3[string.sub(v.Name, 1, 1) .. string.sub(v.Name, #v.Name, #v.Name)] = v.CFrame
  43. end
  44. end
  45. return tbl3
  46. end
  47. local function getSpeed(lastTimeStamp, currentTimeStamp)
  48. if currentTimeStamp == 0 then return 0 end
  49. return math.abs(lastTimeStamp - currentTimeStamp)
  50. end
  51. local function getAnimation(animationId)
  52. local animationObject
  53. local success, errorMsg = pcall(function()
  54. animationObject = game:GetObjects(animationId)[1]
  55. end)
  56. if not success then
  57. warn("Failed to load animation: " .. errorMsg)
  58. return nil
  59. end
  60. return animationObject
  61. end
  62. local Main = {}
  63. Main.__index = Main
  64.  
  65. function Main.LoadDummy(DummyChar)
  66. local metatable = {}
  67. setmetatable(metatable, Main)
  68. metatable.char = DummyChar
  69. return metatable
  70. end
  71.  
  72. function Main:LoadAnimation(animationId)
  73. local Character = self.char
  74. local animationObject = getAnimation(animationId)
  75. if not animationObject then return end
  76. print(animationObject)
  77. local metatable = {}
  78. setmetatable(metatable, Main)
  79. metatable.char = Character
  80. metatable.animObject = animationObject
  81. return metatable
  82. end
  83.  
  84. function Main:Play()
  85. local Character = self.char
  86. local animationObject = self.animObject
  87. local Looped = true
  88. local anim = {}
  89.  
  90. for _, v in pairs(animationObject:GetChildren()) do
  91. if v:IsA("Keyframe") then
  92. anim[v.Time] = kftotbl(v)
  93. end
  94. end
  95.  
  96. local LH = Character.Torso["Left Hip"].C0
  97. local RH = Character.Torso["Right Hip"].C0
  98. local LS = Character.Torso["Left Shoulder"].C0
  99. local RS = Character.Torso["Right Shoulder"].C0
  100. local RoH = Character.HumanoidRootPart["RootJoint"].C0
  101. local N = Character.Torso["Neck"].C0
  102. local count = -1
  103. local lastTimeStamp = 0
  104.  
  105. self.played = false
  106. local times = {
  107. Lg = 0,
  108. Rg = 0,
  109. Lm = 0,
  110. Rm = 0,
  111. To = 0,
  112. Hd = 0
  113. }
  114. local lasttime = tick()
  115.  
  116. while not self.played do
  117. local timepassed = tick() - lasttime
  118. if not Looped then
  119. self.played = true
  120. end
  121. for i, v in pairs(anim) do
  122. local asdf = getnext(anim, count)
  123. v = anim[asdf]
  124. count = asdf
  125.  
  126. task.wait(asdf - count)
  127. -- Handle keyframe updates
  128. if v["Lg"] then
  129. local Ti = TweenInfo.new(getSpeed(lastTimeStamp, asdf) + times.Lg + getSpeed(lastTimeStamp, asdf))
  130. times.Lg = 0
  131. TS:Create(Character.Torso["Left Hip"], Ti, {C0 = LH * v["Lg"]}):Play()
  132. else
  133. times.Lg = times.Lg + getSpeed(lastTimeStamp, asdf)
  134. end
  135. if v["Rg"] then
  136. local Ti = TweenInfo.new(getSpeed(lastTimeStamp, asdf) + times.Rg + getSpeed(lastTimeStamp, asdf))
  137. times.Rg = 0
  138. TS:Create(Character.Torso["Right Hip"], Ti, {C0 = RH * v["Rg"]}):Play()
  139. else
  140. times.Rg = times.Rg + getSpeed(lastTimeStamp, asdf)
  141. end
  142. if v["Lm"] then
  143. local Ti = TweenInfo.new(getSpeed(lastTimeStamp, asdf) + times.Lm + getSpeed(lastTimeStamp, asdf))
  144. times.Lm = 0
  145. TS:Create(Character.Torso["Left Shoulder"], Ti, {C0 = LS * v["Lm"]}):Play()
  146. else
  147. times.Lm = times.Lm + getSpeed(lastTimeStamp, asdf)
  148. end
  149. if v["Rm"] then
  150. local Ti = TweenInfo.new(getSpeed(lastTimeStamp, asdf) + times.Rm + getSpeed(lastTimeStamp, asdf))
  151. times.Rm = 0
  152. TS:Create(Character.Torso["Right Shoulder"], Ti, {C0 = RS * v["Rm"]}):Play()
  153. else
  154. times.Rm = times.Rm + getSpeed(lastTimeStamp, asdf)
  155. end
  156. if v["To"] then
  157. local Ti = TweenInfo.new(getSpeed(lastTimeStamp, asdf) + times.To + getSpeed(lastTimeStamp, asdf))
  158. times.To = 0
  159. TS:Create(Character.HumanoidRootPart["RootJoint"], Ti, {C0 = RoH * v["To"]}):Play()
  160. else
  161. times.To = times.To + getSpeed(lastTimeStamp, asdf)
  162. end
  163. if v["Hd"] then
  164. local Ti = TweenInfo.new(getSpeed(lastTimeStamp, asdf) + times.Hd + getSpeed(lastTimeStamp, asdf))
  165. times.Hd = 0
  166. TS:Create(Character.Torso["Neck"], Ti, {C0 = N * v["Hd"]}):Play()
  167. else
  168. times.Hd = times.Hd + getSpeed(lastTimeStamp, asdf)
  169. end
  170. task.wait(getSpeed(lastTimeStamp, asdf))
  171. lastTimeStamp = asdf
  172. end
  173. end
  174.  
  175. -- Reset character to original pose after animation ends
  176. Character.Torso["Left Hip"].C0 = LH
  177. Character.Torso["Right Hip"].C0 = RH
  178. Character.Torso["Left Shoulder"].C0 = LS
  179. Character.Torso["Right Shoulder"].C0 = RS
  180. Character.HumanoidRootPart["RootJoint"].C0 = RoH
  181. Character.Torso["Neck"].C0 = N
  182. end
  183.  
  184. function Main:Stop()
  185. self.played = true
  186. end
  187.  
  188. -- Script setup and initialization
  189. local animationplayer = Main
  190.  
  191. local LoadedAnimationTable = {}
  192.  
  193. local Players = game:GetService("Players")
  194. local Player = Players.LocalPlayer
  195. local RunService = game:GetService("RunService")
  196.  
  197. game.Players.LocalPlayer.Character.Archivable = true
  198. local FakeCharacter = game.Players.LocalPlayer.Character:Clone()
  199.  
  200. Player.Character:BreakJoints()
  201. Player.Character = nil
  202.  
  203. local Connection
  204. Connection = game.Workspace.DescendantAdded:Connect(function(c)
  205. if c.Name == "Animate" and c.Parent == Player.Character then
  206. c.Enabled = false
  207. Connection:Disconnect()
  208. end
  209. end)
  210.  
  211. repeat task.wait() until game.Players.LocalPlayer.Character
  212. task.wait(0.1)
  213.  
  214. local RealChar = Player.Character
  215. RealChar.Archivable = true
  216. FakeCharacter.Name = "non"
  217. FakeCharacter.Parent = workspace
  218.  
  219. local rig = animationplayer.LoadDummy(FakeCharacter)
  220.  
  221. -- Sigma Sigma Ayo Kita Sigma
  222. -- Bacot Jing
  223.  
  224. -- local track = rig:LoadAnimation("rbxassetid://17603135849")
  225. -- coroutine.wrap(function()
  226. -- track:Play()
  227. -- end)()
  228.  
  229. task.spawn(function()
  230. for _, LS in ipairs(FakeCharacter:GetChildren()) do
  231. if LS:IsA("LocalScript") then
  232. LS.Enabled = false
  233. task.wait(0.1)
  234. LS.Enabled = false
  235. end
  236. end
  237. end)
  238.  
  239. for _, Part in ipairs(FakeCharacter:GetDescendants()) do
  240. if Part:IsA("BasePart") then
  241. Part.Transparency = fake_transparency
  242. end
  243. end
  244.  
  245. for _, Decal in ipairs(FakeCharacter:GetDescendants()) do
  246. if Decal:IsA("Decal") then
  247. Decal.Transparency = fake_transparency
  248. end
  249. end
  250.  
  251. Player.Character = FakeCharacter
  252.  
  253. local function MotorAngle()
  254. if RealChar:FindFirstChild("Torso") then
  255. for MotorName, Motor6DAngle in pairs(Motors) do
  256. if RealChar:FindFirstChild("Torso"):FindFirstChild(MotorName) then
  257. RealChar:FindFirstChild("Torso"):FindFirstChild(MotorName).CurrentAngle = Motor6DAngle
  258. end
  259. end
  260. end
  261. end
  262.  
  263. local function SetAngles()
  264. if FakeCharacter:FindFirstChild("Torso") then
  265. for MotorName, Motor6DAngle in pairs(Motors) do
  266. if FakeCharacter:FindFirstChild("Torso"):FindFirstChild(MotorName) then
  267. local Motor = FakeCharacter:FindFirstChild("Torso"):FindFirstChild(MotorName)
  268. local rx, ry, rz = Motor.Part1.CFrame:ToObjectSpace(FakeCharacter:FindFirstChild("Torso").CFrame):ToOrientation()
  269. if Motor.Name == "Right Shoulder" then
  270. Motors[MotorName] = -rx
  271. end
  272. if Motor.Name == "Left Shoulder" then
  273. Motors[MotorName] = rx
  274. end
  275. if Motor.Name == "Right Hip" then
  276. Motors[MotorName] = -rx
  277. end
  278. if Motor.Name == "Left Hip" then
  279. Motors[MotorName] = rx
  280. end
  281. if Motor.Name == "Neck" then
  282. Motors[MotorName] = -ry
  283. end
  284. end
  285. end
  286. end
  287. end
  288.  
  289. local KFFolder = Instance.new("Folder")
  290. KFFolder.Parent = game.ReplicatedStorage
  291.  
  292. --[[local function LoadAllAnimations()
  293. -- Assuming AnimIDs is a table containing animation IDs
  294. for _, AnimID in pairs(AnimIDs) do
  295. local Anim = Instance.new("Animation")
  296. Anim.AnimationId = "rbxassetid://" .. AnimID
  297. local LoadedAnim = RealChar:WaitForChild("Humanoid"):LoadAnimation(Anim)
  298. end]]
  299.  
  300. local function BaseCol()
  301. for _, Part in ipairs(RealChar:GetChildren()) do
  302. if Part:IsA("BasePart") then
  303. Part.CanCollide = false
  304. end
  305. end
  306. for _, Part in ipairs(FakeCharacter:GetChildren()) do
  307. if Part:IsA("BasePart") then
  308. Part.CanCollide = false
  309. end
  310. end
  311. end
  312.  
  313. RunService.Heartbeat:Connect(function()
  314. SetAngles()
  315. MotorAngle()
  316. pcall(function()
  317. RealChar.HumanoidRootPart.CFrame = FakeCharacter.Torso.CFrame
  318. RealChar.HumanoidRootPart.Velocity = 0
  319. end)
  320. end)
  321.  
  322.  
  323.  
  324.  
  325. RunService.PreSimulation:Connect(function()
  326. BaseCol()
  327. end)
  328.  
  329.  
  330. loadstring(game:HttpGet("https://rawscripts.net/raw/Universal-Script-FE-Nameless-Animations-V4-4249"))()
  331.  
  332. task.wait(1)
  333.  
  334. loadstring(game:HttpGet("https://raw.githubusercontent.com/GGH52lan/GGH52lan/main/keyboard.txt"))()
  335.  
  336. loadstring(game:HttpGet("https://raw.githubusercontent.com/Gazer-Ha/Energize-Protected/main/Yh"))()
  337.  
  338. local bodyVelocity = Instance.new("BodyVelocity")
  339. bodyVelocity.MaxForce = Vector3.new(0.1, 0.1, 0.1)
  340. bodyVelocity.Velocity = Vector3.new(0, 0, 0)
  341. bodyVelocity.Parent = RealChar.HumanoidRootPart
Add Comment
Please, Sign In to add comment