StarzoZero

Untitled

Dec 5th, 2022
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 50.42 KB | None | 0 0
  1. --[[
  2. Baller script
  3. made by DDanii#0247 formerly... DaniVB
  4.  
  5. hats:
  6. https://www.roblox.com/catalog/6685365462/Red-Stickman-Head
  7. https://www.roblox.com/catalog/3499972183/International-Fedora-Colombia
  8. https://www.roblox.com/catalog/3438342658/International-Fedora-Argentina
  9. https://www.roblox.com/catalog/3409612660/International-Fedora-USA
  10. https://www.roblox.com/catalog/3992084515/International-Fedora-Vietnam
  11. https://www.roblox.com/catalog/4047554959/International-Fedora-Brazil
  12.  
  13.  
  14. thanks to REIM for the idea.
  15. ]]
  16.  
  17.  
  18.  
  19. _G.ThrowStrength = 200 --Throw strength
  20.  
  21.  
  22. rejoinkeybind = "-" --Quick rejoin
  23. resetballkeybind = "r" --Resetting the ball for if you threw it in the void
  24. sprintkey = "LeftControl" --Sprinting
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33. --reanimate by MyWorld#4430 discord.gg/pYVHtSJmEY
  34. game:GetService("Players").LocalPlayer.Character.InternationalFedora.Name = "exp_1"
  35. game:GetService("Players").LocalPlayer.Character.InternationalFedora.Name = "exp_2"
  36. game:GetService("Players").LocalPlayer.Character.InternationalFedora.Name = "exp_3"
  37. game:GetService("Players").LocalPlayer.Character.InternationalFedora.Name = "exp_4"
  38. game:GetService("Players").LocalPlayer.Character["International Fedora"].Name = "exp_5"
  39. if game:GetService("Players").LocalPlayer.Character.Humanoid.RigType == Enum.HumanoidRigType.R6 then
  40. game:GetService("Players").LocalPlayer.Character['exp_1'].Handle.SpecialMesh:destroy()
  41. game:GetService("Players").LocalPlayer.Character['exp_2'].Handle.SpecialMesh:destroy()
  42. game:GetService("Players").LocalPlayer.Character['exp_3'].Handle.SpecialMesh:destroy()
  43. game:GetService("Players").LocalPlayer.Character['exp_4'].Handle.SpecialMesh:destroy()
  44. game:GetService("Players").LocalPlayer.Character['exp_5'].Handle.SpecialMesh:destroy()
  45.  
  46. end
  47.  
  48. local Vector3_101 = Vector3.new(1, 0, 1)
  49. local netless_Y = Vector3.new(0, 25.1, 0)
  50. local function getNetlessVelocity(realPartVelocity)
  51. local mag = realPartVelocity.Magnitude
  52. if (mag > 1) and (mag < 100 xss=removed> 0.25) or (unit.Y < -0.75) then
  53. return realPartVelocity * (25.1 / realPartVelocity.Y)
  54. end
  55. realPartVelocity = unit * 125
  56. end
  57. return (realPartVelocity * Vector3_101) + netless_Y
  58. end
  59. local simradius = "shp" --simulation radius (net bypass) method
  60. --"shp" - sethiddenproperty
  61. --"ssr" - setsimulationradius
  62. --false - disable
  63. local healthHide = true --moves your head under map every 3 seconds so players dont see your health bar
  64. local noclipAllParts = false --set it to true if you want noclip
  65. local antiragdoll = true --removes hingeConstraints and ballSocketConstraints from your character
  66. local newanimate = true --disables the animate script and enables after reanimation
  67. local discharscripts = true --disables all localScripts parented to your character before reanimation
  68. local R15toR6 = true --tries to convert your character to r6 if its r15
  69. local hatcollide = false --makes hats cancollide (credit to ShownApe) (works only with reanimate method 0)
  70. local humState16 = true --enables collisions for limbs before the humanoid dies (using hum:ChangeState)
  71. local addtools = false --puts all tools from backpack to character and lets you hold them after reanimation
  72. local hedafterneck = true --disable aligns for head and enable after neck or torso is removed
  73. local loadtime = game:GetService("Players").RespawnTime + 0.5 --anti respawn delay
  74. local method = 3 --reanimation method
  75. --methods:
  76. --0 - breakJoints (takes [loadtime] seconds to laod)
  77. --1 - limbs
  78. --2 - limbs + anti respawn
  79. --3 - limbs + breakJoints after [loadtime] seconds
  80. --4 - remove humanoid + breakJoints
  81. --5 - remove humanoid + limbs
  82. local alignmode = 4 --AlignPosition mode
  83. --modes:
  84. --1 - AlignPosition rigidity enabled true
  85. --2 - 2 AlignPositions rigidity enabled both true and false
  86. --3 - AlignPosition rigidity enabled false
  87. --4 - CFrame (if u dont have the isnetworkowner function it will use alignmode 2)
  88. local flingpart = "HumanoidRootPart" --name of the part or the hat used for flinging
  89. --the fling function
  90. --usage: fling(target, duration, velocity)
  91. --target can be set to: basePart, CFrame, Vector3, character model or humanoid (flings at mouse.Hit if argument not provided))
  92. --duration (fling time in seconds) can be set to: a number or a string convertable to the number (0.5s if not provided),
  93. --velocity (fling part rotation velocity) can be set to a vector3 value (Vector3.new(20000, 20000, 20000) if not provided)
  94.  
  95. local lp = game:GetService("Players").LocalPlayer
  96. local rs = game:GetService("RunService")
  97. local stepped = rs.Stepped
  98. local heartbeat = rs.Heartbeat
  99. local renderstepped = rs.RenderStepped
  100. local sg = game:GetService("StarterGui")
  101. local ws = game:GetService("Workspace")
  102. local cf = CFrame.new
  103. local v3 = Vector3.new
  104. local v3_0 = v3(0, 0, 0)
  105. local inf = math.huge
  106.  
  107. local c = lp.Character
  108.  
  109. if not (c and c.Parent) then
  110. return
  111. end
  112.  
  113. c:GetPropertyChangedSignal("Parent"):Connect(function()
  114. if not (c and c.Parent) then
  115. c = nil
  116. end
  117. end)
  118.  
  119. local function gp(parent, name, className)
  120. if typeof(parent) == "Instance" then
  121. for i, v in pairs(parent:GetChildren()) do
  122. if (v.Name == name) and v:IsA(className) then
  123. return v
  124. end
  125. end
  126. end
  127. return nil
  128. end
  129.  
  130. if type(getNetlessVelocity) ~= "function" then
  131. getNetlessVelocity = nil
  132. end
  133.  
  134. local fenv = getfenv()
  135. local shp = fenv.sethiddenproperty or fenv.set_hidden_property or fenv.set_hidden_prop or fenv.sethiddenprop
  136. local ssr = fenv.setsimulationradius or fenv.set_simulation_radius or fenv.set_sim_radius or fenv.setsimradius or fenv.set_simulation_rad or fenv.setsimulationrad
  137. local ino = fenv.isnetworkowner or fenv.is_network_owner or fenv.isnetowner or fenv.is_net_owner
  138.  
  139. if (alignmode == 4) and (not ino) then
  140. alignmode = 2
  141. end
  142.  
  143. local physp = PhysicalProperties.new(0.01, 0, 1, 0, 0)
  144. local function align(Part0, Part1)
  145.  
  146. local att0 = Instance.new("Attachment")
  147. att0.Orientation = v3_0
  148. att0.Position = v3_0
  149. att0.Name = "att0_" .. Part0.Name
  150. local att1 = Instance.new("Attachment")
  151. att1.Orientation = v3_0
  152. att1.Position = v3_0
  153. att1.Name = "att1_" .. Part1.Name
  154.  
  155. if alignmode == 4 then
  156.  
  157. local con = nil
  158. local rot, angles = math.rad(0.05), CFrame.Angles
  159. con1 = heartbeat:Connect(function()
  160. if Part0 and Part1 and att1 then
  161. if ino(Part0) then
  162. Part0.CFrame = Part1.CFrame * att1.CFrame * angles(0, 0, rot)
  163. rot = -rot
  164. end
  165. else
  166. con:Disconnect()
  167. end
  168. end)
  169.  
  170. else
  171.  
  172. Part0.CustomPhysicalProperties = physp
  173. if (alignmode == 1) or (alignmode == 2) then
  174. local ape = Instance.new("AlignPosition", att0)
  175. ape.ApplyAtCenterOfMass = false
  176. ape.MaxForce = inf
  177. ape.MaxVelocity = inf
  178. ape.ReactionForceEnabled = false
  179. ape.Responsiveness = 200
  180. ape.Attachment1 = att1
  181. ape.Attachment0 = att0
  182. ape.Name = "AlignPositionRtrue"
  183. ape.RigidityEnabled = true
  184. end
  185.  
  186. if (alignmode == 2) or (alignmode == 3) then
  187. local apd = Instance.new("AlignPosition", att0)
  188. apd.ApplyAtCenterOfMass = false
  189. apd.MaxForce = inf
  190. apd.MaxVelocity = inf
  191. apd.ReactionForceEnabled = false
  192. apd.Responsiveness = 200
  193. apd.Attachment1 = att1
  194. apd.Attachment0 = att0
  195. apd.Name = "AlignPositionRfalse"
  196. apd.RigidityEnabled = false
  197. end
  198.  
  199. local ao = Instance.new("AlignOrientation", att0)
  200. ao.MaxAngularVelocity = inf
  201. ao.MaxTorque = inf
  202. ao.PrimaryAxisOnly = false
  203. ao.ReactionTorqueEnabled = false
  204. ao.Responsiveness = 200
  205. ao.Attachment1 = att1
  206. ao.Attachment0 = att0
  207. ao.RigidityEnabled = false
  208.  
  209. end
  210.  
  211. if getNetlessVelocity then
  212. local vel = Part0.Velocity
  213. local con0, con1 = nil, nil
  214. if alignmode == 4 then
  215. con0 = stepped:Connect(function(_, delta)
  216. if not (Part0 and Part1) then return con0:Disconnect() and con1:Disconnect() end
  217. Part0.RotVelocity = Part1.RotVelocity
  218. end)
  219. con1 = heartbeat:Connect(function()
  220. if not (Part0 and Part1) then return con0:Disconnect() and con1:Disconnect() end
  221. Part0.Velocity = getNetlessVelocity(Part1.Velocity)
  222. end)
  223. else
  224. con0 = renderstepped:Connect(function()
  225. if not (Part0 and Part1) then return con0:Disconnect() and con1:Disconnect() end
  226. Part0.Velocity = vel
  227. end)
  228. con1 = heartbeat:Connect(function()
  229. if not (Part0 and Part1) then return con0:Disconnect() and con1:Disconnect() end
  230. vel = Part0.Velocity
  231. Part0.Velocity = getNetlessVelocity(Part1.Velocity)
  232. end)
  233. end
  234. end
  235.  
  236. att0:GetPropertyChangedSignal("Parent"):Connect(function()
  237. Part0 = att0.Parent
  238. if not Part0:IsA("BasePart") then
  239. att0 = nil
  240. Part0 = nil
  241. end
  242. end)
  243. att0.Parent = Part0
  244.  
  245. att1:GetPropertyChangedSignal("Parent"):Connect(function()
  246. Part1 = att1.Parent
  247. if not Part1:IsA("BasePart") then
  248. att1 = nil
  249. Part1 = nil
  250. end
  251. end)
  252. att1.Parent = Part1
  253. end
  254.  
  255. local function respawnrequest()
  256. local ccfr = ws.CurrentCamera.CFrame
  257. local c = lp.Character
  258. lp.Character = nil
  259. lp.Character = c
  260. local con = nil
  261. con = ws.CurrentCamera.Changed:Connect(function(prop)
  262. if (prop ~= "Parent") and (prop ~= "CFrame") then
  263. return
  264. end
  265. ws.CurrentCamera.CFrame = ccfr
  266. con:Disconnect()
  267. end)
  268. end
  269.  
  270. local destroyhum = (method == 4) or (method == 5)
  271. local breakjoints = (method == 0) or (method == 4)
  272. local antirespawn = (method == 0) or (method == 2) or (method == 3)
  273.  
  274. hatcollide = hatcollide and (method == 0)
  275.  
  276. addtools = addtools and gp(lp, "Backpack", "Backpack")
  277.  
  278. if shp and (simradius == "shp") then
  279. spawn(function()
  280. while c and heartbeat:Wait() do
  281. shp(lp, "SimulationRadius", inf)
  282. end
  283. end)
  284. elseif ssr and (simradius == "ssr") then
  285. spawn(function()
  286. while c and heartbeat:Wait() do
  287. ssr(inf)
  288. end
  289. end)
  290. end
  291.  
  292. antiragdoll = antiragdoll and function(v)
  293. if v:IsA("HingeConstraint") or v:IsA("BallSocketConstraint") then
  294. v.Parent = nil
  295. end
  296. end
  297.  
  298. if antiragdoll then
  299. for i, v in pairs(c:GetDescendants()) do
  300. antiragdoll(v)
  301. end
  302. c.DescendantAdded:Connect(antiragdoll)
  303. end
  304.  
  305. if antirespawn then
  306. respawnrequest()
  307. end
  308.  
  309. if method == 0 then
  310. wait(loadtime)
  311. if not c then
  312. return
  313. end
  314. end
  315.  
  316. if discharscripts then
  317. for i, v in pairs(c:GetChildren()) do
  318. if v:IsA("LocalScript") then
  319. v.Disabled = true
  320. end
  321. end
  322. elseif newanimate then
  323. local animate = gp(c, "Animate", "LocalScript")
  324. if animate and (not animate.Disabled) then
  325. animate.Disabled = true
  326. else
  327. newanimate = false
  328. end
  329. end
  330.  
  331. if addtools then
  332. for i, v in pairs(addtools:GetChildren()) do
  333. if v:IsA("Tool") then
  334. v.Parent = c
  335. end
  336. end
  337. end
  338.  
  339. pcall(function()
  340. settings().Physics.AllowSleep = false
  341. settings().Physics.PhysicsEnvironmentalThrottle = Enum.EnviromentalPhysicsThrottle.Disabled
  342. end)
  343.  
  344. local OLDscripts = {}
  345.  
  346. for i, v in pairs(c:GetDescendants()) do
  347. if v.ClassName == "Script" then
  348. table.insert(OLDscripts, v)
  349. end
  350. end
  351.  
  352. local scriptNames = {}
  353.  
  354. for i, v in pairs(c:GetDescendants()) do
  355. if v:IsA("BasePart") then
  356. local newName = tostring(i)
  357. local exists = true
  358. while exists do
  359. exists = false
  360. for i, v in pairs(OLDscripts) do
  361. if v.Name == newName then
  362. exists = true
  363. end
  364. end
  365. if exists then
  366. newName = newName .. "_"
  367. end
  368. end
  369. table.insert(scriptNames, newName)
  370. Instance.new("Script", v).Name = newName
  371. end
  372. end
  373.  
  374. c.Archivable = true
  375. local hum = c:FindFirstChildOfClass("Humanoid")
  376. if hum then
  377. for i, v in pairs(hum:GetPlayingAnimationTracks()) do
  378. v:Stop()
  379. end
  380. end
  381. local cl = c:Clone()
  382. if hum and humState16 then
  383. hum:ChangeState(Enum.HumanoidStateType.Physics)
  384. if destroyhum then
  385. wait(1.6)
  386. end
  387. end
  388. if hum and hum.Parent and destroyhum then
  389. hum:Destroy()
  390. end
  391.  
  392. if not c then
  393. return
  394. end
  395.  
  396. local head = gp(c, "Head", "BasePart")
  397. local torso = gp(c, "Torso", "BasePart") or gp(c, "UpperTorso", "BasePart")
  398. local root = gp(c, "HumanoidRootPart", "BasePart")
  399. if hatcollide and c:FindFirstChildOfClass("Accessory") then
  400. local anything = c:FindFirstChildOfClass("BodyColors") or gp(c, "Health", "Script")
  401. if not (torso and root and anything) then
  402. return
  403. end
  404. torso:Destroy()
  405. root:Destroy()
  406. anything:Destroy()
  407. end
  408.  
  409. local model = Instance.new("Model", c)
  410. model:GetPropertyChangedSignal("Parent"):Connect(function()
  411. if not (model and model.Parent) then
  412. model = nil
  413. end
  414. end)
  415.  
  416. for i, v in pairs(c:GetChildren()) do
  417. if v ~= model then
  418. if addtools and v:IsA("Tool") then
  419. for i1, v1 in pairs(v:GetDescendants()) do
  420. if v1 and v1.Parent and v1:IsA("BasePart") then
  421. local bv = Instance.new("BodyVelocity", v1)
  422. bv.Velocity = v3_0
  423. bv.MaxForce = v3(1000, 1000, 1000)
  424. bv.P = 1250
  425. bv.Name = "bv_" .. v.Name
  426. end
  427. end
  428. end
  429. v.Parent = model
  430. end
  431. end
  432.  
  433. if breakjoints then
  434. model:BreakJoints()
  435. else
  436. if head and torso then
  437. for i, v in pairs(model:GetDescendants()) do
  438. if v:IsA("JointInstance") then
  439. local save = false
  440. if (v.Part0 == torso) and (v.Part1 == head) then
  441. save = true
  442. end
  443. if (v.Part0 == head) and (v.Part1 == torso) then
  444. save = true
  445. end
  446. if save then
  447. if hedafterneck then
  448. hedafterneck = v
  449. end
  450. else
  451. v:Destroy()
  452. end
  453. end
  454. end
  455. end
  456. if method == 3 then
  457. task.delay(loadtime, pcall, model.BreakJoints, model)
  458. end
  459. end
  460.  
  461. for i, v in pairs(cl:GetChildren()) do
  462. v.Parent = c
  463. end
  464. cl:Destroy()
  465.  
  466. local uncollide, noclipcon = nil, nil
  467. if noclipAllParts then
  468. uncollide = function()
  469. if c then
  470. for i, v in pairs(c:GetDescendants()) do
  471. if v:IsA("BasePart") then
  472. v.CanCollide = false
  473. end
  474. end
  475. else
  476. noclipcon:Disconnect()
  477. end
  478. end
  479. else
  480. uncollide = function()
  481. if model then
  482. for i, v in pairs(model:GetDescendants()) do
  483. if v:IsA("BasePart") then
  484. v.CanCollide = false
  485. end
  486. end
  487. else
  488. noclipcon:Disconnect()
  489. end
  490. end
  491. end
  492. noclipcon = stepped:Connect(uncollide)
  493. uncollide()
  494.  
  495. for i, scr in pairs(model:GetDescendants()) do
  496. if (scr.ClassName == "Script") and table.find(scriptNames, scr.Name) then
  497. local Part0 = scr.Parent
  498. if Part0:IsA("BasePart") then
  499. for i1, scr1 in pairs(c:GetDescendants()) do
  500. if (scr1.ClassName == "Script") and (scr1.Name == scr.Name) and (not scr1:IsDescendantOf(model)) then
  501. local Part1 = scr1.Parent
  502. if (Part1.ClassName == Part0.ClassName) and (Part1.Name == Part0.Name) then
  503. align(Part0, Part1)
  504. scr:Destroy()
  505. scr1:Destroy()
  506. break
  507. end
  508. end
  509. end
  510. end
  511. end
  512. end
  513.  
  514. for i, v in pairs(c:GetDescendants()) do
  515. if v and v.Parent and (not v:IsDescendantOf(model)) then
  516. if v:IsA("Decal") then
  517. v.Transparency = 1
  518. elseif v:IsA("BasePart") then
  519. v.Transparency = 1
  520. v.Anchored = false
  521. elseif v:IsA("ForceField") then
  522. v.Visible = false
  523. elseif v:IsA("Sound") then
  524. v.Playing = false
  525. elseif v:IsA("BillboardGui") or v:IsA("SurfaceGui") or v:IsA("ParticleEmitter") or v:IsA("Fire") or v:IsA("Smoke") or v:IsA("Sparkles") then
  526. v.Enabled = false
  527. end
  528. end
  529. end
  530.  
  531. if newanimate then
  532. local animate = gp(c, "Animate", "LocalScript")
  533. if animate then
  534. animate.Disabled = false
  535. end
  536. end
  537.  
  538. if addtools then
  539. for i, v in pairs(c:GetChildren()) do
  540. if v:IsA("Tool") then
  541. v.Parent = addtools
  542. end
  543. end
  544. end
  545.  
  546. local hum0, hum1 = model:FindFirstChildOfClass("Humanoid"), c:FindFirstChildOfClass("Humanoid")
  547. if hum0 then
  548. hum0:GetPropertyChangedSignal("Parent"):Connect(function()
  549. if not (hum0 and hum0.Parent) then
  550. hum0 = nil
  551. end
  552. end)
  553. end
  554. if hum1 then
  555. hum1:GetPropertyChangedSignal("Parent"):Connect(function()
  556. if not (hum1 and hum1.Parent) then
  557. hum1 = nil
  558. end
  559. end)
  560.  
  561. ws.CurrentCamera.CameraSubject = hum1
  562. local camSubCon = nil
  563. local function camSubFunc()
  564. camSubCon:Disconnect()
  565. if c and hum1 then
  566. ws.CurrentCamera.CameraSubject = hum1
  567. end
  568. end
  569. camSubCon = renderstepped:Connect(camSubFunc)
  570. if hum0 then
  571. hum0:GetPropertyChangedSignal("Jump"):Connect(function()
  572. if hum1 then
  573. hum1.Jump = hum0.Jump
  574. end
  575. end)
  576. else
  577. respawnrequest()
  578. end
  579. end
  580.  
  581. local rb = Instance.new("BindableEvent", c)
  582. rb.Event:Connect(function()
  583. rb:Destroy()
  584. sg:SetCore("ResetButtonCallback", true)
  585. if destroyhum then
  586. if c then c:BreakJoints() end
  587. return
  588. end
  589. if model and hum0 and (hum0.Health > 0) then
  590. model:BreakJoints()
  591. hum0.Health = 0
  592. end
  593. if antirespawn then
  594. respawnrequest()
  595. end
  596. end)
  597. sg:SetCore("ResetButtonCallback", rb)
  598.  
  599. spawn(function()
  600. while wait() and c do
  601. if hum0 and hum1 then
  602. hum1.Jump = hum0.Jump
  603. end
  604. end
  605. sg:SetCore("ResetButtonCallback", true)
  606. end)
  607.  
  608. R15toR6 = R15toR6 and hum1 and (hum1.RigType == Enum.HumanoidRigType.R15)
  609. if R15toR6 then
  610. local part = gp(c, "HumanoidRootPart", "BasePart") or gp(c, "UpperTorso", "BasePart") or gp(c, "LowerTorso", "BasePart") or gp(c, "Head", "BasePart") or c:FindFirstChildWhichIsA("BasePart")
  611. if part then
  612. local cfr = part.CFrame
  613. local R6parts = {
  614. head = {
  615. Name = "Head",
  616. Size = v3(2, 1, 1),
  617. R15 = {
  618. Head = 0
  619. }
  620. },
  621. torso = {
  622. Name = "Torso",
  623. Size = v3(2, 2, 1),
  624. R15 = {
  625. UpperTorso = 0.2,
  626. LowerTorso = -0.8
  627. }
  628. },
  629. root = {
  630. Name = "HumanoidRootPart",
  631. Size = v3(2, 2, 1),
  632. R15 = {
  633. HumanoidRootPart = 0
  634. }
  635. },
  636. leftArm = {
  637. Name = "Left Arm",
  638. Size = v3(1, 2, 1),
  639. R15 = {
  640. LeftHand = -0.849,
  641. LeftLowerArm = -0.174,
  642. LeftUpperArm = 0.415
  643. }
  644. },
  645. rightArm = {
  646. Name = "Right Arm",
  647. Size = v3(1, 2, 1),
  648. R15 = {
  649. RightHand = -0.849,
  650. RightLowerArm = -0.174,
  651. RightUpperArm = 0.415
  652. }
  653. },
  654. leftLeg = {
  655. Name = "Left Leg",
  656. Size = v3(1, 2, 1),
  657. R15 = {
  658. LeftFoot = -0.85,
  659. LeftLowerLeg = -0.29,
  660. LeftUpperLeg = 0.49
  661. }
  662. },
  663. rightLeg = {
  664. Name = "Right Leg",
  665. Size = v3(1, 2, 1),
  666. R15 = {
  667. RightFoot = -0.85,
  668. RightLowerLeg = -0.29,
  669. RightUpperLeg = 0.49
  670. }
  671. }
  672. }
  673. for i, v in pairs(c:GetChildren()) do
  674. if v:IsA("BasePart") then
  675. for i1, v1 in pairs(v:GetChildren()) do
  676. if v1:IsA("Motor6D") then
  677. v1.Part0 = nil
  678. end
  679. end
  680. end
  681. end
  682. part.Archivable = true
  683. for i, v in pairs(R6parts) do
  684. local part = part:Clone()
  685. part:ClearAllChildren()
  686. part.Name = v.Name
  687. part.Size = v.Size
  688. part.CFrame = cfr
  689. part.Anchored = false
  690. part.Transparency = 1
  691. part.CanCollide = false
  692. for i1, v1 in pairs(v.R15) do
  693. local R15part = gp(c, i1, "BasePart")
  694. local att = gp(R15part, "att1_" .. i1, "Attachment")
  695. if R15part then
  696. local weld = Instance.new("Weld", R15part)
  697. weld.Name = "Weld_" .. i1
  698. weld.Part0 = part
  699. weld.Part1 = R15part
  700. weld.C0 = cf(0, v1, 0)
  701. weld.C1 = cf(0, 0, 0)
  702. R15part.Massless = true
  703. R15part.Name = "R15_" .. i1
  704. R15part.Parent = part
  705. if att then
  706. att.Parent = part
  707. att.Position = v3(0, v1, 0)
  708. end
  709. end
  710. end
  711. part.Parent = c
  712. R6parts[i] = part
  713. end
  714. local R6joints = {
  715. neck = {
  716. Parent = R6parts.torso,
  717. Name = "Neck",
  718. Part0 = R6parts.torso,
  719. Part1 = R6parts.head,
  720. C0 = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0),
  721. C1 = cf(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  722. },
  723. rootJoint = {
  724. Parent = R6parts.root,
  725. Name = "RootJoint" ,
  726. Part0 = R6parts.root,
  727. Part1 = R6parts.torso,
  728. C0 = cf(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0),
  729. C1 = cf(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  730. },
  731. rightShoulder = {
  732. Parent = R6parts.torso,
  733. Name = "Right Shoulder",
  734. Part0 = R6parts.torso,
  735. Part1 = R6parts.rightArm,
  736. C0 = cf(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0),
  737. C1 = cf(-0.5, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  738. },
  739. leftShoulder = {
  740. Parent = R6parts.torso,
  741. Name = "Left Shoulder",
  742. Part0 = R6parts.torso,
  743. Part1 = R6parts.leftArm,
  744. C0 = cf(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),
  745. C1 = cf(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  746. },
  747. rightHip = {
  748. Parent = R6parts.torso,
  749. Name = "Right Hip",
  750. Part0 = R6parts.torso,
  751. Part1 = R6parts.rightLeg,
  752. C0 = cf(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0),
  753. C1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  754. },
  755. leftHip = {
  756. Parent = R6parts.torso,
  757. Name = "Left Hip" ,
  758. Part0 = R6parts.torso,
  759. Part1 = R6parts.leftLeg,
  760. C0 = cf(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),
  761. C1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  762. }
  763. }
  764. for i, v in pairs(R6joints) do
  765. local joint = Instance.new("Motor6D")
  766. for prop, val in pairs(v) do
  767. joint[prop] = val
  768. end
  769. R6joints[i] = joint
  770. end
  771. if hum1 then
  772. hum1.RigType = Enum.HumanoidRigType.R6
  773. hum1.HipHeight = 0
  774. end
  775. end
  776. end
  777.  
  778. local torso1 = torso
  779. torso = gp(c, "Torso", "BasePart") or ((not R15toR6) and gp(c, torso.Name, "BasePart"))
  780. if (typeof(hedafterneck) == "Instance") and head and torso and torso1 then
  781. local conNeck = nil
  782. local conTorso = nil
  783. local contorso1 = nil
  784. local aligns = {}
  785. local function enableAligns()
  786. conNeck:Disconnect()
  787. conTorso:Disconnect()
  788. conTorso1:Disconnect()
  789. for i, v in pairs(aligns) do
  790. v.Enabled = true
  791. end
  792. end
  793. conNeck = hedafterneck.Changed:Connect(function(prop)
  794. if table.find({"Part0", "Part1", "Parent"}, prop) then
  795. enableAligns()
  796. end
  797. end)
  798. conTorso = torso:GetPropertyChangedSignal("Parent"):Connect(enableAligns)
  799. conTorso1 = torso1:GetPropertyChangedSignal("Parent"):Connect(enableAligns)
  800. for i, v in pairs(head:GetDescendants()) do
  801. if v:IsA("AlignPosition") or v:IsA("AlignOrientation") then
  802. i = tostring(i)
  803. aligns[i] = v
  804. v:GetPropertyChangedSignal("Parent"):Connect(function()
  805. aligns[i] = nil
  806. end)
  807. v.Enabled = false
  808. end
  809. end
  810. end
  811.  
  812. local flingpart0 = gp(model, flingpart, "BasePart") or gp(gp(model, flingpart, "Accessory"), "Handle", "BasePart")
  813. local flingpart1 = gp(c, flingpart, "BasePart") or gp(gp(c, flingpart, "Accessory"), "Handle", "BasePart")
  814.  
  815. local fling = function() end
  816. if flingpart0 and flingpart1 then
  817. flingpart0:GetPropertyChangedSignal("Parent"):Connect(function()
  818. if not (flingpart0 and flingpart0.Parent) then
  819. flingpart0 = nil
  820. fling = function() end
  821. end
  822. end)
  823. flingpart0.Archivable = true
  824. flingpart1:GetPropertyChangedSignal("Parent"):Connect(function()
  825. if not (flingpart1 and flingpart1.Parent) then
  826. flingpart1 = nil
  827. fling = function() end
  828. end
  829. end)
  830. local att0 = gp(flingpart0, "att0_" .. flingpart0.Name, "Attachment")
  831. local att1 = gp(flingpart1, "att1_" .. flingpart1.Name, "Attachment")
  832. if att0 and att1 then
  833. att0:GetPropertyChangedSignal("Parent"):Connect(function()
  834. if not (att0 and att0.Parent) then
  835. att0 = nil
  836. fling = function() end
  837. end
  838. end)
  839. att1:GetPropertyChangedSignal("Parent"):Connect(function()
  840. if not (att1 and att1.Parent) then
  841. att1 = nil
  842. fling = function() end
  843. end
  844. end)
  845. local lastfling = nil
  846. local mouse = lp:GetMouse()
  847. fling = function(target, duration, rotVelocity)
  848. if typeof(target) == "Instance" then
  849. if target:IsA("BasePart") then
  850. target = target.Position
  851. elseif target:IsA("Model") then
  852. target = gp(target, "HumanoidRootPart", "BasePart") or gp(target, "Torso", "BasePart") or gp(target, "UpperTorso", "BasePart") or target:FindFirstChildWhichIsA("BasePart")
  853. if target then
  854. target = target.Position
  855. else
  856. return
  857. end
  858. elseif target:IsA("Humanoid") then
  859. target = target.Parent
  860. if not (target and target:IsA("Model")) then
  861. return
  862. end
  863. target = gp(target, "HumanoidRootPart", "BasePart") or gp(target, "Torso", "BasePart") or gp(target, "UpperTorso", "BasePart") or target:FindFirstChildWhichIsA("BasePart")
  864. if target then
  865. target = target.Position
  866. else
  867. return
  868. end
  869. else
  870. return
  871. end
  872. elseif typeof(target) == "CFrame" then
  873. target = target.Position
  874. elseif typeof(target) ~= "Vector3" then
  875. target = mouse.Hit
  876. if target then
  877. target = target.Position
  878. else
  879. return
  880. end
  881. end
  882. if target.Y < ws xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed flingpart.Name = "flingpart_" xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed> 0.5 then
  883. flingpart0.Transparency = 0.5
  884. end
  885. att1.Parent = flingpart
  886. local con = nil
  887. local rotchg = v3(0, rotVelocity.Unit.Y * -1000, 0)
  888. con = heartbeat:Connect(function(delta)
  889. if target and (lastfling == target) and flingpart and flingpart0 and flingpart1 and att0 and att1 then
  890. flingpart.Orientation += rotchg * delta
  891. flingpart0.RotVelocity = rotVelocity
  892. else
  893. con:Disconnect()
  894. end
  895. end)
  896. if alignmode ~= 4 then
  897. local con = nil
  898. con = renderstepped:Connect(function()
  899. if flingpart0 and target then
  900. flingpart0.RotVelocity = v3_0
  901. else
  902. con:Disconnect()
  903. end
  904. end)
  905. end
  906. wait(duration)
  907. if lastfling ~= target then
  908. if flingpart then
  909. if att1 and (att1.Parent == flingpart) then
  910. att1.Parent = flingpart1
  911. end
  912. flingpart:Destroy()
  913. end
  914. return
  915. end
  916. target = nil
  917. if not (flingpart and flingpart0 and flingpart1 and att0 and att1) then
  918. return
  919. end
  920. flingpart0.RotVelocity = v3_0
  921. att1.Parent = flingpart1
  922. if flingpart then
  923. flingpart:Destroy()
  924. end
  925. end
  926. end
  927. end
  928.  
  929. --start script--
  930.  
  931.  
  932.  
  933.  
  934. tweenservice = game:GetService("TweenService")
  935. p = game.Players.LocalPlayer
  936. ch = p.Character
  937. hum = ch:FindFirstChildOfClass("Humanoid")
  938. root = ch.HumanoidRootPart
  939. Root = ch.HumanoidRootPart
  940. sine = 0
  941. change = 1
  942. head = ch.Head
  943. leftarm = ch['Left Arm']
  944. rightarm = ch['Right Arm']
  945. leftleg = ch['Left Leg']
  946. rightleg = ch['Right Leg']
  947. tor = ch['Torso']
  948. bwait = false
  949. attack = false
  950.  
  951. -- Welds
  952.  
  953. neck = Instance.new("Weld",ch.Torso)
  954. neck.Part0 = ch.Torso
  955. neck.Part1 = ch.Head
  956. neck.C0 = CFrame.new(0,1,0)
  957. neck.C1 = CFrame.new(0,-0.5,0)
  958.  
  959. torso = Instance.new("Weld",root)
  960. torso.Part0 = root
  961. torso.Part1 = ch.Torso
  962.  
  963.  
  964. rs = Instance.new("Weld",ch.Torso)
  965. rs.Part0 = ch.Torso
  966. rs.Part1 = ch["Right Arm"]
  967. rs.C0 = CFrame.new(1.5,0.5,0)
  968. rs.C1 = CFrame.new(0,0.5,0)
  969.  
  970. ls = Instance.new("Weld",ch.Torso)
  971. ls.Part0 = ch.Torso
  972. ls.Part1 = ch["Left Arm"]
  973. ls.C0 = CFrame.new(-1.5,0.5,0)
  974. ls.C1 = CFrame.new(0,0.5,0)
  975.  
  976. rh = Instance.new("Weld",ch.Torso)
  977. rh.Part0 = ch.Torso
  978. rh.Part1 = ch["Right Leg"]
  979. rh.C0 = CFrame.new(0.5,-1,0)
  980. rh.C1 = CFrame.new(0,1,0)
  981.  
  982. lh = Instance.new("Weld",ch.Torso)
  983. lh.Part0 = ch.Torso
  984. lh.Part1 = ch["Left Leg"]
  985. lh.C0 = CFrame.new(-0.5,-1,0)
  986. lh.C1 = CFrame.new(0,1,0)
  987.  
  988.  
  989. local plr = game.Players.LocalPlayer
  990. local chr = plr.Character
  991. local redball = chr["RedStickman"].Handle
  992.  
  993. redball:BreakJoints()
  994. local Weld = Instance.new("Weld", game.Players.LocalPlayer.Character)
  995. Weld.Part1 = redball
  996. Weld.Part0 = game:GetService("Players").LocalPlayer.Character["Right Arm"]
  997. Weld.C0 = CFrame.new(0,-1,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  998.  
  999. local exphat = chr["exp_1"].Handle
  1000. exphat:BreakJoints()
  1001. local Weld = Instance.new("Weld", game.Players.LocalPlayer.Character)
  1002. Weld.Part1 = exphat
  1003. Weld.Part0 = game:GetService("Players").LocalPlayer.Character.Torso
  1004. Weld.C0 = CFrame.new(0,0,0.02)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(0))
  1005.  
  1006. local exphat = chr["exp_2"].Handle
  1007. exphat:BreakJoints()
  1008. local Weld = Instance.new("Weld", game.Players.LocalPlayer.Character)
  1009. Weld.Part1 = exphat
  1010. Weld.Part0 = game:GetService("Players").LocalPlayer.Character.Torso
  1011. Weld.C0 = CFrame.new(0,0,0.02)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(0))
  1012.  
  1013. local exphat = chr["exp_3"].Handle
  1014. exphat:BreakJoints()
  1015. local Weld = Instance.new("Weld", game.Players.LocalPlayer.Character)
  1016. Weld.Part1 = exphat
  1017. Weld.Part0 = game:GetService("Players").LocalPlayer.Character.Torso
  1018. Weld.C0 = CFrame.new(0,0,0.02)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(0))
  1019.  
  1020. local exphat = chr["exp_4"].Handle
  1021. exphat:BreakJoints()
  1022. local Weld = Instance.new("Weld", game.Players.LocalPlayer.Character)
  1023. Weld.Part1 = exphat
  1024. Weld.Part0 = game:GetService("Players").LocalPlayer.Character.Torso
  1025. Weld.C0 = CFrame.new(0,0,0.02)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(0))
  1026.  
  1027. local exphat = chr["exp_5"].Handle
  1028. exphat:BreakJoints()
  1029. local Weld = Instance.new("Weld", game.Players.LocalPlayer.Character)
  1030. Weld.Part1 = exphat
  1031. Weld.Part0 = game:GetService("Players").LocalPlayer.Character.Torso
  1032. Weld.C0 = CFrame.new(0,0,0.02)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(0))
  1033.  
  1034.  
  1035.  
  1036.  
  1037.  
  1038. function tweenobject(object,stuff,edirection,estyle,speed,waitthing)
  1039. local speedthing = 1
  1040. local tween = tweenservice:Create(object,TweenInfo.new(speed/speedthing,estyle,edirection,0,false,0),stuff)
  1041. tween:Play()
  1042. if waitthing == true then
  1043. tween.Completed:Wait()
  1044. tween:Destroy()
  1045. end
  1046. end
  1047.  
  1048.  
  1049.  
  1050.  
  1051.  
  1052.  
  1053.  
  1054.  
  1055. ch.Humanoid.WalkSpeed = 16
  1056. holdingshift = false
  1057.  
  1058.  
  1059.  
  1060.  
  1061.  
  1062. local UIS = game:GetService("UserInputService")
  1063.  
  1064. UIS.InputBegan:Connect(function(Input, GameProcessedEvent)
  1065. if Input.KeyCode == Enum.KeyCode[sprintkey] then
  1066. if anim ~= 'idle' then
  1067. holdingshift = true
  1068. ch.Humanoid.WalkSpeed = 60
  1069. end
  1070. end
  1071. end)
  1072.  
  1073.  
  1074. UIS.InputEnded:Connect(function(Input, GameProcessedEvent)
  1075. if Input.KeyCode == Enum.KeyCode[sprintkey] then
  1076. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = NormalSpeed
  1077. holdingshift = false
  1078. ch.Humanoid.WalkSpeed = 16
  1079. end
  1080. end)
  1081.  
  1082.  
  1083.  
  1084.  
  1085.  
  1086.  
  1087.  
  1088.  
  1089.  
  1090.  
  1091.  
  1092. mouse = game.Players.LocalPlayer:GetMouse()
  1093. mouse.KeyDown:connect(function(key)
  1094. if key == rejoinkeybind then
  1095. local ts = game:GetService("TeleportService")
  1096. local p = game:GetService("Players").LocalPlayer
  1097. ts:Teleport(game.PlaceId, p)
  1098. elseif key == resetballkeybind then
  1099. if throwcheck == true then
  1100. redball:BreakJoints()
  1101. local Weld = Instance.new("Weld", game.Players.LocalPlayer.Character)
  1102. Weld.Part1 = redball
  1103. Weld.Part0 = game:GetService("Players").LocalPlayer.Character["Right Arm"]
  1104. Weld.C0 = CFrame.new(0,-1,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  1105.  
  1106. local exphat = chr["exp_1"].Handle
  1107. exphat:BreakJoints()
  1108. local Weld = Instance.new("Weld", game.Players.LocalPlayer.Character)
  1109. Weld.Part1 = exphat
  1110. Weld.Part0 = game:GetService("Players").LocalPlayer.Character.Torso
  1111. Weld.C0 = CFrame.new(0,0,0.02)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(0))
  1112.  
  1113. local exphat = chr["exp_2"].Handle
  1114. exphat:BreakJoints()
  1115. local Weld = Instance.new("Weld", game.Players.LocalPlayer.Character)
  1116. Weld.Part1 = exphat
  1117. Weld.Part0 = game:GetService("Players").LocalPlayer.Character.Torso
  1118. Weld.C0 = CFrame.new(0,0,0.02)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(0))
  1119.  
  1120. local exphat = chr["exp_3"].Handle
  1121. exphat:BreakJoints()
  1122. local Weld = Instance.new("Weld", game.Players.LocalPlayer.Character)
  1123. Weld.Part1 = exphat
  1124. Weld.Part0 = game:GetService("Players").LocalPlayer.Character.Torso
  1125. Weld.C0 = CFrame.new(0,0,0.02)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(0))
  1126.  
  1127. local exphat = chr["exp_4"].Handle
  1128. exphat:BreakJoints()
  1129. local Weld = Instance.new("Weld", game.Players.LocalPlayer.Character)
  1130. Weld.Part1 = exphat
  1131. Weld.Part0 = game:GetService("Players").LocalPlayer.Character.Torso
  1132. Weld.C0 = CFrame.new(0,0,0.02)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(0))
  1133.  
  1134. local exphat = chr["exp_5"].Handle
  1135. exphat:BreakJoints()
  1136. local Weld = Instance.new("Weld", game.Players.LocalPlayer.Character)
  1137. Weld.Part1 = exphat
  1138. Weld.Part0 = game:GetService("Players").LocalPlayer.Character.Torso
  1139. Weld.C0 = CFrame.new(0,0,0.02)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(0))
  1140.  
  1141.  
  1142.  
  1143. game:GetService("Players").LocalPlayer.Character:FindFirstChild('BALL'):destroy()
  1144. if game:GetService("Players").LocalPlayer.Character:FindFirstChild('explosion1') then
  1145. game:GetService("Players").LocalPlayer.Character:FindFirstChild('explosion1'):destroy()
  1146. game:GetService("Players").LocalPlayer.Character:FindFirstChild('explosion2'):destroy()
  1147. game:GetService("Players").LocalPlayer.Character:FindFirstChild('explosion3'):destroy()
  1148. game:GetService("Players").LocalPlayer.Character:FindFirstChild('explosion4'):destroy()
  1149. game:GetService("Players").LocalPlayer.Character:FindFirstChild('explosion5'):destroy()
  1150. end
  1151. throwcheck = false
  1152. STOPPP = false
  1153. wait(1)
  1154. attack = false
  1155. end
  1156. end
  1157.  
  1158.  
  1159. end)
  1160.  
  1161.  
  1162.  
  1163.  
  1164. mouse.Button1Down:connect(function()
  1165. if bwait == false and attack == false then
  1166. attack = true
  1167. holding = true
  1168. bwait = true
  1169. throwcheck = true
  1170. for i = 0,2,0.1 do
  1171. if anim == "idle" then
  1172. tweenobject(neck,{C0 = CFrame.new(0,1,0)*CFrame.Angles(math.rad(-3),math.rad(50),math.rad(7))},Enum.EasingDirection.Out,Enum.EasingStyle.Quart,0.5,false)
  1173. else
  1174. tweenobject(neck,{C0 = CFrame.new(0,1,0)*CFrame.Angles(math.rad(-3),math.rad(0),math.rad(7))},Enum.EasingDirection.Out,Enum.EasingStyle.Quart,0.5,false)
  1175. end
  1176. tweenobject(rs,{C0 = CFrame.new(1.5,0.8,0)*CFrame.Angles(math.rad(185),math.rad(0),math.rad(40))},Enum.EasingDirection.Out,Enum.EasingStyle.Quart,0.5,false)
  1177. tweenobject(ls,{C0 = CFrame.new(-1.3,0.5,-0.2)*CFrame.Angles(math.rad(0),math.rad(-45),math.rad(-55))},Enum.EasingDirection.Out,Enum.EasingStyle.Quart,0.5,false)
  1178. end
  1179.  
  1180.  
  1181. wait(0.5)
  1182. for i = 0,2,0.1 do
  1183. tweenobject(torso,{C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(30),math.rad(0))},Enum.EasingDirection.Out,Enum.EasingStyle.Quart,0.3,false)
  1184. tweenobject(neck,{C0 = CFrame.new(0,1,0)*CFrame.Angles(math.rad(-3),math.rad(-30),math.rad(7))},Enum.EasingDirection.Out,Enum.EasingStyle.Quart,0.3,false)
  1185. tweenobject(rs,{C0 = CFrame.new(1.5,0.5,-0.5)*CFrame.Angles(math.rad(80),math.rad(0),math.rad(20))},Enum.EasingDirection.Out,Enum.EasingStyle.Quart,0.3,false)
  1186. tweenobject(ls,{C0 = CFrame.new(-1.3,0.5,-0.2)*CFrame.Angles(math.rad(0),math.rad(-25),math.rad(-55))},Enum.EasingDirection.Out,Enum.EasingStyle.Quart,0.3,false)
  1187. end
  1188. throwball()
  1189. wait(0.5)
  1190. bwait = false
  1191. end
  1192. end)
  1193.  
  1194. mouse.Button1Up:connect(function()
  1195. holding = false
  1196. end)
  1197.  
  1198.  
  1199.  
  1200.  
  1201.  
  1202.  
  1203.  
  1204.  
  1205.  
  1206. function throwball()
  1207. e = 0
  1208. expcount2 = 0
  1209. expcount = 0
  1210. STOPPP = false
  1211. local player = game:GetService("Players").LocalPlayer
  1212. local character = player.Character
  1213. local mouse = player:GetMouse()
  1214. local ballpart = Instance.new("Part")
  1215. ballpart.Size = Vector3.new(1,1,1)
  1216. ballpart.CFrame = character['Right Arm'].CFrame * CFrame.new(0,-3,0)
  1217. ballpart.Parent = game.Players.LocalPlayer.Character
  1218. ballpart.Name = 'BALL'
  1219. ballpart.Shape = "Ball"
  1220. ballpart.Transparency = 1
  1221.  
  1222. local direction = mouse.Hit.LookVector
  1223. local forceMultipliter = _G.ThrowStrength * ballpart:GetMass()
  1224. ballpart:ApplyImpulse(direction * forceMultipliter)
  1225.  
  1226.  
  1227. redball:BreakJoints()
  1228. local Weld = Instance.new("Weld", game.Players.LocalPlayer.Character)
  1229. Weld.Part1 = redball
  1230. Weld.Part0 = ballpart
  1231. Weld.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  1232.  
  1233. --wait(0.05)
  1234. ballpart.Touched:connect(function(hit)
  1235. if hit:IsA("Part") and hit.Name ~= "Handle" and hit.Name ~= ch.HumanoidRootPart.Name then
  1236. if STOPPP == false then
  1237. throwing = true
  1238. STOPPP = true
  1239. print(hit)
  1240. explode()
  1241. e = e + 1
  1242. end
  1243. end
  1244. end)
  1245.  
  1246.  
  1247.  
  1248.  
  1249.  
  1250.  
  1251.  
  1252.  
  1253. end
  1254.  
  1255.  
  1256.  
  1257.  
  1258.  
  1259.  
  1260.  
  1261. function explode()
  1262. for i = 1,5 do
  1263. expcount = expcount + 1
  1264. local explosionpart = Instance.new("Part")
  1265. explosionpart.Size = Vector3.new(1,1,1)
  1266. explosionpart.CFrame = game:GetService("Players").LocalPlayer.Character:FindFirstChild('BALL').CFrame * CFrame.new(0,0,0)
  1267. explosionpart.Parent = game.Players.LocalPlayer.Character
  1268. explosionpart.Name = 'explosion' .. expcount
  1269. explosionpart.Shape = "Block"
  1270. explosionpart.Transparency = 1
  1271. local direction = Vector3.new(math.rad(math.random(-30,30)),math.rad(math.random(0,180)),math.rad(math.random(-30,30)))
  1272. local forceMultipliter = math.random(40,60) * explosionpart:GetMass()
  1273. explosionpart:ApplyImpulse(direction * forceMultipliter)
  1274. local exphat = chr["exp_"..expcount].Handle
  1275. exphat:BreakJoints()
  1276. local Weld = Instance.new("Weld", game.Players.LocalPlayer.Character)
  1277. Weld.Part1 = exphat
  1278. Weld.Part0 = game:GetService("Players").LocalPlayer.Character['explosion'..expcount]
  1279. Weld.C0 = CFrame.new(0,0,0.02)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  1280.  
  1281. end
  1282.  
  1283.  
  1284.  
  1285. wait(1.5)
  1286. redball:BreakJoints()
  1287. local Weld = Instance.new("Weld", game.Players.LocalPlayer.Character)
  1288. Weld.Part1 = redball
  1289. Weld.Part0 = game:GetService("Players").LocalPlayer.Character["Right Arm"]
  1290. Weld.C0 = CFrame.new(0,-1,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  1291.  
  1292. throwcheck = false
  1293. throwing = false
  1294. game:GetService("Players").LocalPlayer.Character:FindFirstChild('BALL'):destroy()
  1295.  
  1296. exploding = true
  1297. repeat
  1298. expcount2 = expcount2 + 1
  1299. for i,v in pairs(game.Players.LocalPlayer.Character:GetDescendants()) do
  1300. if v.Name == "explosion" ..expcount2 then
  1301. v.CanCollide = false
  1302. wait(0.2)
  1303. local exphat = chr["exp_".. expcount2].Handle
  1304. exphat:BreakJoints()
  1305. local Weld = Instance.new("Weld", game.Players.LocalPlayer.Character)
  1306. Weld.Part1 = exphat
  1307. Weld.Part0 = game:GetService("Players").LocalPlayer.Character.Torso
  1308. Weld.C0 = CFrame.new(0,0,0.02)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(0))
  1309.  
  1310. v:destroy()
  1311. end
  1312. end
  1313. until expcount2 > 4
  1314. repeat wait() until not ch:FindFirstChild('explosion1')
  1315. wait(1)
  1316. STOPPP = false
  1317. exploding = false
  1318. attack = false
  1319.  
  1320. end
  1321.  
  1322.  
  1323.  
  1324.  
  1325.  
  1326.  
  1327.  
  1328.  
  1329. --[[
  1330. --storage
  1331.  
  1332. ]]
  1333.  
  1334. local Brick = game:GetService("Players").LocalPlayer.Character.Model.HumanoidRootPart
  1335. local speed = 1
  1336. Brick.Material = "Glass"
  1337. Brick.Transparency = 0.7
  1338. heartbeat:connect(function()
  1339. for i = 0,1,0.001*speed do
  1340. Brick.Color = Color3.fromHSV(i,1,1) --creates a color using i
  1341. task.wait()
  1342. end
  1343. end)
  1344.  
  1345. local numbers = {-4,-3,-2,2,3,4}
  1346. heartbeat:connect(function()
  1347. rockps = ch.RedStickman.Handle.Position
  1348. if throwcheck == true then
  1349.  
  1350. fling(Vector3.new(rockps.X+numbers[math.random(#numbers)],rockps.Y+numbers[math.random(#numbers)],rockps.Z+numbers[math.random(#numbers)]),task.wait())
  1351. end
  1352. end)
  1353.  
  1354.  
  1355.  
  1356. while true do
  1357. game:GetService("RunService").Heartbeat:Wait()
  1358. sine = sine + change
  1359.  
  1360. local rlegray = Ray.new(ch["Right Leg"].Position + Vector3.new(0, 0.5, 0), Vector3.new(0, -2, 0))
  1361. local rlegpart, rlegendPoint = workspace:FindPartOnRay(rlegray, char)
  1362. local llegray = Ray.new(ch["Left Leg"].Position + Vector3.new(0, 0.5, 0), Vector3.new(0, -2, 0))
  1363. local llegpart, llegendPoint = workspace:FindPartOnRay(llegray, char)
  1364. local rightvector = (Root.Velocity * Root.CFrame.rightVector).X + (Root.Velocity * Root.CFrame.rightVector).Z
  1365. local lookvector = (Root.Velocity * Root.CFrame.lookVector).X + (Root.Velocity * Root.CFrame.lookVector).Z
  1366. if lookvector > ch.Humanoid.WalkSpeed then
  1367. lookvector = ch.Humanoid.WalkSpeed
  1368. end
  1369. if lookvector < -ch.Humanoid.WalkSpeed then
  1370. lookvector = -ch.Humanoid.WalkSpeed
  1371. end
  1372. if rightvector > ch.Humanoid.WalkSpeed then
  1373. rightvector = ch.Humanoid.WalkSpeed
  1374. end
  1375. if rightvector < -ch.Humanoid.WalkSpeed then
  1376. rightvector = -ch.Humanoid.WalkSpeed
  1377. end
  1378. local lookvel = lookvector / ch.Humanoid.WalkSpeed
  1379. local rightvel = rightvector / ch.Humanoid.WalkSpeed
  1380.  
  1381.  
  1382.  
  1383.  
  1384.  
  1385. if hum.MoveDirection.Magnitude > 0 then
  1386.  
  1387. anim = "walk"
  1388.  
  1389. else
  1390. anim = "idle"
  1391. end
  1392. if hum:GetState() == Enum.HumanoidStateType.Freefall then
  1393. anim = "jump"
  1394. end
  1395.  
  1396.  
  1397.  
  1398. if anim == "jump" then
  1399. if bwait == false then
  1400. tweenobject(torso,{C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(8),math.rad(0),math.rad(0))},Enum.EasingDirection.InOut,Enum.EasingStyle.Linear,0.1,false)
  1401.  
  1402. tweenobject(neck,{C0 = CFrame.new(0,1,0)*CFrame.Angles(math.rad(8),math.rad(0),math.rad(0))},Enum.EasingDirection.InOut,Enum.EasingStyle.Linear,0.1,false)
  1403. tweenobject(rs,{C0 = CFrame.new(1.5,0.8,0)*CFrame.Angles(math.rad(155+10*math.cos(sine/60)),math.rad(0),math.rad(10))},Enum.EasingDirection.InOut,Enum.EasingStyle.Linear,1,false)
  1404. tweenobject(ls,{C0 = CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-15))},Enum.EasingDirection.InOut,Enum.EasingStyle.Linear,0.1,false)
  1405. end
  1406. tweenobject(rh,{C0 = CFrame.new(0.5,0,-0.5)*CFrame.Angles(math.rad(-8),math.rad(0),math.rad(0))},Enum.EasingDirection.InOut,Enum.EasingStyle.Linear,0.1,false)
  1407. tweenobject(lh,{C0 = CFrame.new(-0.5,-0.75,-0.15)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))},Enum.EasingDirection.InOut,Enum.EasingStyle.Linear,0.1,false)
  1408. end
  1409. if root.Velocity.Y < -1 then
  1410. if bwait == false then
  1411. tweenobject(torso,{C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(-8),math.rad(0),math.rad(0))},Enum.EasingDirection.InOut,Enum.EasingStyle.Linear,1,false)
  1412.  
  1413. tweenobject(neck,{C0 = CFrame.new(0,1,0)*CFrame.Angles(math.rad(-8),math.rad(0),math.rad(0))},Enum.EasingDirection.InOut,Enum.EasingStyle.Linear,1,false)
  1414. tweenobject(rs,{C0 = CFrame.new(1.5,0.8,0)*CFrame.Angles(math.rad(190+10*math.cos(sine/60)),math.rad(0),math.rad(10))},Enum.EasingDirection.InOut,Enum.EasingStyle.Linear,1,false)
  1415. tweenobject(ls,{C0 = CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-65))},Enum.EasingDirection.InOut,Enum.EasingStyle.Linear,1,false)
  1416. end
  1417. tweenobject(rh,{C0 = CFrame.new(0.5,-0.5,-0.25)*CFrame.Angles(math.rad(-8),math.rad(0),math.rad(0))},Enum.EasingDirection.InOut,Enum.EasingStyle.Linear,1,false)
  1418. tweenobject(lh,{C0 = CFrame.new(-0.5,-0.75,-0.15)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))},Enum.EasingDirection.InOut,Enum.EasingStyle.Linear,1,false)
  1419. end
  1420.  
  1421. if anim == "idle" then
  1422. for i = 0,2,0.1 do
  1423. if bwait == false then
  1424. tweenobject(torso,{C0 = CFrame.new(0,0+0.1*math.cos(sine/56),0)*CFrame.Angles(math.rad(0),math.rad(-55),math.rad(0))},Enum.EasingDirection.InOut,Enum.EasingStyle.Linear,1,false)
  1425.  
  1426. tweenobject(neck,{C0 = CFrame.new(0,1,0)*CFrame.Angles(math.rad(-7+3*math.cos(sine/70)),math.rad(50),math.rad(7-3*math.cos(sine/70)))},Enum.EasingDirection.InOut,Enum.EasingStyle.Linear,1,false)
  1427. tweenobject(rs,{C0 = CFrame.new(1.5,0.8,0)*CFrame.Angles(math.rad(185+10*math.cos(sine/60)),math.rad(0),math.rad(10))},Enum.EasingDirection.InOut,Enum.EasingStyle.Linear,1,false)
  1428. tweenobject(ls,{C0 = CFrame.new(-1.3,0.5,-0.2)*CFrame.Angles(math.rad(0),math.rad(-25),math.rad(-85-5*math.cos(sine/70)))},Enum.EasingDirection.InOut,Enum.EasingStyle.Linear,1,false)
  1429. end
  1430. tweenobject(rh,{C0 = CFrame.new(0.5,-1-0.1*math.cos(sine/56),0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(5))},Enum.EasingDirection.InOut,Enum.EasingStyle.Linear,1,false)
  1431. tweenobject(lh,{C0 = CFrame.new(-0.5,-1-0.1*math.cos(sine/56),0)*CFrame.Angles(math.rad(-5+5*math.cos(sine/70)),math.rad(0),math.rad(-15))},Enum.EasingDirection.InOut,Enum.EasingStyle.Linear,1,false)
  1432. end
  1433. end
  1434.  
  1435.  
  1436.  
  1437. if anim == "walk" then
  1438. if holdingshift == false then
  1439. for i = 0,2,0.1 do
  1440. if bwait == false then
  1441. tweenobject(torso,{C0 = CFrame.new(0,0+0.1*math.cos(sine/4),0)*CFrame.Angles(math.rad(0-lookvel*5),math.rad(0),math.rad(0-rightvel*3+tor.RotVelocity.Y*2))},Enum.EasingDirection.InOut,Enum.EasingStyle.Linear,0.1,false)
  1442.  
  1443. tweenobject(neck,{C0 = CFrame.new(0,1,0)*CFrame.Angles(math.rad(0-lookvel*3),math.rad(0-rightvel*10+5*math.cos(sine/120)+tor.RotVelocity.Y*3),math.rad(0+rightvel*4))},Enum.EasingDirection.InOut,Enum.EasingStyle.Linear,0.1,false)
  1444. tweenobject(rs,{C0 = CFrame.new(1.5,0.8,0)*CFrame.Angles(math.rad(185+10*math.cos(sine/60)),math.rad(0),math.rad(10))},Enum.EasingDirection.InOut,Enum.EasingStyle.Linear,1,false)
  1445. tweenobject(ls,{C0 = CFrame.new(-1.5,0.5+0.1*math.cos(sine/8),0)*CFrame.Angles(math.rad(0+40*math.sin(sine/8)*lookvel),math.rad(0),math.rad(-4+7*math.cos(sine/8)*rightvel))},Enum.EasingDirection.InOut,Enum.EasingStyle.Linear,0.1,false)
  1446. end
  1447. tweenobject(rh,{C0 = CFrame.new(0.5,-1+0.5*math.cos(sine/8),0+0*math.cos(sine/8)*lookvel)*CFrame.Angles(math.rad(0+50*math.sin(sine/8)*lookvel),math.rad(0),math.rad(5+50*math.sin(sine/8))*rightvel-tor.RotVelocity.Y/20)},Enum.EasingDirection.InOut,Enum.EasingStyle.Linear,0.1,false)
  1448. tweenobject(lh,{C0 = CFrame.new(-0.5,-1+-0.5*math.cos(sine/8),0+0*math.cos(sine/8)*lookvel)*CFrame.Angles(math.rad(0-50*math.sin(sine/8)*lookvel),math.rad(0),math.rad(-5+-50*math.sin(sine/8))*rightvel-tor.RotVelocity.Y/20)},Enum.EasingDirection.InOut,Enum.EasingStyle.Linear,0.1,false)
  1449. end
  1450. end
  1451. end
  1452. if anim == "walk" then
  1453. if holdingshift == true then
  1454. for i = 0,2,0.1 do
  1455. if bwait == false then
  1456. tweenobject(torso,{C0 = CFrame.new(0,0+0.1*math.cos(sine/2),0)*CFrame.Angles(math.rad(0-lookvel*20),math.rad(0),math.rad(0-rightvel*3+tor.RotVelocity.Y*2))},Enum.EasingDirection.InOut,Enum.EasingStyle.Linear,0.1,false)
  1457.  
  1458. tweenobject(neck,{C0 = CFrame.new(0,1,0)*CFrame.Angles(math.rad(10+5*math.cos(sine/2)-lookvel*3),math.rad(0-rightvel*40+5*math.cos(sine/120)+tor.RotVelocity.Y*3),math.rad(0+rightvel*4))},Enum.EasingDirection.InOut,Enum.EasingStyle.Linear,0.1,false)
  1459. tweenobject(rs,{C0 = CFrame.new(1.5,0.8,0)*CFrame.Angles(math.rad(185+10*math.cos(sine/60)),math.rad(0),math.rad(10))},Enum.EasingDirection.InOut,Enum.EasingStyle.Linear,1,false)
  1460. tweenobject(ls,{C0 = CFrame.new(-1.5,0.5+0.1*math.cos(sine/4),0)*CFrame.Angles(math.rad(0+60*math.sin(sine/4)*lookvel),math.rad(0),math.rad(-4+7*math.cos(sine/4)*rightvel))},Enum.EasingDirection.InOut,Enum.EasingStyle.Linear,0.1,false)
  1461. end
  1462. tweenobject(rh,{C0 = CFrame.new(0.5,-1+0.5*math.cos(sine/4),0+0*math.cos(sine/4)*lookvel)*CFrame.Angles(math.rad(0+100*math.sin(sine/4)*lookvel),math.rad(0),math.rad(5+60*math.sin(sine/4))*rightvel-tor.RotVelocity.Y/20)},Enum.EasingDirection.InOut,Enum.EasingStyle.Linear,0.1,false)
  1463. tweenobject(lh,{C0 = CFrame.new(-0.5,-1+-0.5*math.cos(sine/4),0+0*math.cos(sine/4)*lookvel)*CFrame.Angles(math.rad(0-100*math.sin(sine/4)*lookvel),math.rad(0),math.rad(-5+-60*math.sin(sine/4))*rightvel-tor.RotVelocity.Y/20)},Enum.EasingDirection.InOut,Enum.EasingStyle.Linear,0.1,false)
  1464. end
  1465. end
  1466. end
  1467.  
  1468.  
  1469.  
  1470.  
  1471.  
  1472.  
  1473. end
  1474.  
  1475.  
  1476.  
  1477.  
  1478.  
Add Comment
Please, Sign In to add comment