Advertisement
DnS_PRODUCTS

Position generator

Feb 24th, 2018
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.39 KB | None | 0 0
  1.  
  2. local CoordinateGenerator = Instance.new("ScreenGui")
  3. local Main = Instance.new("Frame")
  4. local Transparency = Instance.new("ScrollingFrame")
  5. local Settings = Instance.new("TextLabel")
  6. local Coordinates = Instance.new("TextLabel")
  7. local Copy = Instance.new("TextButton")
  8. local Info = Instance.new("TextLabel")
  9. local Logbtn = Instance.new("TextButton")
  10. local Log = Instance.new("TextButton")
  11. local Close = Instance.new("ImageButton")
  12. local Main_2 = Instance.new("ImageLabel")
  13. local Logger = Instance.new("ScrollingFrame")
  14. local UIController = Instance.new("UIListLayout")
  15. -- Properties
  16.  
  17. CoordinateGenerator.Name = "CoordinateGenerator"
  18. CoordinateGenerator.Parent = game.CoreGui
  19.  
  20. Main.Name = "Main"
  21. Main.Parent = CoordinateGenerator
  22. Main.Active = true
  23. Main.BackgroundColor3 = Color3.new(1, 1, 1)
  24. Main.BorderSizePixel = 0
  25. Main.Draggable = true
  26. Main.Position = UDim2.new(0.0636864603, 0, 0.638141811, 0)
  27. Main.Size = UDim2.new(0, 317, 0, 185)
  28.  
  29. Transparency.Name = "Transparency"
  30. Transparency.Parent = Main
  31. Transparency.BackgroundColor3 = Color3.new(0.513726, 0.513726, 0.513726)
  32. Transparency.BorderSizePixel = 0
  33. Transparency.Position = UDim2.new(3.7252903e-09, 0, 0.940577686, 0)
  34. Transparency.Size = UDim2.new(0, 190, 0, 11)
  35. Transparency.BottomImage = "rbxasset://textures/ui/Scroll/scroll-middle.png"
  36. Transparency.CanvasSize = UDim2.new(0, 200000, 0, 0)
  37. Transparency.TopImage = "rbxasset://textures/ui/Scroll/scroll-middle.png"
  38.  
  39. Settings.Name = "Settings"
  40. Settings.Parent = Main
  41. Settings.BackgroundColor3 = Color3.new(1, 1, 1)
  42. Settings.BackgroundTransparency = 1
  43. Settings.Position = UDim2.new(0, 0, 0.789802194, 0)
  44. Settings.Size = UDim2.new(0, 200, 0, 25)
  45. Settings.Font = Enum.Font.SourceSansLight
  46. Settings.FontSize = Enum.FontSize.Size32
  47. Settings.Text = "Transparency"
  48. Settings.TextSize = 31
  49. Settings.TextXAlignment = Enum.TextXAlignment.Left
  50. Settings.TextYAlignment = Enum.TextYAlignment.Bottom
  51.  
  52. Coordinates.Name = "Coordinates"
  53. Coordinates.Parent = Main
  54. Coordinates.BackgroundColor3 = Color3.new(1, 1, 1)
  55. Coordinates.BorderSizePixel = 0
  56. Coordinates.Position = UDim2.new(0.14037855, 0, 0.162162155, 0)
  57. Coordinates.Size = UDim2.new(0, 228, 0, 63)
  58. Coordinates.Font = Enum.Font.SourceSansLight
  59. Coordinates.FontSize = Enum.FontSize.Size14
  60. Coordinates.TextColor3 = Color3.new(0.509804, 0.796079, 1)
  61. Coordinates.TextScaled = true
  62. Coordinates.TextSize = 14
  63. Coordinates.TextWrapped = true
  64. Coordinates.Text = "Waiting for child..."
  65.  
  66. Copy.Name = "Copy"
  67. Copy.Parent = Main
  68. Copy.BackgroundColor3 = Color3.new(0.262745, 0.768628, 1)
  69. Copy.BorderSizePixel = 0
  70. Copy.Position = UDim2.new(0.305993676, 0, 0.502702713, 0)
  71. Copy.Size = UDim2.new(0, 124, 0, 14)
  72. Copy.Font = Enum.Font.SourceSans
  73. Copy.FontSize = Enum.FontSize.Size14
  74. Copy.Text = "Copy"
  75. Copy.TextSize = 14
  76.  
  77. Info.Name = "Info"
  78. Info.Parent = Main
  79. Info.BackgroundColor3 = Color3.new(1, 1, 1)
  80. Info.BackgroundTransparency = 1
  81. Info.Position = UDim2.new(0.630914807, 0, 0.654054046, 0)
  82. Info.Size = UDim2.new(0, 117, 0, 50)
  83. Info.Font = Enum.Font.SourceSansLight
  84. Info.FontSize = Enum.FontSize.Size14
  85. Info.TextScaled = true
  86. Info.TextSize = 14
  87. Info.TextWrapped = true
  88.  
  89. Logbtn.Name = "Logbtn"
  90. Logbtn.Parent = Main
  91. Logbtn.BackgroundColor3 = Color3.new(0.262745, 0.768628, 1)
  92. Logbtn.BorderSizePixel = 0
  93. Logbtn.Position = UDim2.new(0.305993676, 0, 0.610810816, 0)
  94. Logbtn.Size = UDim2.new(0, 124, 0, 14)
  95. Logbtn.Font = Enum.Font.SourceSans
  96. Logbtn.FontSize = Enum.FontSize.Size14
  97. Logbtn.Text = "Open log"
  98. Logbtn.TextSize = 14
  99.  
  100. Log.Name = "Log"
  101. Log.Parent = CoordinateGenerator
  102. Log.BackgroundColor3 = Color3.new(0.32549, 0.32549, 0.32549)
  103. Log.BorderSizePixel = 0
  104. Log.Draggable = true
  105. Log.Position = UDim2.new(0.470300049, 0, 0.290953547, 0)
  106. Log.Size = UDim2.new(0, 426, 0, 34)
  107. Log.Visible = false
  108. Log.Font = Enum.Font.SourceSansLight
  109. Log.FontSize = Enum.FontSize.Size48
  110. Log.Text = "Syntax's Coordinate Generator"
  111. Log.TextColor3 = Color3.new(1, 1, 1)
  112. Log.TextScaled = true
  113. Log.TextSize = 38
  114. Log.TextWrapped = true
  115. Log.TextXAlignment = Enum.TextXAlignment.Left
  116. Log.TextYAlignment = Enum.TextYAlignment.Bottom
  117.  
  118. Close.Name = "Close"
  119. Close.Parent = Log
  120. Close.BackgroundColor3 = Color3.new(1, 1, 1)
  121. Close.BackgroundTransparency = 1
  122. Close.Position = UDim2.new(0.920187771, 0, 0.0588235259, 0)
  123. Close.Size = UDim2.new(0, 30, 0, 30)
  124. Close.Image = "rbxassetid://1375879623"
  125.  
  126. Main_2.Name = "Main"
  127. Main_2.Parent = Log
  128. Main_2.BackgroundColor3 = Color3.new(1, 1, 1)
  129. Main_2.BorderSizePixel = 0
  130. Main_2.Position = UDim2.new(-0.00234741787, 0, 1, 0)
  131. Main_2.Size = UDim2.new(0, 427, 0, 243)
  132. Main_2.Image = "rbxassetid://585867512"
  133. Main_2.ImageColor3 = Color3.new(0.462745, 0.462745, 0.462745)
  134.  
  135. Logger.Name = "Logger"
  136. Logger.Parent = Main_2
  137. Logger.BackgroundColor3 = Color3.new(1, 1, 1)
  138. Logger.BackgroundTransparency = 1
  139. Logger.BorderSizePixel = 0
  140. Logger.Size = UDim2.new(0, 427, 0, 243)
  141. Logger.BottomImage = "rbxasset://textures/ui/Scroll/scroll-middle.png"
  142. Logger.CanvasSize = UDim2.new(0, 0, 1.20000005, 0)
  143. Logger.TopImage = "rbxasset://textures/ui/Scroll/scroll-middle.png"
  144. UIController.Parent = Logger
  145. Info.Text = "X Axis, Y Axis, Z Axis"
  146.  
  147. local function Errorlog(text)
  148. local LogText = Instance.new("TextLabel")
  149. LogText.Name = "LogText"
  150. LogText.Parent = Logger
  151. LogText.BackgroundColor3 = Color3.new(1, 1, 1)
  152. LogText.BackgroundTransparency = 1
  153. LogText.BorderSizePixel = 0
  154. LogText.Position = UDim2.new(-0.958, LogText.Position.X.Offset, LogText.Position.Y, LogText.Position.Y.Offset)
  155. LogText.Size = UDim2.new(0, 410, 0, 50)
  156. LogText.Font = Enum.Font.SourceSansLight
  157. LogText.FontSize = Enum.FontSize.Size24
  158. LogText.Text = text
  159. LogText.TextColor3 = Color3.new(1, 0.00784314, 0.00784314)
  160. LogText.TextScaled = true
  161. LogText.TextSize = 19
  162. LogText.TextWrapped = true
  163. LogText.TextXAlignment = Enum.TextXAlignment.Left
  164. LogText.TextYAlignment = Enum.TextYAlignment.Top
  165. Logger.CanvasSize = UDim2.new(0, 0, Logger.CanvasSize.Y.Offset+3, 0)
  166. end
  167.  
  168. Close.MouseButton1Up:connect(function()
  169. Log.Visible = false
  170. end)
  171. Logbtn.MouseButton1Up:connect(function()
  172. Log.Visible = true
  173. end)
  174. if Synapse ~= nil then
  175. Copy.Visible = true
  176. Copy.MouseButton1Down:connect(function()
  177. local LC = game.Players.LocalPlayer.Character
  178. Synapse:CopyString(LC.HumanoidRootPart.Position.X..", "..LC.HumanoidRootPart.Position.Y..", "..LC.HumanoidRootPart.Position.Z)
  179. end)
  180. else
  181. Copy.Visible = false
  182. end
  183. local max = Transparency.CanvasSize.X.Offset - 1000
  184. Transparency:GetPropertyChangedSignal("CanvasPosition"):Connect(function()
  185. Main.BackgroundTransparency = Transparency.CanvasPosition.X / max * 1.1
  186. Settings.TextStrokeTransparency = Main.BackgroundTransparency
  187. end)
  188. game.StarterGui:SetCore("SendNotification", {
  189. Title = "Success!";
  190. Text = "The Coordinate Generator has loaded!";
  191. })
  192. while wait() do
  193. local LC = game.Players.LocalPlayer.Character
  194. if game.Players.LocalPlayer.Character == nil then
  195. Errorlog("Character not found! This issue could be caused by custom game functions. Please wait until character loads!")
  196. game.StarterGui:SetCore("SendNotification", {
  197. Title = "Error";
  198. Text = "Character not found! This issue could be caused by custom game functions. Please wait until character loads!";
  199. })
  200. wait(5)
  201. else
  202. local LC = game.Players.LocalPlayer.Character
  203. if LC.HumanoidRootPart ~= nil then
  204. Coordinates.Text = LC.HumanoidRootPart.Position.X.." "..LC.HumanoidRootPart.Position.Y.." "..LC.HumanoidRootPart.Position.Z
  205. end
  206. end
  207.  
  208. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement