Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Variables--
- local p = game.Players.LocalPlayer
- local c = p.Character
- local m = p:GetMouse()
- local tor = c:WaitForChild("Torso")
- local h = c:WaitForChild("Head")
- local rl = c:WaitForChild("Right Leg")
- local ll = c:WaitForChild("Left Leg")
- local ra = c:WaitForChild("Right Arm")
- local rl = c:WaitForChild("Left Leg")
- local hum = c:WaitForChild("Humanoid")
- local gui = p.PlayerGui
- --end--
- function debounce(func)
- local isRunning = false -- Create a local debounce variable
- return function(...) -- Return a new function
- if not isRunning then
- isRunning = true
- func(...) -- Call it with the original arguments
- isRunning = false
- end
- end
- end
- --Coroutines--
- angle = 0
- Player = game.Players.LocalPlayer
- Object = Player.Character.HumanoidRootPart
- Arm1 = Player.Character["Right Arm"]
- PreviousA1 = Arm1.CFrame.p
- Arm2 = Player.Character["Left Arm"]
- PreviousA2 = Arm2.CFrame.p
- Leg1 = Player.Character["Right Leg"]
- PreviousL1 = Leg1.CFrame.p
- Leg2 = Player.Character["Left Leg"]
- PreviousL2 = Leg2.CFrame.p
- Run = game["Run Service"]
- PreviousP = Object.CFrame.p
- Running = false
- Phase = false
- PhaseActive = false
- Morph = false
- MorphActive = false
- Tornado = false
- TornadoRadius = 50
- TornadoActive = false
- Portal = false
- PortalEnd = false
- MaxZ = 15
- MinZ = -15
- LightMaxX = 3
- LightMinX = 1
- LightMaxX2 = -1
- LightMinX2 = -3
- LightMaxY = 3
- LightMinY = -1
- Rotation = 0
- Length = 10
- oka = math.random(1,2)
- if oka == 1 then
- Color = BrickColor.new("Toothpaste")
- PColor = Color3.new(0,0,255/255)
- else
- PColor = Color3.new(4/255, 253/255, 255/255)
- Color = BrickColor.new("Really blue")
- end
- --end--
- local function weldBetween1(a, b)
- --Make a new Weld and Parent it to a.
- local weld = Instance.new("ManualWeld", a)
- weld.Part0 = a
- weld.Part1 = b
- --Get the CFrame of b relative to a.
- while wait() do
- weld.C0 = a.CFrame:inverse() * b.CFrame*CFrame.new(0,20,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))
- --Return the reference to the weld so that you can change it later.
- return weld
- end
- end
- --end--
- local function weldBetween2(a, b)
- --Make a new Weld and Parent it to a.
- local weld = Instance.new("ManualWeld", a)
- weld.Part0 = a
- weld.Part1 = b
- --Get the CFrame of b relative to a.
- while wait() do
- weld.C0 = a.CFrame:inverse() * b.CFrame*CFrame.new(0,50,0)*CFrame.Angles(math.rad(0),0,math.rad(0))
- --Return the reference to the weld so that you can change it later.
- return weld
- end
- end
- local function weldBetween3(a, b)
- --Make a new Weld and Parent it to a.
- local weld = Instance.new("ManualWeld", a)
- weld.Part0 = a
- weld.Part1 = b
- --Get the CFrame of b relative to a.
- while wait() do
- weld.C0 = a.CFrame:inverse() * b.CFrame *CFrame.new(0,90,-65)* CFrame.Angles(math.rad(30),math.rad(0),math.rad(0))
- --Return the reference to the weld so that you can change it later.
- return weld
- end
- end
- local function weldBetween(a, b)
- --Make a new Weld and Parent it to a.
- local weld = Instance.new("ManualWeld", a)
- weld.Part0 = a
- weld.Part1 = b
- --Get the CFrame of b relative to a.
- while wait() do
- weld.C0 = a.CFrame:inverse() * b.CFrame *CFrame.new(0,15,-15)* CFrame.Angles(math.rad(30),math.rad(0),math.rad(0))
- --Return the reference to the weld so that you can change it later.
- return weld
- end
- end
- function onKeyPress2(actionName, userInputState, inputObject)
- if userInputState == Enum.UserInputState.Begin then
- print("R was pressed")
- local mk = Instance.new("Part",tor)
- mk.CFrame = tor.CFrame*CFrame.new(0,15,-15)
- mk.Anchored = false
- mk.Transparency = 0
- mk.Size = Vector3.new(.2,.2,.2)
- local weld = weldBetween(tor, mk)
- mk.Name = "Shot"
- coroutine.resume(coroutine.create(function()
- local pd = 100
- while pd > 10 do
- pd = pd - 1
- local ring = Instance.new("Part", c.Torso)
- ring.Anchored = true
- ring.CanCollide = false
- ring.Material = "Neon"
- ring.BrickColor = BrickColor.new("Crimson")
- ring.FormFactor = "Custom"
- ring.Size = Vector3.new(30,30,30)
- ring.Transparency = 0.3
- ring.CFrame = c.Head.CFrame*CFrame.new(0,0,-3)*CFrame.fromEulerAnglesXYZ(math.random(-20,20),0,math.random(-20,20))
- local rmesh = Instance.new("BlockMesh", ring)
- game.Debris:AddItem(ring,1)
- rmesh.Scale = Vector3.new(1,1,1)
- ring.Touched:connect(function(hit)
- if hit.Parent:FindFirstChild("Value") then
- hit.Parent:WaitForChild("Humanoid").Health = hit.Parent:WaitForChild("Humanoid").Health - 5
- end
- end)
- coroutine.resume(coroutine.create(function(c)
- for i=1,10 do
- c.Transparency = i/10
- c.Mesh.Scale = c.Mesh.Scale + Vector3.new(1,1,1)
- c.CFrame = c.CFrame *CFrame.new(0,0,-10)* CFrame.Angles(-.2,0,-.2)
- wait(0.025)
- end
- c.Parent = nil
- end),ring)
- wait()
- end
- end))
- coroutine.resume(coroutine.create(function()
- local pd = 50
- while pd > 10 do
- pd = pd - 1
- local ring = Instance.new("Part", c.Torso)
- ring.Anchored = true
- ring.CanCollide = false
- ring.BrickColor = BrickColor.new("Really red")
- ring.FormFactor = "Custom"
- ring.Size = Vector3.new(1,1,1)
- ring.Transparency = 0.3
- ring.CFrame = c.Torso.CFrame*CFrame.fromEulerAnglesXYZ(math.random(-20,20),0,math.random(-20,20))
- local rmesh = Instance.new("SpecialMesh", ring)
- rmesh.MeshId = "rbxassetid://437085648"
- rmesh.Scale = Vector3.new(0,0,0)
- game.Debris:AddItem(ring,2)
- coroutine.resume(coroutine.create(function(c)
- for i=1,10 do
- c.Transparency = i/10
- c.Mesh.Scale = c.Mesh.Scale + Vector3.new(.4,.4,.4)
- wait(0.1)
- end
- c.Parent = nil
- end),ring)
- wait()
- end
- end))
- tor.Anchored = true
- tor.CFrame = tor.CFrame*CFrame.new(0,50,0)
- wait(3)
- local ring = Instance.new("Part", c.Torso)
- ring.CanCollide = false
- ring.FormFactor = "Custom"
- ring.Size = Vector3.new(0.2,0.2,0.2)
- ring.Transparency = 0
- ring.CFrame = c.Head.CFrame
- local rmesh = Instance.new("SpecialMesh", ring)
- rmesh.MeshId = "rbxassetid://430331583"
- rmesh.TextureId = "rbxassetid://430331587"
- rmesh.Scale = Vector3.new(3,4,3)
- ring.Anchored = false
- tor.Anchored = false
- local weld = weldBetween1(tor, ring)
- end
- end
- function onKeyPress1(actionName, userInputState, inputObject)
- if userInputState == Enum.UserInputState.Begin then
- coroutine.resume(coroutine.create(function()
- local pd = 100
- while pd > 10 do
- pd = pd - 1
- local ring = Instance.new("Part", c.Torso)
- ring.Anchored = true
- ring.CanCollide = false
- ring.Material = "Neon"
- ring.BrickColor = BrickColor.new("Really red")
- ring.FormFactor = "Custom"
- ring.Size = Vector3.new(10,10,10)
- ring.Transparency = 0.3
- ring.CFrame = tor.Shot.CFrame
- local rmesh = Instance.new("BlockMesh", ring)
- game.Debris:AddItem(ring,1)
- rmesh.Scale = Vector3.new(1,1,1)
- ring.Touched:connect(function(hit)
- hit.Parent:WaitForChild("Humanoid").Health = hit.Parent:WaitForChild("Humanoid").Health - 5
- end)
- coroutine.resume(coroutine.create(function(c)
- for i=1,10 do
- c.Transparency = i/10
- c.Mesh.Scale = c.Mesh.Scale + Vector3.new(.2,.2,.2)
- c.CFrame = c.CFrame *CFrame.new(0,-10,-10)* CFrame.Angles(-.2,0,-.2)
- wait(0.025)
- end
- c.Parent = nil
- end),ring)
- wait()
- end
- end))
- end
- end
- function onKeyPress3(actionName, userInputState, inputObject)
- if userInputState == Enum.UserInputState.Begin then
- print("R was pressed")
- local mk = Instance.new("Part",tor)
- mk.CFrame = tor.CFrame*CFrame.new(0,15,-15)
- mk.Anchored = false
- mk.Transparency = 0
- mk.Size = Vector3.new(.2,.2,.2)
- local weld = weldBetween3(tor, mk)
- mk.Name = "Shot"
- coroutine.resume(coroutine.create(function()
- local pd = 100
- while pd > 10 do
- pd = pd - 1
- local ring = Instance.new("Part", c.Torso)
- ring.Anchored = true
- ring.CanCollide = false
- ring.Material = "Neon"
- ring.BrickColor = BrickColor.new("Crimson")
- ring.FormFactor = "Custom"
- ring.Size = Vector3.new(30,30,30)
- ring.Transparency = 0.3
- ring.CFrame = c.Head.CFrame*CFrame.new(0,0,-3)*CFrame.fromEulerAnglesXYZ(math.random(-20,20),0,math.random(-20,20))
- local rmesh = Instance.new("BlockMesh", ring)
- game.Debris:AddItem(ring,1)
- rmesh.Scale = Vector3.new(1,1,1)
- ring.Touched:connect(function(hit)
- if hit.Parent:FindFirstChild("Value") then
- hit.Parent:WaitForChild("Humanoid").Health = hit.Parent:WaitForChild("Humanoid").Health - 5
- end
- end)
- coroutine.resume(coroutine.create(function(c)
- for i=1,10 do
- c.Transparency = i/10
- c.Mesh.Scale = c.Mesh.Scale + Vector3.new(1,1,1)
- c.CFrame = c.CFrame *CFrame.new(0,0,-10)* CFrame.Angles(-.2,0,-.2)
- wait(0.025)
- end
- c.Parent = nil
- end),ring)
- wait()
- end
- end))
- coroutine.resume(coroutine.create(function()
- local pd = 50
- while pd > 10 do
- pd = pd - 1
- local ring = Instance.new("Part", c.Torso)
- ring.Anchored = true
- ring.CanCollide = false
- ring.BrickColor = BrickColor.new("Really red")
- ring.FormFactor = "Custom"
- ring.Size = Vector3.new(1,1,1)
- ring.Transparency = 0.3
- ring.CFrame = c.Torso.CFrame*CFrame.fromEulerAnglesXYZ(math.random(-20,20),0,math.random(-20,20))
- local rmesh = Instance.new("SpecialMesh", ring)
- rmesh.MeshId = "rbxassetid://437085648"
- rmesh.Scale = Vector3.new(0,0,0)
- game.Debris:AddItem(ring,2)
- coroutine.resume(coroutine.create(function(c)
- for i=1,10 do
- c.Transparency = i/10
- c.Mesh.Scale = c.Mesh.Scale + Vector3.new(.4,.4,.4)
- wait(0.1)
- end
- c.Parent = nil
- end),ring)
- wait()
- end
- end))
- tor.Anchored = true
- tor.CFrame = tor.CFrame*CFrame.new(0,50,0)
- wait(3)
- local ring = Instance.new("Part", c.Torso)
- ring.CanCollide = false
- ring.FormFactor = "Custom"
- ring.Size = Vector3.new(0.2,0.2,0.2)
- ring.Transparency = 0
- ring.CFrame = c.Head.CFrame
- local rmesh = Instance.new("SpecialMesh", ring)
- rmesh.MeshId = "rbxassetid://430177801"
- rmesh.TextureId = "rbxassetid://430177813"
- rmesh.Scale = Vector3.new(.5,.7,.5)
- ring.Anchored = false
- tor.Anchored = false
- local weld = weldBetween2(tor, ring)
- end
- end
- function onKeyPress4(actionName, userInputState, inputObject)
- if userInputState == Enum.UserInputState.Begin then
- coroutine.resume(coroutine.create(function()
- local pd = 100
- while pd > 10 do
- pd = pd - 1
- local ring = Instance.new("Part", c.Torso)
- ring.Anchored = true
- ring.CanCollide = false
- ring.BrickColor = BrickColor.new("New Yeller")
- ring.FormFactor = "Custom"
- ring.Size = Vector3.new(10,10,10)
- ring.Transparency = 0.3
- ring.CFrame = c.Torso.CFrame*CFrame.fromEulerAnglesXYZ(math.random(-20,20),0,math.random(-20,20))
- local rmesh = Instance.new("SpecialMesh", ring)
- rmesh.MeshId = "rbxassetid://437085648"
- rmesh.Scale = Vector3.new(0,0,0)
- game.Debris:AddItem(ring,2)
- ring.Anchored = false
- tor.Anchored = false
- ring.Touched:connect(function(hit)
- hit.Parent:WaitForChild("Humanoid").Health = hit.Parent:WaitForChild("Humanoid").Health - 5
- end)
- coroutine.resume(coroutine.create(function(c)
- for i=1,10 do
- c.Transparency = i/10
- c.Mesh.Scale = c.Mesh.Scale + Vector3.new(1,2,3)
- c.CFrame = c.CFrame *CFrame.new(0,-30,-30)* CFrame.Angles(-.2,0,-.2)
- wait(0.025)
- end
- c.Parent = nil
- end),ring)
- wait()
- end
- end))
- end
- end
- p.Chatted:connect(function(msg)
- if msg:sub(1,33) == "free me... from the pits of hell." then
- hum.MaxHealth = math.huge
- hum.Health = math.huge
- print'Activated'
- coroutine.resume(coroutine.create(function()
- local pd = 150
- while pd > 10 do
- pd = pd - 1
- local ring = Instance.new("Part", c.Torso)
- ring.Anchored = true
- ring.CanCollide = false
- ring.BrickColor = BrickColor.new("Really blue")
- ring.FormFactor = "Custom"
- ring.Size = Vector3.new(0.1,0.1,0.1)
- ring.Transparency = 0.3
- ring.CFrame = c.Torso.CFrame*CFrame.new(0,10,0)*CFrame.fromEulerAnglesXYZ(math.random(-20,20),0,math.random(-20,20))
- local rmesh = Instance.new("SpecialMesh", ring)
- rmesh.MeshId = "rbxassetid://437085648"
- rmesh.Scale = Vector3.new(0,0,0)
- game.Debris:AddItem(ring,2)
- coroutine.resume(coroutine.create(function(c)
- for i=1,10 do
- c.Transparency = i/10
- c.Mesh.Scale = c.Mesh.Scale + Vector3.new(.4,.4,.4)
- wait(0.1)
- end
- c.Parent = nil
- end),ring)
- wait()
- end
- end))
- coroutine.resume(coroutine.create(function()
- local pd = 300
- while pd > 10 do
- pd = pd - 1
- local ring = Instance.new("Part", c.Torso)
- ring.Anchored = true
- ring.CanCollide = false
- ring.Material = "Neon"
- ring.BrickColor = BrickColor.new("Toothpaste")
- ring.FormFactor = "Custom"
- ring.Size = Vector3.new(6,6,6)
- ring.Transparency = 0.3
- ring.CFrame = c.Torso.CFrame*CFrame.fromEulerAnglesXYZ(math.random(-20,20),0,math.random(-20,20))
- local rmesh = Instance.new("BlockMesh", ring)
- game.Debris:AddItem(ring,2)
- coroutine.resume(coroutine.create(function(c)
- for i=1,10 do
- c.Transparency = i/10
- c.Mesh.Scale = c.Mesh.Scale - Vector3.new(.4,.4,.4)
- c.CFrame = c.CFrame * CFrame.Angles(-.2,0,-.2)
- wait(0.1)
- end
- c.Parent = nil
- end),ring)
- wait()
- end
- end))
- wait(6)
- coroutine.resume(coroutine.create(function()
- local pd = 150
- while pd > 10 do
- pd = pd - 1
- local ring = Instance.new("Part", c.Torso)
- ring.Anchored = true
- ring.CanCollide = false
- ok = math.random(1,2)
- if ok == 1 then
- ring.BrickColor = BrickColor.new("Toothpaste")
- else
- ring.BrickColor = BrickColor.new("Really blue")
- end
- ring.FormFactor = "Custom"
- ring.Size = Vector3.new(0.1,0.1,0.1)
- ring.Transparency = 0.3
- ring.CFrame = c.Torso.CFrame*CFrame.new(0,10,10)*CFrame.fromEulerAnglesXYZ(math.rad(-90),0,math.rad(180))
- local rmesh = Instance.new("SpecialMesh", ring)
- rmesh.MeshId = "rbxassetid://430083238"
- rmesh.Scale = Vector3.new(.5414, .8022, .68596)
- game.Debris:AddItem(ring,2)
- coroutine.resume(coroutine.create(function(c)
- for i=1,10 do
- c.Transparency = i/10
- c.Mesh.Scale = c.Mesh.Scale + Vector3.new(.01,.01,.01)
- wait(0.1)
- end
- c.Parent = nil
- end),ring)
- wait()
- end
- end))
- local tag = Instance.new("BoolValue",c)
- for u, c in pairs (c:GetChildren()) do
- if c.className == "Hat" and c.Name ~= "Swordpack" and c.Name ~= "GlassesBlackFrame" then
- c.Handle.Transparency = 1
- end
- end
- local up = Vector3.new(0, 1, 0)
- local forward = Vector3.new( 0, 0, -1)
- local pos = Vector3.new( 0, 0.47, 0.07)
- local right = Vector3.new( 1, 0, 0)
- h = Instance.new("Hat")
- p = Instance.new("Part")
- h.Name = script.Parent.Name
- p.Parent = h
- p.Position = c:findFirstChild("Head").Position
- p.Name = "Handle"
- p.formFactor = 0
- p.Size = Vector3.new(1,2,2)
- p.BottomSurface = 0
- p.TopSurface = 0
- p.Locked = true
- local pm = Instance.new("SpecialMesh",p)
- pm.MeshId = "http://www.roblox.com/asset/?id=420164161"
- pm.TextureId = "http://www.roblox.com/asset/?id=420164265"
- h.Parent = c
- h.AttachmentForward = forward
- h.AttachmentPos = pos
- h.AttachmentRight = right
- h.AttachmentUp = up
- local holder = Instance.new("Model",tor)
- while wait() do
- if Portal == false then
- angle = angle + 0.6
- local Model = Instance.new("Model",holder)
- Model.Name = "Lightning"
- local Point1 = Instance.new("Part",Model)
- Point1.Transparency = 1
- Point1.Size = Vector3.new(0.2,0.2,0.2)
- Point1.CFrame = Object.CFrame * CFrame.new(0,0,-(Object.Size.Z/2+Point1.Size.Z/2))
- Point1.Anchored = true
- Point1.CanCollide = false
- Point1.CFrame = Point1.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),-math.random(0,2))
- local Point2 = Instance.new("Part",Model)
- Point2.Transparency = 1
- Point2.Size = Vector3.new(0.2,0.2,0.2)
- Point2.CFrame = Object.CFrame * CFrame.new(0,0,-(Object.Size.Z/2+Point2.Size.Z/2))
- Point2.Anchored = true
- Point2.CanCollide = false
- Point2.CFrame = Point2.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),-math.random(0,2))
- local Point3 = Instance.new("Part",Model)
- Point3.Transparency = 1
- Point3.Size = Vector3.new(0.2,0.2,0.2)
- Point3.CFrame = Object.CFrame * CFrame.new(0,0,-(Object.Size.Z/2+Point3.Size.Z/2))
- Point3.Anchored = true
- Point3.CanCollide = false
- Point3.CFrame = Point3.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),-math.random(0,2))
- local distance = (Point2.CFrame.p - Point1.CFrame.p).magnitude
- local Light = Instance.new("Part",Model)
- local PointLight = Instance.new("PointLight",Light)
- PointLight.Range = 5
- PointLight.Color = PColor
- Light.Transparency = 0.5
- Light.BrickColor = Color
- Light.Material = "Neon"
- Light.Size = Vector3.new(0.25,0.25,distance)
- Light.Anchored = true
- Light.CanCollide = false
- Light.CFrame = CFrame.new(Point2.CFrame.p , Point1.CFrame.p) * CFrame.new(0,0,-distance/2)
- local distance2 = (Point3.CFrame.p - Point2.CFrame.p).magnitude
- local Light = Instance.new("Part",Model)
- local PointLight = Instance.new("PointLight",Light)
- PointLight.Range = 5
- PointLight.Color = PColor
- Light.Transparency = 0.5
- Light.BrickColor = Color
- Light.Material = "Neon"
- Light.Size = Vector3.new(0.25,0.25,distance2)
- Light.Anchored = true
- Light.CanCollide = false
- Light.CFrame = CFrame.new(Point3.CFrame.p , Point2.CFrame.p) * CFrame.new(0,0,-distance2/2)
- local Point1 = Instance.new("Part",Model)
- Point1.Transparency = 1
- Point1.Size = Vector3.new(0.2,0.2,0.2)
- Point1.CFrame = Object.CFrame * CFrame.new(0,0,(Object.Size.Z/2+Point1.Size.Z/2))
- Point1.Anchored = true
- Point1.CanCollide = false
- Point1.CFrame = Point1.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),math.random(0,2))
- local Point2 = Instance.new("Part",Model)
- Point2.Transparency = 1
- Point2.Size = Vector3.new(0.2,0.2,0.2)
- Point2.CFrame = Object.CFrame * CFrame.new(0,0,(Object.Size.Z/2+Point2.Size.Z/2))
- Point2.Anchored = true
- Point2.CanCollide = false
- Point2.CFrame = Point2.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),math.random(0,2))
- local Point3 = Instance.new("Part",Model)
- Point3.Transparency = 1
- Point3.Size = Vector3.new(0.2,0.2,0.2)
- Point3.CFrame = Object.CFrame * CFrame.new(0,0,(Object.Size.Z/2+Point3.Size.Z/2))
- Point3.Anchored = true
- Point3.CanCollide = false
- Point3.CFrame = Point3.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),math.random(0,2))
- local distance = (Point2.CFrame.p - Point1.CFrame.p).magnitude
- local Light = Instance.new("Part",Model)
- local PointLight = Instance.new("PointLight",Light)
- PointLight.Range = 5
- PointLight.Color = PColor
- Light.Transparency = 0.5
- Light.BrickColor = Color
- Light.Material = "Neon"
- Light.Size = Vector3.new(0.25,0.25,distance)
- Light.Anchored = true
- Light.CanCollide = false
- Light.CFrame = CFrame.new(Point2.CFrame.p , Point1.CFrame.p) * CFrame.new(0,0,-distance/2)
- local distance2 = (Point3.CFrame.p - Point2.CFrame.p).magnitude
- local Light = Instance.new("Part",Model)
- local PointLight = Instance.new("PointLight",Light)
- PointLight.Range = 5
- PointLight.Color = PColor
- Light.Transparency = 0.5
- Light.BrickColor = Color
- Light.Material = "Neon"
- Light.Size = Vector3.new(0.3,0.3,distance2)
- Light.Anchored = true
- Light.CanCollide = false
- Light.CFrame = CFrame.new(Point3.CFrame.p , Point2.CFrame.p) * CFrame.new(0,0,-distance2/2)
- local Point1 = Instance.new("Part",Model)
- Point1.Transparency = 1
- Point1.Size = Vector3.new(0.2,0.2,0.2)
- Point1.CFrame = Object.CFrame * CFrame.new((Object.Size.X/2+Point1.Size.X/2),0,0)
- Point1.Anchored = true
- Point1.CanCollide = false
- Point1.CFrame = Point1.CFrame * CFrame.new(math.random(0,2),math.random(-2,2),math.random(-2,2))
- local Point2 = Instance.new("Part",Model)
- Point2.Transparency = 1
- Point2.Size = Vector3.new(0.2,0.2,0.2)
- Point2.CFrame = Object.CFrame * CFrame.new((Object.Size.X/2+Point1.Size.X/2),0,0)
- Point2.Anchored = true
- Point2.CanCollide = false
- Point2.CFrame = Point2.CFrame * CFrame.new(math.random(0,2),math.random(-2,2),math.random(-2,2))
- local Point3 = Instance.new("Part",Model)
- Point3.Transparency = 1
- Point3.Size = Vector3.new(0.2,0.2,0.2)
- Point3.CFrame = Object.CFrame * CFrame.new((Object.Size.X/2+Point1.Size.X/2),0,0)
- Point3.Anchored = true
- Point3.CanCollide = false
- Point3.CFrame = Point3.CFrame * CFrame.new(math.random(0,2),math.random(-2,2),math.random(-2,2))
- local distance = (Point2.CFrame.p - Point1.CFrame.p).magnitude
- local Light = Instance.new("Part",Model)
- local PointLight = Instance.new("PointLight",Light)
- PointLight.Range = 5
- PointLight.Color = PColor
- Light.Transparency = 0.5
- Light.BrickColor = Color
- Light.Material = "Neon"
- Light.Size = Vector3.new(0.25,0.25,distance)
- Light.Anchored = true
- Light.CanCollide = false
- Light.CFrame = CFrame.new(Point2.CFrame.p , Point1.CFrame.p) * CFrame.new(0,0,-distance/2)
- local distance2 = (Point3.CFrame.p - Point2.CFrame.p).magnitude
- local Light = Instance.new("Part",Model)
- local PointLight = Instance.new("PointLight",Light)
- PointLight.Range = 5
- PointLight.Color = PColor
- Light.Transparency = 0.5
- Light.BrickColor = Color
- Light.Material = "Neon"
- Light.Size = Vector3.new(0.25,0.25,distance2)
- Light.Anchored = true
- Light.CanCollide = false
- Light.CFrame = CFrame.new(Point3.CFrame.p , Point2.CFrame.p) * CFrame.new(0,0,-distance2/2)
- local Point1 = Instance.new("Part",Model)
- Point1.Transparency = 1
- Point1.Size = Vector3.new(0.2,0.2,0.2)
- Point1.CFrame = Object.CFrame * CFrame.new(-(Object.Size.X/2+Point1.Size.X/2),0,0)
- Point1.Anchored = true
- Point1.CanCollide = false
- Point1.CFrame = Point1.CFrame * CFrame.new(-math.random(0,2),math.random(-2,2),math.random(-2,2))
- local Point2 = Instance.new("Part",Model)
- Point2.Transparency = 1
- Point2.Size = Vector3.new(0.2,0.2,0.2)
- Point2.CFrame = Object.CFrame * CFrame.new(-(Object.Size.X/2+Point1.Size.X/2),0,0)
- Point2.Anchored = true
- Point2.CanCollide = false
- Point2.CFrame = Point2.CFrame * CFrame.new(-math.random(0,2),math.random(-2,2),math.random(-2,2))
- local Point3 = Instance.new("Part",Model)
- Point3.Transparency = 1
- Point3.Size = Vector3.new(0.2,0.2,0.2)
- Point3.CFrame = Object.CFrame * CFrame.new(-(Object.Size.X/2+Point1.Size.X/2),0,0)
- Point3.Anchored = true
- Point3.CanCollide = false
- Point3.CFrame = Point3.CFrame * CFrame.new(-math.random(0,2),math.random(-2,2),math.random(-2,2))
- local distance = (Point2.CFrame.p - Point1.CFrame.p).magnitude
- local Light = Instance.new("Part",Model)
- local PointLight = Instance.new("PointLight",Light)
- PointLight.Range = 5
- PointLight.Color = PColor
- Light.Transparency = 0.5
- Light.BrickColor = Color
- Light.Material = "Neon"
- Light.Size = Vector3.new(0.25,0.25,distance)
- Light.Anchored = true
- Light.CanCollide = false
- Light.CFrame = CFrame.new(Point2.CFrame.p , Point1.CFrame.p) * CFrame.new(0,0,-distance/2)
- local distance2 = (Point3.CFrame.p - Point2.CFrame.p).magnitude
- local Light = Instance.new("Part",Model)
- local PointLight = Instance.new("PointLight",Light)
- PointLight.Range = 5
- PointLight.Color = PColor
- Light.Transparency = 0.5
- Light.BrickColor = Color
- Light.Material = "Neon"
- Light.Size = Vector3.new(0.25,0.25,distance2)
- Light.Anchored = true
- Light.CanCollide = false
- Light.CFrame = CFrame.new(Point3.CFrame.p , Point2.CFrame.p) * CFrame.new(0,0,-distance2/2)
- local Children = Model:GetChildren()
- wait(0.1)
- for i = 1,#Children do
- wait(.025)
- if Children[i]:IsA("Part") then
- Children[i].Transparency = Children[i].Transparency + .1
- end
- game.Debris:AddItem(Children[i],0)
- end
- function onKeyPress(actionName, userInputState, inputObject)
- if userInputState == Enum.UserInputState.Begin then
- print("R was pressed")
- coroutine.resume(coroutine.create(function()
- local pd = 200
- while pd > 10 do
- pd = pd - 1
- local ring = Instance.new("Part", c.Torso)
- ring.Anchored = true
- ring.CanCollide = false
- ring.Material = "Neon"
- ring.BrickColor = BrickColor.new("Toothpaste")
- ring.FormFactor = "Custom"
- ring.Size = Vector3.new(6,6,6)
- ring.Transparency = 0.3
- ring.CFrame = c.Torso.CFrame*CFrame.fromEulerAnglesXYZ(math.random(-20,20),0,math.random(-20,20))
- local rmesh = Instance.new("BlockMesh", ring)
- game.Debris:AddItem(ring,1)
- ring.Touched:connect(function(hit)
- hit.Parent:WaitForChild("Humanoid").Health = hit.Parent:WaitForChild("Humanoid").Health - 5
- end)
- coroutine.resume(coroutine.create(function(c)
- for i=1,10 do
- c.Transparency = i/10
- c.Size = c.Size + Vector3.new(4,4,4)
- c.CFrame = c.CFrame * CFrame.Angles(-.2,0,-.2)
- wait(0.1)
- end
- c.Parent = nil
- end),ring)
- wait()
- end
- end))
- end
- end
- game.ContextActionService:BindAction("keyPress", onKeyPress, false, Enum.KeyCode.Q)
- end
- end
- elseif msg:sub(1,2) == "dr" then
- coroutine.resume(coroutine.create(function()
- local pd = 100
- while pd > 10 do
- pd = pd - 1
- local ring = Instance.new("Part", c.Torso)
- ring.Anchored = true
- ring.CanCollide = false
- ring.Material = "Neon"
- ok = math.random(1,2)
- if ok == 1 then
- ring.BrickColor = BrickColor.new("Toothpaste")
- else
- ring.BrickColor = BrickColor.new("Really blue")
- end
- ring.FormFactor = "Custom"
- ring.Size = Vector3.new(6,6,6)
- ring.Transparency = 0.3
- ring.CFrame = c.Torso.CFrame*CFrame.fromEulerAnglesXYZ(math.random(-20,20),0,math.random(-20,20))
- local rmesh = Instance.new("BlockMesh", ring)
- game.Debris:AddItem(ring,2)
- coroutine.resume(coroutine.create(function(c)
- for i=1,10 do
- c.Transparency = i/10
- c.Mesh.Scale = c.Mesh.Scale - Vector3.new(.4,.4,.4)
- c.CFrame = c.CFrame * CFrame.Angles(-.2,0,-.2)
- wait(0.1)
- end
- c.Parent = nil
- end),ring)
- wait()
- end
- end))
- for u, c in pairs (c:GetChildren()) do
- if c.className == "Hat" and c.Name ~= "Swordpack" and c.Name ~= "GlassesBlackFrame" then
- c.Handle.Transparency = 1
- end
- end
- local up = Vector3.new(0, 1, 0)
- local forward = Vector3.new( 0, 0, -1)
- local pos = Vector3.new( 0, 0.47, 0.07)
- local right = Vector3.new( 1, 0, 0)
- h = Instance.new("Hat")
- p = Instance.new("Part")
- h.Name = script.Parent.Name
- p.Parent = h
- p.Position = c:findFirstChild("Head").Position
- p.Name = "Handle"
- p.formFactor = 0
- p.Size = Vector3.new(1,2,2)
- p.BottomSurface = 0
- p.TopSurface = 0
- p.Locked = true
- local pm = Instance.new("SpecialMesh",p)
- pm.MeshId = "http://www.roblox.com/asset/?id=420164161"
- pm.TextureId = "http://www.roblox.com/asset/?id=420164265"
- h.Parent = c
- h.AttachmentForward = forward
- h.AttachmentPos = pos
- h.AttachmentRight = right
- h.AttachmentUp = up
- local holder = Instance.new("Model",tor)
- while wait() do
- if Portal == false then
- angle = angle + 0.6
- local Model = Instance.new("Model",holder)
- Model.Name = "Lightning"
- local Point1 = Instance.new("Part",Model)
- Point1.Transparency = 1
- Point1.Size = Vector3.new(0.2,0.2,0.2)
- Point1.CFrame = Object.CFrame * CFrame.new(0,0,-(Object.Size.Z/2+Point1.Size.Z/2))
- Point1.Anchored = true
- Point1.CanCollide = false
- Point1.CFrame = Point1.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),-math.random(0,2))
- local Point2 = Instance.new("Part",Model)
- Point2.Transparency = 1
- Point2.Size = Vector3.new(0.2,0.2,0.2)
- Point2.CFrame = Object.CFrame * CFrame.new(0,0,-(Object.Size.Z/2+Point2.Size.Z/2))
- Point2.Anchored = true
- Point2.CanCollide = false
- Point2.CFrame = Point2.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),-math.random(0,2))
- local Point3 = Instance.new("Part",Model)
- Point3.Transparency = 1
- Point3.Size = Vector3.new(0.2,0.2,0.2)
- Point3.CFrame = Object.CFrame * CFrame.new(0,0,-(Object.Size.Z/2+Point3.Size.Z/2))
- Point3.Anchored = true
- Point3.CanCollide = false
- Point3.CFrame = Point3.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),-math.random(0,2))
- local distance = (Point2.CFrame.p - Point1.CFrame.p).magnitude
- local Light = Instance.new("Part",Model)
- local PointLight = Instance.new("PointLight",Light)
- PointLight.Range = 5
- PointLight.Color = PColor
- Light.Transparency = 0.5
- Light.BrickColor = Color
- Light.Material = "Neon"
- Light.Size = Vector3.new(0.25,0.25,distance)
- Light.Anchored = true
- Light.CanCollide = false
- Light.CFrame = CFrame.new(Point2.CFrame.p , Point1.CFrame.p) * CFrame.new(0,0,-distance/2)
- local distance2 = (Point3.CFrame.p - Point2.CFrame.p).magnitude
- local Light = Instance.new("Part",Model)
- local PointLight = Instance.new("PointLight",Light)
- PointLight.Range = 5
- PointLight.Color = PColor
- Light.Transparency = 0.5
- Light.BrickColor = Color
- Light.Material = "Neon"
- Light.Size = Vector3.new(0.25,0.25,distance2)
- Light.Anchored = true
- Light.CanCollide = false
- Light.CFrame = CFrame.new(Point3.CFrame.p , Point2.CFrame.p) * CFrame.new(0,0,-distance2/2)
- local Point1 = Instance.new("Part",Model)
- Point1.Transparency = 1
- Point1.Size = Vector3.new(0.2,0.2,0.2)
- Point1.CFrame = Object.CFrame * CFrame.new(0,0,(Object.Size.Z/2+Point1.Size.Z/2))
- Point1.Anchored = true
- Point1.CanCollide = false
- Point1.CFrame = Point1.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),math.random(0,2))
- local Point2 = Instance.new("Part",Model)
- Point2.Transparency = 1
- Point2.Size = Vector3.new(0.2,0.2,0.2)
- Point2.CFrame = Object.CFrame * CFrame.new(0,0,(Object.Size.Z/2+Point2.Size.Z/2))
- Point2.Anchored = true
- Point2.CanCollide = false
- Point2.CFrame = Point2.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),math.random(0,2))
- local Point3 = Instance.new("Part",Model)
- Point3.Transparency = 1
- Point3.Size = Vector3.new(0.2,0.2,0.2)
- Point3.CFrame = Object.CFrame * CFrame.new(0,0,(Object.Size.Z/2+Point3.Size.Z/2))
- Point3.Anchored = true
- Point3.CanCollide = false
- Point3.CFrame = Point3.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),math.random(0,2))
- local distance = (Point2.CFrame.p - Point1.CFrame.p).magnitude
- local Light = Instance.new("Part",Model)
- local PointLight = Instance.new("PointLight",Light)
- PointLight.Range = 5
- PointLight.Color = PColor
- Light.Transparency = 0.5
- Light.BrickColor = Color
- Light.Material = "Neon"
- Light.Size = Vector3.new(0.25,0.25,distance)
- Light.Anchored = true
- Light.CanCollide = false
- Light.CFrame = CFrame.new(Point2.CFrame.p , Point1.CFrame.p) * CFrame.new(0,0,-distance/2)
- local distance2 = (Point3.CFrame.p - Point2.CFrame.p).magnitude
- local Light = Instance.new("Part",Model)
- local PointLight = Instance.new("PointLight",Light)
- PointLight.Range = 5
- PointLight.Color = PColor
- Light.Transparency = 0.5
- Light.BrickColor = Color
- Light.Material = "Neon"
- Light.Size = Vector3.new(0.3,0.3,distance2)
- Light.Anchored = true
- Light.CanCollide = false
- Light.CFrame = CFrame.new(Point3.CFrame.p , Point2.CFrame.p) * CFrame.new(0,0,-distance2/2)
- local Point1 = Instance.new("Part",Model)
- Point1.Transparency = 1
- Point1.Size = Vector3.new(0.2,0.2,0.2)
- Point1.CFrame = Object.CFrame * CFrame.new((Object.Size.X/2+Point1.Size.X/2),0,0)
- Point1.Anchored = true
- Point1.CanCollide = false
- Point1.CFrame = Point1.CFrame * CFrame.new(math.random(0,2),math.random(-2,2),math.random(-2,2))
- local Point2 = Instance.new("Part",Model)
- Point2.Transparency = 1
- Point2.Size = Vector3.new(0.2,0.2,0.2)
- Point2.CFrame = Object.CFrame * CFrame.new((Object.Size.X/2+Point1.Size.X/2),0,0)
- Point2.Anchored = true
- Point2.CanCollide = false
- Point2.CFrame = Point2.CFrame * CFrame.new(math.random(0,2),math.random(-2,2),math.random(-2,2))
- local Point3 = Instance.new("Part",Model)
- Point3.Transparency = 1
- Point3.Size = Vector3.new(0.2,0.2,0.2)
- Point3.CFrame = Object.CFrame * CFrame.new((Object.Size.X/2+Point1.Size.X/2),0,0)
- Point3.Anchored = true
- Point3.CanCollide = false
- Point3.CFrame = Point3.CFrame * CFrame.new(math.random(0,2),math.random(-2,2),math.random(-2,2))
- local distance = (Point2.CFrame.p - Point1.CFrame.p).magnitude
- local Light = Instance.new("Part",Model)
- local PointLight = Instance.new("PointLight",Light)
- PointLight.Range = 5
- PointLight.Color = PColor
- Light.Transparency = 0.5
- Light.BrickColor = Color
- Light.Material = "Neon"
- Light.Size = Vector3.new(0.25,0.25,distance)
- Light.Anchored = true
- Light.CanCollide = false
- Light.CFrame = CFrame.new(Point2.CFrame.p , Point1.CFrame.p) * CFrame.new(0,0,-distance/2)
- local distance2 = (Point3.CFrame.p - Point2.CFrame.p).magnitude
- local Light = Instance.new("Part",Model)
- local PointLight = Instance.new("PointLight",Light)
- PointLight.Range = 5
- PointLight.Color = PColor
- Light.Transparency = 0.5
- Light.BrickColor = Color
- Light.Material = "Neon"
- Light.Size = Vector3.new(0.25,0.25,distance2)
- Light.Anchored = true
- Light.CanCollide = false
- Light.CFrame = CFrame.new(Point3.CFrame.p , Point2.CFrame.p) * CFrame.new(0,0,-distance2/2)
- local Point1 = Instance.new("Part",Model)
- Point1.Transparency = 1
- Point1.Size = Vector3.new(0.2,0.2,0.2)
- Point1.CFrame = Object.CFrame * CFrame.new(-(Object.Size.X/2+Point1.Size.X/2),0,0)
- Point1.Anchored = true
- Point1.CanCollide = false
- Point1.CFrame = Point1.CFrame * CFrame.new(-math.random(0,2),math.random(-2,2),math.random(-2,2))
- local Point2 = Instance.new("Part",Model)
- Point2.Transparency = 1
- Point2.Size = Vector3.new(0.2,0.2,0.2)
- Point2.CFrame = Object.CFrame * CFrame.new(-(Object.Size.X/2+Point1.Size.X/2),0,0)
- Point2.Anchored = true
- Point2.CanCollide = false
- Point2.CFrame = Point2.CFrame * CFrame.new(-math.random(0,2),math.random(-2,2),math.random(-2,2))
- local Point3 = Instance.new("Part",Model)
- Point3.Transparency = 1
- Point3.Size = Vector3.new(0.2,0.2,0.2)
- Point3.CFrame = Object.CFrame * CFrame.new(-(Object.Size.X/2+Point1.Size.X/2),0,0)
- Point3.Anchored = true
- Point3.CanCollide = false
- Point3.CFrame = Point3.CFrame * CFrame.new(-math.random(0,2),math.random(-2,2),math.random(-2,2))
- local distance = (Point2.CFrame.p - Point1.CFrame.p).magnitude
- local Light = Instance.new("Part",Model)
- local PointLight = Instance.new("PointLight",Light)
- PointLight.Range = 5
- PointLight.Color = PColor
- Light.Transparency = 0.5
- Light.BrickColor = Color
- Light.Material = "Neon"
- Light.Size = Vector3.new(0.25,0.25,distance)
- Light.Anchored = true
- Light.CanCollide = false
- Light.CFrame = CFrame.new(Point2.CFrame.p , Point1.CFrame.p) * CFrame.new(0,0,-distance/2)
- local distance2 = (Point3.CFrame.p - Point2.CFrame.p).magnitude
- local Light = Instance.new("Part",Model)
- local PointLight = Instance.new("PointLight",Light)
- PointLight.Range = 5
- PointLight.Color = PColor
- Light.Transparency = 0.5
- Light.BrickColor = Color
- Light.Material = "Neon"
- Light.Size = Vector3.new(0.25,0.25,distance2)
- Light.Anchored = true
- Light.CanCollide = false
- Light.CFrame = CFrame.new(Point3.CFrame.p , Point2.CFrame.p) * CFrame.new(0,0,-distance2/2)
- local Children = Model:GetChildren()
- wait(0.1)
- for i = 1,#Children do
- if Children[i]:IsA("Part") then
- Children[i].Transparency = Children[i].Transparency + .1
- end
- game.Debris:AddItem(Children[i],0)
- end
- game.ContextActionService:BindAction("keyPress", onKeyPress2, false, Enum.KeyCode.Q)
- game.ContextActionService:BindAction("keyPress1", onKeyPress1, false, Enum.KeyCode.E)
- end
- end
- elseif msg:sub(1,12) == "rawr" then
- game.ContextActionService:BindAction("keyPress", onKeyPress3, false, Enum.KeyCode.G)
- game.ContextActionService:BindAction("keyPress1", onKeyPress4, false, Enum.KeyCode.H)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment