coz

Untitled

coz
Sep 15th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.71 KB | None | 0 0
  1. local hieghtspawn = 5
  2. game.ReplicatedStorage.RemoteFunctions.ChangeSelectedCar:FireServer(225)
  3.  
  4. function GetPlayer(String)
  5. local Found = {}
  6. local strl = String:lower()
  7. if strl == "all" then
  8. for i,v in pairs(game.Players:GetPlayers()) do
  9. table.insert(Found,v.Name)
  10. end
  11. elseif strl == "others" then
  12. for i,v in pairs(game.Players:GetPlayers()) do
  13. if v.Name ~= game.Players.LocalPlayer.Name then
  14. table.insert(Found,v.Name)
  15. end
  16. end
  17. elseif strl == "me" then
  18. for i,v in pairs(game.Players:GetPlayers()) do
  19. if v.Name == game.Players.LocalPlayer.Name then
  20. table.insert(Found,v.Name)
  21. end
  22. end
  23. else
  24. for i,v in pairs(game.Players:GetPlayers()) do
  25. if v.Name:lower():sub(1, #String) == String:lower() then
  26. table.insert(Found,v.Name)
  27. end
  28. end
  29. end
  30. return Found
  31. end
  32.  
  33. local ScreenGui = Instance.new("ScreenGui")
  34. local Frame = Instance.new("Frame")
  35. local targetbox = Instance.new("TextBox")
  36. local line = Instance.new("TextLabel")
  37. local _5 = Instance.new("TextButton")
  38. local _10 = Instance.new("TextButton")
  39. local _30 = Instance.new("TextButton")
  40. local spawncar = Instance.new("TextButton")
  41. local _1 = Instance.new("TextButton")
  42. local credits = Instance.new("TextLabel")
  43. local spawncar_2 = Instance.new("TextButton")
  44. local targetbox_2 = Instance.new("TextBox")
  45. local spawncar_3 = Instance.new("TextButton")
  46. local spawncar_4 = Instance.new("TextButton")
  47. --Properties:
  48. ScreenGui.Parent = game.CoreGui
  49. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  50.  
  51. Frame.Parent = ScreenGui
  52. Frame.Active = true
  53. Frame.Draggable = true
  54. Frame.BackgroundColor3 = Color3.new(0, 0, 0)
  55. Frame.BackgroundTransparency = 0.30000001192093
  56. Frame.BorderSizePixel = 2
  57. Frame.Position = UDim2.new(0.220388353, 0, 0.290874541, 0)
  58. Frame.Size = UDim2.new(0, 337, 0, 236)
  59.  
  60. targetbox.Name = "targetbox"
  61. targetbox.Parent = Frame
  62. targetbox.BackgroundColor3 = Color3.new(1, 1, 1)
  63. targetbox.BackgroundTransparency = 0.5
  64. targetbox.Position = UDim2.new(0.0453172438, 0, 0.140403882, 0)
  65. targetbox.Size = UDim2.new(0, 134, 0, 25)
  66. targetbox.Font = Enum.Font.SourceSans
  67. targetbox.Text = "Target (car spawn)"
  68. targetbox.TextColor3 = Color3.new(0, 0, 0)
  69. targetbox.TextScaled = true
  70. targetbox.TextSize = 14
  71. targetbox.TextWrapped = true
  72.  
  73. line.Name = "line"
  74. line.Parent = Frame
  75. line.BackgroundColor3 = Color3.new(1, 1, 1)
  76. line.BackgroundTransparency = 0.5
  77. line.BorderSizePixel = 2
  78. line.Position = UDim2.new(0.498516321, 0, 0, 0)
  79. line.Size = UDim2.new(0, 4, 0, 236)
  80. line.Font = Enum.Font.SourceSans
  81. line.Text = ""
  82. line.TextColor3 = Color3.new(0, 0, 0)
  83. line.TextSize = 14
  84.  
  85. _5.Name = "5"
  86. _5.Parent = Frame
  87. _5.BackgroundColor3 = Color3.new(1, 0.666667, 0)
  88. _5.Position = UDim2.new(0.0482846014, 0, 0.415254235, 0)
  89. _5.Size = UDim2.new(0, 133, 0, 23)
  90. _5.Font = Enum.Font.SourceSans
  91. _5.Text = "Set 5 (height)"
  92. _5.TextColor3 = Color3.new(0, 0, 0)
  93. _5.TextScaled = true
  94. _5.TextSize = 14
  95. _5.TextWrapped = true
  96. _5.MouseButton1Click:connect(function()
  97. hieghtspawn = 5
  98. end)
  99.  
  100. _10.Name = "10"
  101. _10.Parent = Frame
  102. _10.BackgroundColor3 = Color3.new(1, 0.666667, 0)
  103. _10.Position = UDim2.new(0.0482846014, 0, 0.546610177, 0)
  104. _10.Size = UDim2.new(0, 133, 0, 23)
  105. _10.Font = Enum.Font.SourceSans
  106. _10.Text = "Set 10 (height)"
  107. _10.TextColor3 = Color3.new(0, 0, 0)
  108. _10.TextScaled = true
  109. _10.TextSize = 14
  110. _10.TextWrapped = true
  111. _10.MouseButton1Click:connect(function()
  112. hieghtspawn = 10
  113. end)
  114.  
  115. _30.Name = "30"
  116. _30.Parent = Frame
  117. _30.BackgroundColor3 = Color3.new(1, 0.666667, 0)
  118. _30.Position = UDim2.new(0.0482846051, 0, 0.677966118, 0)
  119. _30.Size = UDim2.new(0, 133, 0, 23)
  120. _30.Font = Enum.Font.SourceSans
  121. _30.Text = "Set 30 (height)"
  122. _30.TextColor3 = Color3.new(0, 0, 0)
  123. _30.TextScaled = true
  124. _30.TextSize = 14
  125. _30.TextWrapped = true
  126. _30.MouseButton1Click:connect(function()
  127. hieghtspawn = 30
  128. end)
  129.  
  130. spawncar.Name = "spawncar"
  131. spawncar.Parent = Frame
  132. spawncar.BackgroundColor3 = Color3.new(1, 0.333333, 0)
  133. spawncar.Position = UDim2.new(0.0275130905, 0, 0.817796588, 0)
  134. spawncar.Size = UDim2.new(0, 149, 0, 34)
  135. spawncar.Font = Enum.Font.SourceSans
  136. spawncar.Text = "Spawn Car (on Target)"
  137. spawncar.TextColor3 = Color3.new(0, 0, 0)
  138. spawncar.TextScaled = true
  139. spawncar.TextSize = 14
  140. spawncar.TextWrapped = true
  141. spawncar.MouseButton1Click:connect(function()
  142. for i,v in pairs(GetPlayer(targetbox.Text)) do
  143. game:GetService("StarterGui"):SetCore("SendNotification", {
  144. Title = "Go near the Target";
  145. Text = "Make sure you are near the target you dont have to be very close.";
  146. })
  147. game.ReplicatedStorage.RemoteFunctions.SpawnCarRequest:InvokeServer(game.Players[v].Character.Head.CFrame + Vector3.new(0,hieghtspawn,0))
  148. end
  149. end)
  150.  
  151. _1.Name = "1"
  152. _1.Parent = Frame
  153. _1.BackgroundColor3 = Color3.new(1, 0.666667, 0)
  154. _1.Position = UDim2.new(0.0453172438, 0, 0.292372882, 0)
  155. _1.Size = UDim2.new(0, 133, 0, 23)
  156. _1.Font = Enum.Font.SourceSans
  157. _1.Text = "Set 1 (height)"
  158. _1.TextColor3 = Color3.new(0, 0, 0)
  159. _1.TextScaled = true
  160. _1.TextSize = 14
  161. _1.TextWrapped = true
  162. _1.MouseButton1Click:connect(function()
  163. hieghtspawn = 1
  164. end)
  165.  
  166. credits.Name = "credits"
  167. credits.Parent = Frame
  168. credits.BackgroundColor3 = Color3.new(0, 0, 0)
  169. credits.Size = UDim2.new(0, 337, 0, 23)
  170. credits.Font = Enum.Font.SourceSans
  171. credits.Text = "RHS Tools by: ScriptX#3145"
  172. credits.TextColor3 = Color3.new(1, 1, 1)
  173. credits.TextScaled = true
  174. credits.TextSize = 14
  175. credits.TextWrapped = true
  176.  
  177. spawncar_2.Name = "spawncar"
  178. spawncar_2.Parent = Frame
  179. spawncar_2.BackgroundColor3 = Color3.new(1, 0.666667, 0)
  180. spawncar_2.Position = UDim2.new(0.534931481, 0, 0.292372882, 0)
  181. spawncar_2.Size = UDim2.new(0, 148, 0, 46)
  182. spawncar_2.Font = Enum.Font.SourceSans
  183. spawncar_2.Text = "Move target's furniture (go in any house)"
  184. spawncar_2.TextColor3 = Color3.new(0, 0, 0)
  185. spawncar_2.TextScaled = true
  186. spawncar_2.TextSize = 14
  187. spawncar_2.TextWrapped = true
  188. spawncar_2.MouseButton1Click:connect(function()
  189. game:GetService("StarterGui"):SetCore("SendNotification", {
  190. Title = "Make sure to be in a house!";
  191. Text = "Make sure you are in any house so it can move the furniture.";
  192. })
  193. game:GetService('RunService').Stepped:connect(function()
  194. if game.Players.LocalPlayer.Character.Humanoid.RigType == Enum.HumanoidRigType.R6 then
  195. game.Players.LocalPlayer.Character.Head.CanCollide = false
  196. game.Players.LocalPlayer.Character.Torso.CanCollide = false
  197. game.Players.LocalPlayer.Character["Left Leg"].CanCollide = false
  198. game.Players.LocalPlayer.Character["Right Leg"].CanCollide = false
  199. else
  200. if game.Players.LocalPlayer.Character.Humanoid.RigType == Enum.HumanoidRigType.R15 then
  201. game.Players.LocalPlayer.Character.Head.CanCollide = false
  202. game.Players.LocalPlayer.Character.UpperTorso.CanCollide = false
  203. game.Players.LocalPlayer.Character.LowerTorso.CanCollide = false
  204. game.Players.LocalPlayer.Character.HumanoidRootPart.CanCollide = false
  205. end
  206. end
  207. end)
  208.  
  209. for i,plr in pairs(GetPlayer(targetbox_2.Text)) do
  210. for i,v in pairs(game.Workspace["!home_"..plr.Name]:GetChildren()) do
  211. if v.ClassName == "Model" then
  212. if game.Players.LocalPlayer.Character.Humanoid.RigType == Enum.HumanoidRigType.R6 then
  213.  
  214. game.ReplicatedStorage.RemoteFunctions.SendNewFurniturePosition:FireServer(v,game.Players.LocalPlayer.Character["Left Leg"].CFrame)
  215. else
  216. game.ReplicatedStorage.RemoteFunctions.SendNewFurniturePosition:FireServer(v,game.Players.LocalPlayer.Character["LeftLowerLeg"].CFrame)
  217.  
  218. end
  219. end
  220. end
  221. end
  222. end)
  223.  
  224. targetbox_2.Name = "targetbox"
  225. targetbox_2.Parent = Frame
  226. targetbox_2.BackgroundColor3 = Color3.new(1, 1, 1)
  227. targetbox_2.BackgroundTransparency = 0.5
  228. targetbox_2.Position = UDim2.new(0.555702984, 0, 0.140403882, 0)
  229. targetbox_2.Size = UDim2.new(0, 134, 0, 25)
  230. targetbox_2.Font = Enum.Font.SourceSans
  231. targetbox_2.Text = "Target (house steal)"
  232. targetbox_2.TextColor3 = Color3.new(0, 0, 0)
  233. targetbox_2.TextScaled = true
  234. targetbox_2.TextSize = 14
  235. targetbox_2.TextWrapped = true
  236.  
  237. spawncar_3.Name = "spawncar"
  238. spawncar_3.Parent = Frame
  239. spawncar_3.BackgroundColor3 = Color3.new(1, 0.666667, 0)
  240. spawncar_3.Position = UDim2.new(0.534931481, 0, 0.512711883, 0)
  241. spawncar_3.Size = UDim2.new(0, 148, 0, 50)
  242. spawncar_3.Font = Enum.Font.SourceSans
  243. spawncar_3.Text = "none"
  244. spawncar_3.TextColor3 = Color3.new(0, 0, 0)
  245. spawncar_3.TextScaled = true
  246. spawncar_3.TextSize = 14
  247. spawncar_3.TextWrapped = true
  248.  
  249. spawncar_4.Name = "spawncar"
  250. spawncar_4.Parent = Frame
  251. spawncar_4.BackgroundColor3 = Color3.new(1, 0.666667, 0)
  252. spawncar_4.Position = UDim2.new(0.534931481, 0, 0.771186471, 0)
  253. spawncar_4.Size = UDim2.new(0, 148, 0, 45)
  254. spawncar_4.Font = Enum.Font.SourceSans
  255. spawncar_4.Text = "broken ;("
  256. spawncar_4.TextColor3 = Color3.new(0, 0, 0)
  257. spawncar_4.TextScaled = true
  258. spawncar_4.TextSize = 14
  259. spawncar_4.TextWrapped = true
  260. spawncar_2.MouseButton1Click:connect(function()
  261. game:GetService("StarterGui"):SetCore("SendNotification", {
  262. Title = "Make sure to be in a house!";
  263. Text = "Make sure your in any house so it can move the furniture.";
  264. })
  265.  
  266. game:GetService('RunService').Stepped:connect(function()
  267. if game.Players.LocalPlayer.Character.Humanoid.RigType == Enum.HumanoidRigType.R6 then
  268. game.Players.LocalPlayer.Character.Head.CanCollide = false
  269. game.Players.LocalPlayer.Character.Torso.CanCollide = false
  270. game.Players.LocalPlayer.Character["Left Leg"].CanCollide = false
  271. game.Players.LocalPlayer.Character["Right Leg"].CanCollide = false
  272. else
  273. if game.Players.LocalPlayer.Character.Humanoid.RigType == Enum.HumanoidRigType.R15 then
  274. game.Players.LocalPlayer.Character.Head.CanCollide = false
  275. game.Players.LocalPlayer.Character.UpperTorso.CanCollide = false
  276. game.Players.LocalPlayer.Character.LowerTorso.CanCollide = false
  277. game.Players.LocalPlayer.Character.HumanoidRootPart.CanCollide = false
  278. end
  279. end
  280. end)
  281.  
  282.  
  283. for i,plr in pairs(game.Players:GetChildren()) do
  284. pcall(function()
  285. for i,v in pairs(game.Workspace["!home_"..plr.Name]:GetChildren()) do
  286. if v.ClassName == "Model" then
  287. if game.Players.LocalPlayer.Character.Humanoid.RigType == Enum.HumanoidRigType.R6 then
  288.  
  289. game.ReplicatedStorage.RemoteFunctions.SendNewFurniturePosition:FireServer(v,game.Players.LocalPlayer.Character["Left Leg"].CFrame)
  290. else
  291. game.ReplicatedStorage.RemoteFunctions.SendNewFurniturePosition:FireServer(v,game.Players.LocalPlayer.Character["LeftLowerLeg"].CFrame)
  292.  
  293. end
  294. end
  295. end
  296. end)
  297. end
  298. end)
  299.  
  300. spawn(function()
  301. local function zigzag(X) return math.acos(math.cos(X*math.pi))/math.pi end
  302.  
  303. for i,v in pairs(ScreenGui:GetDescendants()) do
  304. local counter = 0
  305. wait()
  306.  
  307. spawn(function()
  308.  
  309. while wait() do
  310. v.BorderColor3 = Color3.fromHSV(zigzag(counter),1,1)
  311.  
  312. counter = counter + 0.0076
  313.  
  314. end
  315. end)
  316. end
  317. end)
Add Comment
Please, Sign In to add comment