Advertisement
LonePotato

candycane

Feb 11th, 2019
316
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.04 KB | None | 0 0
  1. -- Created by Cow and matuman
  2. -- Created: 2/9/19
  3. -- Test with Synapse X v1.2.3c
  4.  
  5. -- https://www.roblox.com/games/2746585602
  6. local storage = game:GetService("ReplicatedStorage")
  7.  
  8. local player = game:GetService("Players").LocalPlayer
  9.  
  10. local character = player.Character
  11.  
  12. local playerGui = player:FindFirstChild("PlayerGui")
  13.  
  14. local mouse = player:GetMouse()
  15.  
  16. local auto_click = false
  17.  
  18. local auto_sell = false
  19.  
  20. local auto_coin_tp = false
  21.  
  22. local teleports = {}
  23. teleports[1] = {"Spawn", Vector3.new(91, 36, -7)}
  24. teleports[2] = {"Cloud World", Vector3.new(73, 139, 18)}
  25. teleports[3] = {"Cloud Rebirth", Vector3.new(-11, 31, -1649)}
  26. teleports[4] = {"Rock World", Vector3.new(26, 382, 26)}
  27. teleports[5] = {"Rock Rebirth", Vector3.new(665, 327, -7952)}
  28. teleports[6] = {"Space World", Vector3.new(41, 747, 42)}
  29. teleports[7] = {"Space Rebirth", Vector3.new(148, 1845, 2754)}
  30. teleports[8] = {"Ice World", Vector3.new(35, 1117, 48)}
  31. teleports[9] = {"Lava World", Vector3.new(41, 1635, 50)}
  32. teleports[10] = {"Toxic World", Vector3.new(35, 2300, 58)}
  33.  
  34. for i, v in pairs(playerGui:GetChildren()) do
  35. if v.Name == "Cow's_Grow_A_Candy_Cane_Simulator_Gui" then
  36. v:Destroy()
  37. end
  38. end
  39.  
  40. local screenGui = Instance.new("ScreenGui", playerGui)
  41. screenGui.Name = "Cow's_Grow_A_Candy_Cane_Simulator_Gui"
  42.  
  43. function createGui()
  44. local frame = Instance.new("Frame", screenGui)
  45. frame.Size = UDim2.new(0, -150, 0, 0)
  46. frame.Position = UDim2.new(1, -5, 0.5, 0)
  47. frame.BackgroundTransparency = 1
  48.  
  49. local teleportButton = Instance.new("TextButton", frame)
  50. teleportButton.Size = UDim2.new(1, 0, 0, 36)
  51. teleportButton.Position = UDim2.new(0, 0, 0, 0)
  52. teleportButton.Text = "Teleports"
  53. teleportButton.Font = Enum.Font.SourceSansBold
  54. teleportButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  55. teleportButton.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  56. teleportButton.TextScaled = true
  57.  
  58. teleportButton.MouseButton1Click:Connect(function()
  59. if frame:FindFirstChild("teleportGui") then
  60. teleportButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  61. frame:FindFirstChild("teleportGui"):Destroy()
  62. else
  63. teleportButton.TextColor3 = Color3.fromRGB(125, 125, 125)
  64. createTeleportGui(frame)
  65. end
  66. end)
  67.  
  68. local autoClick = Instance.new("TextLabel", frame)
  69. autoClick.Size = UDim2.new(0.75, 0, 0, 36)
  70. autoClick.Position = UDim2.new(0.25, 0, 0, 41)
  71. autoClick.Text = "Auto Click"
  72. autoClick.Font = Enum.Font.SourceSansBold
  73. autoClick.TextColor3 = Color3.fromRGB(255, 255, 255)
  74. autoClick.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  75. autoClick.TextScaled = true
  76.  
  77. local status = Instance.new("TextButton", frame)
  78. status.Size = UDim2.new(0.25, -5, 0, 36)
  79. status.Position = UDim2.new(0, 0, 0, 41)
  80. status.Text = "Off"
  81. status.Font = Enum.Font.SourceSansBold
  82. status.TextColor3 = Color3.fromRGB(255, 0, 0)
  83. status.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  84. status.TextScaled = true
  85.  
  86. status.MouseButton1Click:Connect(function()
  87. if auto_click then
  88. auto_click = false
  89. status.Text = "Off"
  90. status.TextColor3 = Color3.fromRGB(255, 0, 0)
  91. else
  92. auto_click = true
  93. status.Text = "On"
  94. status.TextColor3 = Color3.fromRGB(0, 255, 0)
  95. autoClickFunc()
  96. end
  97. end)
  98.  
  99. local autoSell = Instance.new("TextLabel", frame)
  100. autoSell.Size = UDim2.new(0.75, 0, 0, 36)
  101. autoSell.Position = UDim2.new(0.25, 0, 0, 82)
  102. autoSell.Text = "Auto Sell"
  103. autoSell.Font = Enum.Font.SourceSansBold
  104. autoSell.TextColor3 = Color3.fromRGB(255, 255, 255)
  105. autoSell.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  106. autoSell.TextScaled = true
  107.  
  108. local status = Instance.new("TextButton", frame)
  109. status.Size = UDim2.new(0.25, -5, 0, 36)
  110. status.Position = UDim2.new(0, 0, 0, 82)
  111. status.Text = "Off"
  112. status.Font = Enum.Font.SourceSansBold
  113. status.TextColor3 = Color3.fromRGB(255, 0, 0)
  114. status.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  115. status.TextScaled = true
  116.  
  117. status.MouseButton1Click:Connect(function()
  118. if auto_sell then
  119. auto_sell = false
  120. status.Text = "Off"
  121. status.TextColor3 = Color3.fromRGB(255, 0, 0)
  122. else
  123. auto_sell = true
  124. status.Text = "On"
  125. status.TextColor3 = Color3.fromRGB(0, 255, 0)
  126. end
  127. end)
  128.  
  129. local autoCoinTP = Instance.new("TextLabel", frame)
  130. autoCoinTP.Size = UDim2.new(0.75, 0, 0, 36)
  131. autoCoinTP.Position = UDim2.new(0.25, 0, 0, 123)
  132. autoCoinTP.Text = "Auto Coin TP"
  133. autoCoinTP.Font = Enum.Font.SourceSansBold
  134. autoCoinTP.TextColor3 = Color3.fromRGB(255, 255, 255)
  135. autoCoinTP.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  136. autoCoinTP.TextScaled = true
  137.  
  138. local status = Instance.new("TextButton", frame)
  139. status.Size = UDim2.new(0.25, -5, 0, 36)
  140. status.Position = UDim2.new(0, 0, 0, 123)
  141. status.Text = "Off"
  142. status.Font = Enum.Font.SourceSansBold
  143. status.TextColor3 = Color3.fromRGB(255, 0, 0)
  144. status.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  145. status.TextScaled = true
  146.  
  147. status.MouseButton1Click:Connect(function()
  148. if auto_coin_tp then
  149. auto_coin_tp = false
  150. status.Text = "Off"
  151. status.TextColor3 = Color3.fromRGB(255, 0, 0)
  152. else
  153. auto_coin_tp = true
  154. status.Text = "On"
  155. status.TextColor3 = Color3.fromRGB(0, 255, 0)
  156. autoCoinTPFunc()
  157. end
  158. end)
  159.  
  160. local power = Instance.new("TextButton", frame)
  161. power.Size = UDim2.new(1, 0, 0, 36)
  162. power.Position = UDim2.new(0, 0, 0, 164)
  163. power.Text = "Open Power"
  164. power.Font = Enum.Font.SourceSansBold
  165. power.TextColor3 = Color3.fromRGB(255, 255, 255)
  166. power.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  167. power.TextScaled = true
  168.  
  169. power.MouseButton1Click:Connect(function()
  170. if playerGui:FindFirstChild("PowerUi"):FindFirstChild("Frame").Visible then
  171. playerGui:FindFirstChild("PowerUi"):FindFirstChild("Frame").Visible = false
  172. else
  173. playerGui:FindFirstChild("PowerUi"):FindFirstChild("Frame").Visible = true
  174. end
  175. end)
  176.  
  177. local rebirth = Instance.new("TextButton", frame)
  178. rebirth.Size = UDim2.new(1, 0, 0, 36)
  179. rebirth.Position = UDim2.new(0, 0, 0, 205)
  180. rebirth.Text = "Open Rebirth"
  181. rebirth.Font = Enum.Font.SourceSansBold
  182. rebirth.TextColor3 = Color3.fromRGB(255, 255, 255)
  183. rebirth.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  184. rebirth.TextScaled = true
  185.  
  186. rebirth.MouseButton1Click:Connect(function()
  187. if playerGui:FindFirstChild("RebirthUi"):FindFirstChild("Frame").Visible then
  188. playerGui:FindFirstChild("RebirthUi"):FindFirstChild("Frame").Visible = false
  189. else
  190. playerGui:FindFirstChild("RebirthUi"):FindFirstChild("Frame").Visible = true
  191. end
  192. end)
  193.  
  194. local trapButton = Instance.new("TextButton", frame)
  195. trapButton.Size = UDim2.new(1, 0, 0, 36)
  196. trapButton.Position = UDim2.new(0, 0, 0, 246)
  197. trapButton.Text = "Trap"
  198. trapButton.Font = Enum.Font.SourceSansBold
  199. trapButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  200. trapButton.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  201. trapButton.TextScaled = true
  202.  
  203. trapButton.MouseButton1Click:Connect(function()
  204. local part = Instance.new("Part", workspace)
  205. part.Position = Vector3.new(character.Head.Position.X + 3, character.Head.Position.Y, character.Head.Position.Z)
  206. part.Size = Vector3.new(1, 8, 8)
  207. part.Anchored = true
  208.  
  209. local part = Instance.new("Part", workspace)
  210. part.Position = Vector3.new(character.Head.Position.X - 3, character.Head.Position.Y, character.Head.Position.Z)
  211. part.Size = Vector3.new(1, 8, 8)
  212. part.Anchored = true
  213.  
  214. local part = Instance.new("Part", workspace)
  215. part.Position = Vector3.new(character.Head.Position.X, character.Head.Position.Y, character.Head.Position.Z + 3)
  216. part.Size = Vector3.new(8, 8, 1)
  217. part.Anchored = true
  218.  
  219. local part = Instance.new("Part", workspace)
  220. part.Position = Vector3.new(character.Head.Position.X, character.Head.Position.Y, character.Head.Position.Z - 3)
  221. part.Size = Vector3.new(8, 8, 1)
  222. part.Anchored = true
  223. end)
  224. end
  225. createGui()
  226.  
  227. function createTeleportGui(frame)
  228. local frame = Instance.new("Frame", frame)
  229. frame.Name = "teleportGui"
  230. frame.Size = frame.Parent.Size
  231. frame.Position = UDim2.new(0, -5, frame.Parent.Position.X.Scale, 0)
  232. frame.BackgroundTransparency = 1
  233.  
  234. for i, v in pairs(teleports) do
  235. local text = Instance.new("TextButton", frame)
  236. text.Size = UDim2.new(1, 0, 0, 36)
  237. text.Position = UDim2.new(0, 0, 0, 41 * (i - 1))
  238. text.Text = teleports[i][1]
  239. text.Font = Enum.Font.SourceSansBold
  240. text.TextColor3 = Color3.fromRGB(255, 255, 255)
  241. text.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  242. text.TextScaled = true
  243.  
  244. text.MouseButton1Click:Connect(function()
  245. character:MoveTo(teleports[i][2])
  246. end)
  247. end
  248. end
  249.  
  250. function autoClickFunc()
  251. if auto_click then
  252. if character:FindFirstChild("Candycane") then
  253. workspace.ACowThatIsLost.Candycane.RemoteEvent:FireServer("Click")
  254. end
  255. if auto_sell then
  256. if character.Humanoid.Sit then
  257. character.Humanoid.Sit = false
  258. else
  259. character.Humanoid.Sit = true
  260. end
  261. end
  262. delay(0.01, function()
  263. autoClickFunc()
  264. end)
  265. end
  266. end
  267.  
  268. function autoCoinTPFunc()
  269. if auto_coin_tp then
  270. local drops = workspace:FindFirstChild("DropsFolder").Drops
  271. for i, v in pairs(drops:GetChildren()) do
  272. if v.Name ~= "Clouds" and v.Name ~= "Spawn" and v.Name ~= "Rocks" and v.Name ~= "Space" then
  273. for i2, v2 in pairs(v:GetChildren()) do
  274. if not auto_coin_tp then
  275. return
  276. end
  277. if string.match(v2.Name, "Coin") or string.match(v2.Name, "Cyrstal") then
  278. character:MoveTo(v2.Position)
  279. repeat
  280. wait()
  281. until not v:FindFirstChild(v2)
  282. wait(0.5)
  283. end
  284. end
  285. end
  286. end
  287. wait(0.1)
  288. autoCoinTPFunc()
  289. end
  290. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement