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 UnusedGui = Instance.new("Folder")
- UnusedGui.Parent = workspace
- UnusedGui.Name = "UnusedGui"
- 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 press B."
- local colorgui = Instance.new("ScreenGui")
- colorgui.Name = "Color Gui"
- colorgui.Parent = player.PlayerGui
- local rb = Instance.new("TextButton")
- rb.Name = "Red Button"
- rb.Text = "Anchored Mode is working for any Models or Parts."
- local ob = Instance.new("TextButton")
- ob.Name = "ob"
- ob.Text = ""
- ob.Position = UDim2.new(0, 200,0, 50)
- rb.Position = UDim2.new(0.449, 0,0.719, 0)
- rb.Parent = colorgui
- local gb = Instance.new("TextButton")
- gb.Name = "gb"
- gb.Parent = colorgui
- gb.Position = UDim2.new(0.455, 0,0.058, 0)
- gb.Text = "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. if want to use it press T. want to color some part? ok! if you want to color part Press Y for tips. H = Red N = Blue U = Green J = Grey M = Black I = Yellow and K = White and press at that part that you select. "
- 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.B 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
- if input.KeyCode == Enum.KeyCode.G then
- local Dummy = Instance.new("Model")
- local Humanoid = Instance.new("Humanoid")
- Dummy.Parent = workspace
- Humanoid.Parent = Dummy
- local HumanoidRootPart = Instance.new("Part")
- HumanoidRootPart.Transparency = 1
- HumanoidRootPart.Parent = Dummy
- HumanoidRootPart.Name = "HumanoidRootPart"
- local Torso = Instance.new("Part")
- Torso.Name = "Torso"
- Torso.Parent = Dummy
- local Head = Instance.new("Part")
- local SpecialMesh = Instance.new("SpecialMesh")
- SpecialMesh.Parent = Head
- Head.Parent = Dummy
- Head.Name = "Head"
- local Weld = Instance.new("Weld")
- Weld.Parent = HumanoidRootPart
- Weld.Part0 = HumanoidRootPart
- Weld.Part1 = Torso
- local Weld = Instance.new("Weld")
- Weld.Parent = Torso
- Weld.Part0 = Torso
- Weld.Part1 = Head
- Dummy:MoveTo(player:GetMouse().hit.Position)
- local LeftLeg = Instance.new("Part")
- end
- if input.KeyCode == Enum.KeyCode.H then
- if player:GetMouse().Target:IsA("Part") then
- player:GetMouse().Target.BrickColor = BrickColor.Red()
- end
- end
- if input.KeyCode == Enum.KeyCode.N then
- if player:GetMouse().Target:IsA("Part") then
- player:GetMouse().Target.BrickColor = BrickColor.Blue()
- end
- end
- if input.KeyCode == Enum.KeyCode.U then
- if player:GetMouse().Target:IsA("Part") then
- player:GetMouse().Target.BrickColor = BrickColor.Green()
- end
- end
- if input.KeyCode == Enum.KeyCode.J then
- if player:GetMouse().Target:IsA("Part") then
- player:GetMouse().Target.BrickColor = BrickColor.Gray()
- end
- end
- if input.KeyCode == Enum.KeyCode.M then
- if player:GetMouse().Target:IsA("Part") then
- player:GetMouse().Target.BrickColor = BrickColor.Black()
- end
- end
- if input.KeyCode == Enum.KeyCode.I then
- if player:GetMouse().Target:IsA("Part") then
- player:GetMouse().Target.BrickColor = BrickColor.Yellow()
- end
- end
- if input.KeyCode == Enum.KeyCode.K then
- if player:GetMouse().Target:IsA("Part") then
- player:GetMouse().Target.BrickColor = BrickColor.White()
- end
- end
- end)
- player.Chatted:Connect(function(msg)
- if msg == "give me destroyer" 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
- gunTool.TextureId = "http://www.roblox.com/asset/?id=11951757824"
- end
- if msg == "give me sword" then
- local SwordPart = Instance.new("MeshPart")
- SwordPart .Name = "Handle"
- local SwordTool = Instance.new("Tool")
- SwordTool.Parent = gunTool
- SwordTool.Name = "Sword"
- SwordPart.Position = player.Character:WaitForChild("LeftHand").Position
- SwordTool.TextureId = "http://www.roblox.com/asset/?id=11952931040"
- SwordTool.Parent = player.Backpack
- SwordPart.Transparency = 0
- end
- if msg == "tp" then
- player.Character:MoveTo(player:GetMouse().hit.Position)
- player.Character.HumanoidRootPart.Anchored = true
- wait(2)
- character.HumanoidRootPart.Anchored = false
- end
- if msg == "unanchoredHumanoidRootPart" then
- player.Character.HumanoidRootPart.Anchored = false
- end
- if input == "kill all" then
- game.Players:GetChildren().Character.Humanoid.Health = 0
- end
- end)
- player:GetMouse().Button1Down:Connect(function()
- player.Character:WaitForChild("Gun").Equipped: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)
- end)
- player.Backpack:WaitForChild("Sword").Equipped:Connect(function()
- if mouse.Target then
- mouse.Target:FindFirstChild("Humanoid"):TakeDamage(100)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement