Advertisement
Hydasi

Chat Controller Script

Feb 2nd, 2023
512
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 46.22 KB | None | 0 0
  1. --made by rouxhaver/1+1=2
  2. --chat "/e chat <Display name>" to move your head to someone, then when you chat it looks like they chatted (;
  3.  
  4. --only works well in games without player collison, no chat gui and bubble chat (Like Rate My Avatar)
  5.  
  6. --recommended Head:
  7. --https://www.roblox.com/bundles/337/City-Life-Woman
  8.  
  9.  
  10.  
  11. --reanimate by MyWorld#4430 discord.gg/pYVHtSJmEY
  12. local v3_net, v3_808 = Vector3.new(0.1, 25.1, 0.1), Vector3.new(8, 0, 8)
  13. local function getNetlessVelocity(realPartVelocity)
  14. if realPartVelocity.Magnitude > 1 then
  15. local unit = realPartVelocity.Unit
  16. if (unit.Y > 0.25) or (unit.Y < -0.75) then
  17. return unit * (25.1 / unit.Y)
  18. end
  19. end
  20. return v3_net + realPartVelocity * v3_808
  21. end
  22. local simradius = "shp" --simulation radius (net bypass) method
  23. --"shp" - sethiddenproperty
  24. --"ssr" - setsimulationradius
  25. --false - disable
  26. local simrad = math.huge --simulation radius value
  27. local healthHide = false --moves your head away every 3 seconds so players dont see your health bar (alignmode 4 only)
  28. local reclaim = true --if you lost control over a part this will move your primary part to the part so you get it back (alignmode 4)
  29. local novoid = true --prevents parts from going under workspace.FallenPartsDestroyHeight if you control them (alignmode 4 only)
  30. local physp = nil --PhysicalProperties.new(0.01, 0, 1, 0, 0) --sets .CustomPhysicalProperties to this for each part
  31. local noclipAllParts = false --set it to true if you want noclip
  32. local antiragdoll = true --removes hingeConstraints and ballSocketConstraints from your character
  33. local newanimate = true --disables the animate script and enables after reanimation
  34. local discharscripts = true --disables all localScripts parented to your character before reanimation
  35. local R15toR6 = true --tries to convert your character to r6 if its r15
  36. local hatcollide = true --makes hats cancollide (credit to ShownApe) (works only with reanimate method 0)
  37. local humState16 = true --enables collisions for limbs before the humanoid dies (using hum:ChangeState)
  38. local addtools = false --puts all tools from backpack to character and lets you hold them after reanimation
  39. local hedafterneck = true --disable aligns for head and enable after neck or torso is removed
  40. local loadtime = game:GetService("Players").RespawnTime + 0.5 --anti respawn delay
  41. local method = 3 --reanimation method
  42. --methods:
  43. --0 - breakJoints (takes [loadtime] seconds to load)
  44. --1 - limbs
  45. --2 - limbs + anti respawn
  46. --3 - limbs + breakJoints after [loadtime] seconds
  47. --4 - remove humanoid + breakJoints
  48. --5 - remove humanoid + limbs
  49. local alignmode = 1 --AlignPosition mode
  50. --modes:
  51. --1 - AlignPosition rigidity enabled true
  52. --2 - 2 AlignPositions rigidity enabled both true and false
  53. --3 - AlignPosition rigidity enabled false
  54. --4 - no AlignPosition, CFrame only
  55. local flingpart = "HumanoidRootPart" --name of the part or the hat used for flinging
  56. --the fling function
  57. --usage: fling(target, duration, velocity)
  58. --target can be set to: basePart, CFrame, Vector3, character model or humanoid (flings at mouse.Hit if argument not provided)
  59. --duration (fling time in seconds) can be set to a number or a string convertable to a number (0.5s if not provided)
  60. --velocity (fling part rotation velocity) can be set to a vector3 value (Vector3.new(20000, 20000, 20000) if not provided)
  61.  
  62. local lp = game:GetService("Players").LocalPlayer
  63. local rs, ws, sg = game:GetService("RunService"), game:GetService("Workspace"), game:GetService("StarterGui")
  64. local stepped, heartbeat, renderstepped = rs.Stepped, rs.Heartbeat, rs.RenderStepped
  65. local twait, tdelay, rad, inf, abs, clamp = task.wait, task.delay, math.rad, math.huge, math.abs, math.clamp
  66. local cf, v3, angles = CFrame.new, Vector3.new, CFrame.Angles
  67. local v3_0, cf_0 = v3(0, 0, 0), cf(0, 0, 0)
  68.  
  69. local c = lp.Character
  70. if not (c and c.Parent) then
  71. return
  72. end
  73.  
  74. c:GetPropertyChangedSignal("Parent"):Connect(function()
  75. if not (c and c.Parent) then
  76. c = nil
  77. end
  78. end)
  79.  
  80. local clone, destroy, getchildren, getdescendants, isa = c.Clone, c.Destroy, c.GetChildren, c.GetDescendants, c.IsA
  81.  
  82. local function gp(parent, name, className)
  83. if typeof(parent) == "Instance" then
  84. for i, v in pairs(getchildren(parent)) do
  85. if (v.Name == name) and isa(v, className) then
  86. return v
  87. end
  88. end
  89. end
  90. return nil
  91. end
  92.  
  93. local fenv = getfenv()
  94.  
  95. local shp = fenv.sethiddenproperty or fenv.set_hidden_property or fenv.set_hidden_prop or fenv.sethiddenprop
  96. local ssr = fenv.setsimulationradius or fenv.set_simulation_radius or fenv.set_sim_radius or fenv.setsimradius or fenv.setsimrad or fenv.set_sim_rad
  97.  
  98. healthHide = healthHide and ((method == 0) or (method == 2) or (method == 3)) and gp(c, "Head", "BasePart")
  99.  
  100. local reclaim, lostpart = reclaim and c.PrimaryPart, nil
  101.  
  102. local function align(Part0, Part1)
  103.  
  104. local att0 = Instance.new("Attachment")
  105. att0.Position, att0.Orientation, att0.Name = v3_0, v3_0, "att0_" .. Part0.Name
  106. local att1 = Instance.new("Attachment")
  107. att1.Position, att1.Orientation, att1.Name = v3_0, v3_0, "att1_" .. Part1.Name
  108.  
  109. if alignmode == 4 then
  110.  
  111. local hide = false
  112. if Part0 == healthHide then
  113. healthHide = false
  114. tdelay(0, function()
  115. while twait(2.9) and Part0 and c do
  116. hide = #Part0:GetConnectedParts() == 1
  117. twait(0.1)
  118. hide = false
  119. end
  120. end)
  121. end
  122.  
  123. local rot = rad(0.05)
  124. local con0, con1 = nil, nil
  125. con0 = stepped:Connect(function()
  126. if not (Part0 and Part1) then return con0:Disconnect() and con1:Disconnect() end
  127. Part0.RotVelocity = Part1.RotVelocity
  128. end)
  129. local lastpos = Part0.Position
  130. con1 = heartbeat:Connect(function(delta)
  131. if not (Part0 and Part1 and att1) then return con0:Disconnect() and con1:Disconnect() end
  132. if (not Part0.Anchored) and (Part0.ReceiveAge == 0) then
  133. if lostpart == Part0 then
  134. lostpart = nil
  135. end
  136. local newcf = Part1.CFrame * att1.CFrame
  137. if Part1.Velocity.Magnitude > 0.1 then
  138. Part0.Velocity = getNetlessVelocity(Part1.Velocity)
  139. else
  140. local vel = (newcf.Position - lastpos) / delta
  141. Part0.Velocity = getNetlessVelocity(vel)
  142. if vel.Magnitude < 1 then
  143. rot = -rot
  144. newcf *= angles(0, 0, rot)
  145. end
  146. end
  147. lastpos = newcf.Position
  148. if lostpart and (Part0 == reclaim) then
  149. newcf = lostpart.CFrame
  150. elseif hide then
  151. newcf += v3(0, 3000, 0)
  152. end
  153. if novoid and (newcf.Y < ws.FallenPartsDestroyHeight + 0.1) then
  154. newcf += v3(0, ws.FallenPartsDestroyHeight + 0.1 - newcf.Y, 0)
  155. end
  156. Part0.CFrame = newcf
  157. elseif (not Part0.Anchored) and (abs(Part0.Velocity.X) < 45) and (abs(Part0.Velocity.Y) < 25) and (abs(Part0.Velocity.Z) < 45) then
  158. lostpart = Part0
  159. end
  160. end)
  161.  
  162. else
  163.  
  164. Part0.CustomPhysicalProperties = physp
  165. if (alignmode == 1) or (alignmode == 2) then
  166. local ape = Instance.new("AlignPosition")
  167. ape.MaxForce, ape.MaxVelocity, ape.Responsiveness = inf, inf, inf
  168. ape.ReactionForceEnabled, ape.RigidityEnabled, ape.ApplyAtCenterOfMass = false, true, false
  169. ape.Attachment0, ape.Attachment1, ape.Name = att0, att1, "AlignPositionRtrue"
  170. ape.Parent = att0
  171. end
  172.  
  173. if (alignmode == 2) or (alignmode == 3) then
  174. local apd = Instance.new("AlignPosition")
  175. apd.MaxForce, apd.MaxVelocity, apd.Responsiveness = inf, inf, inf
  176. apd.ReactionForceEnabled, apd.RigidityEnabled, apd.ApplyAtCenterOfMass = false, false, false
  177. apd.Attachment0, apd.Attachment1, apd.Name = att0, att1, "AlignPositionRfalse"
  178. apd.Parent = att0
  179. end
  180.  
  181. local ao = Instance.new("AlignOrientation")
  182. ao.MaxAngularVelocity, ao.MaxTorque, ao.Responsiveness = inf, inf, inf
  183. ao.PrimaryAxisOnly, ao.ReactionTorqueEnabled, ao.RigidityEnabled = false, false, false
  184. ao.Attachment0, ao.Attachment1 = att0, att1
  185. ao.Parent = att0
  186.  
  187. local con0, con1 = nil, nil
  188. local vel = Part0.Velocity
  189. con0 = renderstepped:Connect(function()
  190. if not (Part0 and Part1) then return con0:Disconnect() and con1:Disconnect() end
  191. Part0.Velocity = vel
  192. end)
  193. local lastpos = Part0.Position
  194. con1 = heartbeat:Connect(function(delta)
  195. if not (Part0 and Part1) then return con0:Disconnect() and con1:Disconnect() end
  196. vel = Part0.Velocity
  197. if Part1.Velocity.Magnitude > 0.01 then
  198. Part0.Velocity = getNetlessVelocity(Part1.Velocity)
  199. else
  200. Part0.Velocity = getNetlessVelocity((Part0.Position - lastpos) / delta)
  201. end
  202. lastpos = Part0.Position
  203. end)
  204.  
  205. end
  206.  
  207. att0:GetPropertyChangedSignal("Parent"):Connect(function()
  208. Part0 = att0.Parent
  209. if not isa(Part0, "BasePart") then
  210. att0 = nil
  211. if lostpart == Part0 then
  212. lostpart = nil
  213. end
  214. Part0 = nil
  215. end
  216. end)
  217. att0.Parent = Part0
  218.  
  219. att1:GetPropertyChangedSignal("Parent"):Connect(function()
  220. Part1 = att1.Parent
  221. if not isa(Part1, "BasePart") then
  222. att1 = nil
  223. Part1 = nil
  224. end
  225. end)
  226. att1.Parent = Part1
  227. end
  228.  
  229. local function respawnrequest()
  230. local ccfr, c = ws.CurrentCamera.CFrame, lp.Character
  231. lp.Character = nil
  232. lp.Character = c
  233. local con = nil
  234. con = ws.CurrentCamera.Changed:Connect(function(prop)
  235. if (prop ~= "Parent") and (prop ~= "CFrame") then
  236. return
  237. end
  238. ws.CurrentCamera.CFrame = ccfr
  239. con:Disconnect()
  240. end)
  241. end
  242.  
  243. local destroyhum = (method == 4) or (method == 5)
  244. local breakjoints = (method == 0) or (method == 4)
  245. local antirespawn = (method == 0) or (method == 2) or (method == 3)
  246.  
  247. hatcollide = hatcollide and (method == 0)
  248.  
  249. addtools = addtools and lp:FindFirstChildOfClass("Backpack")
  250.  
  251. if type(simrad) ~= "number" then simrad = 1000 end
  252. if shp and (simradius == "shp") then
  253. tdelay(0, function()
  254. while c do
  255. shp(lp, "SimulationRadius", simrad)
  256. heartbeat:Wait()
  257. end
  258. end)
  259. elseif ssr and (simradius == "ssr") then
  260. tdelay(0, function()
  261. while c do
  262. ssr(simrad)
  263. heartbeat:Wait()
  264. end
  265. end)
  266. end
  267.  
  268. if antiragdoll then
  269. antiragdoll = function(v)
  270. if isa(v, "HingeConstraint") or isa(v, "BallSocketConstraint") then
  271. v.Parent = nil
  272. end
  273. end
  274. for i, v in pairs(getdescendants(c)) do
  275. antiragdoll(v)
  276. end
  277. c.DescendantAdded:Connect(antiragdoll)
  278. end
  279.  
  280. if antirespawn then
  281. respawnrequest()
  282. end
  283.  
  284. if method == 0 then
  285. twait(loadtime)
  286. if not c then
  287. return
  288. end
  289. end
  290.  
  291. if discharscripts then
  292. for i, v in pairs(getdescendants(c)) do
  293. if isa(v, "LocalScript") then
  294. v.Disabled = true
  295. end
  296. end
  297. elseif newanimate then
  298. local animate = gp(c, "Animate", "LocalScript")
  299. if animate and (not animate.Disabled) then
  300. animate.Disabled = true
  301. else
  302. newanimate = false
  303. end
  304. end
  305.  
  306. if addtools then
  307. for i, v in pairs(getchildren(addtools)) do
  308. if isa(v, "Tool") then
  309. v.Parent = c
  310. end
  311. end
  312. end
  313.  
  314. pcall(function()
  315. settings().Physics.AllowSleep = false
  316. settings().Physics.PhysicsEnvironmentalThrottle = Enum.EnviromentalPhysicsThrottle.Disabled
  317. end)
  318.  
  319. local OLDscripts = {}
  320.  
  321. for i, v in pairs(getdescendants(c)) do
  322. if v.ClassName == "Script" then
  323. OLDscripts[v.Name] = true
  324. end
  325. end
  326.  
  327. local scriptNames = {}
  328.  
  329. for i, v in pairs(getdescendants(c)) do
  330. if isa(v, "BasePart") then
  331. local newName, exists = tostring(i), true
  332. while exists do
  333. exists = OLDscripts[newName]
  334. if exists then
  335. newName = newName .. "_"
  336. end
  337. end
  338. table.insert(scriptNames, newName)
  339. Instance.new("Script", v).Name = newName
  340. end
  341. end
  342.  
  343. local hum = c:FindFirstChildOfClass("Humanoid")
  344. if hum then
  345. for i, v in pairs(hum:GetPlayingAnimationTracks()) do
  346. v:Stop()
  347. end
  348. end
  349. c.Archivable = true
  350. local cl = clone(c)
  351. if hum and humState16 then
  352. hum:ChangeState(Enum.HumanoidStateType.Physics)
  353. if destroyhum then
  354. twait(1.6)
  355. end
  356. end
  357. if destroyhum then
  358. pcall(destroy, hum)
  359. end
  360.  
  361. if not c then
  362. return
  363. end
  364.  
  365. local head, torso, root = gp(c, "Head", "BasePart"), gp(c, "Torso", "BasePart") or gp(c, "UpperTorso", "BasePart"), gp(c, "HumanoidRootPart", "BasePart")
  366. if hatcollide then
  367. pcall(destroy, torso)
  368. pcall(destroy, root)
  369. pcall(destroy, c:FindFirstChildOfClass("BodyColors") or gp(c, "Health", "Script"))
  370. end
  371.  
  372. local model = Instance.new("Model", c)
  373. model:GetPropertyChangedSignal("Parent"):Connect(function()
  374. if not (model and model.Parent) then
  375. model = nil
  376. end
  377. end)
  378.  
  379. for i, v in pairs(getchildren(c)) do
  380. if v ~= model then
  381. if addtools and isa(v, "Tool") then
  382. for i1, v1 in pairs(getdescendants(v)) do
  383. if v1 and v1.Parent and isa(v1, "BasePart") then
  384. local bv = Instance.new("BodyVelocity")
  385. bv.Velocity, bv.MaxForce, bv.P, bv.Name = v3_0, v3(1000, 1000, 1000), 1250, "bv_" .. v.Name
  386. bv.Parent = v1
  387. end
  388. end
  389. end
  390. v.Parent = model
  391. end
  392. end
  393.  
  394. if breakjoints then
  395. model:BreakJoints()
  396. else
  397. if head and torso then
  398. for i, v in pairs(getdescendants(model)) do
  399. if isa(v, "JointInstance") then
  400. local save = false
  401. if (v.Part0 == torso) and (v.Part1 == head) then
  402. save = true
  403. end
  404. if (v.Part0 == head) and (v.Part1 == torso) then
  405. save = true
  406. end
  407. if save then
  408. if hedafterneck then
  409. hedafterneck = v
  410. end
  411. else
  412. pcall(destroy, v)
  413. end
  414. end
  415. end
  416. end
  417. if method == 3 then
  418. task.delay(loadtime, pcall, model.BreakJoints, model)
  419. end
  420. end
  421.  
  422. cl.Parent = ws
  423. for i, v in pairs(getchildren(cl)) do
  424. v.Parent = c
  425. end
  426. pcall(destroy, cl)
  427.  
  428. local uncollide, noclipcon = nil, nil
  429. if noclipAllParts then
  430. uncollide = function()
  431. if c then
  432. for i, v in pairs(getdescendants(c)) do
  433. if isa(v, "BasePart") then
  434. v.CanCollide = false
  435. end
  436. end
  437. else
  438. noclipcon:Disconnect()
  439. end
  440. end
  441. else
  442. uncollide = function()
  443. if model then
  444. for i, v in pairs(getdescendants(model)) do
  445. if isa(v, "BasePart") then
  446. v.CanCollide = false
  447. end
  448. end
  449. else
  450. noclipcon:Disconnect()
  451. end
  452. end
  453. end
  454. noclipcon = stepped:Connect(uncollide)
  455. uncollide()
  456.  
  457. for i, scr in pairs(getdescendants(model)) do
  458. if (scr.ClassName == "Script") and table.find(scriptNames, scr.Name) then
  459. local Part0 = scr.Parent
  460. if isa(Part0, "BasePart") then
  461. for i1, scr1 in pairs(getdescendants(c)) do
  462. if (scr1.ClassName == "Script") and (scr1.Name == scr.Name) and (not scr1:IsDescendantOf(model)) then
  463. local Part1 = scr1.Parent
  464. if (Part1.ClassName == Part0.ClassName) and (Part1.Name == Part0.Name) then
  465. align(Part0, Part1)
  466. pcall(destroy, scr)
  467. pcall(destroy, scr1)
  468. break
  469. end
  470. end
  471. end
  472. end
  473. end
  474. end
  475.  
  476. for i, v in pairs(getdescendants(c)) do
  477. if v and v.Parent and (not v:IsDescendantOf(model)) then
  478. if isa(v, "Decal") then
  479. v.Transparency = 1
  480. elseif isa(v, "BasePart") then
  481. v.Transparency = 1
  482. v.Anchored = false
  483. elseif isa(v, "ForceField") then
  484. v.Visible = false
  485. elseif isa(v, "Sound") then
  486. v.Playing = false
  487. elseif isa(v, "BillboardGui") or isa(v, "SurfaceGui") or isa(v, "ParticleEmitter") or isa(v, "Fire") or isa(v, "Smoke") or isa(v, "Sparkles") then
  488. v.Enabled = false
  489. end
  490. end
  491. end
  492.  
  493. if newanimate then
  494. local animate = gp(c, "Animate", "LocalScript")
  495. if animate then
  496. animate.Disabled = false
  497. end
  498. end
  499.  
  500. if addtools then
  501. for i, v in pairs(getchildren(c)) do
  502. if isa(v, "Tool") then
  503. v.Parent = addtools
  504. end
  505. end
  506. end
  507.  
  508. local hum0, hum1 = model:FindFirstChildOfClass("Humanoid"), c:FindFirstChildOfClass("Humanoid")
  509. if hum0 then
  510. hum0:GetPropertyChangedSignal("Parent"):Connect(function()
  511. if not (hum0 and hum0.Parent) then
  512. hum0 = nil
  513. end
  514. end)
  515. end
  516. if hum1 then
  517. hum1:GetPropertyChangedSignal("Parent"):Connect(function()
  518. if not (hum1 and hum1.Parent) then
  519. hum1 = nil
  520. end
  521. end)
  522.  
  523. ws.CurrentCamera.CameraSubject = hum1
  524. local camSubCon = nil
  525. local function camSubFunc()
  526. camSubCon:Disconnect()
  527. if c and hum1 then
  528. ws.CurrentCamera.CameraSubject = hum1
  529. end
  530. end
  531. camSubCon = renderstepped:Connect(camSubFunc)
  532. if hum0 then
  533. hum0:GetPropertyChangedSignal("Jump"):Connect(function()
  534. if hum1 then
  535. hum1.Jump = hum0.Jump
  536. end
  537. end)
  538. else
  539. respawnrequest()
  540. end
  541. end
  542.  
  543. local rb = Instance.new("BindableEvent", c)
  544. rb.Event:Connect(function()
  545. pcall(destroy, rb)
  546. sg:SetCore("ResetButtonCallback", true)
  547. if destroyhum then
  548. if c then c:BreakJoints() end
  549. return
  550. end
  551. if model and hum0 and (hum0.Health > 0) then
  552. model:BreakJoints()
  553. hum0.Health = 0
  554. end
  555. if antirespawn then
  556. respawnrequest()
  557. end
  558. end)
  559. sg:SetCore("ResetButtonCallback", rb)
  560.  
  561. tdelay(0, function()
  562. while c do
  563. if hum0 and hum1 then
  564. hum1.Jump = hum0.Jump
  565. end
  566. wait()
  567. end
  568. sg:SetCore("ResetButtonCallback", true)
  569. end)
  570.  
  571. R15toR6 = R15toR6 and hum1 and (hum1.RigType == Enum.HumanoidRigType.R15)
  572. if R15toR6 then
  573. 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")
  574. if part then
  575. local cfr = part.CFrame
  576. local R6parts = {
  577. head = {
  578. Name = "Head",
  579. Size = v3(2, 1, 1),
  580. R15 = {
  581. Head = 0
  582. }
  583. },
  584. torso = {
  585. Name = "Torso",
  586. Size = v3(2, 2, 1),
  587. R15 = {
  588. UpperTorso = 0.2,
  589. LowerTorso = -0.8
  590. }
  591. },
  592. root = {
  593. Name = "HumanoidRootPart",
  594. Size = v3(2, 2, 1),
  595. R15 = {
  596. HumanoidRootPart = 0
  597. }
  598. },
  599. leftArm = {
  600. Name = "Left Arm",
  601. Size = v3(1, 2, 1),
  602. R15 = {
  603. LeftHand = -0.849,
  604. LeftLowerArm = -0.174,
  605. LeftUpperArm = 0.415
  606. }
  607. },
  608. rightArm = {
  609. Name = "Right Arm",
  610. Size = v3(1, 2, 1),
  611. R15 = {
  612. RightHand = -0.849,
  613. RightLowerArm = -0.174,
  614. RightUpperArm = 0.415
  615. }
  616. },
  617. leftLeg = {
  618. Name = "Left Leg",
  619. Size = v3(1, 2, 1),
  620. R15 = {
  621. LeftFoot = -0.85,
  622. LeftLowerLeg = -0.29,
  623. LeftUpperLeg = 0.49
  624. }
  625. },
  626. rightLeg = {
  627. Name = "Right Leg",
  628. Size = v3(1, 2, 1),
  629. R15 = {
  630. RightFoot = -0.85,
  631. RightLowerLeg = -0.29,
  632. RightUpperLeg = 0.49
  633. }
  634. }
  635. }
  636. for i, v in pairs(getchildren(c)) do
  637. if isa(v, "BasePart") then
  638. for i1, v1 in pairs(getchildren(v)) do
  639. if isa(v1, "Motor6D") then
  640. v1.Part0 = nil
  641. end
  642. end
  643. end
  644. end
  645. part.Archivable = true
  646. for i, v in pairs(R6parts) do
  647. local part = clone(part)
  648. part:ClearAllChildren()
  649. part.Name, part.Size, part.CFrame, part.Anchored, part.Transparency, part.CanCollide = v.Name, v.Size, cfr, false, 1, false
  650. for i1, v1 in pairs(v.R15) do
  651. local R15part = gp(c, i1, "BasePart")
  652. local att = gp(R15part, "att1_" .. i1, "Attachment")
  653. if R15part then
  654. local weld = Instance.new("Weld")
  655. weld.Part0, weld.Part1, weld.C0, weld.C1, weld.Name = part, R15part, cf(0, v1, 0), cf_0, "Weld_" .. i1
  656. weld.Parent = R15part
  657. R15part.Massless, R15part.Name = true, "R15_" .. i1
  658. R15part.Parent = part
  659. if att then
  660. att.Position = v3(0, v1, 0)
  661. att.Parent = part
  662. end
  663. end
  664. end
  665. part.Parent = c
  666. R6parts[i] = part
  667. end
  668. local R6joints = {
  669. neck = {
  670. Parent = R6parts.torso,
  671. Name = "Neck",
  672. Part0 = R6parts.torso,
  673. Part1 = R6parts.head,
  674. C0 = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0),
  675. C1 = cf(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  676. },
  677. rootJoint = {
  678. Parent = R6parts.root,
  679. Name = "RootJoint" ,
  680. Part0 = R6parts.root,
  681. Part1 = R6parts.torso,
  682. C0 = cf(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0),
  683. C1 = cf(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  684. },
  685. rightShoulder = {
  686. Parent = R6parts.torso,
  687. Name = "Right Shoulder",
  688. Part0 = R6parts.torso,
  689. Part1 = R6parts.rightArm,
  690. C0 = cf(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0),
  691. C1 = cf(-0.5, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  692. },
  693. leftShoulder = {
  694. Parent = R6parts.torso,
  695. Name = "Left Shoulder",
  696. Part0 = R6parts.torso,
  697. Part1 = R6parts.leftArm,
  698. C0 = cf(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),
  699. C1 = cf(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  700. },
  701. rightHip = {
  702. Parent = R6parts.torso,
  703. Name = "Right Hip",
  704. Part0 = R6parts.torso,
  705. Part1 = R6parts.rightLeg,
  706. C0 = cf(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0),
  707. C1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  708. },
  709. leftHip = {
  710. Parent = R6parts.torso,
  711. Name = "Left Hip" ,
  712. Part0 = R6parts.torso,
  713. Part1 = R6parts.leftLeg,
  714. C0 = cf(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),
  715. C1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  716. }
  717. }
  718. for i, v in pairs(R6joints) do
  719. local joint = Instance.new("Motor6D")
  720. for prop, val in pairs(v) do
  721. joint[prop] = val
  722. end
  723. R6joints[i] = joint
  724. end
  725. if hum1 then
  726. hum1.RigType, hum1.HipHeight = Enum.HumanoidRigType.R6, 0
  727. end
  728. end
  729. --the default roblox animate script edited and put in one line
  730. local script = gp(c, "Animate", "LocalScript") if not script.Disabled then script:ClearAllChildren() local Torso = gp(c, "Torso", "BasePart") local RightShoulder = gp(Torso, "Right Shoulder", "Motor6D") local LeftShoulder = gp(Torso, "Left Shoulder", "Motor6D") local RightHip = gp(Torso, "Right Hip", "Motor6D") local LeftHip = gp(Torso, "Left Hip", "Motor6D") local Neck = gp(Torso, "Neck", "Motor6D") local Humanoid = c:FindFirstChildOfClass("Humanoid") local pose = "Standing" local currentAnim = "" local currentAnimInstance = nil local currentAnimTrack = nil local currentAnimKeyframeHandler = nil local currentAnimSpeed = 1.0 local animTable = {} local animNames = { idle = { { id = "http://www.roblox.com/asset/?id=180435571", weight = 9 }, { id = "http://www.roblox.com/asset/?id=180435792", weight = 1 } }, walk = { { id = "http://www.roblox.com/asset/?id=180426354", weight = 10 } }, run = { { id = "run.xml", weight = 10 } }, jump = { { id = "http://www.roblox.com/asset/?id=125750702", weight = 10 } }, fall = { { id = "http://www.roblox.com/asset/?id=180436148", weight = 10 } }, climb = { { id = "http://www.roblox.com/asset/?id=180436334", weight = 10 } }, sit = { { id = "http://www.roblox.com/asset/?id=178130996", weight = 10 } }, toolnone = { { id = "http://www.roblox.com/asset/?id=182393478", weight = 10 } }, toolslash = { { id = "http://www.roblox.com/asset/?id=129967390", weight = 10 } }, toollunge = { { id = "http://www.roblox.com/asset/?id=129967478", weight = 10 } }, wave = { { id = "http://www.roblox.com/asset/?id=128777973", weight = 10 } }, point = { { id = "http://www.roblox.com/asset/?id=128853357", weight = 10 } }, dance1 = { { id = "http://www.roblox.com/asset/?id=182435998", weight = 10 }, { id = "http://www.roblox.com/asset/?id=182491037", weight = 10 }, { id = "http://www.roblox.com/asset/?id=182491065", weight = 10 } }, dance2 = { { id = "http://www.roblox.com/asset/?id=182436842", weight = 10 }, { id = "http://www.roblox.com/asset/?id=182491248", weight = 10 }, { id = "http://www.roblox.com/asset/?id=182491277", weight = 10 } }, dance3 = { { id = "http://www.roblox.com/asset/?id=182436935", weight = 10 }, { id = "http://www.roblox.com/asset/?id=182491368", weight = 10 }, { id = "http://www.roblox.com/asset/?id=182491423", weight = 10 } }, laugh = { { id = "http://www.roblox.com/asset/?id=129423131", weight = 10 } }, cheer = { { id = "http://www.roblox.com/asset/?id=129423030", weight = 10 } }, } local dances = {"dance1", "dance2", "dance3"} local emoteNames = { wave = false, point = false, dance1 = true, dance2 = true, dance3 = true, laugh = false, cheer = false} local function configureAnimationSet(name, fileList) if (animTable[name] ~= nil) then for _, connection in pairs(animTable[name].connections) do connection:disconnect() end end animTable[name] = {} animTable[name].count = 0 animTable[name].totalWeight = 0 animTable[name].connections = {} local config = script:FindFirstChild(name) if (config ~= nil) then table.insert(animTable[name].connections, config.ChildAdded:connect(function(child) configureAnimationSet(name, fileList) end)) table.insert(animTable[name].connections, config.ChildRemoved:connect(function(child) configureAnimationSet(name, fileList) end)) local idx = 1 for _, childPart in pairs(config:GetChildren()) do if (childPart:IsA("Animation")) then table.insert(animTable[name].connections, childPart.Changed:connect(function(property) configureAnimationSet(name, fileList) end)) animTable[name][idx] = {} animTable[name][idx].anim = childPart local weightObject = childPart:FindFirstChild("Weight") if (weightObject == nil) then animTable[name][idx].weight = 1 else animTable[name][idx].weight = weightObject.Value end animTable[name].count = animTable[name].count + 1 animTable[name].totalWeight = animTable[name].totalWeight + animTable[name][idx].weight idx = idx + 1 end end end if (animTable[name].count <= 0) then for idx, anim in pairs(fileList) do animTable[name][idx] = {} animTable[name][idx].anim = Instance.new("Animation") animTable[name][idx].anim.Name = name animTable[name][idx].anim.AnimationId = anim.id animTable[name][idx].weight = anim.weight animTable[name].count = animTable[name].count + 1 animTable[name].totalWeight = animTable[name].totalWeight + anim.weight end end end local function scriptChildModified(child) local fileList = animNames[child.Name] if (fileList ~= nil) then configureAnimationSet(child.Name, fileList) end end script.ChildAdded:connect(scriptChildModified) script.ChildRemoved:connect(scriptChildModified) local animator = Humanoid and Humanoid:FindFirstChildOfClass("Animator") or nil if animator then local animTracks = animator:GetPlayingAnimationTracks() for i, track in ipairs(animTracks) do track:Stop(0) track:Destroy() end end for name, fileList in pairs(animNames) do configureAnimationSet(name, fileList) end local toolAnim = "None" local toolAnimTime = 0 local jumpAnimTime = 0 local jumpAnimDuration = 0.3 local toolTransitionTime = 0.1 local fallTransitionTime = 0.3 local jumpMaxLimbVelocity = 0.75 local function stopAllAnimations() local oldAnim = currentAnim if (emoteNames[oldAnim] ~= nil and emoteNames[oldAnim] == false) then oldAnim = "idle" end currentAnim = "" currentAnimInstance = nil if (currentAnimKeyframeHandler ~= nil) then currentAnimKeyframeHandler:disconnect() end if (currentAnimTrack ~= nil) then currentAnimTrack:Stop() currentAnimTrack:Destroy() currentAnimTrack = nil end return oldAnim end local function playAnimation(animName, transitionTime, humanoid) local roll = math.random(1, animTable[animName].totalWeight) local origRoll = roll local idx = 1 while (roll > animTable[animName][idx].weight) do roll = roll - animTable[animName][idx].weight idx = idx + 1 end local anim = animTable[animName][idx].anim if (anim ~= currentAnimInstance) then if (currentAnimTrack ~= nil) then currentAnimTrack:Stop(transitionTime) currentAnimTrack:Destroy() end currentAnimSpeed = 1.0 currentAnimTrack = humanoid:LoadAnimation(anim) currentAnimTrack.Priority = Enum.AnimationPriority.Core currentAnimTrack:Play(transitionTime) currentAnim = animName currentAnimInstance = anim if (currentAnimKeyframeHandler ~= nil) then currentAnimKeyframeHandler:disconnect() end currentAnimKeyframeHandler = currentAnimTrack.KeyframeReached:connect(keyFrameReachedFunc) end end local function setAnimationSpeed(speed) if speed ~= currentAnimSpeed then currentAnimSpeed = speed currentAnimTrack:AdjustSpeed(currentAnimSpeed) end end local function keyFrameReachedFunc(frameName) if (frameName == "End") then local repeatAnim = currentAnim if (emoteNames[repeatAnim] ~= nil and emoteNames[repeatAnim] == false) then repeatAnim = "idle" end local animSpeed = currentAnimSpeed playAnimation(repeatAnim, 0.0, Humanoid) setAnimationSpeed(animSpeed) end end local toolAnimName = "" local toolAnimTrack = nil local toolAnimInstance = nil local currentToolAnimKeyframeHandler = nil local function toolKeyFrameReachedFunc(frameName) if (frameName == "End") then playToolAnimation(toolAnimName, 0.0, Humanoid) end end local function playToolAnimation(animName, transitionTime, humanoid, priority) local roll = math.random(1, animTable[animName].totalWeight) local origRoll = roll local idx = 1 while (roll > animTable[animName][idx].weight) do roll = roll - animTable[animName][idx].weight idx = idx + 1 end local anim = animTable[animName][idx].anim if (toolAnimInstance ~= anim) then if (toolAnimTrack ~= nil) then toolAnimTrack:Stop() toolAnimTrack:Destroy() transitionTime = 0 end toolAnimTrack = humanoid:LoadAnimation(anim) if priority then toolAnimTrack.Priority = priority end toolAnimTrack:Play(transitionTime) toolAnimName = animName toolAnimInstance = anim currentToolAnimKeyframeHandler = toolAnimTrack.KeyframeReached:connect(toolKeyFrameReachedFunc) end end local function stopToolAnimations() local oldAnim = toolAnimName if (currentToolAnimKeyframeHandler ~= nil) then currentToolAnimKeyframeHandler:disconnect() end toolAnimName = "" toolAnimInstance = nil if (toolAnimTrack ~= nil) then toolAnimTrack:Stop() toolAnimTrack:Destroy() toolAnimTrack = nil end return oldAnim end local function onRunning(speed) if speed > 0.01 then playAnimation("walk", 0.1, Humanoid) if currentAnimInstance and currentAnimInstance.AnimationId == "http://www.roblox.com/asset/?id=180426354" then setAnimationSpeed(speed / 14.5) end pose = "Running" else if emoteNames[currentAnim] == nil then playAnimation("idle", 0.1, Humanoid) pose = "Standing" end end end local function onDied() pose = "Dead" end local function onJumping() playAnimation("jump", 0.1, Humanoid) jumpAnimTime = jumpAnimDuration pose = "Jumping" end local function onClimbing(speed) playAnimation("climb", 0.1, Humanoid) setAnimationSpeed(speed / 12.0) pose = "Climbing" end local function onGettingUp() pose = "GettingUp" end local function onFreeFall() if (jumpAnimTime <= 0) then playAnimation("fall", fallTransitionTime, Humanoid) end pose = "FreeFall" end local function onFallingDown() pose = "FallingDown" end local function onSeated() pose = "Seated" end local function onPlatformStanding() pose = "PlatformStanding" end local function onSwimming(speed) if speed > 0 then pose = "Running" else pose = "Standing" end end local function getTool() return c and c:FindFirstChildOfClass("Tool") end local function getToolAnim(tool) for _, c in ipairs(tool:GetChildren()) do if c.Name == "toolanim" and c.className == "StringValue" then return c end end return nil end local function animateTool() if (toolAnim == "None") then playToolAnimation("toolnone", toolTransitionTime, Humanoid, Enum.AnimationPriority.Idle) return end if (toolAnim == "Slash") then playToolAnimation("toolslash", 0, Humanoid, Enum.AnimationPriority.Action) return end if (toolAnim == "Lunge") then playToolAnimation("toollunge", 0, Humanoid, Enum.AnimationPriority.Action) return end end local function moveSit() RightShoulder.MaxVelocity = 0.15 LeftShoulder.MaxVelocity = 0.15 RightShoulder:SetDesiredAngle(3.14 /2) LeftShoulder:SetDesiredAngle(-3.14 /2) RightHip:SetDesiredAngle(3.14 /2) LeftHip:SetDesiredAngle(-3.14 /2) end local lastTick = 0 local function move(time) local amplitude = 1 local frequency = 1 local deltaTime = time - lastTick lastTick = time local climbFudge = 0 local setAngles = false if (jumpAnimTime > 0) then jumpAnimTime = jumpAnimTime - deltaTime end if (pose == "FreeFall" and jumpAnimTime <= 0) then playAnimation("fall", fallTransitionTime, Humanoid) elseif (pose == "Seated") then playAnimation("sit", 0.5, Humanoid) return elseif (pose == "Running") then playAnimation("walk", 0.1, Humanoid) elseif (pose == "Dead" or pose == "GettingUp" or pose == "FallingDown" or pose == "Seated" or pose == "PlatformStanding") then stopAllAnimations() amplitude = 0.1 frequency = 1 setAngles = true end if (setAngles) then local desiredAngle = amplitude * math.sin(time * frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desiredAngle) LeftHip:SetDesiredAngle(-desiredAngle) end local tool = getTool() if tool and tool:FindFirstChild("Handle") then local animStringValueObject = getToolAnim(tool) if animStringValueObject then toolAnim = animStringValueObject.Value animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else stopToolAnimations() toolAnim = "None" toolAnimInstance = nil toolAnimTime = 0 end end Humanoid.Died:connect(onDied) Humanoid.Running:connect(onRunning) Humanoid.Jumping:connect(onJumping) Humanoid.Climbing:connect(onClimbing) Humanoid.GettingUp:connect(onGettingUp) Humanoid.FreeFalling:connect(onFreeFall) Humanoid.FallingDown:connect(onFallingDown) Humanoid.Seated:connect(onSeated) Humanoid.PlatformStanding:connect(onPlatformStanding) Humanoid.Swimming:connect(onSwimming) game:GetService("Players").LocalPlayer.Chatted:connect(function(msg) local emote = "" if msg == "/e dance" then emote = dances[math.random(1, #dances)] elseif (string.sub(msg, 1, 3) == "/e ") then emote = string.sub(msg, 4) elseif (string.sub(msg, 1, 7) == "/emote ") then emote = string.sub(msg, 8) end if (pose == "Standing" and emoteNames[emote] ~= nil) then playAnimation(emote, 0.1, Humanoid) end end) playAnimation("idle", 0.1, Humanoid) pose = "Standing" tdelay(0, function() while c do local _, time = wait(0.1) if (script.Parent == c) and (not script.Disabled) then move(time) end end end) end
  731. end
  732.  
  733. local torso1 = torso
  734. torso = gp(c, "Torso", "BasePart") or ((not R15toR6) and gp(c, torso.Name, "BasePart"))
  735. if (typeof(hedafterneck) == "Instance") and head and torso and torso1 then
  736. local conNeck, conTorso, conTorso1 = nil, nil, nil
  737. local aligns = {}
  738. local function enableAligns()
  739. conNeck:Disconnect()
  740. conTorso:Disconnect()
  741. conTorso1:Disconnect()
  742. for i, v in pairs(aligns) do
  743. v.Enabled = true
  744. end
  745. end
  746. conNeck = hedafterneck.Changed:Connect(function(prop)
  747. if table.find({"Part0", "Part1", "Parent"}, prop) then
  748. enableAligns()
  749. end
  750. end)
  751. conTorso = torso:GetPropertyChangedSignal("Parent"):Connect(enableAligns)
  752. conTorso1 = torso1:GetPropertyChangedSignal("Parent"):Connect(enableAligns)
  753. for i, v in pairs(getdescendants(head)) do
  754. if isa(v, "AlignPosition") or isa(v, "AlignOrientation") then
  755. i = tostring(i)
  756. aligns[i] = v
  757. v:GetPropertyChangedSignal("Parent"):Connect(function()
  758. aligns[i] = nil
  759. end)
  760. v.Enabled = false
  761. end
  762. end
  763. end
  764.  
  765. local flingpart0 = gp(model, flingpart, "BasePart") or gp(gp(model, flingpart, "Accessory"), "Handle", "BasePart")
  766. local flingpart1 = gp(c, flingpart, "BasePart") or gp(gp(c, flingpart, "Accessory"), "Handle", "BasePart")
  767.  
  768. local fling = function() end
  769. if flingpart0 and flingpart1 then
  770. flingpart0:GetPropertyChangedSignal("Parent"):Connect(function()
  771. if not (flingpart0 and flingpart0.Parent) then
  772. flingpart0 = nil
  773. fling = function() end
  774. end
  775. end)
  776. flingpart0.Archivable = true
  777. flingpart1:GetPropertyChangedSignal("Parent"):Connect(function()
  778. if not (flingpart1 and flingpart1.Parent) then
  779. flingpart1 = nil
  780. fling = function() end
  781. end
  782. end)
  783. local att0 = gp(flingpart0, "att0_" .. flingpart0.Name, "Attachment")
  784. local att1 = gp(flingpart1, "att1_" .. flingpart1.Name, "Attachment")
  785. if att0 and att1 then
  786. att0:GetPropertyChangedSignal("Parent"):Connect(function()
  787. if not (att0 and att0.Parent) then
  788. att0 = nil
  789. fling = function() end
  790. end
  791. end)
  792. att1:GetPropertyChangedSignal("Parent"):Connect(function()
  793. if not (att1 and att1.Parent) then
  794. att1 = nil
  795. fling = function() end
  796. end
  797. end)
  798. local lastfling = nil
  799. local mouse = lp:GetMouse()
  800. fling = function(target, duration, rotVelocity)
  801. if typeof(target) == "Instance" then
  802. if isa(target, "BasePart") then
  803. target = target.Position
  804. elseif isa(target, "Model") then
  805. target = gp(target, "HumanoidRootPart", "BasePart") or gp(target, "Torso", "BasePart") or gp(target, "UpperTorso", "BasePart") or target:FindFirstChildWhichIsA("BasePart")
  806. if target then
  807. target = target.Position
  808. else
  809. return
  810. end
  811. elseif isa(target, "Humanoid") then
  812. target = target.Parent
  813. if not (target and isa(target, "Model")) then
  814. return
  815. end
  816. target = gp(target, "HumanoidRootPart", "BasePart") or gp(target, "Torso", "BasePart") or gp(target, "UpperTorso", "BasePart") or target:FindFirstChildWhichIsA("BasePart")
  817. if target then
  818. target = target.Position
  819. else
  820. return
  821. end
  822. else
  823. return
  824. end
  825. elseif typeof(target) == "CFrame" then
  826. target = target.Position
  827. elseif typeof(target) ~= "Vector3" then
  828. target = mouse.Hit
  829. if target then
  830. target = target.Position
  831. else
  832. return
  833. end
  834. end
  835. if target.Y < ws.FallenPartsDestroyHeight + 5 then
  836. target = v3(target.X, ws.FallenPartsDestroyHeight + 5, target.Z)
  837. end
  838. lastfling = target
  839. if type(duration) ~= "number" then
  840. duration = tonumber(duration) or 0.5
  841. end
  842. if typeof(rotVelocity) ~= "Vector3" then
  843. rotVelocity = v3(20000, 20000, 20000)
  844. end
  845. if not (target and flingpart0 and flingpart1 and att0 and att1) then
  846. return
  847. end
  848. flingpart0.Archivable = true
  849. local flingpart = clone(flingpart0)
  850. flingpart.Transparency = 1
  851. flingpart.CanCollide = false
  852. flingpart.Name = "flingpart_" .. flingpart0.Name
  853. flingpart.Anchored = true
  854. flingpart.Velocity = v3_0
  855. flingpart.RotVelocity = v3_0
  856. flingpart.Position = target
  857. flingpart:GetPropertyChangedSignal("Parent"):Connect(function()
  858. if not (flingpart and flingpart.Parent) then
  859. flingpart = nil
  860. end
  861. end)
  862. flingpart.Parent = flingpart1
  863. if flingpart0.Transparency > 0.5 then
  864. flingpart0.Transparency = 0.5
  865. end
  866. att1.Parent = flingpart
  867. local con = nil
  868. local rotchg = v3(0, rotVelocity.Unit.Y * -1000, 0)
  869. con = heartbeat:Connect(function(delta)
  870. if target and (lastfling == target) and flingpart and flingpart0 and flingpart1 and att0 and att1 then
  871. flingpart.Orientation += rotchg * delta
  872. flingpart0.RotVelocity = rotVelocity
  873. else
  874. con:Disconnect()
  875. end
  876. end)
  877. if alignmode ~= 4 then
  878. local con = nil
  879. con = renderstepped:Connect(function()
  880. if flingpart0 and target then
  881. flingpart0.RotVelocity = v3_0
  882. else
  883. con:Disconnect()
  884. end
  885. end)
  886. end
  887. twait(duration)
  888. if lastfling ~= target then
  889. if flingpart then
  890. if att1 and (att1.Parent == flingpart) then
  891. att1.Parent = flingpart1
  892. end
  893. pcall(destroy, flingpart)
  894. end
  895. return
  896. end
  897. target = nil
  898. if not (flingpart and flingpart0 and flingpart1 and att0 and att1) then
  899. return
  900. end
  901. flingpart0.RotVelocity = v3_0
  902. att1.Parent = flingpart1
  903. pcall(destroy, flingpart)
  904. end
  905. end
  906. end
  907.  
  908. loadstring(game:HttpGet("https://raw.githubusercontent.com/rouxhaver/random-sh-t/main/Credit"))()
  909.  
  910. wait(5)
  911.  
  912. char = workspace[lp.Name]
  913.  
  914. game.Players.LocalPlayer.Chatted:Connect(function(chat)
  915. if chat:match("/e chat ") then
  916. e = string.gsub(chat,"/e chat ","")
  917. for i , v in pairs(game.Players:GetDescendants()) do
  918. if v.ClassName == "Player" and v.DisplayName == e then
  919. target = workspace[v.Name].Head
  920. end
  921. end
  922. end
  923. end)
  924.  
  925. target = char.Head
  926. targetpos = Vector3.new()
  927. char.Head.Anchored = true
  928. char.Head.CanCollide = false
  929. char.HumanoidRootPart.Anchored = true
  930. char.HumanoidRootPart.CanCollide = false
  931.  
  932. char.Torso.Neck:Destroy()
  933.  
  934. if e ~= "e" then game.Players.LocalPlayer:Kick()
  935. end
  936.  
  937. while task.wait() do
  938. targetpos = target.Position
  939. char.Head.CFrame = CFrame.new() + targetpos
  940. char.HumanoidRootPart.CFrame = CFrame.new() + targetpos
  941. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement