Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local ModelinserterGui = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local Close = Instance.new("TextButton")
- local TextBox = Instance.new("TextBox")
- local UICorner = Instance.new("UICorner")
- local TextButton = Instance.new("TextButton")
- local TextLabel = Instance.new("TextLabel")
- local TextLabel_2 = Instance.new("TextLabel")
- local UICorner_2 = Instance.new("UICorner")
- ModelinserterGui.Name = "Model inserter Gui"
- ModelinserterGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- ModelinserterGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- Frame.Parent = ModelinserterGui
- Frame.BackgroundColor3 = Color3.fromRGB(255, 0, 59)
- Frame.BackgroundTransparency = 0.300
- Frame.Position = UDim2.new(0.0479134433, 0, 0.734317362, 0)
- Frame.Size = UDim2.new(0, 502, 0, 167)
- Close.Name = "Close"
- Close.Parent = Frame
- Close.BackgroundColor3 = Color3.fromRGB(170, 172, 255)
- Close.BackgroundTransparency = 1.000
- Close.BorderSizePixel = 0
- Close.ClipsDescendants = true
- Close.Position = UDim2.new(0.941535711, 0, 0, 0)
- Close.Size = UDim2.new(0.055173289, 0, 0.167883202, 0)
- Close.ZIndex = 3
- Close.Font = Enum.Font.Highway
- Close.Text = "X"
- Close.TextColor3 = Color3.fromRGB(156, 58, 62)
- Close.TextScaled = true
- Close.TextSize = 14.000
- Close.TextWrapped = true
- TextBox.Parent = Frame
- TextBox.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextBox.Position = UDim2.new(0.0487954207, 0, 0.223001257, 0)
- TextBox.Size = UDim2.new(0, 448, 0, 25)
- TextBox.Font = Enum.Font.SourceSans
- TextBox.PlaceholderText = "Put Model Id"
- TextBox.Text = ""
- TextBox.TextColor3 = Color3.fromRGB(0, 0, 0)
- TextBox.TextSize = 14.000
- UICorner.Parent = TextBox
- TextButton.Parent = Frame
- TextButton.BackgroundColor3 = Color3.fromRGB(85, 170, 127)
- TextButton.Position = UDim2.new(0.287605613, 0, 0.490312546, 0)
- TextButton.Size = UDim2.new(0, 200, 0, 35)
- TextButton.Font = Enum.Font.GothamBold
- TextButton.Text = "Insert"
- TextButton.TextColor3 = Color3.fromRGB(0, 0, 0)
- TextButton.TextSize = 14.000
- TextLabel.Parent = Frame
- TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel.BackgroundTransparency = 1.000
- TextLabel.Position = UDim2.new(0.020532608, 0, 0.85872227, 0)
- TextLabel.Size = UDim2.new(0, 124, 0, 15)
- TextLabel.Font = Enum.Font.Fantasy
- TextLabel.Text = "Your Model Only"
- TextLabel.TextColor3 = Color3.fromRGB(0, 0, 0)
- TextLabel.TextSize = 14.000
- TextLabel_2.Parent = Frame
- TextLabel_2.Active = true
- TextLabel_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel_2.BackgroundTransparency = 1.000
- TextLabel_2.Position = UDim2.new(0.244210541, 0, 0.0656934306, 0)
- TextLabel_2.Size = UDim2.new(0, 243, 0, 14)
- TextLabel_2.Font = Enum.Font.GothamBold
- TextLabel_2.Text = "Model Inserter Gui"
- TextLabel_2.TextColor3 = Color3.fromRGB(0, 0, 0)
- TextLabel_2.TextSize = 14.000
- UICorner_2.Parent = Frame
- local function WBRHSMR_fake_script() -- ModelinserterGui.Script
- local script = Instance.new('Script', ModelinserterGui)
- local InsertService = game:GetService("InsertService")
- local Send = script.Parent.Send
- local Frame = script.Parent.Frame
- Send.OnServerEvent:Connect(function(player, id)-- player is the first parameter
- local Assetid = id
- local Model = InsertService:LoadAsset(Assetid)
- Model.Parent = game.Workspace
- Model.Name = "InsertedModel:" .. Assetid
- Model:MakeJoints()
- end)
- end
- coroutine.wrap(WBRHSMR_fake_script)()
- local function EEAZG_fake_script() -- ModelinserterGui.LocalScript
- local script = Instance.new('LocalScript', ModelinserterGui)
- local Textbox = script.Parent.Frame.TextBox
- local Textbutton = script.Parent.Frame.TextButton
- local Send = script.Parent.Send
- local Close = script.Parent.Frame.Close
- local MainFrame = script.Parent.Frame
- local InsertGui = script.Parent
- local Cooldown = false
- Textbutton.MouseButton1Click:Connect(function()
- Send:FireServer(Textbox.Text)
- end)
- Close.MouseButton1Click:Connect(function()
- if not Cooldown then
- Cooldown = true
- MainFrame:TweenPosition(UDim2.new(0.353, 0, 1, 0), "InOut", "Quint", 0.5)
- wait(1)
- Cooldown = false
- InsertGui:Destroy()
- end
- end)
- end
- coroutine.wrap(EEAZG_fake_script)()
- local function PLBCOTV_fake_script() -- Frame.LocalScript
- local script = Instance.new('LocalScript', Frame)
- local UIS = game:GetService("UserInputService")
- function dragify(Frame)
- dragToggle = nil
- dragSpeed = 0.25
- dragInput = nil
- dragStart = nil
- dragPos = nil
- function updateInput(input)
- Delta = input.Position - dragStart
- 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.25), {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(script.Parent)
- end
- coroutine.wrap(PLBCOTV_fake_script)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement