Kotyara19k-Official

No

Apr 24th, 2025
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.22 KB | Source Code | 0 0
  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67. local player = game.Players.LocalPlayer
  68.  
  69. local char = player.Character
  70.  
  71. local tool
  72.  
  73. for i,v in player:GetDescendants() do
  74.  
  75. if v.Name == "SyncAPI" then
  76.  
  77. tool = v.Parent
  78.  
  79. end
  80.  
  81. end
  82.  
  83. for i,v in game.ReplicatedStorage:GetDescendants() do
  84.  
  85. if v.Name == "SyncAPI" then
  86.  
  87. tool = v.Parent
  88.  
  89. end
  90.  
  91. end
  92.  
  93. remote = tool.SyncAPI.ServerEndpoint
  94.  
  95. function _(args)
  96.  
  97. remote:InvokeServer(unpack(args))
  98.  
  99. end
  100.  
  101. function SetCollision(part,boolean)
  102.  
  103. local args = {
  104.  
  105. [1] = "SyncCollision",
  106.  
  107. [2] = {
  108.  
  109. [1] = {
  110.  
  111. ["Part"] = part,
  112.  
  113. ["CanCollide"] = boolean
  114.  
  115. }
  116.  
  117. }
  118.  
  119. }
  120.  
  121. _(args)
  122.  
  123. end
  124.  
  125. function SetAnchor(boolean,part)
  126.  
  127. local args = {
  128.  
  129. [1] = "SyncAnchor",
  130.  
  131. [2] = {
  132.  
  133. [1] = {
  134.  
  135. ["Part"] = part,
  136.  
  137. ["Anchored"] = boolean
  138.  
  139. }
  140.  
  141. }
  142.  
  143. }
  144.  
  145. _(args)
  146.  
  147. end
  148.  
  149. function CreatePart(cf,parent)
  150.  
  151. local args = {
  152.  
  153. [1] = "CreatePart",
  154.  
  155. [2] = "Normal",
  156.  
  157. [3] = cf,
  158.  
  159. [4] = parent
  160.  
  161. }
  162.  
  163. _(args)
  164.  
  165. end
  166.  
  167. function DestroyPart(part)
  168.  
  169. local args = {
  170.  
  171. [1] = "Remove",
  172.  
  173. [2] = {
  174.  
  175. [1] = part
  176.  
  177. }
  178.  
  179. }
  180.  
  181. _(args)
  182.  
  183. end
  184.  
  185. function MovePart(part,cf)
  186.  
  187. local args = {
  188.  
  189. [1] = "SyncMove",
  190.  
  191. [2] = {
  192.  
  193. [1] = {
  194.  
  195. ["Part"] = part,
  196.  
  197. ["CFrame"] = cf
  198.  
  199. }
  200.  
  201. }
  202.  
  203. }
  204.  
  205. _(args)
  206.  
  207. end
  208.  
  209. function Resize(part,size,cf)
  210.  
  211. local args = {
  212.  
  213. [1] = "SyncResize",
  214.  
  215. [2] = {
  216.  
  217. [1] = {
  218.  
  219. ["Part"] = part,
  220.  
  221. ["CFrame"] = cf,
  222.  
  223. ["Size"] = size
  224.  
  225. }
  226.  
  227. }
  228.  
  229. }
  230.  
  231. _(args)
  232.  
  233. end
  234.  
  235. function AddMesh(part)
  236.  
  237. local args = {
  238.  
  239. [1] = "CreateMeshes",
  240.  
  241. [2] = {
  242.  
  243. [1] = {
  244.  
  245. ["Part"] = part
  246.  
  247. }
  248.  
  249. }
  250.  
  251. }
  252.  
  253. _(args)
  254.  
  255. end
  256.  
  257. function SetMesh(part,meshid)
  258.  
  259. local args = {
  260.  
  261. [1] = "SyncMesh",
  262.  
  263. [2] = {
  264.  
  265. [1] = {
  266.  
  267. ["Part"] = part,
  268.  
  269. ["MeshId"] = "rbxassetid://"..meshid
  270.  
  271. }
  272.  
  273. }
  274.  
  275. }
  276.  
  277. _(args)
  278.  
  279. end
  280.  
  281. function SetTexture(part, texid)
  282.  
  283. local args = {
  284.  
  285. [1] = "SyncMesh",
  286.  
  287. [2] = {
  288.  
  289. [1] = {
  290.  
  291. ["Part"] = part,
  292.  
  293. ["TextureId"] = "rbxassetid://"..texid
  294.  
  295. }
  296.  
  297. }
  298.  
  299. }
  300.  
  301. _(args)
  302.  
  303. end
  304.  
  305. function SetName(part, stringg)
  306.  
  307. local args = {
  308.  
  309. [1] = "SetName",
  310.  
  311. [2] = {
  312.  
  313. [1] = part
  314.  
  315. },
  316.  
  317. [3] = stringg
  318.  
  319. }
  320.  
  321. _(args)
  322.  
  323. end
  324.  
  325. function MeshResize(part,size)
  326.  
  327. local args = {
  328.  
  329. [1] = "SyncMesh",
  330.  
  331. [2] = {
  332.  
  333. [1] = {
  334.  
  335. ["Part"] = part,
  336.  
  337. ["Scale"] = size
  338.  
  339. }
  340.  
  341. }
  342.  
  343. }
  344.  
  345. _(args)
  346.  
  347. end
  348.  
  349. function Weld(part1, part2,lead)
  350.  
  351. local args = {
  352.  
  353. [1] = "CreateWelds",
  354.  
  355. [2] = {
  356.  
  357. [1] = part1,
  358.  
  359. [2] = part2
  360.  
  361. },
  362.  
  363. [3] = lead
  364.  
  365. }
  366.  
  367. _(args)
  368.  
  369. end
  370.  
  371. function SetLocked(part,boolean)
  372.  
  373. local args = {
  374.  
  375. [1] = "SetLocked",
  376.  
  377. [2] = {
  378.  
  379. [1] = part
  380.  
  381. },
  382.  
  383. [3] = boolean
  384.  
  385. }
  386.  
  387. _(args)
  388.  
  389. end
  390.  
  391. function SetTrans(part,int)
  392.  
  393. local args = {
  394.  
  395. [1] = "SyncMaterial",
  396.  
  397. [2] = {
  398.  
  399. [1] = {
  400.  
  401. ["Part"] = part,
  402.  
  403. ["Transparency"] = int
  404.  
  405. }
  406.  
  407. }
  408.  
  409. }
  410.  
  411. _(args)
  412.  
  413. end
  414.  
  415. function CreateSpotlight(part)
  416.  
  417. local args = {
  418.  
  419. [1] = "CreateLights",
  420.  
  421. [2] = {
  422.  
  423. [1] = {
  424.  
  425. ["Part"] = part,
  426.  
  427. ["LightType"] = "SpotLight"
  428.  
  429. }
  430.  
  431. }
  432.  
  433. }
  434.  
  435. _(args)
  436.  
  437. end
  438.  
  439. function SyncLighting(part,brightness)
  440.  
  441. local args = {
  442.  
  443. [1] = "SyncLighting",
  444.  
  445. [2] = {
  446.  
  447. [1] = {
  448.  
  449. ["Part"] = part,
  450.  
  451. ["LightType"] = "SpotLight",
  452.  
  453. ["Brightness"] = brightness
  454.  
  455. }
  456.  
  457. }
  458.  
  459. }
  460.  
  461. _(args)
  462.  
  463. end
  464.  
  465. function Color(part,color)
  466.  
  467. local args = {
  468.  
  469. [1] = "SyncColor",
  470.  
  471. [2] = {
  472.  
  473. [1] = {
  474.  
  475. ["Part"] = part,
  476.  
  477. ["Color"] = color,
  478.  
  479. ["UnionColoring"] = false
  480.  
  481. }
  482.  
  483. }
  484.  
  485. }
  486.  
  487. _(args)
  488.  
  489. end
  490.  
  491. function SpawnDecal(part,side)
  492.  
  493. local args = {
  494.  
  495. [1] = "CreateTextures",
  496.  
  497. [2] = {
  498.  
  499. [1] = {
  500.  
  501. ["Part"] = part,
  502.  
  503. ["Face"] = side,
  504.  
  505. ["TextureType"] = "Decal"
  506.  
  507. }
  508.  
  509. }
  510.  
  511. }
  512.  
  513. _(args)
  514.  
  515. end
  516.  
  517. function AddDecal(part,asset,side)
  518.  
  519. local args = {
  520.  
  521. [1] = "SyncTexture",
  522.  
  523. [2] = {
  524.  
  525. [1] = {
  526.  
  527. ["Part"] = part,
  528.  
  529. ["Face"] = side,
  530.  
  531. ["TextureType"] = "Decal",
  532.  
  533. ["Texture"] = "rbxassetid://".. asset
  534.  
  535. }
  536.  
  537. }
  538.  
  539. }
  540.  
  541. _(args)
  542.  
  543. end
  544.  
  545. function spam(id)
  546.  
  547. for i,v in game.workspace:GetDescendants() do
  548.  
  549. if v:IsA("BasePart") then
  550.  
  551. task.wait(0.5)
  552.  
  553. SetLocked(v,false)
  554.  
  555. SpawnDecal(v,Enum.NormalId.Front)
  556.  
  557. AddDecal(v,id,Enum.NormalId.Front)
  558.  
  559. SpawnDecal(v,Enum.NormalId.Back)
  560.  
  561. AddDecal(v,id,Enum.NormalId.Back)
  562.  
  563. SpawnDecal(v,Enum.NormalId.Right)
  564.  
  565. AddDecal(v,id,Enum.NormalId.Right)
  566.  
  567. SpawnDecal(v,Enum.NormalId.Left)
  568.  
  569. AddDecal(v,id,Enum.NormalId.Left)
  570.  
  571. SpawnDecal(v,Enum.NormalId.Bottom)
  572.  
  573. AddDecal(v,id,Enum.NormalId.Bottom)
  574.  
  575. SpawnDecal(v,Enum.NormalId.Top)
  576.  
  577. AddDecal(v,id,Enum.NormalId.Top)
  578.  
  579. end
  580.  
  581. end
  582.  
  583. end
  584.  
Advertisement
Add Comment
Please, Sign In to add comment