Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local hieghtspawn = 5
- game.ReplicatedStorage.RemoteFunctions.ChangeSelectedCar:FireServer(225)
- function GetPlayer(String)
- local Found = {}
- local strl = String:lower()
- if strl == "all" then
- for i,v in pairs(game.Players:GetPlayers()) do
- table.insert(Found,v.Name)
- end
- elseif strl == "others" then
- for i,v in pairs(game.Players:GetPlayers()) do
- if v.Name ~= game.Players.LocalPlayer.Name then
- table.insert(Found,v.Name)
- end
- end
- elseif strl == "me" then
- for i,v in pairs(game.Players:GetPlayers()) do
- if v.Name == game.Players.LocalPlayer.Name then
- table.insert(Found,v.Name)
- end
- end
- else
- for i,v in pairs(game.Players:GetPlayers()) do
- if v.Name:lower():sub(1, #String) == String:lower() then
- table.insert(Found,v.Name)
- end
- end
- end
- return Found
- end
- local ScreenGui = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local targetbox = Instance.new("TextBox")
- local line = Instance.new("TextLabel")
- local _5 = Instance.new("TextButton")
- local _10 = Instance.new("TextButton")
- local _30 = Instance.new("TextButton")
- local spawncar = Instance.new("TextButton")
- local _1 = Instance.new("TextButton")
- local credits = Instance.new("TextLabel")
- local spawncar_2 = Instance.new("TextButton")
- local targetbox_2 = Instance.new("TextBox")
- local spawncar_3 = Instance.new("TextButton")
- local spawncar_4 = Instance.new("TextButton")
- --Properties:
- ScreenGui.Parent = game.CoreGui
- ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- Frame.Parent = ScreenGui
- Frame.Active = true
- Frame.Draggable = true
- Frame.BackgroundColor3 = Color3.new(0, 0, 0)
- Frame.BackgroundTransparency = 0.30000001192093
- Frame.BorderSizePixel = 2
- Frame.Position = UDim2.new(0.220388353, 0, 0.290874541, 0)
- Frame.Size = UDim2.new(0, 337, 0, 236)
- targetbox.Name = "targetbox"
- targetbox.Parent = Frame
- targetbox.BackgroundColor3 = Color3.new(1, 1, 1)
- targetbox.BackgroundTransparency = 0.5
- targetbox.Position = UDim2.new(0.0453172438, 0, 0.140403882, 0)
- targetbox.Size = UDim2.new(0, 134, 0, 25)
- targetbox.Font = Enum.Font.SourceSans
- targetbox.Text = "Target (car spawn)"
- targetbox.TextColor3 = Color3.new(0, 0, 0)
- targetbox.TextScaled = true
- targetbox.TextSize = 14
- targetbox.TextWrapped = true
- line.Name = "line"
- line.Parent = Frame
- line.BackgroundColor3 = Color3.new(1, 1, 1)
- line.BackgroundTransparency = 0.5
- line.BorderSizePixel = 2
- line.Position = UDim2.new(0.498516321, 0, 0, 0)
- line.Size = UDim2.new(0, 4, 0, 236)
- line.Font = Enum.Font.SourceSans
- line.Text = ""
- line.TextColor3 = Color3.new(0, 0, 0)
- line.TextSize = 14
- _5.Name = "5"
- _5.Parent = Frame
- _5.BackgroundColor3 = Color3.new(1, 0.666667, 0)
- _5.Position = UDim2.new(0.0482846014, 0, 0.415254235, 0)
- _5.Size = UDim2.new(0, 133, 0, 23)
- _5.Font = Enum.Font.SourceSans
- _5.Text = "Set 5 (height)"
- _5.TextColor3 = Color3.new(0, 0, 0)
- _5.TextScaled = true
- _5.TextSize = 14
- _5.TextWrapped = true
- _5.MouseButton1Click:connect(function()
- hieghtspawn = 5
- end)
- _10.Name = "10"
- _10.Parent = Frame
- _10.BackgroundColor3 = Color3.new(1, 0.666667, 0)
- _10.Position = UDim2.new(0.0482846014, 0, 0.546610177, 0)
- _10.Size = UDim2.new(0, 133, 0, 23)
- _10.Font = Enum.Font.SourceSans
- _10.Text = "Set 10 (height)"
- _10.TextColor3 = Color3.new(0, 0, 0)
- _10.TextScaled = true
- _10.TextSize = 14
- _10.TextWrapped = true
- _10.MouseButton1Click:connect(function()
- hieghtspawn = 10
- end)
- _30.Name = "30"
- _30.Parent = Frame
- _30.BackgroundColor3 = Color3.new(1, 0.666667, 0)
- _30.Position = UDim2.new(0.0482846051, 0, 0.677966118, 0)
- _30.Size = UDim2.new(0, 133, 0, 23)
- _30.Font = Enum.Font.SourceSans
- _30.Text = "Set 30 (height)"
- _30.TextColor3 = Color3.new(0, 0, 0)
- _30.TextScaled = true
- _30.TextSize = 14
- _30.TextWrapped = true
- _30.MouseButton1Click:connect(function()
- hieghtspawn = 30
- end)
- spawncar.Name = "spawncar"
- spawncar.Parent = Frame
- spawncar.BackgroundColor3 = Color3.new(1, 0.333333, 0)
- spawncar.Position = UDim2.new(0.0275130905, 0, 0.817796588, 0)
- spawncar.Size = UDim2.new(0, 149, 0, 34)
- spawncar.Font = Enum.Font.SourceSans
- spawncar.Text = "Spawn Car (on Target)"
- spawncar.TextColor3 = Color3.new(0, 0, 0)
- spawncar.TextScaled = true
- spawncar.TextSize = 14
- spawncar.TextWrapped = true
- spawncar.MouseButton1Click:connect(function()
- for i,v in pairs(GetPlayer(targetbox.Text)) do
- game:GetService("StarterGui"):SetCore("SendNotification", {
- Title = "Go near the Target";
- Text = "Make sure you are near the target you dont have to be very close.";
- })
- game.ReplicatedStorage.RemoteFunctions.SpawnCarRequest:InvokeServer(game.Players[v].Character.Head.CFrame + Vector3.new(0,hieghtspawn,0))
- end
- end)
- _1.Name = "1"
- _1.Parent = Frame
- _1.BackgroundColor3 = Color3.new(1, 0.666667, 0)
- _1.Position = UDim2.new(0.0453172438, 0, 0.292372882, 0)
- _1.Size = UDim2.new(0, 133, 0, 23)
- _1.Font = Enum.Font.SourceSans
- _1.Text = "Set 1 (height)"
- _1.TextColor3 = Color3.new(0, 0, 0)
- _1.TextScaled = true
- _1.TextSize = 14
- _1.TextWrapped = true
- _1.MouseButton1Click:connect(function()
- hieghtspawn = 1
- end)
- credits.Name = "credits"
- credits.Parent = Frame
- credits.BackgroundColor3 = Color3.new(0, 0, 0)
- credits.Size = UDim2.new(0, 337, 0, 23)
- credits.Font = Enum.Font.SourceSans
- credits.Text = "RHS Tools by: ScriptX#3145"
- credits.TextColor3 = Color3.new(1, 1, 1)
- credits.TextScaled = true
- credits.TextSize = 14
- credits.TextWrapped = true
- spawncar_2.Name = "spawncar"
- spawncar_2.Parent = Frame
- spawncar_2.BackgroundColor3 = Color3.new(1, 0.666667, 0)
- spawncar_2.Position = UDim2.new(0.534931481, 0, 0.292372882, 0)
- spawncar_2.Size = UDim2.new(0, 148, 0, 46)
- spawncar_2.Font = Enum.Font.SourceSans
- spawncar_2.Text = "Move target's furniture (go in any house)"
- spawncar_2.TextColor3 = Color3.new(0, 0, 0)
- spawncar_2.TextScaled = true
- spawncar_2.TextSize = 14
- spawncar_2.TextWrapped = true
- spawncar_2.MouseButton1Click:connect(function()
- game:GetService("StarterGui"):SetCore("SendNotification", {
- Title = "Make sure to be in a house!";
- Text = "Make sure you are in any house so it can move the furniture.";
- })
- game:GetService('RunService').Stepped:connect(function()
- if game.Players.LocalPlayer.Character.Humanoid.RigType == Enum.HumanoidRigType.R6 then
- game.Players.LocalPlayer.Character.Head.CanCollide = false
- game.Players.LocalPlayer.Character.Torso.CanCollide = false
- game.Players.LocalPlayer.Character["Left Leg"].CanCollide = false
- game.Players.LocalPlayer.Character["Right Leg"].CanCollide = false
- else
- if game.Players.LocalPlayer.Character.Humanoid.RigType == Enum.HumanoidRigType.R15 then
- game.Players.LocalPlayer.Character.Head.CanCollide = false
- game.Players.LocalPlayer.Character.UpperTorso.CanCollide = false
- game.Players.LocalPlayer.Character.LowerTorso.CanCollide = false
- game.Players.LocalPlayer.Character.HumanoidRootPart.CanCollide = false
- end
- end
- end)
- for i,plr in pairs(GetPlayer(targetbox_2.Text)) do
- for i,v in pairs(game.Workspace["!home_"..plr.Name]:GetChildren()) do
- if v.ClassName == "Model" then
- if game.Players.LocalPlayer.Character.Humanoid.RigType == Enum.HumanoidRigType.R6 then
- game.ReplicatedStorage.RemoteFunctions.SendNewFurniturePosition:FireServer(v,game.Players.LocalPlayer.Character["Left Leg"].CFrame)
- else
- game.ReplicatedStorage.RemoteFunctions.SendNewFurniturePosition:FireServer(v,game.Players.LocalPlayer.Character["LeftLowerLeg"].CFrame)
- end
- end
- end
- end
- end)
- targetbox_2.Name = "targetbox"
- targetbox_2.Parent = Frame
- targetbox_2.BackgroundColor3 = Color3.new(1, 1, 1)
- targetbox_2.BackgroundTransparency = 0.5
- targetbox_2.Position = UDim2.new(0.555702984, 0, 0.140403882, 0)
- targetbox_2.Size = UDim2.new(0, 134, 0, 25)
- targetbox_2.Font = Enum.Font.SourceSans
- targetbox_2.Text = "Target (house steal)"
- targetbox_2.TextColor3 = Color3.new(0, 0, 0)
- targetbox_2.TextScaled = true
- targetbox_2.TextSize = 14
- targetbox_2.TextWrapped = true
- spawncar_3.Name = "spawncar"
- spawncar_3.Parent = Frame
- spawncar_3.BackgroundColor3 = Color3.new(1, 0.666667, 0)
- spawncar_3.Position = UDim2.new(0.534931481, 0, 0.512711883, 0)
- spawncar_3.Size = UDim2.new(0, 148, 0, 50)
- spawncar_3.Font = Enum.Font.SourceSans
- spawncar_3.Text = "none"
- spawncar_3.TextColor3 = Color3.new(0, 0, 0)
- spawncar_3.TextScaled = true
- spawncar_3.TextSize = 14
- spawncar_3.TextWrapped = true
- spawncar_4.Name = "spawncar"
- spawncar_4.Parent = Frame
- spawncar_4.BackgroundColor3 = Color3.new(1, 0.666667, 0)
- spawncar_4.Position = UDim2.new(0.534931481, 0, 0.771186471, 0)
- spawncar_4.Size = UDim2.new(0, 148, 0, 45)
- spawncar_4.Font = Enum.Font.SourceSans
- spawncar_4.Text = "broken ;("
- spawncar_4.TextColor3 = Color3.new(0, 0, 0)
- spawncar_4.TextScaled = true
- spawncar_4.TextSize = 14
- spawncar_4.TextWrapped = true
- spawncar_2.MouseButton1Click:connect(function()
- game:GetService("StarterGui"):SetCore("SendNotification", {
- Title = "Make sure to be in a house!";
- Text = "Make sure your in any house so it can move the furniture.";
- })
- game:GetService('RunService').Stepped:connect(function()
- if game.Players.LocalPlayer.Character.Humanoid.RigType == Enum.HumanoidRigType.R6 then
- game.Players.LocalPlayer.Character.Head.CanCollide = false
- game.Players.LocalPlayer.Character.Torso.CanCollide = false
- game.Players.LocalPlayer.Character["Left Leg"].CanCollide = false
- game.Players.LocalPlayer.Character["Right Leg"].CanCollide = false
- else
- if game.Players.LocalPlayer.Character.Humanoid.RigType == Enum.HumanoidRigType.R15 then
- game.Players.LocalPlayer.Character.Head.CanCollide = false
- game.Players.LocalPlayer.Character.UpperTorso.CanCollide = false
- game.Players.LocalPlayer.Character.LowerTorso.CanCollide = false
- game.Players.LocalPlayer.Character.HumanoidRootPart.CanCollide = false
- end
- end
- end)
- for i,plr in pairs(game.Players:GetChildren()) do
- pcall(function()
- for i,v in pairs(game.Workspace["!home_"..plr.Name]:GetChildren()) do
- if v.ClassName == "Model" then
- if game.Players.LocalPlayer.Character.Humanoid.RigType == Enum.HumanoidRigType.R6 then
- game.ReplicatedStorage.RemoteFunctions.SendNewFurniturePosition:FireServer(v,game.Players.LocalPlayer.Character["Left Leg"].CFrame)
- else
- game.ReplicatedStorage.RemoteFunctions.SendNewFurniturePosition:FireServer(v,game.Players.LocalPlayer.Character["LeftLowerLeg"].CFrame)
- end
- end
- end
- end)
- end
- end)
- spawn(function()
- local function zigzag(X) return math.acos(math.cos(X*math.pi))/math.pi end
- for i,v in pairs(ScreenGui:GetDescendants()) do
- local counter = 0
- wait()
- spawn(function()
- while wait() do
- v.BorderColor3 = Color3.fromHSV(zigzag(counter),1,1)
- counter = counter + 0.0076
- end
- end)
- end
- end)
Add Comment
Please, Sign In to add comment