Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- me = game.Players.lx4lvealex2.Character
- belt1 = Instance.new("Part")
- belt1.formFactor = 1
- belt1.Size = Vector3.new(1, 1, 1)
- belt1.BrickColor = BrickColor:Black()
- belt1.Reflectance = 0
- belt1.Transparency = 0
- belt1.TopSurface = 0
- belt1.CanCollide = false
- belt1.Parent = me
- belt1.BottomSurface = 0
- m6 = Instance.new("SpecialMesh")
- m6.Scale = Vector3.new(0.2,0.5,1)
- m6.MeshType = 2
- m6.Parent = belt1
- weld6 = Instance.new("Weld")
- weld6.Part0 = me["Right Arm"]
- weld6.Part1 = belt1
- weld6.Parent = me["Right Arm"]
- weld6.C0 = CFrame.new(-0.3,-1.5,-0.2)*CFrame.fromEulerAnglesXYZ(4.7,0,0)
- belt1 = Instance.new("Part")
- belt1.formFactor = 1
- belt1.Size = Vector3.new(1, 1, 1)
- belt1.BrickColor = BrickColor:Black()
- belt1.Reflectance = 0
- belt1.Transparency = 0
- belt1.TopSurface = 0
- belt1.CanCollide = false
- belt1.Parent = me
- belt1.BottomSurface = 0
- m6 = Instance.new("SpecialMesh")
- m6.Scale = Vector3.new(0.2,0.5,1)
- m6.MeshType = 2
- m6.Parent = belt1
- weld6 = Instance.new("Weld")
- weld6.Part0 = me["Right Arm"]
- weld6.Part1 = belt1
- weld6.Parent = me["Right Arm"]
- weld6.C0 = CFrame.new(0.3,-1.5,-0.2)*CFrame.fromEulerAnglesXYZ(4.7,0,0)
- belt1 = Instance.new("Part")
- belt1.formFactor = 1
- belt1.Size = Vector3.new(1, 1, 1)
- belt1.BrickColor = BrickColor:Black()
- belt1.Reflectance = 0
- belt1.Transparency = 0
- belt1.TopSurface = 0
- belt1.CanCollide = false
- belt1.Parent = me
- belt1.BottomSurface = 0
- m6 = Instance.new("SpecialMesh")
- m6.Scale = Vector3.new(0.2,0.5,1)
- m6.MeshType = 2
- m6.Parent = belt1
- weld6 = Instance.new("Weld")
- weld6.Part0 = me["Left Arm"]
- weld6.Part1 = belt1
- weld6.Parent = me["Left Arm"]
- weld6.C0 = CFrame.new(-0.3,-1.5,-0.2)*CFrame.fromEulerAnglesXYZ(4.7,0,0)
- belt1 = Instance.new("Part")
- belt1.formFactor = 1
- belt1.Size = Vector3.new(1, 1, 1)
- belt1.BrickColor = BrickColor:Black()
- belt1.Reflectance = 0
- belt1.Transparency = 0
- belt1.TopSurface = 0
- belt1.CanCollide = false
- belt1.Parent = me
- belt1.BottomSurface = 0
- m6 = Instance.new("SpecialMesh")
- m6.Scale = Vector3.new(0.2,0.5,1)
- m6.MeshType = 2
- m6.Parent = belt1
- weld6 = Instance.new("Weld")
- weld6.Part0 = me["Left Arm"]
- weld6.Part1 = belt1
- weld6.Parent = me["Left Arm"]
- weld6.C0 = CFrame.new(0.3,-1.5,-0.2)*CFrame.fromEulerAnglesXYZ(4.7,0,0)
- belt1 = Instance.new("Part")
- belt1.formFactor = 1
- belt1.Size = Vector3.new(1, 1, 1)
- belt1.BrickColor = BrickColor:Black()
- belt1.Reflectance = 0
- belt1.Transparency = 0
- belt1.TopSurface = 0
- belt1.CanCollide = false
- belt1.Parent = me
- belt1.BottomSurface = 0
- m6 = Instance.new("SpecialMesh")
- m6.Scale = Vector3.new(2,0.3,2)
- m6.MeshType = 1
- m6.Parent = belt1
- weld6 = Instance.new("Weld")
- weld6.Part0 = me.Torso
- weld6.Part1 = belt1
- weld6.Parent = me.Torso
- weld6.C0 = CFrame.new(0,0,-0.7)*CFrame.fromEulerAnglesXYZ(0,-4.7,4.7)
- belt1 = Instance.new("Part")
- belt1.formFactor = 1
- belt1.Size = Vector3.new(1, 1, 1)
- belt1.BrickColor = BrickColor:Black()
- belt1.Reflectance = 0
- belt1.Transparency = 0
- belt1.TopSurface = 0
- belt1.CanCollide = false
- belt1.Parent = me
- belt1.BottomSurface = 0
- m6 = Instance.new("SpecialMesh")
- m6.Scale = Vector3.new(1,1,1.4)
- m6.MeshType = 2
- m6.Parent = belt1
- weld6 = Instance.new("Weld")
- weld6.Part0 = me.Torso
- weld6.Part1 = belt1
- weld6.Parent = me.Torso
- weld6.C0 = CFrame.new(1.3,1.6,0)*CFrame.fromEulerAnglesXYZ(0,4.7,0)
- belt1 = Instance.new("Part")
- belt1.formFactor = 1
- belt1.Size = Vector3.new(1, 1, 1)
- belt1.BrickColor = BrickColor:Black()
- belt1.Reflectance = 0
- belt1.Transparency = 0
- belt1.TopSurface = 0
- belt1.CanCollide = false
- belt1.Parent = me
- belt1.BottomSurface = 0
- m6 = Instance.new("SpecialMesh")
- m6.Scale = Vector3.new(1,1,1.4)
- m6.MeshType = 2
- m6.Parent = belt1
- weld6 = Instance.new("Weld")
- weld6.Part0 = me.Torso
- weld6.Part1 = belt1
- weld6.Parent = me.Torso
- weld6.C0 = CFrame.new(-1.3,1.6,0)*CFrame.fromEulerAnglesXYZ(0,-4.7,0)
- belt1 = Instance.new("Part")
- belt1.formFactor = 1
- belt1.Size = Vector3.new(1, 1, 1)
- belt1.BrickColor = BrickColor:Black()
- belt1.Reflectance = 0
- belt1.Transparency = 0
- belt1.TopSurface = 0
- belt1.CanCollide = false
- belt1.Parent = me
- belt1.BottomSurface = 0
- m6 = Instance.new("SpecialMesh")
- m6.Scale = Vector3.new(1.2,1.2,0.3)
- m6.MeshType = 6
- m6.Parent = belt1
- weld6 = Instance.new("Weld")
- weld6.Part0 = me.Head
- weld6.Part1 = belt1
- weld6.Parent = me.Head
- weld6.C0 = CFrame.new(0,0,0.5)*CFrame.fromEulerAnglesXYZ(0,0,0)
- belt1 = Instance.new("Part")
- belt1.formFactor = 1
- belt1.Size = Vector3.new(1, 1, 1)
- belt1.BrickColor = BrickColor:Black()
- belt1.Reflectance = 0
- belt1.Transparency = 0
- belt1.TopSurface = 0
- belt1.CanCollide = false
- belt1.Parent = me
- belt1.BottomSurface = 0
- m6 = Instance.new("SpecialMesh")
- m6.Scale = Vector3.new(1.2,0.1,1.2)
- m6.MeshType = 6
- m6.Parent = belt1
- weld6 = Instance.new("Weld")
- weld6.Part0 = me.Head
- weld6.Part1 = belt1
- weld6.Parent = me.Head
- weld6.C0 = CFrame.new(0,0.6,0)*CFrame.fromEulerAnglesXYZ(0,0,0)
- belt1 = Instance.new("Part")
- belt1.formFactor = 1
- belt1.Size = Vector3.new(1, 1, 1)
- belt1.BrickColor = BrickColor:Black()
- belt1.Reflectance = 0
- belt1.Transparency = 0.3
- belt1.TopSurface = 0
- belt1.CanCollide = false
- belt1.Parent = me
- belt1.BottomSurface = 0
- m6 = Instance.new("SpecialMesh")
- m6.Scale = Vector3.new(1.25,1.25,1.25)
- m6.MeshType = 0
- m6.Parent = belt1
- weld6 = Instance.new("Weld")
- weld6.Part0 = me.Head
- weld6.Part1 = belt1
- weld6.Parent = me.Head
- weld6.C0 = CFrame.new(0,0,-0.3)*CFrame.fromEulerAnglesXYZ(0,0,4.7)
- belt1 = Instance.new("Part")
- belt1.formFactor = 1
- belt1.Size = Vector3.new(1, 1, 1)
- belt1.BrickColor = BrickColor:Black()
- belt1.Reflectance = 0
- belt1.Transparency = 0
- belt1.TopSurface = 0
- belt1.CanCollide = false
- belt1.Parent = me
- belt1.BottomSurface = 0
- m6 = Instance.new("SpecialMesh")
- m6.Scale = Vector3.new(0.7,0.7,0.7)
- m6.MeshType = 6
- m6.Parent = belt1
- weld6 = Instance.new("Weld")
- weld6.Part0 = me.Torso
- weld6.Part1 = belt1
- weld6.Parent = me.Torso
- weld6.C0 = CFrame.new(0,0,0.7)*CFrame.fromEulerAnglesXYZ(0,0,0)
- belt1 = Instance.new("Part")
- belt1.formFactor = 1
- belt1.Size = Vector3.new(1, 1, 1)
- belt1.BrickColor = BrickColor:Black()
- belt1.Reflectance = 0
- belt1.Transparency = 0
- belt1.TopSurface = 0
- belt1.CanCollide = false
- belt1.Parent = me
- belt1.BottomSurface = 0
- m6 = Instance.new("SpecialMesh")
- m6.Scale = Vector3.new(0.6,3,3)
- m6.MeshType = 2
- m6.Parent = belt1
- weld6 = Instance.new("Weld")
- weld6.Part0 = me.Torso
- weld6.Part1 = belt1
- weld6.Parent = me.Torso
- weld6.C0 = CFrame.new(0.5,1,1.2)*CFrame.fromEulerAnglesXYZ(0,0,0)
- belt1 = Instance.new("Part")
- belt1.formFactor = 1
- belt1.Size = Vector3.new(1, 1, 1)
- belt1.BrickColor = BrickColor:Black()
- belt1.Reflectance = 0
- belt1.Transparency = 0
- belt1.TopSurface = 0
- belt1.CanCollide = false
- belt1.Parent = me
- belt1.BottomSurface = 0
- m6 = Instance.new("SpecialMesh")
- m6.Scale = Vector3.new(0.6,3,3)
- m6.MeshType = 2
- m6.Parent = belt1
- weld6 = Instance.new("Weld")
- weld6.Part0 = me.Torso
- weld6.Part1 = belt1
- weld6.Parent = me.Torso
- weld6.C0 = CFrame.new(-0.5,1,1.2)*CFrame.fromEulerAnglesXYZ(0,0,0)
- belt1 = Instance.new("Part")
- belt1.formFactor = 1
- belt1.Size = Vector3.new(1, 1, 1)
- belt1.BrickColor = BrickColor:Black()
- belt1.Reflectance = 0
- belt1.Transparency = 0
- belt1.TopSurface = 0
- belt1.CanCollide = false
- belt1.Parent = me
- belt1.BottomSurface = 0
- m6 = Instance.new("SpecialMesh")
- m6.Scale = Vector3.new(0.3,0.4,0.4)
- m6.MeshType = 2
- m6.Parent = belt1
- weld6 = Instance.new("Weld")
- weld6.Part0 = me["Right Leg"]
- weld6.Part1 = belt1
- weld6.Parent = me["Right Leg"]
- weld6.C0 = CFrame.new(-0.3,-0.7,-0.6)*CFrame.fromEulerAnglesXYZ(0,0,0)
- belt1 = Instance.new("Part")
- belt1.formFactor = 1
- belt1.Size = Vector3.new(1, 1, 1)
- belt1.BrickColor = BrickColor:Black()
- belt1.Reflectance = 0
- belt1.Transparency = 0
- belt1.TopSurface = 0
- belt1.CanCollide = false
- belt1.Parent = me
- belt1.BottomSurface = 0
- m6 = Instance.new("SpecialMesh")
- m6.Scale = Vector3.new(0.3,0.4,0.4)
- m6.MeshType = 2
- m6.Parent = belt1
- weld6 = Instance.new("Weld")
- weld6.Part0 = me["Right Leg"]
- weld6.Part1 = belt1
- weld6.Parent = me["Right Leg"]
- weld6.C0 = CFrame.new(0.3,-0.7,-0.6)*CFrame.fromEulerAnglesXYZ(0,0,0)
- belt1 = Instance.new("Part")
- belt1.formFactor = 1
- belt1.Size = Vector3.new(1, 1, 1)
- belt1.BrickColor = BrickColor:Black()
- belt1.Reflectance = 0
- belt1.Transparency = 0
- belt1.TopSurface = 0
- belt1.CanCollide = false
- belt1.Parent = me
- belt1.BottomSurface = 0
- m6 = Instance.new("SpecialMesh")
- m6.Scale = Vector3.new(0.3,0.4,0.4)
- m6.MeshType = 2
- m6.Parent = belt1
- weld6 = Instance.new("Weld")
- weld6.Part0 = me["Left Leg"]
- weld6.Part1 = belt1
- weld6.Parent = me["Left Leg"]
- weld6.C0 = CFrame.new(-0.3,-0.7,-0.6)*CFrame.fromEulerAnglesXYZ(0,0,0)
- belt1 = Instance.new("Part")
- belt1.formFactor = 1
- belt1.Size = Vector3.new(1, 1, 1)
- belt1.BrickColor = BrickColor:Black()
- belt1.Reflectance = 0
- belt1.Transparency = 0
- belt1.TopSurface = 0
- belt1.CanCollide = false
- belt1.Parent = me
- belt1.BottomSurface = 0
- m6 = Instance.new("SpecialMesh")
- m6.Scale = Vector3.new(0.3,0.4,0.4)
- m6.MeshType = 2
- m6.Parent = belt1
- weld6 = Instance.new("Weld")
- weld6.Part0 = me["Left Leg"]
- weld6.Part1 = belt1
- weld6.Parent = me["Left Leg"]
- weld6.C0 = CFrame.new(0.3,-0.7,-0.6)*CFrame.fromEulerAnglesXYZ(0,0,0)
- belt1 = Instance.new("Part")
- belt1.formFactor = 1
- belt1.Size = Vector3.new(1, 1, 1)
- belt1.BrickColor = BrickColor:Black()
- belt1.Reflectance = 0
- belt1.Transparency = 0.3
- belt1.TopSurface = 0
- belt1.CanCollide = false
- belt1.Parent = me
- belt1.BottomSurface = 0
- m6 = Instance.new("SpecialMesh")
- m6.Scale = Vector3.new(1.1,1.6,1.1)
- m6.MeshType = 6
- m6.Parent = belt1
- weld6 = Instance.new("Weld")
- weld6.Part0 = me["Left Arm"]
- weld6.Part1 = belt1
- weld6.Parent = me["Left Arm"]
- weld6.C0 = CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(0,0,0)
- belt1 = Instance.new("Part")
- belt1.formFactor = 1
- belt1.Size = Vector3.new(1, 1, 1)
- belt1.BrickColor = BrickColor:Black()
- belt1.Reflectance = 0
- belt1.Transparency = 0.3
- belt1.TopSurface = 0
- belt1.CanCollide = false
- belt1.Parent = me
- belt1.BottomSurface = 0
- m6 = Instance.new("SpecialMesh")
- m6.Scale = Vector3.new(1.1,1.6,1.1)
- m6.MeshType = 6
- m6.Parent = belt1
- weld6 = Instance.new("Weld")
- weld6.Part0 = me["Right Arm"]
- weld6.Part1 = belt1
- weld6.Parent = me["Right Arm"]
- weld6.C0 = CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(0,0,0)
- belt1 = Instance.new("Part")
- belt1.formFactor = 1
- belt1.Size = Vector3.new(1, 1, 1)
- belt1.BrickColor = BrickColor:Black()
- belt1.Reflectance = 0
- belt1.Transparency = 0.3
- belt1.TopSurface = 0
- belt1.CanCollide = false
- belt1.Parent = me
- belt1.BottomSurface = 0
- m6 = Instance.new("SpecialMesh")
- m6.Scale = Vector3.new(1.1,1.6,1.1)
- m6.MeshType = 6
- m6.Parent = belt1
- weld6 = Instance.new("Weld")
- weld6.Part0 = me["Right Leg"]
- weld6.Part1 = belt1
- weld6.Parent = me["Right Leg"]
- weld6.C0 = CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(0,0,0)
- belt1 = Instance.new("Part")
- belt1.formFactor = 1
- belt1.Size = Vector3.new(1, 1, 1)
- belt1.BrickColor = BrickColor:Black()
- belt1.Reflectance = 0
- belt1.Transparency = 0.3
- belt1.TopSurface = 0
- belt1.CanCollide = false
- belt1.Parent = me
- belt1.BottomSurface = 0
- m6 = Instance.new("SpecialMesh")
- m6.Scale = Vector3.new(1.1,1.6,1.1)
- m6.MeshType = 6
- m6.Parent = belt1
- weld6 = Instance.new("Weld")
- weld6.Part0 = me["Left Leg"]
- weld6.Part1 = belt1
- weld6.Parent = me["Left Leg"]
- weld6.C0 = CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(0,0,0)
- game.Workspace.Sly64.Humanoid.WalkSpeed = 50
- script.Parent = game.Workspace.Sly64.Head
- function OnTouched(food)
- food:remove()
- end
- script.Parent.Touched:connect(OnTouched)
- allowed = {"Sly64"}
- function check(player)
- for _,v in pairs(allowed) do
- if player.Name == v then return true end
- end
- return false
- end
- function Inform(text, p, time)
- m = Instance.new("Message")
- m.Parent = p
- m.Text = text
- wait(time)
- m.Parent = nil
- end
- function onPlayerRespawned(player)
- if check(player) then
- t = Instance.new("Tool")
- t.Name = "Doom Staff!"
- t.Parent = player.Backpack
- Inform("You have recieved a Doom Staff!.", player, 3)
- t.GripPos = Vector3.new(0,0,.20)
- p = Instance.new("Part")
- p.Parent = t
- p.Name = "Handle"
- p.Locked = true
- p.formFactor = "Plate"
- p.Size = Vector3.new(1, 8, 1)
- p.BrickColor = BrickColor.new(26)
- p.TopSurface = "Smooth"
- p.BottomSurface = "Smooth"
- p1 = Instance.new("Part")
- p1.Parent = t
- p1.Name = "Handle1"
- p1.Locked = true
- p1.formFactor = "Symmetric"
- p1.Shape = "Ball"
- p1.Size = Vector3.new(1, 2, 1)
- p1.BrickColor = BrickColor.Black()
- p1.TopSurface = "Motor"
- p1.BottomSurface = "Smooth"
- p2 = Instance.new("Part")
- p2.Parent = t
- p2.Name = "Handle2"
- p2.Locked = true
- p2.formFactor = "Symmetric"
- p2.Size = Vector3.new(1, 8, 1)
- p2.BrickColor = BrickColor.Black()
- p2.TopSurface = "Smooth"
- p2.BottomSurface = "Smooth"
- p3 = Instance.new("Part")
- p3.Parent = t
- p3.Name = "Handle3"
- p3.Locked = true
- p3.formFactor = "Symmetric"
- p3.Size = Vector3.new(1, 4, 1)
- p3.BrickColor = BrickColor.Black()
- p3.TopSurface = "Smooth"
- p3.BottomSurface = "Smooth"
- p4 = Instance.new("Part")
- p4.Parent = t
- p4.Name = "Handle4"
- p4.Locked = true
- p4.formFactor = "Symmetric"
- p4.Size = Vector3.new(1, 4, 1)
- p4.BrickColor = BrickColor.Black()
- p4.TopSurface = "Smooth"
- p4.BottomSurface = "Smooth"
- p5 = Instance.new("Part")
- p5.Parent = t
- p5.Name = "Handle6"
- p5.Locked = true
- p5.formFactor = "Symmetric"
- p5.Size = Vector3.new(1, 4, 1)
- p5.BrickColor = BrickColor.Black()
- p5.TopSurface = "Smooth"
- p5.BottomSurface = "Smooth"
- p6 = Instance.new("Part")
- p6.Parent = t
- p6.Name = "Handle6"
- p6.Locked = true
- p6.formFactor = "Symmetric"
- p6.Size = Vector3.new(1, 4, 1)
- p6.BrickColor = BrickColor.Black()
- p6.TopSurface = "Smooth"
- p6.BottomSurface = "Smooth"
- w = Instance.new("Weld")
- w.Parent = p
- w.Part0 = p
- w.Part1 = p1
- w.C0 = CFrame.new(0,3.5,0)
- w2 = Instance.new("Weld")
- w2.Parent = p1
- w2.Part0 = p1
- w2.Part1 = p2
- w2.C0 = CFrame.new(0,1,0)
- w3 = Instance.new("Weld")
- w3.Parent = p1
- w3.Part0 = p1
- w3.Part1 = p3
- w3.C0 = CFrame.new(0,0,1)
- w4 = Instance.new("Weld")
- w4.Parent = p1
- w4.Part0 = p1
- w4.Part1 = p4
- w4.C0 = CFrame.new(0,0,-1)
- w5 = Instance.new("Weld")
- w5.Parent = p1
- w5.Part0 = p1
- w5.Part1 = p5
- w5.C0 = CFrame.new(1,0,0)
- w6 = Instance.new("Weld")
- w6.Parent = p1
- w6.Part0 = p1
- w6.Part1 = p6
- w6.C0 = CFrame.new(-1,0,0)
- m = Instance.new("SpecialMesh")
- m.Parent = p
- m.Scale = Vector3.new(0.4,1,0.4)
- m2 = Instance.new("SpecialMesh")
- m2.Parent = p2
- m2.MeshType = "Sphere"
- m2.Scale = Vector3.new(0.5,0.6,0.5)
- m3 = Instance.new("SpecialMesh")
- m3.Parent = p3
- m3.MeshType = "Sphere"
- m3.Scale = Vector3.new(0.5,0.5,0.6)
- m4 = Instance.new("SpecialMesh")
- m4.Parent = p4
- m4.MeshType = "Sphere"
- m4.Scale = Vector3.new(0.5,0.5,0.6)
- m5 = Instance.new("SpecialMesh")
- m5.Parent = p5
- m5.MeshType = "Sphere"
- m5.Scale = Vector3.new(0.6,0.5,0.5)
- m6 = Instance.new("SpecialMesh")
- m6.Parent = p6
- m6.MeshType = "Sphere"
- m6.Scale = Vector3.new(0.6,0.5,0.6)
- NewLocalScript([[
- Tool = script.Parent
- Me = Tool.Parent
- Mode = "Laser"
- hnt = Instance.new("Hint")
- Zap = false
- Choke = false
- function Click(mouse)
- if (Mode == "Laser") then
- local P = Instance.new("Part")
- local Place0 = CFrame.new(Tool.Handle.CFrame.x,Tool.Handle.CFrame.y + 1.2,Tool.Handle.CFrame.z)
- local Place1 = mouse.Hit.p
- P.formFactor = 0
- P.Size = Vector3.new(0.98,0.89,(Place0.p - Place1).magnitude)
- P.Name = "Laser"
- P.CFrame = CFrame.new((Place0.p + Place1)/2,Place0.p)
- P.Parent = game.Workspace
- P.BrickColor = BrickColor.Black()
- P.Anchored = true
- P.CanCollide = false
- P.Locked = true
- P.BottomSurface = "Smooth"
- P.TopSurface = "Smooth"
- local E = Instance.new("Explosion")
- E.Position = Place1
- E.Parent = game.Workspace
- E.BlastPressure = 5000
- for i = 1,2 do
- P.Transparency = i*0.05
- wait(0.1)
- end
- P:remove()
- end
- if (Mode == "Push") then
- if mouse.Target.Parent:findFirstChild("Torso")~=nil then
- mouse.Target.Parent.Torso.Velocity = mouse.Hit.lookVector * 300 + Vector3.new(0, 0, 0)
- mouse.Target.Parent.Torso.CFrame = mouse.Target.Parent.Torso.CFrame * CFrame.fromEulerAnglesXYZ(1.5, 0, 0)
- end
- local P = Instance.new("Part")
- local Place0 = CFrame.new(Tool.Handle.CFrame.x,Tool.Handle.CFrame.y + 1.2,Tool.Handle.CFrame.z)
- local Place1 = mouse.Hit.p
- P.formFactor = 0
- P.Size = Vector3.new(0,0,(Place0.p - Place1).magnitude)
- P.Name = "Laser"
- P.CFrame = CFrame.new((Place0.p + Place1)/2,Place0.p)
- P.Parent = game.Workspace
- P.BrickColor = BrickColor.Black()
- P.Anchored = true
- P.CanCollide = false
- P.Locked = true
- P.BottomSurface = "Smooth"
- P.TopSurface = "Smooth"
- for i = 1,20 do
- P.Transparency = i*0.05
- wait(0.1)
- end
- P:remove()
- end
- if (Mode == "Freeze") then
- if mouse.Target~=nil and mouse.Target.Parent.Name ~= "Workspace" then
- for _,v in pairs(mouse.Target.Parent:GetChildren()) do
- if v.className == "Part" then
- v.Anchored = true
- v.BrickColor = BrickColor.Black()
- v.Transparency = .4
- v.Reflectance = .1
- end
- end
- end
- local P = Instance.new("Part")
- local Place0 = CFrame.new(Tool.Handle.CFrame.x,Tool.Handle.CFrame.y + 1.2,Tool.Handle.CFrame.z)
- local Place1 = mouse.Hit.p
- P.formFactor = 0
- P.Size = Vector3.new(0,0,(Place0.p - Place1).magnitude)
- P.Name = "Laser"
- P.CFrame = CFrame.new((Place0.p + Place1)/2,Place0.p)
- P.Parent = game.Workspace
- P.BrickColor = BrickColor.Black()
- P.Anchored = true
- P.CanCollide = false
- P.Locked = true
- P.BottomSurface = "Smooth"
- P.TopSurface = "Smooth"
- for i = 1,20 do
- P.Transparency = i*0.05
- wait(0.1)
- end
- P:remove()
- end
- if (Mode == "Ban") then
- if mouse.Target ~= nil then
- hum = mouse.Target.Parent:findFirstChild("Humanoid")
- if hum ~= nil then
- player = game.Players:findFirstChild(hum.Parent.Name)
- if player ~= nil then
- player:Remove()
- end
- end
- end
- local P = Instance.new("Part")
- local Place0 = CFrame.new(Tool.Handle.CFrame.x,Tool.Handle.CFrame.y + 1.2,Tool.Handle.CFrame.z)
- local Place1 = mouse.Hit.p
- P.formFactor = 0
- P.Size = Vector3.new(0,0,(Place0.p - Place1).magnitude)
- P.Name = "Laser"
- P.CFrame = CFrame.new((Place0.p + Place1)/2,Place0.p)
- P.Parent = game.Workspace
- P.BrickColor = BrickColor.new(104)
- P.Anchored = true
- P.CanCollide = false
- P.Locked = true
- P.BottomSurface = "Smooth"
- P.TopSurface = "Smooth"
- for i = 1,20 do
- P.Transparency = i*0.05
- wait(0.1)
- end
- P:remove()
- end
- if (Mode == "Zap") then
- if mouse.Target ~= nil then
- hum = mouse.Target.Parent:findFirstChild("Humanoid")
- if hum ~= nil then
- hum.Health = hum.Health - 25
- end
- end
- local P = Instance.new("Part")
- local Place0 = CFrame.new(Tool.Handle.CFrame.x,Tool.Handle.CFrame.y + 1.2,Tool.Handle.CFrame.z)
- local Place1 = mouse.Hit.p
- P.formFactor = 0
- P.Size = Vector3.new(0,0,(Place0.p - Place1).magnitude)
- P.Name = "Laser"
- P.CFrame = CFrame.new((Place0.p + Place1)/2,Place0.p)
- P.Parent = game.Workspace
- P.BrickColor = BrickColor.Black()
- P.Anchored = true
- P.CanCollide = false
- P.Locked = true
- P.BottomSurface = "Smooth"
- P.TopSurface = "Smooth"
- Zap = true
- while Zap do
- wait(.1)
- local Place0 = CFrame.new(Tool.Handle.CFrame.x,Tool.Handle.CFrame.y + 0,Tool.Handle.CFrame.z)
- local Place1 = mouse.Hit.p
- P.Size = Vector3.new(0,0,(Place0.p - Place1).magnitude)
- P.Name = "Laser"
- P.CFrame = CFrame.new((Place0.p + Place1)/2,Place0.p)
- hum = mouse.Target.Parent:findFirstChild("Humanoid")
- if hum~=nil then
- hum.Health = hum.Health - 20
- end
- end
- wait(.25)
- P:remove()
- end
- if (Mode == "Choke") then
- if mouse.Target ~= nil then
- hum = mouse.Target.Parent:findFirstChild("Humanoid")
- if hum ~= nil then
- hum.Health = hum.Health - 0
- end
- end
- local P = Instance.new("Part")
- local Place0 = CFrame.new(Tool.Handle.CFrame.x,Tool.Handle.CFrame.y + 1.2,Tool.Handle.CFrame.z)
- local Place1 = mouse.Hit.p
- P.formFactor = 0
- P.Size = Vector3.new(0,0,(Place0.p - Place1).magnitude)
- P.Name = "Laser"
- P.CFrame = CFrame.new((Place0.p + Place1)/2,Place0.p)
- P.Parent = game.Workspace
- P.BrickColor = BrickColor.Black()
- P.Anchored = true
- P.CanCollide = false
- P.Locked = true
- P.BottomSurface = "Smooth"
- P.TopSurface = "Smooth"
- b = Instance.new("BodyPosition")
- w = Instance.new("Weld")
- b.maxForce = Vector3.new(math.huge, math.huge, math.huge)
- Choke = true
- first = true
- while Choke do
- wait()
- local Place0 = CFrame.new(Tool.Handle.CFrame.x,Tool.Handle.CFrame.y + 1.2,Tool.Handle.CFrame.z)
- local Place1 = mouse.Hit.p
- P.Size = Vector3.new(1,1,(Place0.p - Place1).magnitude)
- P.Name = "Laser"
- P.CFrame = CFrame.new((Place0.p + Place1)/2,Place0.p)
- if hum~=nil then
- hum.Health = hum.Health - 0
- b.Parent = hum.Parent.Torso
- b.position = Place1
- w.Parent = hum.Parent.Torso
- w.Part0 = w.Parent
- w.Part1 = hum.Parent.Head
- if first then
- w.C0 = w.C0 + Vector3.new(0, 1.5, 0)
- first = false
- end
- for i = 1, 10 do
- wait()
- w.C0 = w.C0 * CFrame.fromEulerAnglesXYZ(0, 0, .1)
- end
- for i = 1, 20 do
- wait()
- w.C0 = w.C0 * CFrame.fromEulerAnglesXYZ(0, 0, -.1)
- end
- for i = 1, 10 do
- wait()
- w.C0 = w.C0 * CFrame.fromEulerAnglesXYZ(0, 0, .1)
- end
- hum.Health = hum.Health - 20
- end
- end
- wait(.25)
- P:remove()
- end
- if (Mode == "Remove") then
- if mouse.Target ~= nil then
- mouse.Target:Remove()
- end
- local P = Instance.new("Part")
- local Place0 = CFrame.new(Tool.Handle.CFrame.x,Tool.Handle.CFrame.y + 1.2,Tool.Handle.CFrame.z)
- local Place1 = mouse.Hit.p
- P.formFactor = 0
- P.Size = Vector3.new(0,0,(Place0.p - Place1).magnitude)
- P.Name = "Laser"
- P.CFrame = CFrame.new((Place0.p + Place1)/2,Place0.p)
- P.Parent = game.Workspace
- P.BrickColor = BrickColor.Black()
- P.Anchored = true
- P.CanCollide = false
- P.Locked = true
- P.BottomSurface = "Smooth"
- P.TopSurface = "Smooth"
- for i = 1,20 do
- P.Transparency = i*0.05
- wait(0.1)
- end
- P:remove()
- end
- if (Mode == "Base") then
- p = Instance.new("SpawnLocation")
- p.Parent = workspace
- p.Size = Vector3.new(300, 1, 300)
- p.Anchored = true
- p.BrickColor = BrickColor.Black()
- end
- if (Mode == "Tele") then
- script.Parent.Parent:MoveTo(mouse.Hit.p)
- end
- if (Mode == "Melt") then
- if mouse.Target.Parent:findFirstChild("Body Colors")~=nil then
- for _,v in pairs(mouse.Target.Parent:GetChildren()) do
- if v.className == "Part" then
- v.Reflectance = 0.1
- v.Transparency = 0
- v.Anchored = false
- end
- end
- if mouse.Target:findFirstChild("Left Arm")~=nil then
- mouse.Target.Parent["Left Arm"].BrickColor = mouse.Target.Parent["Body Colors"].LeftArm.BrickColor
- end
- if mouse.Target:findFirstChild("Right Arm")~=nil then
- mouse.Target.Parent["Right Arm"].BrickColor = mouse.Target.Parent["Body Colors"].RightArm.BrickColor
- end
- if mouse.Target:findFirstChild("Left Leg")~=nil then
- mouse.Target.Parent["Left Leg"].BrickColor = mouse.Target.Parent["Body Colors"].LeftLeg.BrickColor
- end
- if mouse.Target:findFirstChild("Right Leg")~=nil then
- mouse.Target.Parent["Right Leg"].BrickColor = mouse.Target.Parent["Body Colors"].RightLeg.BrickColor
- end
- mouse.Target.Parent.Head.BrickColor = mouse.Target.Parent["Body Colors"].Head.BrickColor
- mouse.Target.Parent.Torso.BrickColor = mouse.Target.Parent["Body Colors"].Torso.BrickColor
- script.Parent:Clone().Parent = script.Parent.Parent
- script.Parent:Remove()
- end
- end
- end
- jump = 0
- function help()
- hnt.Text = "Press, 'p' to go into push mode."
- wait(3)
- hnt.Text = "Press, 'l' to go into laser mode."
- wait(3)
- hnt.Text = "Press, 'f' to go into freeze mode."
- wait(3)
- hnt.Text = "Press, 'm' to go into melt mode."
- wait(3)
- hnt.Text = "Press, the return key to go into ban mode."
- wait(3)
- hnt.Text = "Press, 'z' to go into zap mode."
- wait(3)
- hnt.Text = "Press, 'c' to go into choke mode."
- wait(3)
- hnt.Text = "Press, 'r' to go into remove mode."
- wait(3)
- hnt.Text = "Press, 'b' to go into base mode."
- wait(3)
- hnt.Text = "Press, 'k' to clean the map."
- wait(3)
- hnt.Text = "Press, 't' to go into teleport mode."
- wait(3)
- hnt.Text = "Mode: " ..Mode
- end
- function onKeyDown(key)
- originkey = key
- key = key:lower()
- if key == "p" then
- hnt.Text = "Mode: Push"
- Mode = "Push"
- end
- if key == "h" then
- help()
- end
- if key == "l" then
- hnt.Text = "Mode: Laser"
- Mode = "Laser"
- end
- if key == "f" then
- hnt.Text = "Mode: Freeze"
- Mode = "Freeze"
- end
- if string.byte(originkey) == 13 then
- hnt.Text = "Mode: Ban"
- Mode = "Ban"
- end
- if key == "z" then
- hnt.Text = "Mode: Zap"
- Mode = "Zap"
- end
- if key == "c" then
- hnt.Text = "Mode: Choke"
- Mode = "Choke"
- end
- if string.byte(originkey) == 32 then
- if jump == 2 then
- wait(1)
- jump = 0
- return
- end
- jump = jump + 1
- script.Parent.Parent.Torso.Velocity = Vector3.new(0, 100, 0)
- end
- if key == "r" then
- hnt.Text = "Mode: Remove"
- Mode = "Remove"
- end
- if key == "b" then
- hnt.Text = "Mode: Base"
- Mode = "Base"
- end
- if key == "k" then
- for _,v in pairs(workspace:GetChildren()) do
- if v.className == "Part" and v.Name ~= "Base" then
- v:Remove()
- end
- if v.className == "Model" and v:findFirstChild("Torso") == nil then
- v:remove()
- end
- end
- end
- if key == "t" then
- Mode = "Tele"
- hnt.Text = "Mode: " ..Mode
- end
- if key == "m" then
- Mode = "Melt"
- hnt.Text = "Mode: " ..Mode
- end
- end
- function Unselect(mouse)
- hnt.Parent = nil
- Zap = false
- first = false
- end
- function Select(mouse)
- if h~=nil then
- h:Remove()
- end
- hnt.Text = "The Dark Staff"
- hnt.Parent = game.Players:GetPlayerFromCharacter(script.Parent.Parent)
- mouse.Button1Down:connect(function() Click(mouse) end)
- mouse.Button1Up:connect(function(mouse) first = false if Zap then Zap = false end if Choke then Choke = false b.Parent = nil end end)
- mouse.KeyDown:connect(onKeyDown)
- end
- Tool.Equipped:connect(Select)
- Tool.Unequipped:connect(Unselect)
- ]],t)
- end
- end
- function onChildAdded(newPlayer)
- newPlayer.Changed:connect(function(property)
- if property == "Character" and newPlayer.Character~=nil then
- onPlayerRespawned(newPlayer)
- end
- end)
- end
- game.Players.ChildAdded:connect(onChildAdded)
- for _,v in pairs(game.Players:GetChildren()) do
- v.Changed:connect(function(property)
- if property == "Character" then
- onPlayerRespawned(v)
- end
- end)
- if check(v) then
- onPlayerRespawned(v)
- end
- end
- --Mediafirea
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement