Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- me = game.Players.LocalPlayer.Character
- mod = Instance.new("Model")
- mod.Name = "Johnsen"
- mod.Parent = me
- part = Instance.new("Part")
- part.Parent = mod
- part.Size = Vector3.new(1, 1, 1)
- part.Position = Vector3.new(1, 1, 1)
- part.BrickColor = BrickColor.new("Light orange")
- part:BreakJoints()
- mesh = Instance.new("SpecialMesh")
- mesh.Parent = part
- mesh.MeshType = "Sphere"
- mesh.Scale = Vector3.new(0.5, 0.5, 0.5)
- we = Instance.new("Weld")
- we.Parent = mod
- we.Part0 = part
- we.Part1 = me.Torso
- we.C0 = CFrame.fromEulerAnglesXYZ(0.15, 0, 0) + Vector3.new(0.15, 1.25, 0.75)
- we.C1 = CFrame.new()
- part = Instance.new("Part")
- part.Parent = mod
- part.Size = Vector3.new(1, 1, 1)
- part.Position = Vector3.new(1, 1, 1)
- part.BrickColor = BrickColor.new("Light orange")
- part:BreakJoints()
- mesh = Instance.new("SpecialMesh")
- mesh.Parent = part
- mesh.MeshType = "Sphere"
- mesh.Scale = Vector3.new(0.5, 0.5, 0.5)
- we = Instance.new("Weld")
- we.Parent = mod
- we.Part0 = part
- we.Part1 = me.Torso
- we.C0 = CFrame.fromEulerAnglesXYZ(0.15, 0, 0) + Vector3.new(-0.15, 1.25, 0.75)
- we.C1 = CFrame.new()
- Part1 = Instance.new("Part")
- Part1.Name = "Shaft"
- Part1.Parent = mod
- Part1.Size = Vector3.new(1, 3, 1)
- Part1.Position = Vector3.new(1, 1, 1)
- Part1.BrickColor = BrickColor.new("Light orange")
- Part1:BreakJoints()
- mesh3 = Instance.new("SpecialMesh")
- mesh3.Parent = Part1
- mesh3.MeshType = "Head"
- mesh3.Scale = Vector3.new(0.5, 1, 0.5)
- we3 = Instance.new("Weld")
- we3.Parent = mod
- we3.Part0 = Part1
- we3.Part1 = me.Torso
- we3.C0 = CFrame.fromEulerAnglesXYZ(1, 0, 0) + Vector3.new(0, -0.8, 1.25)
- we3.C1 = CFrame.new()
- local Tip = Instance.new("Part")
- Tip.Name = "Tip"
- Tip.Parent = Part1
- Tip.Size = Vector3.new(0.2,0.2,0.2)
- Tip.Transparency = 1
- Tip:BreakJoints()
- we4 = Instance.new("Weld")
- we4.Parent = mod
- we4.Part0 = Tip
- we4.Part1 = Part1
- we4.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) + Vector3.new(0, -1.5, 0)
- we4.C1 = CFrame.new()
- local mouse = game.Players.LocalPlayer:GetMouse()
- local tool = Tip
- mouse.Button1Down:connect(function()
- print("Mouse pressed!")
- local ray = Ray.new(tool.CFrame.p, (mouse.Hit.p - tool.CFrame.p).unit * 300)
- local part, position = workspace:FindPartOnRay(ray, game.Players.LocalPlayer.Character, false, true)
- local beam = Instance.new("Part", workspace)
- beam.BrickColor = BrickColor.new("White")
- beam.FormFactor = "Custom"
- beam.Material = "Neon"
- beam.Transparency = 0.25
- beam.Anchored = true
- beam.Locked = true
- beam.CanCollide = false
- local distance = (tool.CFrame.p - position).magnitude
- beam.Size = Vector3.new(0.3, 0.3, distance)
- beam.CFrame = CFrame.new(tool.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
- game:GetService("Debris"):AddItem(beam, 0.1)
- if part then
- local humanoid = part.Parent:FindFirstChild("Humanoid")
- if not humanoid then
- humanoid = part.Parent.Parent:FindFirstChild("Humanoid")
- end
- if humanoid then
- humanoid:TakeDamage(50)
- end
- end
- end)
Add Comment
Please, Sign In to add comment