Advertisement
Guest User

Free Model Inserter???

a guest
Mar 5th, 2022
877
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.80 KB | None | 0 0
  1.  
  2. local ModelinserterGui = Instance.new("ScreenGui")
  3. local Frame = Instance.new("Frame")
  4. local Close = Instance.new("TextButton")
  5. local TextBox = Instance.new("TextBox")
  6. local UICorner = Instance.new("UICorner")
  7. local TextButton = Instance.new("TextButton")
  8. local TextLabel = Instance.new("TextLabel")
  9. local TextLabel_2 = Instance.new("TextLabel")
  10. local UICorner_2 = Instance.new("UICorner")
  11.  
  12.  
  13. ModelinserterGui.Name = "Model inserter Gui"
  14. ModelinserterGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  15. ModelinserterGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  16.  
  17. Frame.Parent = ModelinserterGui
  18. Frame.BackgroundColor3 = Color3.fromRGB(255, 0, 59)
  19. Frame.BackgroundTransparency = 0.300
  20. Frame.Position = UDim2.new(0.0479134433, 0, 0.734317362, 0)
  21. Frame.Size = UDim2.new(0, 502, 0, 167)
  22.  
  23. Close.Name = "Close"
  24. Close.Parent = Frame
  25. Close.BackgroundColor3 = Color3.fromRGB(170, 172, 255)
  26. Close.BackgroundTransparency = 1.000
  27. Close.BorderSizePixel = 0
  28. Close.ClipsDescendants = true
  29. Close.Position = UDim2.new(0.941535711, 0, 0, 0)
  30. Close.Size = UDim2.new(0.055173289, 0, 0.167883202, 0)
  31. Close.ZIndex = 3
  32. Close.Font = Enum.Font.Highway
  33. Close.Text = "X"
  34. Close.TextColor3 = Color3.fromRGB(156, 58, 62)
  35. Close.TextScaled = true
  36. Close.TextSize = 14.000
  37. Close.TextWrapped = true
  38.  
  39. TextBox.Parent = Frame
  40. TextBox.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  41. TextBox.Position = UDim2.new(0.0487954207, 0, 0.223001257, 0)
  42. TextBox.Size = UDim2.new(0, 448, 0, 25)
  43. TextBox.Font = Enum.Font.SourceSans
  44. TextBox.PlaceholderText = "Put Model Id"
  45. TextBox.Text = ""
  46. TextBox.TextColor3 = Color3.fromRGB(0, 0, 0)
  47. TextBox.TextSize = 14.000
  48.  
  49. UICorner.Parent = TextBox
  50.  
  51. TextButton.Parent = Frame
  52. TextButton.BackgroundColor3 = Color3.fromRGB(85, 170, 127)
  53. TextButton.Position = UDim2.new(0.287605613, 0, 0.490312546, 0)
  54. TextButton.Size = UDim2.new(0, 200, 0, 35)
  55. TextButton.Font = Enum.Font.GothamBold
  56. TextButton.Text = "Insert"
  57. TextButton.TextColor3 = Color3.fromRGB(0, 0, 0)
  58. TextButton.TextSize = 14.000
  59.  
  60. TextLabel.Parent = Frame
  61. TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  62. TextLabel.BackgroundTransparency = 1.000
  63. TextLabel.Position = UDim2.new(0.020532608, 0, 0.85872227, 0)
  64. TextLabel.Size = UDim2.new(0, 124, 0, 15)
  65. TextLabel.Font = Enum.Font.Fantasy
  66. TextLabel.Text = "Your Model Only"
  67. TextLabel.TextColor3 = Color3.fromRGB(0, 0, 0)
  68. TextLabel.TextSize = 14.000
  69.  
  70. TextLabel_2.Parent = Frame
  71. TextLabel_2.Active = true
  72. TextLabel_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  73. TextLabel_2.BackgroundTransparency = 1.000
  74. TextLabel_2.Position = UDim2.new(0.244210541, 0, 0.0656934306, 0)
  75. TextLabel_2.Size = UDim2.new(0, 243, 0, 14)
  76. TextLabel_2.Font = Enum.Font.GothamBold
  77. TextLabel_2.Text = "Model Inserter Gui"
  78. TextLabel_2.TextColor3 = Color3.fromRGB(0, 0, 0)
  79. TextLabel_2.TextSize = 14.000
  80.  
  81. UICorner_2.Parent = Frame
  82.  
  83.  
  84. local function WBRHSMR_fake_script() -- ModelinserterGui.Script
  85. local script = Instance.new('Script', ModelinserterGui)
  86.  
  87. local InsertService = game:GetService("InsertService")
  88. local Send = script.Parent.Send
  89. local Frame = script.Parent.Frame
  90.  
  91. Send.OnServerEvent:Connect(function(player, id)-- player is the first parameter
  92. local Assetid = id
  93. local Model = InsertService:LoadAsset(Assetid)
  94. Model.Parent = game.Workspace
  95. Model.Name = "InsertedModel:" .. Assetid
  96. Model:MakeJoints()
  97. end)
  98.  
  99.  
  100. end
  101. coroutine.wrap(WBRHSMR_fake_script)()
  102. local function EEAZG_fake_script() -- ModelinserterGui.LocalScript
  103. local script = Instance.new('LocalScript', ModelinserterGui)
  104.  
  105. local Textbox = script.Parent.Frame.TextBox
  106. local Textbutton = script.Parent.Frame.TextButton
  107. local Send = script.Parent.Send
  108. local Close = script.Parent.Frame.Close
  109. local MainFrame = script.Parent.Frame
  110. local InsertGui = script.Parent
  111.  
  112. local Cooldown = false
  113.  
  114. Textbutton.MouseButton1Click:Connect(function()
  115. Send:FireServer(Textbox.Text)
  116. end)
  117.  
  118. Close.MouseButton1Click:Connect(function()
  119. if not Cooldown then
  120. Cooldown = true
  121. MainFrame:TweenPosition(UDim2.new(0.353, 0, 1, 0), "InOut", "Quint", 0.5)
  122. wait(1)
  123. Cooldown = false
  124. InsertGui:Destroy()
  125. end
  126. end)
  127. end
  128. coroutine.wrap(EEAZG_fake_script)()
  129. local function PLBCOTV_fake_script() -- Frame.LocalScript
  130. local script = Instance.new('LocalScript', Frame)
  131.  
  132. local UIS = game:GetService("UserInputService")
  133. function dragify(Frame)
  134. dragToggle = nil
  135. dragSpeed = 0.25
  136. dragInput = nil
  137. dragStart = nil
  138. dragPos = nil
  139. function updateInput(input)
  140. Delta = input.Position - dragStart
  141. Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + Delta.X, startPos.Y.Scale, startPos.Y.Offset + Delta.Y)
  142. game:GetService("TweenService"):Create(Frame, TweenInfo.new(0.25), {Position = Position}):Play()
  143. end
  144. Frame.InputBegan:Connect(function(input)
  145. if (input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch) and UIS:GetFocusedTextBox() == nil then
  146. dragToggle = true
  147. dragStart = input.Position
  148. startPos = Frame.Position
  149. input.Changed:Connect(function()
  150. if input.UserInputState == Enum.UserInputState.End then
  151. dragToggle = false
  152. end
  153. end)
  154. end
  155. end)
  156. Frame.InputChanged:Connect(function(input)
  157. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  158. dragInput = input
  159. end
  160. end)
  161. game:GetService("UserInputService").InputChanged:Connect(function(input)
  162. if input == dragInput and dragToggle then
  163. updateInput(input)
  164. end
  165. end)
  166. end
  167.  
  168. dragify(script.Parent)
  169.  
  170. end
  171. coroutine.wrap(PLBCOTV_fake_script)()
  172.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement