Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Player = Game:GetService("Players").LocalPlayer
- Mouse = Player:GetMouse()
- Character = Player.Character
- RightArm = Character:WaitForChild("Right Arm")
- function Part(Parent, Size, Color, Material, Transparency)
- local NewPart = Instance.new("Part", Parent)
- NewPart.FormFactor = 3
- NewPart.TopSurface = 0
- NewPart.BottomSurface = 0
- NewPart.Size = Size or Vector3.new(1, 1, 1)
- NewPart.BrickColor = BrickColor.new(Color or "Black")
- NewPart.Material = Material or "SmoothPlastic"
- NewPart.Transparency = Transparency or 0
- NewPart.CanCollide = false
- return NewPart
- end
- function Wedge(Parent, Size, Color, Material, Transparency)
- local NewWedge = Instance.new("WedgePart", Parent)
- NewWedge.FormFactor = 3 --Custom formFactor, makes it resizeable to really small scales
- NewWedge.TopSurface = 0 --Smooth SurfaceType
- NewWedge.BottomSurface = 0
- NewWedge.Size = Size or Vector3.new(1, 1, 1)
- NewWedge.BrickColor = BrickColor.new(Color or "Black")
- NewWedge.Material = Material or "SmoothPlastic"
- NewWedge.Transparency = Transparency or 0
- NewWedge.CanCollide = false
- return NewWedge
- end
- function Weld(Parent, Part0, Part1, C0, C1)
- local NewWeld = Instance.new("Weld", Parent)
- NewWeld.Part0 = Part0
- NewWeld.Part1 = Part1
- NewWeld.C0 = C0 or CFrame.new()
- NewWeld.C1 = C1 or CFrame.new()
- return NewWeld
- end
- TheWeapon = Instance.new("Model", Character)
- TheWeapon.Name = "Weapon"
- --HANDLE
- Handle = Part(
- TheWeapon,
- Vector3.new(0.5, 1.5, 0.5),
- "Black"
- )
- --HANDLE WELD
- HandleWeld = Weld(
- Handle,
- RightArm,
- Handle,
- CFrame.new(0, -1, 0)*CFrame.Angles(math.rad(-90), 0, 0)
- )
- --BLADE PART
- Blade = Part(
- TheWeapon,
- Vector3.new(0.2, 3, 1),
- "Bright red",
- "Ice"
- )
- --BLADE WELD
- Weld(Blade,
- Handle,
- Blade,
- CFrame.new(0, 2.25, 0)
- )
- --BLADE TIP
- BladeTip = Wedge(
- TheWeapon,
- Vector3.new(0.2, 1, 1),
- "Bright red",
- "Ice"
- )
- --BLADE TIP WELD
- Weld(BladeTip,
- Blade,
- BladeTip,
- CFrame.new(0, 2, 0)
- )
- local NewPart = Instance.new("Part", Parent)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement