Sturdy Script - Pastebin.com (2024)

  1. Dance

  2. for i,v in next, game:GetService("Players").LocalPlayer.Character:GetDescendants() do

  3. if v:IsA("BasePart") and v.Name ~="HumanoidRootPart" then

  4. game:GetService("RunService").Heartbeat:connect(function()

  5. v.Velocity = Vector3.new(1, 25, 1)

  6. end)

  7. end

  8. end

  9. wait(3)

  10. local Frame = (60)

  11. local chr = game.Players.LocalPlayer.Character

  12. Service =

  13. setmetatable(

  14. {

  15. Get = function(Self, Serv)

  16. if Service[Serv] then

  17. return Service[Serv]

  18. end

  19. local S = game:GetService(Serv)

  20. if S then

  21. Service[Serv] = S

  22. end

  23. return S

  24. end

  25. },

  26. {

  27. __index = function(Self, Index)

  28. local S = game:GetService(Index)

  29. if S then

  30. Service[Index] = S

  31. end

  32. return S

  33. end

  34. }

  35. )

  36. local LP = Service["Players"].LocalPlayer

  37. local Char = LP["Character"]

  38. local Torso, Root, Humanoid = Char["UpperTorso"], Char["HumanoidRootPart"], Char["Humanoid"]

  39. local TService, UIS = Service["TweenService"], Service["UserInputService"]

  40. coroutine.wrap(

  41. function()

  42. Root["Anchored"] = true

  43. wait(.8)

  44. Root["Anchored"] = false

  45. end

  46. )()

  47. local Create = function(Obj, Parent)

  48. local I = Instance.new(Obj)

  49. I["Parent"] = Parent

  50. return I

  51. end

  52. local Contains = function(Table, KV)

  53. for K, V in next, Table do

  54. if rawequal(KV, K) or rawequal(KV, V) then

  55. return true

  56. end

  57. end

  58. return false

  59. end

  60. local PoseToCF = function(Pose, Motor)

  61. return (Motor["Part0"].CFrame * Motor["C0"] * Pose["CFrame"] * Motor["C1"]:Inverse()):ToObjectSpace(

  62. Motor["Part0"].CFrame

  63. )

  64. end

  65. local Joints = {

  66. ["LeftHand"] = game.Players.LocalPlayer.Character.LeftHand["LeftWrist"],

  67. ["LeftLowerArm"] = chr.LeftLowerArm["LeftElbow"],

  68. ["LeftUpperArm"] = chr.LeftUpperArm["LeftShoulder"],

  69. ["RightHand"] = chr.RightHand["RightWrist"],

  70. ["RightLowerArm"] = chr.RightLowerArm["RightElbow"],

  71. ["RightUpperArm"] = chr.RightUpperArm["RightShoulder"],

  72. ["UpperTorso"] = chr.UpperTorso["Waist"],

  73. ["LeftFoot"] = chr.LeftFoot["LeftAnkle"],

  74. ["LeftLowerLeg"] = chr.LeftLowerLeg["LeftKnee"],

  75. ["LeftUpperLeg"] = chr.LeftUpperLeg["LeftHip"],

  76. ["RightFoot"] = chr.RightFoot["RightAnkle"],

  77. ["RightLowerLeg"] = chr.RightLowerLeg["RightKnee"],

  78. ["RightUpperLeg"] = chr.RightUpperLeg["RightHip"],

  79. ["LowerTorso"] = chr.LowerTorso["Root"]

  80. }

  81. for K, V in next, Char:GetChildren() do

  82. if V:IsA("BasePart") then

  83. coroutine.wrap(

  84. function()

  85. repeat

  86. V["CanCollide"] = false

  87. Service["RunService"].Stepped:Wait()

  88. until Humanoid["Health"] < 1

  89. end

  90. )()

  91. end

  92. end

  93. for K, V in next, Joints do

  94. local AP, AO, A0, A1 =

  95. Create("AlignPosition", V["Part1"]),

  96. Create("AlignOrientation", V["Part1"]),

  97. Create("Attachment", V["Part1"]),

  98. Create("Attachment", V["Part0"])

  99. AP["RigidityEnabled"] = true

  100. AO["RigidityEnabled"] = true

  101. AP["Attachment0"] = A0

  102. AP["Attachment1"] = A1

  103. AO["Attachment0"] = A0

  104. AO["Attachment1"] = A1

  105. A0["Name"] = "CFAttachment0"

  106. A1["Name"] = "CFAttachment1"

  107. A0["CFrame"] = V["C1"] * V["C0"]:Inverse()

  108. V:Remove()

  109. end

  110. local Edit = function(Part, Value, Duration, Style, Direction)

  111. Style = Style or "Enum.EasingStyle.Linear"

  112. Direction = Direction or "Enum.EasingDirection.In"

  113. local Attachment = Part:FindFirstChild("CFAttachment0")

  114. if Attachment ~= nil then

  115. TService:Create(

  116. Attachment,

  117. TweenInfo.new(

  118. Duration,

  119. Enum["EasingStyle"][tostring(Style):split(".")[3]],

  120. Enum["EasingDirection"][tostring(Direction):split(".")[3]],

  121. 0,

  122. false,

  123. ),

  124. {CFrame = Value}

  125. ):Play()

  126. end

  127. end

  128. if not Service["RunService"]:FindFirstChild("Delta") then

  129. local Delta = Create("BindableEvent", Service["RunService"])

  130. Delta["Name"] = "Delta"

  131. local A, B = 0, tick()

  132. Service["RunService"].Delta:Fire()

  133. Service["RunService"].Heartbeat:Connect(

  134. function(C, D)

  135. A = A + C

  136. if A >= (1 / Frame) then

  137. for I = 1, math.floor(A / (1 / Frame)) do

  138. Service["RunService"].Delta:Fire()

  139. end

  140. B = tick()

  141. A = A - (1 / Frame) * math.floor(A / (1 / Frame))

  142. end

  143. end

  144. )

  145. end

  146. coroutine.wrap(

  147. function()

  148. Humanoid["Died"]:Wait()

  149. for K, V in next, Char:GetDescendants() do

  150. if V["Name"]:match("Align") then

  151. V:Destroy()

  152. end

  153. end

  154. end

  155. )()

  156. local PreloadAnimation = function(AssetId)

  157. local Sequence = game:GetObjects("rbxassetid://" .. AssetId)[1]

  158. assert(Sequence:IsA("KeyframeSequence"), "Instance is not a KeyframeSequence.")

  159. wait(.06)

  160. local Class = {}

  161. Class["Speed"] = 1

  162. local Yield = function(Seconds)

  163. local Time = Seconds * (Frame + Sequence:GetKeyframes()[#Sequence:GetKeyframes()].Time)

  164. for I = 1, Time, Class["Speed"] do

  165. Service["RunService"].Delta["Event"]:Wait()

  166. end

  167. end

  168. Class["Stopped"] = false

  169. Class["Complete"] = Instance.new("BindableEvent")

  170. Class["Play"] = function()

  171. Class["Stopped"] = false

  172. coroutine.wrap(

  173. function()

  174. repeat

  175. for K = 1, #Sequence:GetKeyframes() do

  176. local K0, K1, K2 =

  177. Sequence:GetKeyframes()[K - 1],

  178. Sequence:GetKeyframes()[K],

  179. Sequence:GetKeyframes()[K + 1]

  180. if Class["Stopped"] ~= true and Humanoid["Health"] > 0 then

  181. if K0 ~= nil then

  182. Yield(K1["Time"] - K0["Time"])

  183. end

  184. coroutine.wrap(

  185. function()

  186. for I = 1, #K1:GetDescendants() do

  187. local Pose = K1:GetDescendants()[I]

  188. if Contains(Joints, Pose["Name"]) then

  189. local Duration =

  190. K2 ~= nil and (K2["Time"] - K1["Time"]) / Class["Speed"] or .5

  191. Edit(

  192. Char[Pose["Name"]],

  193. PoseToCF(Pose, Joints[Pose["Name"]]),

  194. Duration,

  195. Pose["EasingStyle"],

  196. Pose["EasingDirection"]

  197. )

  198. end

  199. end

  200. end

  201. )()

  202. end

  203. end

  204. Class["Complete"]:Fire()

  205. until Sequence["Loop"] ~= true or Class["Stopped"] ~= false or Humanoid["Health"] < 1

  206. end

  207. )()

  208. end

  209. Class["Stop"] = function()

  210. Class["Stopped"] = true

  211. end

  212. Class["Reset"] = function()

  213. coroutine.wrap(

  214. function()

  215. wait(.02)

  216. assert(Class["Stopped"], "Track Must Be Stopped First!")

  217. for K, V in next, Joints do

  218. local Part = Char[K]

  219. if Part ~= nil then

  220. local Attachment = Part:FindFirstChild("CFAttachment0")

  221. if Attachment ~= nil then

  222. Attachment["CFrame"] = V["C1"] * V["C0"]:Inverse()

  223. end

  224. end

  225. end

  226. end

  227. )()

  228. end

  229. return Class

  230. end

  231. Humanoid.WalkSpeed = 16

  232. local Anims = {

  233. ["Idle"] = PreloadAnimation(4211217646),

  234. ["Walk"] = PreloadAnimation(913376220),

  235. ["Run"] = PreloadAnimation(913376220),

  236. ["Jump"] = PreloadAnimation(507765000),

  237. ["Fall"] = PreloadAnimation(507767968)

  238. }

  239. wait(1)

  240. local Connections = {}

  241. Mouse = LP:GetMouse()

  242. local Dancing, Running = false, false

  243. local StopAll = function()

  244. for K, V in next, Anims do

  245. if V["Stopped"] ~= true then

  246. V:Stop()

  247. end

  248. end

  249. end

  250. Anims["Idle"]:Play()

  251. Dancing = false

  252. Anims["Walk"].Stopped = true

  253. Anims["Run"].Stopped = true

  254. Connections["Run"] =

  255. Humanoid["Running"]:Connect(

  256. function(Speed)

  257. if Speed > 6 and Dancing ~= true and Anims["Walk"].Stopped ~= false and runnning ~= true then

  258. Anims["Idle"]:Stop()

  259. Anims["Jump"]:Stop()

  260. Anims["Fall"]:Stop()

  261. Anims["Run"]:Stop()

  262. Anims["Walk"]:Play()

  263. elseif Speed < 5 and Dancing ~= true and Anims["Walk"].Stopped ~= true and runnning ~= true then

  264. Anims["Walk"]:Stop()

  265. Anims["Jump"]:Stop()

  266. Anims["Fall"]:Stop()

  267. Anims["Run"]:Stop()

  268. Anims["Idle"]:Play()

  269. elseif Speed < 5 and Dancing ~= true and Anims["Jump"].Stopped ~= true or Anims["Fall"].Stopped ~= true then

  270. Anims["Walk"]:Stop()

  271. Anims["Jump"]:Stop()

  272. Anims["Fall"]:Stop()

  273. Anims["Run"]:Stop()

  274. Anims["Idle"]:Play()

  275. end

  276. end

  277. )

  278. Connections["Jumping"] =

  279. Humanoid["Jumping"]:Connect(

  280. function(active)

  281. if active and Dancing ~= true and Anims["Jump"].Stopped ~= false then

  282. Anims["Idle"]:Stop()

  283. Anims["Walk"]:Stop()

  284. Anims["Fall"]:Stop()

  285. Anims["Run"]:Stop()

  286. Anims["Jump"]:Play()

  287. end

  288. end

  289. )

  290. Connections["FreeFalling"] =

  291. Humanoid["FreeFalling"]:Connect(

  292. function(active)

  293. if active and Dancing ~= true and Anims["Jump"].Stopped ~= false then

  294. Anims["Idle"]:Stop()

  295. Anims["Walk"]:Stop()

  296. Anims["Jump"]:Stop()

  297. Anims["Run"]:Stop()

  298. Anims["Fall"]:Play()

  299. end

  300. end

  301. )

  302. Mouse.KeyDown:connect(

  303. function(key)

  304. if key:lower() == string.char(48) then --string.char(48) is just shift

  305. if Humanoid and Anims["Walk"].Stopped ~= true then

  306. Anims["Walk"]:Stop()

  307. Anims["Jump"]:Stop()

  308. Anims["Fall"]:Stop()

  309. Anims["Idle"]:Stop()

  310. Anims["Run"]:Play()

  311. runnning = true

  312. Humanoid.WalkSpeed = 26

  313. end

  314. end

  315. end

  316. )

  317. --When button is lifted

  318. Mouse.KeyUp:connect(

  319. function(key)

  320. if key:lower() == string.char(48) then --string.char(48) is just shift

  321. if Humanoid then

  322. runnning = false

  323. Humanoid.WalkSpeed = 16

  324. end

  325. end

  326. end

  327. )

  328. wait(1)

  329. local Bind = function(Id, Key, Speed)

  330. Speed = Speed or 1

  331. local Animation = PreloadAnimation(Id)

  332. table.insert(Anims, Animation)

  333. local V =

  334. UIS.InputBegan:Connect(

  335. function(Input, P)

  336. if Input.KeyCode == Enum.KeyCode[Key] and P ~= true then

  337. if Dancing ~= true then

  338. Dancing = true

  339. StopAll()

  340. wait(.1)

  341. Animation:Play()

  342. Animation["Speed"] = Speed

  343. else

  344. Dancing = false

  345. StopAll()

  346. wait(.1)

  347. Anims["Idle"]:Play()

  348. end

  349. end

  350. end

  351. )

  352. end

  353. Bind(10507080897, "Q", 1)

  354. wait(0.1)

  355. Bind(10731649737, "Y", 1)

  356. wait(0.1)

  357. Bind(10724052169 , "E", 1)

  358. wait(0.1)

  359. Bind(10722615238 , "R", 1)

  360. wait(0.1)

  361. Bind(5971749922, "T", 1)

  362. wait(0.1)

  363. Bind(5349599731, "U", 2)

  364. wait(0.1)

  365. Bind(5641878449, "F", 1)

  366. wait(0.1)

  367. Bind(5943669474, "O", 1)

  368. wait(0.1)

  369. Bind(6024896974, "G", 1)

  370. wait(0.1)

  371. Bind(10881761394, "H", 1)

  372. wait(0.1)

  373. Bind(1574383214, "J", 1)

  374. wait(0.1)

  375. Bind(10881753261, "K", 1)

  376. wait(0.1)

  377. Bind(5349600811, "L", 1)

  378. wait(0.1)

  379. Bind(10881645631, "Z", 1)

  380. wait(0.1)

  381. Bind(10881661040, "X", 1)

  382. wait(0.1)

  383. Bind(10881685708, "C", 1)

  384. wait(0.1)

  385. Bind(5943658900, "V", 1)

  386. wait(0.1)

  387. Bind(10881733560, "B", 1)

  388. wait(0.1)

  389. Bind(10881694331, "N", 1)

  390. wait(0.1)

  391. Bind(5927871610, "M", 1)

Sturdy Script - Pastebin.com (2024)

References

Top Articles
Latest Posts
Article information

Author: Madonna Wisozk

Last Updated:

Views: 6392

Rating: 4.8 / 5 (68 voted)

Reviews: 91% of readers found this page helpful

Author information

Name: Madonna Wisozk

Birthday: 2001-02-23

Address: 656 Gerhold Summit, Sidneyberg, FL 78179-2512

Phone: +6742282696652

Job: Customer Banking Liaison

Hobby: Flower arranging, Yo-yoing, Tai chi, Rowing, Macrame, Urban exploration, Knife making

Introduction: My name is Madonna Wisozk, I am a attractive, healthy, thoughtful, faithful, open, vivacious, zany person who loves writing and wants to share my knowledge and understanding with you.