Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local AssetFolder = game:GetObjects("rbxassetid://13614502199")[1]
- local Gui = AssetFolder:WaitForChild("HitboxSizerScript"):WaitForChild("HitboxSizeGui")
- local TextBox = Gui:FindFirstChild("Box")
- local LocalPlayer = game.Players.LocalPlayer
- Gui.Parent = LocalPlayer.PlayerGui
- AssetFolder:Destroy()
- Size = Vector3.new(2,2,1)
- Type = Enum.PartType.Block
- TextBox.Changed:Connect(function()
- local NewSize = tonumber(TextBox.Text)
- if not NewSize then
- NewSize = 2
- Size = Vector3.new(NewSize, NewSize, 1)
- Type = Enum.PartType.Block
- else
- Size = Vector3.new(NewSize, NewSize, NewSize)
- Type = Enum.PartType.Ball
- end
- end)
- task.spawn(function()
- while task.wait(2) do
- for i, Model in pairs(workspace:GetDescendants()) do
- if Model:IsA("Model") and Model:FindFirstChild("Humanoid") and LocalPlayer.Character then
- local Player = game.Players:GetPlayerFromCharacter(Model)
- if Player and Player.Character and (Player ~= LocalPlayer) then
- local Character = Player.Character
- if Character:FindFirstChild("HumanoidRootPart") then
- Character.HumanoidRootPart.Size = Size
- Character.HumanoidRootPart.CastShadow = false
- Character.HumanoidRootPart.BrickColor = BrickColor.new("Institutional white")
- Character.HumanoidRootPart.Transparency = -1
- Character.HumanoidRootPart.Material = Enum.Material.ForceField
- Character.HumanoidRootPart.Shape = Type
- Character.HumanoidRootPart.CanCollide = false
- end
- elseif not (Model == LocalPlayer.Character) then
- local Character = Model
- if Character:FindFirstChild("HumanoidRootPart") then
- Character.HumanoidRootPart.Size = Size
- Character.HumanoidRootPart.CastShadow = false
- Character.HumanoidRootPart.BrickColor = BrickColor.new("Institutional white")
- Character.HumanoidRootPart.Transparency = -1
- Character.HumanoidRootPart.Material = Enum.Material.ForceField
- Character.HumanoidRootPart.Shape = Type
- Character.HumanoidRootPart.CanCollide = false
- end
- end
- end
- end
- end
- end)
- task.spawn(function()
- local UIS = game:GetService("UserInputService")
- function dragify(Frame)
- dragToggle = nil
- local dragSpeed = 0
- dragInput = nil
- dragStart = nil
- local dragPos = nil
- function updateInput(input)
- local Delta = input.Position - dragStart
- local Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + Delta.X, startPos.Y.Scale, startPos.Y.Offset + Delta.Y)
- game:GetService("TweenService"):Create(Frame, TweenInfo.new(0.05), {Position = Position}):Play()
- end
- Frame.InputBegan:Connect(function(input)
- if (input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch) and UIS:GetFocusedTextBox() == nil then
- dragToggle = true
- dragStart = input.Position
- startPos = Frame.Position
- input.Changed:Connect(function()
- if input.UserInputState == Enum.UserInputState.End then
- dragToggle = false
- end
- end)
- end
- end)
- Frame.InputChanged:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
- dragInput = input
- end
- end)
- game:GetService("UserInputService").InputChanged:Connect(function(input)
- if input == dragInput and dragToggle then
- updateInput(input)
- end
- end)
- end
- dragify(TextBox)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement