Advertisement
Guest User

rhsgui

a guest
Nov 17th, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.96 KB | None | 0 0
  1. -- Settings
  2. local red = 0
  3. local green = 0
  4. local blue = 0
  5. local shirt = 331055592
  6. local pants = 2182786531
  7. local face = 7075502
  8. local hat = 244159819
  9. local tshirt = 0
  10.  
  11. local color = Color3.new(red / 255, green / 255, blue / 255)
  12. local RHSize = Instance.new("ScreenGui")
  13. local ODerDetector = Instance.new("Frame")
  14. local kk = Instance.new("TextLabel")
  15. local Up = Instance.new("ImageButton")
  16. local Down = Instance.new("ImageButton")
  17. --Properties:
  18. RHSize.Name = "RHSiz"
  19. RHSize.Parent = game.CoreGui
  20.  
  21. ODerDetector.Name = "ODerDetector"
  22. ODerDetector.Parent = RHSize
  23. ODerDetector.BackgroundColor3 = Color3.new(0.0470588, 1, 0.572549)
  24. ODerDetector.Position = UDim2.new(0, 0, 0, 0)
  25. ODerDetector.Size = UDim2.new(0, 83, 0, 82)
  26.  
  27. kk.Name = "kk"
  28. kk.Parent = ODerDetector
  29. kk.BackgroundColor3 = Color3.new(0.0470588, 1, 0.572549)
  30. kk.BorderSizePixel = 2
  31. kk.Position = UDim2.new(0.942307711, -41, 0.5, -25)
  32. kk.Size = UDim2.new(0, 41, 0, 50)
  33. kk.Font = Enum.Font.SourceSans
  34. kk.Text = "0"
  35. kk.TextColor3 = Color3.new(0, 0, 0)
  36. kk.TextScaled = true
  37. kk.TextSize = 14
  38. kk.TextWrapped = true
  39.  
  40. Up.Name = "Up"
  41. Up.Parent = ODerDetector
  42. Up.BackgroundColor3 = Color3.new(1, 1, 1)
  43. Up.BackgroundTransparency = 1
  44. Up.Position = UDim2.new(0.112961441, 0, 0.254901975, 0)
  45. Up.Size = UDim2.new(0, 20, 0, 21)
  46. Up.Image = "rbxassetid://38186614"
  47.  
  48. Down.Name = "Down"
  49. Down.Parent = ODerDetector
  50. Down.BackgroundColor3 = Color3.new(1, 1, 1)
  51. Down.BackgroundTransparency = 1
  52. Down.Position = UDim2.new(0.108433738, 0, 0.539215684, 0)
  53. Down.Rotation = 180
  54. Down.Size = UDim2.new(0, 20, 0, 21)
  55. Down.AutoButtonColor = false
  56.  
  57. function yayaya()
  58. local theGUI = game.CoreGui:FindFirstChild("RHSize")
  59. RHSize.Name = "RHSize"
  60. if theGUI == nil then return end
  61. local wad = theGUI:FindFirstChild("ODerDetector")
  62. local newPos = wad.Position
  63. ODerDetector.Position = newPos
  64. local size = wad.kk.Text
  65. ODerDetector.kk.Text = size
  66. theGUI:Destroy()
  67. end
  68.  
  69. yayaya()
  70.  
  71. Down.Image = "rbxassetid://38186614"
  72. -- Scripts:
  73. local UserInputService = game:GetService("UserInputService")
  74.  
  75. local gui = ODerDetector
  76.  
  77. local dragging
  78. local dragInput
  79. local dragStart
  80. local startPos
  81.  
  82. local function update(input)
  83. local delta = input.Position - dragStart
  84. gui.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  85. end
  86.  
  87. gui.InputBegan:Connect(function(input)
  88. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  89. dragging = true
  90. dragStart = input.Position
  91. startPos = gui.Position
  92.  
  93. input.Changed:Connect(function()
  94. if input.UserInputState == Enum.UserInputState.End then
  95. dragging = false
  96. end
  97. end)
  98. end
  99. end)
  100.  
  101. gui.InputChanged:Connect(function(input)
  102. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  103. dragInput = input
  104. end
  105. end)
  106.  
  107. UserInputService.InputChanged:Connect(function(input)
  108. if input == dragInput and dragging then
  109. update(input)
  110. end
  111. end)
  112.  
  113.  
  114. local frame = ODerDetector
  115. local Event = game:GetService("ReplicatedStorage").AvatarEditor.Remote.CommitCharacterAppearance
  116.  
  117.  
  118. function setSize(size)
  119. frame.kk.Text = tostring(size)
  120. local shit = {
  121. ["assets"] =
  122. {
  123. [1] =
  124. {
  125. ["drotation"] =
  126. {
  127. ["y"] = 90,
  128. ["x"] = 90,
  129. ["z"] = 90
  130. },
  131. ["dposition"] =
  132. {
  133. ["y"] = 200,
  134. ["x"] = 200,
  135. ["z"] = 200
  136. },
  137. ["scale"] =
  138. {
  139. ["y"] = 100,
  140. ["x"] = 100,
  141. ["z"] = 100
  142. },
  143. ["dscale"] =
  144. {
  145. ["y"] = 500,
  146. ["x"] = 500,
  147. ["z"] = 500
  148. },
  149. ["vscale"] =
  150. {
  151. ["y"] = 1,
  152. ["x"] = 1,
  153. ["z"] = 1
  154. },
  155. ["rotation"] =
  156. {
  157. ["y"] = 0,
  158. ["x"] = 0,
  159. ["z"] = 0
  160. },
  161. ["assetId"] = pants,
  162. ["changedFX"] = false,
  163. ["position"] =
  164. {
  165. ["y"] = 0,
  166. ["x"] = 0,
  167. ["z"] = 0
  168. },
  169. ["fx"] =
  170. {
  171. [1] = true,
  172. [2] = true,
  173. [3] = true,
  174. [4] = true,
  175. [5] = true
  176. },
  177. ["vrotation"] =
  178. {
  179. ["y"] = 0,
  180. ["x"] = 0,
  181. ["z"] = 0
  182. },
  183. ["vposition"] =
  184. {
  185. ["y"] = 0,
  186. ["x"] = -0,
  187. ["z"] = -0
  188. }
  189. },
  190. [2] =
  191. {
  192. ["drotation"] =
  193. {
  194. ["y"] = 90,
  195. ["x"] = 90,
  196. ["z"] = 90
  197. },
  198. ["dposition"] =
  199. {
  200. ["y"] = 200,
  201. ["x"] = 200,
  202. ["z"] = 200
  203. },
  204. ["scale"] =
  205. {
  206. ["y"] = 100,
  207. ["x"] = 100,
  208. ["z"] = 100
  209. },
  210. ["dscale"] =
  211. {
  212. ["y"] = 500,
  213. ["x"] = 500,
  214. ["z"] = 500
  215. },
  216. ["vscale"] =
  217. {
  218. ["y"] = 1,
  219. ["x"] = 1,
  220. ["z"] = 1
  221. },
  222. ["rotation"] =
  223. {
  224. ["y"] = 0,
  225. ["x"] = 0,
  226. ["z"] = 0
  227. },
  228. ["assetId"] = shirt,
  229. ["changedFX"] = false,
  230. ["position"] =
  231. {
  232. ["y"] = 0,
  233. ["x"] = 0,
  234. ["z"] = 0
  235. },
  236. ["fx"] =
  237. {
  238. [1] = true,
  239. [2] = true,
  240. [3] = true,
  241. [4] = true,
  242. [5] = true
  243. },
  244. ["vrotation"] =
  245. {
  246. ["y"] = 0,
  247. ["x"] = 0,
  248. ["z"] = 0
  249. },
  250. ["vposition"] =
  251. {
  252. ["y"] = 0,
  253. ["x"] = -0,
  254. ["z"] = -0
  255. }
  256. },
  257. [3] =
  258. {
  259. ["drotation"] =
  260. {
  261. ["y"] = 180,
  262. ["x"] = 90,
  263. ["z"] = 90
  264. },
  265. ["dposition"] =
  266. {
  267. ["y"] = 100,
  268. ["x"] = 200,
  269. ["z"] = 200
  270. },
  271. ["scale"] =
  272. {
  273. ["y"] = 100,
  274. ["x"] = 100,
  275. ["z"] = 100
  276. },
  277. ["dscale"] =
  278. {
  279. ["y"] = 500,
  280. ["x"] = 500,
  281. ["z"] = 500
  282. },
  283. ["vscale"] =
  284. {
  285. ["y"] = 1,
  286. ["x"] = 1,
  287. ["z"] = 1
  288. },
  289. ["rotation"] =
  290. {
  291. ["y"] = 0,
  292. ["x"] = 0,
  293. ["z"] = 0
  294. },
  295. ["assetId"] = hat,
  296. ["changedFX"] = false,
  297. ["position"] =
  298. {
  299. ["y"] = 0,
  300. ["x"] = 0,
  301. ["z"] = 0
  302. },
  303. ["fx"] =
  304. {
  305. [1] = true,
  306. [2] = true,
  307. [3] = true,
  308. [4] = true,
  309. [5] = true
  310. },
  311. ["vrotation"] =
  312. {
  313. ["y"] = 0,
  314. ["x"] = 0,
  315. ["z"] = 0
  316. },
  317. ["vposition"] =
  318. {
  319. ["y"] = 0,
  320. ["x"] = -0,
  321. ["z"] = -0
  322. }
  323. },
  324. [4] =
  325. {
  326. ["drotation"] =
  327. {
  328. ["y"] = 90,
  329. ["x"] = 90,
  330. ["z"] = 90
  331. },
  332. ["dposition"] =
  333. {
  334. ["y"] = 200,
  335. ["x"] = 200,
  336. ["z"] = 200
  337. },
  338. ["scale"] =
  339. {
  340. ["y"] = 100,
  341. ["x"] = 100,
  342. ["z"] = 100
  343. },
  344. ["dscale"] =
  345. {
  346. ["y"] = 500,
  347. ["x"] = 500,
  348. ["z"] = 500
  349. },
  350. ["vscale"] =
  351. {
  352. ["y"] = 1,
  353. ["x"] = 1,
  354. ["z"] = 1
  355. },
  356. ["rotation"] =
  357. {
  358. ["y"] = 0,
  359. ["x"] = 0,
  360. ["z"] = 0
  361. },
  362. ["assetId"] = face,
  363. ["changedFX"] = false,
  364. ["position"] =
  365. {
  366. ["y"] = 0,
  367. ["x"] = 0,
  368. ["z"] = 0
  369. },
  370. ["fx"] =
  371. {
  372. [1] = true,
  373. [2] = true,
  374. [3] = true,
  375. [4] = true,
  376. [5] = true
  377. },
  378. ["vrotation"] =
  379. {
  380. ["y"] = 0,
  381. ["x"] = 0,
  382. ["z"] = 0
  383. },
  384. ["vposition"] =
  385. {
  386. ["y"] = 0,
  387. ["x"] = -0,
  388. ["z"] = -0
  389. }
  390. },
  391. [5] =
  392. {
  393. ["drotation"] =
  394. {
  395. ["y"] = 90,
  396. ["x"] = 90,
  397. ["z"] = 90
  398. },
  399. ["dposition"] =
  400. {
  401. ["y"] = 200,
  402. ["x"] = 200,
  403. ["z"] = 200
  404. },
  405. ["scale"] =
  406. {
  407. ["y"] = 100,
  408. ["x"] = 100,
  409. ["z"] = 100
  410. },
  411. ["dscale"] =
  412. {
  413. ["y"] = 500,
  414. ["x"] = 500,
  415. ["z"] = 500
  416. },
  417. ["vscale"] =
  418. {
  419. ["y"] = 1,
  420. ["x"] = 1,
  421. ["z"] = 1
  422. },
  423. ["rotation"] =
  424. {
  425. ["y"] = 0,
  426. ["x"] = 0,
  427. ["z"] = 0
  428. },
  429. ["assetId"] = tshirt,
  430. ["changedFX"] = false,
  431. ["position"] =
  432. {
  433. ["y"] = 0,
  434. ["x"] = 0,
  435. ["z"] = 0
  436. },
  437. ["fx"] =
  438. {
  439. [1] = true,
  440. [2] = true,
  441. [3] = true,
  442. [4] = true,
  443. [5] = true
  444. },
  445. ["vrotation"] =
  446. {
  447. ["y"] = 0,
  448. ["x"] = 0,
  449. ["z"] = 0
  450. },
  451. ["vposition"] =
  452. {
  453. ["y"] = 0,
  454. ["x"] = -0,
  455. ["z"] = -0
  456. }
  457. }
  458. },
  459. ["description"] = "",
  460. ["createdDate"] = 1000,
  461. ["lowerDesc"] = "",
  462. ["bodyColors"] =
  463. {
  464. ["HeadColor"] = color,
  465. ["TorsoColor"] = color,
  466. ["LeftArmColor"] = color,
  467. ["RightLegColor"] = color,
  468. ["RightArmColor"] = color,
  469. ["LeftLegColor"] = color
  470. },
  471. ["scales"] =
  472. {
  473. ["LowerLegHeight"] = size,
  474. ["UpperTorsoWidth"] = size,
  475. ["UpperArmHeight"] = size,
  476. ["HandHeight"] = size,
  477. ["UpperLegWidth"] = size,
  478. ["LowerArmWidth"] = size,
  479. ["FootWidth"] = size,
  480. ["LowerArmHeight"] = size,
  481. ["UpperArmWidth"] = size,
  482. ["FootHeight"] = size,
  483. ["LowerTorsoWidth"] = size,
  484. ["UpperTorsoHeight"] = size,
  485. ["HandWidth"] = size,
  486. ["HeadScale"] = size,
  487. ["UpperLegHeight"] = size,
  488. ["LowerTorsoHeight"] = size,
  489. ["LowerLegWidth"] = size
  490. },
  491. ["name"] = "",
  492. ["outfitId"] = 1,
  493. ["isOutfit"] = true,
  494. ["collageSeed"] = 0,
  495. ["lowerName"] = ""
  496. }
  497. Event:FireServer(shit)
  498. end
  499.  
  500. function getSize()
  501. return tonumber(frame.kk.Text)
  502. end
  503.  
  504. frame.Down.MouseButton1Click:Connect(function()
  505. setSize(getSize() - 1)
  506. end)
  507. frame.Up.MouseButton1Click:Connect(function()
  508. setSize(getSize() + 1)
  509. end)
  510. setSize(getSize())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement