Advertisement
Jackie673

Princess tycoon script op 100%

Jan 13th, 2024 (edited)
2,382
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.61 KB | None | 0 0
  1. -- GGH52Lan
  2. -- taking an hour to finish, so hard to fix errors
  3. -- support me by subscribing on my channel (random vidzz) "https://www.youtube.com/@RandomVidzz-G"
  4.  
  5. if game.PlaceId ~= 3804735158 then
  6. game:GetService("StarterGui"):SetCore("SendNotification",{
  7. Title = "Game Not Supported";
  8. Text = "Supported Game: Princess tycoon";
  9. Icon = "rbxassetid://14260295451";
  10. Duration = 7;})
  11. return false
  12. end
  13.  
  14. if game.Players:FindFirstChild"GGH52Lan" or game.Players:FindFirstChild"GGH52Lan_2" then
  15. game:GetService("StarterGui"):SetCore("SendNotification",{
  16. Title = "GGH52Lan";
  17. Text = "the owner is here on the server!!";
  18. Icon = "rbxassetid://14260295451";
  19. Duration = 10;})
  20. end
  21.  
  22. local library = loadstring(game:HttpGet("https://raw.githubusercontent.com/bloodball/-back-ups-for-libs/main/turtle"))()
  23. local Window = library:Window("By GGH52Lan")
  24.  
  25. local G = setmetatable({}, {__index = function(Self, Index)
  26. local NewService = game.GetService(game, Index)
  27. if NewService then
  28. Self[Index] = NewService
  29. end
  30. return NewService
  31. end})
  32.  
  33. local Players = G.Players
  34. local plr = Players.LocalPlayer
  35. local lastPosOftoolgiver = {}
  36. local H
  37. local Connections = {}
  38. local Ch
  39. local reExecuted = false
  40. local lastPosOfCashGiver = nil
  41.  
  42. local OrionLib = loadstring(game:HttpGet(('https://raw.githubusercontent.com/shlexware/Orion/main/source')))()
  43.  
  44. local function notify(n, c, i, t)
  45. n = n or "GGH52Lan"
  46. c = c or "text"
  47. i = i or "rbxassetid://14260295451"
  48. t = t or 5
  49. OrionLib:MakeNotification({
  50. Name = n,
  51. Content = c,
  52. Image = i,
  53. Time = t
  54. })
  55. OrionLib:Init()
  56. end
  57.  
  58. local function findTycoon()
  59. for i,v in pairs(workspace.Tycoons.Tycoons:GetDescendants()) do
  60. if v:IsA"ObjectValue" and v.Value == plr then
  61. return v.Parent
  62. end
  63. end
  64. end
  65.  
  66. local function nmm()
  67. wait()
  68. for i,v in pairs(plr.Backpack:GetChildren()) do
  69. if v:IsA"Tool" and v.Name == "IceShuriken" then
  70. v: Destroy ()
  71. end
  72. end
  73.  
  74. for i,v in pairs(plr.Character:GetChildren()) do
  75. if v:IsA"Tool" and v.Name == "IceShuriken" then
  76. v: Destroy ()
  77. end
  78. end
  79.  
  80. end
  81. --[[
  82. local function GetTycoons()
  83. local found= {}
  84. for i,v in pairs(workspace.Tycoons.Tycoons:GetChildren()) do
  85. table.insert(found, v)
  86. end
  87. return found
  88. end
  89.  
  90. local function PurchasedObjects()
  91. local found= {}
  92. for i,v in pairs(GetTycoons()) do
  93. table.insert(found, v.PurchasedObjects)
  94. end
  95. return found
  96. end ]]
  97.  
  98. local function GetCreateCash()
  99. for i,v in pairs(workspace.CrateParent:GetChildren()) do
  100. if v then
  101. v.CanCollide = false
  102. v.Transparency = 1
  103. v.CFrame = plr.Character.PrimaryPart.CFrame
  104. end
  105. end
  106. H = workspace.CrateParent.ChildAdded:Connect(function(child)
  107. wait(.1)
  108. child.CanCollide = false
  109. child.Transparency = 1
  110. child.CFrame = plr.Character.PrimaryPart.CFrame
  111. end)
  112. end
  113.  
  114. local function stopCreateCash()
  115. if H then H: Disconnect () end
  116. end
  117.  
  118. local function DisableLaser(bool)
  119. if bool then
  120. for i,v in pairs(workspace.Tycoons.Tycoons:GetDescendants()) do
  121. if v:IsA"Part" and v.Name == "Pipe" then
  122. v.CanTouch = false
  123. end
  124. end
  125. Ch = workspace.Tycoons.Tycoons.DescendantAdded:Connect(function(obj)
  126. if obj:IsA"Part" and obj.Name == "Pipe" then
  127. obj.CanTouch = false
  128. end
  129. end)
  130. else
  131. for i,v in pairs(workspace.Tycoons.Tycoons:GetDescendants()) do
  132. if v:IsA"Part" and v.Name == "Pipe" then
  133. v.CanTouch = true
  134. end
  135. end
  136. Ch:Disconnect()
  137. end
  138. end
  139.  
  140. local function GetAllTools()
  141. for i,v in pairs(workspace.Tycoons.Tycoons:GetDescendants()) do
  142. if v.Name == "PurchasedObjects" then
  143. for h,b in pairs(v:GetDescendants()) do
  144. if b:IsA"BasePart" and b.Name:match("Giver") then
  145. lastPosOftoolgiver[b] = b.CFrame
  146. wait()
  147. b.CanCollide = false
  148. b.Transparency = 1
  149. b.CFrame = plr.Character.PrimaryPart.CFrame
  150. end
  151. end
  152. end
  153. end
  154. for i,v in pairs(lastPosOftoolgiver) do
  155. if i:IsA"Instance" then
  156. i.CFrame = v
  157. i.CanCollide = false
  158. i.Transparency = 0
  159. end
  160. end
  161. table.clear(lastPosOftoolgiver)
  162. wait(1)
  163. end
  164.  
  165. local loop = true
  166. local function autoCollectCash()
  167. if not findTycoon() then return notify(nil, "Pls claim a tycoon") end
  168. lastPosOfCashGiver = findTycoon().Essentials.Giver.CFrame
  169. loop = true
  170. while loop do
  171. if not loop then break end
  172. findTycoon().Essentials.Giver.CanCollide = false
  173. findTycoon().Essentials.Giver.Transparency = 1
  174. findTycoon().Essentials.Giver.CFrame = plr.Character.PrimaryPart.CFrame
  175. wait(1)
  176. end
  177. end
  178.  
  179. local function StopautoCollectCash()
  180. if not findTycoon() then return nil end
  181. loop = false
  182. findTycoon().Essentials.Giver.CanCollide = true
  183. findTycoon().Essentials.Giver.Transparency = 0
  184. findTycoon().Essentials.Giver.CFrame = lastPosOfCashGiver
  185. loop = false
  186. end
  187.  
  188. Window:Toggle("auto get 'Create Cash'", false, function(bool)
  189. if bool then
  190. GetCreateCash()
  191. notify(nil, "auto Get CreateCash enabled")
  192. else
  193. stopCreateCash()
  194. notify(nil, "auto Get CreateCash disabled")
  195. end
  196. end)
  197.  
  198. Window:Toggle("Disable Door Lasers damage", false, function(bool)
  199. DisableLaser(bool)
  200. end)
  201.  
  202. local GG = false
  203. Window:Toggle("Get All Weapons", false, function(bool)
  204. if bool then
  205. GG = bool
  206. GetAllTools()
  207. repeat -- so Players cant get weaponz 😝
  208. GetAllTools()
  209. wait() -- so Players cant get weaponz 😝
  210. until GG == false
  211.  
  212. else
  213. GG = bool
  214. wait()
  215. for i,v in pairs(lastPosOftoolgiver) do
  216. if i:IsA"Instance" then
  217. i.CFrame = v
  218. i.CanCollide = false
  219. i.Transparency = 0
  220. end
  221. end
  222. end
  223. end)
  224.  
  225. local GG1 = false
  226. Window:Button("Get All Weapons", function(bool)
  227. if bool then
  228. GG1 = bool
  229. GetAllTools()
  230. GetAllTools()
  231. wait() -- so Players cant get weaponz 😝
  232. else
  233. GG1 = bool
  234. wait()
  235. for i,v in pairs(lastPosOftoolgiver) do
  236. if i:IsA"Instance" then
  237. i.CFrame = v
  238. i.CanCollide = false
  239. i.Transparency = 0
  240. end
  241. end
  242. end
  243. end)
  244.  
  245. Window:Toggle("Auto Collect Cash", false, function(bool)
  246. if bool then
  247. autoCollectCash()
  248. else
  249. StopautoCollectCash()
  250. end
  251. end)
  252.  
  253. local idt
  254. Window:Toggle("improve dropping tools", false, function(bool)
  255. if bool then
  256. nmm()
  257. idt = plr.Backpack.ChildAdded: Connect(function(v)
  258. if v.Name == "IceShuriken" then
  259. nmm()
  260. end
  261. end)
  262. else
  263. idt: Disconnect ()
  264. end
  265. end)
  266.  
  267.  
  268. Window:Button("Tool gui", function()
  269. if reExecuted then return notify(nil, "Already loaded") end
  270. reExecuted = true
  271. loadstring(game:HttpGet("https://pastebin.com/raw/ZvstfPXM"))()
  272. end)
  273.  
  274. Window:Button("infinite yield", function()
  275. loadstring(game:HttpGet('https://raw.githubusercontent.com/EdgeIY/infiniteyield/master/source'))()
  276. end)
  277.  
  278. Window:Button("infinite yield", function()
  279. loadstring(game:HttpGet('https://raw.githubusercontent.com/Pro69Yes/sussy-Script/main/SecuredFlyGuiv3.lua'))()
  280. end)
  281.  
  282. local function GetPlrs(txt)
  283. local tl = txt:lower()
  284. local found= {}
  285. if tl == "me" or tl == "me " then
  286. table.insert(found,game.Players.LocalPlayer)
  287. return found
  288. elseif tl == "random" or tl == "random " then
  289. table.insert(found,game.Players:GetPlayers()[math.random(1, #Game.Players:GetPlayers())])
  290. return found
  291. elseif tl == "others" or tl == "others " then
  292. for i,v in pairs(game.Players:GetPlayers()) do
  293. if v ~= game.Players.LocalPlayer then
  294. table.insert(found, v)
  295. end
  296. end
  297. return found
  298. elseif tl == "all" or tl == "all " then
  299. for i,v in pairs(game.Players:GetPlayers()) do
  300. table.insert(found, v)
  301. end
  302. return found
  303. elseif tl == "enemies" or tl == "enemies " then
  304. for i,v in pairs(game.Players:GetPlayers()) do
  305. if v ~= game.Players.LocalPlayer and v.Team ~= plr.Team then
  306. table.insert(found, v)
  307. end
  308. end
  309. return found
  310. elseif tl == "team" or tl == "team " then
  311. for i,v in pairs(game.Players:GetPlayers()) do
  312. if v ~= game.Players.LocalPlayer and v.Team == plr.Team then
  313. table.insert(found, v)
  314. end
  315. end
  316. return found
  317. else
  318. for i,v in pairs(game.Players:GetPlayers()) do
  319. if v.Name:lower():match(tl) or v.DisplayName:lower():match(tl) then
  320. table.insert(found, v)
  321. end
  322. end
  323. return found
  324. end
  325. end
  326.  
  327. local KillW = library:Window("Kill Player")
  328.  
  329. local Target = "enemies"
  330. KillW:Box("Kill - enemies", function(text, focuslost)
  331. if focuslost then
  332. Target = tostring(text)
  333. end
  334. end)
  335.  
  336. local function bring(pl)
  337. if pl.Name == "GGH52Lan" or pl.Name == "GGH52Lan_2" or pl == plr then return end
  338. if pl and pl.Character and pl.Character:FindFirstChildOfClass"ForceField" == nil then
  339. pl.Character.HumanoidRootPart.CFrame = plr.Character.HumanoidRootPart.CFrame * CFrame.new(1.6,0,-1.8)
  340.  
  341. pl.Character.Humanoid.PlatformStand = true
  342.  
  343. if pl.Character:FindFirstChildOfClass"Tool" then
  344. pl.Character:FindFirstChildOfClass"Tool": Destroy ()
  345. end
  346.  
  347. end
  348. end
  349.  
  350. local Lop = false
  351.  
  352. local function bringall()
  353.  
  354. for _, player in pairs(game.Players:GetPlayers()) do
  355. if player.Name ~= "GGH52Lan" or player.Name ~="GGH52Lan_2" then
  356. if player ~= plr and player.Character:FindFirstChildOfClass"ForceField" == nil then
  357. player.Character.HumanoidRootPart.CFrame = plr.Character.HumanoidRootPart.CFrame * CFrame.new(1.6,0,-1.8)
  358. player.Character.Humanoid.PlatformStand = true
  359.  
  360. if player.Character:FindFirstChildOfClass"Tool" then
  361. player.Character:FindFirstChildOfClass"Tool": Destroy ()
  362. end
  363.  
  364. if player.Character.Humanoid.Health <= 0 or plr.Character.Humanoid.Health <= 0 then
  365. Lop = false
  366. end
  367. end
  368. end
  369. end
  370. end
  371.  
  372. KillW:Button("Kill", function()
  373. if not plr.Character:FindFirstChildOfClass"Tool" then return notify(nil, "Pls equip tool") end
  374. if GetPlrs(Target)[1] then
  375. local Tool = plr.Character:FindFirstChildOfClass"Tool"
  376. Lop = true
  377. for i,target in pairs(GetPlrs(Target)) do
  378. while Lop == true do
  379. Tool.Parent = plr.Character
  380. bring(target)
  381. Tool:Activate()
  382. if target.Character.Humanoid.Health <= 0 or plr.Character.Humanoid.Health <= 0 then
  383.  
  384. break
  385. end
  386. wait(.1)
  387. end
  388. end
  389. else
  390. notify(nil, "invalid Player")
  391. end
  392. end)
  393.  
  394. KillW:Toggle("Auto Kill", false, function(Value)
  395. getgenv().Kill2 = Value
  396. while true do
  397. if not plr.Character:FindFirstChildOfClass"Tool" then return notify(nil, "Pls equip tool") end
  398. if GetPlrs(Target)[1] then
  399. local Tool = plr.Character:FindFirstChildOfClass"Tool"
  400. Lop = true
  401. for i,target in pairs(GetPlrs(Target)) do
  402. while Lop == true do
  403. Tool.Parent = plr.Character
  404. bring(target)
  405. Tool:Activate()
  406. if target.Character.Humanoid.Health <= 0 or plr.Character.Humanoid.Health <= 0 then
  407.  
  408. break
  409. end
  410. wait(.1)
  411. end
  412. end
  413. wait(.5)
  414. end
  415. end
  416. end)
  417.  
  418. KillW:Button("Kill all", function()
  419. if not plr.Character:FindFirstChildOfClass"Tool" then return notify(nil, "Pls equip tool") end
  420. local Tool = plr.Character:FindFirstChildOfClass"Tool"
  421. Lop = true
  422.  
  423. while Lop == true do
  424. Tool.Parent = plr.Character
  425. bringall()
  426. Tool:Activate()
  427.  
  428. wait(.1)
  429. end
  430.  
  431. end)
  432.  
  433. local Auto = KillW:Toggle("Auto Kill All (Fixed)", false, function(Value2)
  434. getgenv().GiveLoop2 = Value2
  435. while true do
  436. if not plr.Character:FindFirstChildOfClass"Tool" then return notify(nil, "Pls equip tool") end
  437. local Tool = plr.Character:FindFirstChildOfClass"Tool"
  438. Lop = true
  439.  
  440. while Lop == true do
  441. Tool.Parent = plr.Character
  442. bringall()
  443. Tool:Activate()
  444.  
  445. wait(.1)
  446. end
  447.  
  448. wait(1)
  449. end
  450. end)
  451.  
  452. KillW:Button("Fix", function()
  453. if not Lop then
  454. Lop = true
  455. else
  456. Lop = false
  457. Lop = false
  458. end
  459. local s, m = pcall(function()
  460. for i,v in pairs(Connections) do
  461. v:Disconnect()
  462. end
  463. return true
  464. end)
  465. if s then
  466. notify(nil, "Stopped running Connections")
  467. else
  468. notify("error", m)
  469. notify(nil, "No connection is running")
  470. end
  471. end)
  472.  
  473. KillW:Toggle("Auto Fix (Fixed)", false, function(Value1)
  474. getgenv().GiveLoop1 = Value1
  475. while GiveLoop1 == true do
  476. if not Lop then
  477. Lop = true
  478. else
  479. Lop = false
  480. Lop = false
  481. end
  482. local s, m = pcall(function()
  483. for i,v in pairs(Connections) do
  484. v:Disconnect()
  485. end
  486. return true
  487. end)
  488. wait(5)
  489. end
  490. end)
  491.  
  492. KillW:Button("Equip Tool", function()
  493. if plr.Backpack:GetChildren()[1] then
  494. plr.Backpack:GetChildren()[1].Parent = plr.Character
  495.  
  496. end
  497. wait(.1)
  498.  
  499. end)
  500.  
  501. KillW:Button("Drop Tool", function()
  502. for i,v in pairs(plr.Character:GetChildren()) do
  503. if v:IsA"Tool" then
  504. v.CanBeDropped = true
  505. v.Parent = workspace
  506. end
  507. end
  508. wait(.1)
  509. end)
  510.  
  511. local maxToequip= 30 -- 30 tools can only be equipped cuz laggy
  512. KillW:Button("Equip all Tool", function()
  513. maxToequip= 30
  514. for i,v in pairs(plr.Backpack:GetChildren()) do
  515. if v:IsA"Tool" and maxToequip >= 1 then
  516. maxToequip = maxToequip - 1
  517. v.CanBeDropped = true
  518. v.Parent = plr.Character
  519. end
  520. end
  521. end)
  522.  
  523. notify(nil, "By GGH52Lan")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement