Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("This script made by Jackie_Wolfy2. You have to give credit to him.")
- local player = game.Players.LocalPlayer
- local gui = Instance.new("ScreenGui")
- gui.Parent = player.PlayerGui
- local mpb = Instance.new("TextButton")
- mpb.Parent = gui
- mpb.Position = UDim2.new(0.5,0,0.5,0)
- mpb.Text = "Make part to make it press Q. if want to delete parts or models press E. Scale mode only works for parts. if want to use it press R for X size, F for Y size and V for Z size. and Anchored Mode is working for any Models or Parts. if want to use it press T."
- local sb = Instance.new("TextButton")
- sb.Parent = gui
- sb.Position = UDim2.new(1,0,1,0)
- sb.Text = ""
- game.UserInputService.InputBegan:Connect(function(input)
- if input.KeyCode == Enum.KeyCode.Q then
- local part = Instance.new("Part")
- part.Parent = workspace
- part.Position = player:GetMouse().hit.Position
- print("Success to make part or parts.")
- end
- if input.KeyCode == Enum.KeyCode.E then
- print("Success to Delete model or part.")
- if player:GetMouse().Target:IsA("Model") then
- player:GetMouse().Target:Destroy()
- end
- if player:GetMouse().Target:IsA("Part") then
- player:GetMouse().Target:Destroy()
- end
- end
- if input.KeyCode == Enum.KeyCode.R then
- player:GetMouse().Target.Size += Vector3.new(1,0,0)
- end
- if input.KeyCode == Enum.KeyCode.F then
- player:GetMouse().Target.Size += Vector3.new(0,1,0)
- end
- if input.KeyCode == Enum.KeyCode.V then
- player:GetMouse().Target.Size += Vector3.new(0,0,1)
- end
- if input.KeyCode == Enum.KeyCode.T then
- if player:GetMouse().Target.Anchored == false then
- player:GetMouse().Target.Anchored = true
- else
- player:GetMouse().Target.Anchored = false
- end
- end
- end)
- player.Chatted:Connect(function(msg)
- if msg == "give me gun" then
- local gunPart = Instance.new("MeshPart")
- gunPart.Name = "Handle"
- local gunTool = Instance.new("Tool")
- gunPart.Parent = gunTool
- gunTool.Name = "Gun"
- gunPart.Position = player.Character:WaitForChild("LeftHand").Position
- gunPart.MeshId = "rbxassetid://623102664"
- gunTool.Parent = player.Backpack
- gunPart.Transparency = 0
- end
- end)
- player:GetMouse().Button1Down:Connect(function()
- local shotPart = Instance.new("Part")
- shotPart.Parent = workspace
- shotPart.Anchored = false
- local weld = Instance.new("Weld")
- weld.Parent = shotPart
- weld.Part0 = shotPart
- weld.Part1 = player.Character:WaitForChild("Gun").Handle
- shotPart.BrickColor = BrickColor.Yellow()
- local clone = shotPart:Clone()
- clone:WaitForChild("Weld"):Destroy()
- local TweenService = game:GetService("TweenService")
- local Tweeninfo = TweenInfo.new(1,Enum.EasingStyle.Sine,Enum.EasingDirection.Out,0,false,0)
- local Tween = TweenService:Create(clone,Tweeninfo,{Position = Vector3.new(player:GetMouse().hit.Position.X,shotPart.Position.Y,shotPart.Position.Z)})
- player:GetMouse().Target:Destroy()
- Tween:Play()
- print("Success to fire event.")
- wait(2)
- shotPart:Destroy()
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement