Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Tool0 = Instance.new("Tool")
- BoolValue1 = Instance.new("BoolValue")
- NumberValue2 = Instance.new("NumberValue")
- ScreenGui3 = Instance.new("ScreenGui")
- TextLabel4 = Instance.new("TextLabel")
- TextLabel5 = Instance.new("TextLabel")
- Script6 = Instance.new("Script")
- Part7 = Instance.new("Part")
- SpecialMesh8 = Instance.new("SpecialMesh")
- Fire9 = Instance.new("Fire")
- Script10 = Instance.new("Script")
- Weld11 = Instance.new("Weld")
- Part12 = Instance.new("Part")
- SpecialMesh13 = Instance.new("SpecialMesh")
- Fire14 = Instance.new("Fire")
- Script15 = Instance.new("Script")
- Weld16 = Instance.new("Weld")
- Part17 = Instance.new("Part")
- SpecialMesh18 = Instance.new("SpecialMesh")
- Fire19 = Instance.new("Fire")
- Script20 = Instance.new("Script")
- Weld21 = Instance.new("Weld")
- Part22 = Instance.new("Part")
- SpecialMesh23 = Instance.new("SpecialMesh")
- Fire24 = Instance.new("Fire")
- Script25 = Instance.new("Script")
- Weld26 = Instance.new("Weld")
- Script27 = Instance.new("Script")
- Part28 = Instance.new("Part")
- SpecialMesh29 = Instance.new("SpecialMesh")
- Fire30 = Instance.new("Fire")
- Script31 = Instance.new("Script")
- Weld32 = Instance.new("Weld")
- Part33 = Instance.new("Part")
- SpecialMesh34 = Instance.new("SpecialMesh")
- Fire35 = Instance.new("Fire")
- Script36 = Instance.new("Script")
- Weld37 = Instance.new("Weld")
- Part38 = Instance.new("Part")
- SpecialMesh39 = Instance.new("SpecialMesh")
- Fire40 = Instance.new("Fire")
- Script41 = Instance.new("Script")
- Weld42 = Instance.new("Weld")
- Part43 = Instance.new("Part")
- SpecialMesh44 = Instance.new("SpecialMesh")
- Fire45 = Instance.new("Fire")
- Script46 = Instance.new("Script")
- Script47 = Instance.new("Script")
- Script48 = Instance.new("Script")
- LocalScript49 = Instance.new("LocalScript")
- Tool0.Name = "Atratea"
- Tool0.Parent = mas
- Tool0.TextureId = "http://www.roblox.com/asset/?id=37084302"
- Tool0.GripForward = Vector3.new(-1, 0, -0)
- Tool0.GripPos = Vector3.new(0, 0.5, 0)
- Tool0.GripRight = Vector3.new(0, 0, -1)
- BoolValue1.Name = "Working"
- BoolValue1.Parent = Tool0
- NumberValue2.Name = "Mode"
- NumberValue2.Parent = Tool0
- NumberValue2.Value = 2
- ScreenGui3.Name = "ModeGui"
- ScreenGui3.Parent = Tool0
- TextLabel4.Name = "Mode"
- TextLabel4.Parent = ScreenGui3
- TextLabel4.Size = UDim2.new(0, 100, 0, 50)
- TextLabel4.Text = "Beam"
- TextLabel4.Position = UDim2.new(0, 50, 0.665000021, 0)
- TextLabel4.BackgroundColor3 = Color3.new(0, 0, 0.4)
- TextLabel4.BorderColor3 = Color3.new(0, 0, 0)
- TextLabel4.FontSize = Enum.FontSize.Size14
- TextLabel4.TextColor3 = Color3.new(0, 0, 0)
- TextLabel5.Name = "Label"
- TextLabel5.Parent = TextLabel4
- TextLabel5.Transparency = 1
- TextLabel5.Text = "Use 'E' to switch"
- TextLabel5.Position = UDim2.new(0.5, 0, -0.125, 0)
- TextLabel5.BackgroundColor3 = Color3.new(0.0313726, 0.0313726, 0.0313726)
- TextLabel5.BackgroundTransparency = 1
- TextLabel5.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
- TextLabel5.FontSize = Enum.FontSize.Size10
- TextLabel5.TextColor3 = Color3.new(1, 1, 0.196078)
- Script6.Name = "Damage"
- Script6.Parent = Tool0
- Script6.Disabled = true
- table.insert(cors,sandbox(Script6,function()
- canhit=true
- function tagHumanoid(humanoid, player)
- local creator_tag = Instance.new("ObjectValue")
- creator_tag.Value = player
- creator_tag.Name = "creator"
- creator_tag.Parent = humanoid
- end
- function untagHumanoid(humanoid)
- if humanoid ~= nil then
- local tag = humanoid:findFirstChild("creator")
- if tag ~= nil then
- tag.Parent = nil
- end
- end
- end
- function Particles(part)
- for k=1, 4 do
- s=Instance.new("Part")
- s.CanCollide=false
- s.TopSurface="Smooth"
- s.BottomSurface="Smooth"
- s.formFactor="Plate"
- s.Shape="Block"
- s.Size=Vector3.new(1,0.4,1)
- s.Transparency=0.3
- s.Reflectance=0.4
- s.Friction=0.3
- s.CFrame=part.CFrame
- s.BrickColor=part.BrickColor
- sm=Instance.new("BodyVelocity")
- sm.P=2000
- sm.velocity=Vector3.new(math.random(-7.5,7.5),math.random(7.5,11),math.random(-7.5,7.5))
- sm.maxForce=Vector3.new(math.huge,math.huge,math.huge)
- sm.Parent=s
- s.RotVelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
- s.Parent=game.Workspace
- game:GetService("Debris"):AddItem(s,1.25)
- game:GetService("Debris"):AddItem(sm,.3)
- end
- end
- function onTouched(hit)
- local MAN = script.Parent.Parent.Parent
- local BIGMAN = game.Players:playerFromCharacter(MAN)
- local human = hit.Parent:FindFirstChild("Humanoid")
- if canhit==true then
- print("The shot hit " ..hit.Name ..", a child of " ..hit.Parent.Name ..".")
- if (human ~= nil and human.Health>0 and hit.Parent~=MAN) then
- canhit=false
- chance=math.random(1,5)
- if chance~=2 then
- tagHumanoid(human, BIGMAN)
- coroutine.resume(coroutine.create(function(Part,CF) wait(1) untagHumanoid(human) end),human)
- human.Health = human.Health - script.Charge.Value
- print("Hit!")
- script.Parent.Anchored=true
- script.Parent.Mesh.Scale=Vector3.new(0.1,0.1,0.1)
- icechance=math.random(1,4)
- if icechance==2 then
- --------
- local torso=human.Parent:FindFirstChild("Torso")
- human.WalkSpeed=0
- wait()
- bp = Instance.new("BodyPosition")
- bp.Name="FreezeHere"
- bp.P = 1e+004
- bp.D = 1e+003
- bp.Parent = torso
- bp.maxForce=Vector3.new(1e+008, 1e+008, 1e+008)
- bp.position=torso.Position
- P=Instance.new("Part")
- P.CanCollide=false
- P.Anchored=false
- P.Name="IceBlock"
- P.Shape="Block"
- P.TopSurface="Smooth"
- P.BottomSurface="Smooth"
- P.Transparency=0.3
- P.Reflectance=0.3
- P.Size=Vector3.new(5,7,5)
- P.CFrame=torso.CFrame
- P.Parent=torso.Parent
- w = Instance.new("Weld")
- w.Name="WELDAH"
- w.Parent = torso
- w.Part0 = w.Parent
- w.Part1 = P
- w.C0 = CFrame.new(0, 0, 0)
- Th=script.Thaw:clone()
- Th.Disabled=false
- Th.Parent=P
- --------
- end
- for i=1,7 do
- script.Parent.Mesh.Scale=script.Parent.Mesh.Scale+Vector3.new(0.15,0.15,0.15)
- script.Parent.Smoke.Enabled=false
- script.Parent.Transparency=script.Parent.Transparency+0.1
- wait()
- end
- wait()
- script.Parent:remove()
- elseif chance==2 then
- script.Parent.Anchored=true
- Particles(script.Parent)
- script.Parent.Transparency=1
- print("No damage!")
- wait()
- script.Parent:remove()
- end
- elseif (human ~= nil and human.Health==0) then
- canhit=false
- print("He's already dead.")
- script.Parent:remove()
- elseif (human == nil and hit.Name~=script.Parent.Name and hit.Parent.className~="Tool") then
- canhit=false
- print("The shot hit : " ..hit.Name)
- script.Parent.Anchored=true
- script.Parent.Mesh.Scale=Vector3.new(0.1,0.1,0.1)
- for i=1,7 do
- script.Parent.Mesh.Scale=script.Parent.Mesh.Scale+Vector3.new(0.15,0.15,0.15)
- script.Parent.Transparency=script.Parent.Transparency+0.1
- wait()
- end
- wait()
- script.Parent:remove()
- end
- end
- end
- wait()
- coroutine.resume(coroutine.create(function(pa) wait(0.75) print("Fading") script.Parent.BodyForce.force = Vector3.new(0, 330, 0) for i=1, 9 do script.Parent.Transparency=i*0.1 wait() end script.Parent:remove() end),script.Parent)
- connection = script.Parent.Touched:connect(onTouched)
- end))
- Part7.Name = "Bottom"
- Part7.Parent = Tool0
- Part7.BrickColor = BrickColor.new("Black")
- Part7.Reflectance = 0.20000000298023
- Part7.Rotation = Vector3.new(8.93000031, 89.9700012, 171.070007)
- Part7.RotVelocity = Vector3.new(0.000331505871, 3.81375139e-05, 0.000448036939)
- Part7.Velocity = Vector3.new(0.00022522267, -0.00293435086, -0.000917444238)
- Part7.CanCollide = false
- Part7.FormFactor = Enum.FormFactor.Plate
- Part7.Size = Vector3.new(1, 0.400000006, 1)
- Part7.CFrame = CFrame.new(29.4999123, 0.259995937, -15.499836, -0.000154435635, -2.42607184e-05, 0.999999881, -1.47192168e-05, -1, -2.42630467e-05, 0.999999881, -1.47229503e-05, 0.000154435635)
- Part7.BottomSurface = Enum.SurfaceType.Smooth
- Part7.TopSurface = Enum.SurfaceType.Smooth
- Part7.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part7.Position = Vector3.new(29.4999123, 0.259995937, -15.499836)
- Part7.Orientation = Vector3.new(0, 89.9899979, -180)
- Part7.Color = Color3.new(0.105882, 0.164706, 0.207843)
- SpecialMesh8.Parent = Part7
- SpecialMesh8.Scale = Vector3.new(0.400000006, 2.25, 0.400000006)
- SpecialMesh8.Scale = Vector3.new(0.400000006, 2.25, 0.400000006)
- Fire9.Parent = Part7
- Fire9.Size = 30
- Fire9.Color = Color3.new(0, 0, 1)
- Fire9.Enabled = false
- Fire9.Heat = 25
- Fire9.SecondaryColor = Color3.new(1, 1, 1)
- Fire9.Color = Color3.new(0, 0, 1)
- Script10.Name = "Spread"
- Script10.Parent = Fire9
- table.insert(cors,sandbox(Script10,function()
- function Spread(part)
- check = part:findFirstChild("Fire")
- if check == nil then
- script.Parent:Clone().Parent = part
- elseif check ~= nil then
- check.Size = check.Size + 1
- check.Heat = check.Heat +1
- end
- end
- script.Parent.Parent.Touched:connect(Spread)
- end))
- Weld11.Parent = Part7
- Weld11.C0 = CFrame.new(23.5, 0.69999218, 2.5, 8.97582193e-13, -1.59161573e-12, 1, 8.7538865e-12, -1, 1.59161573e-12, 1, -8.7538865e-12, 8.97582193e-13)
- Weld11.C1 = CFrame.new(23.5, 6.12995434, 2.5, 5.60988864e-13, -9.9475983e-13, 1, 5.47117907e-12, -1, 9.9475983e-13, 1, -5.47117907e-12, 5.60988864e-13)
- Weld11.Part0 = Part7
- Weld11.Part1 = Part12
- Part12.Name = "Crystal"
- Part12.Parent = Tool0
- Part12.BrickColor = BrickColor.new("Navy blue")
- Part12.Reflectance = 0.5
- Part12.Rotation = Vector3.new(8.93000031, 89.9700012, 171.070007)
- Part12.RotVelocity = Vector3.new(0.000331505871, 3.81375139e-05, 0.000448036939)
- Part12.Velocity = Vector3.new(-0.00220759795, -0.0029343185, 0.000882615102)
- Part12.CanCollide = false
- Part12.FormFactor = Enum.FormFactor.Plate
- Part12.Size = Vector3.new(1, 0.400000006, 1)
- Part12.CFrame = CFrame.new(29.5000439, 5.6899581, -15.4997559, -0.000154435635, -2.4260733e-05, 0.999999881, -1.47192141e-05, -1, -2.42630322e-05, 0.999999881, -1.4722953e-05, 0.000154435635)
- Part12.BottomSurface = Enum.SurfaceType.Smooth
- Part12.TopSurface = Enum.SurfaceType.Smooth
- Part12.Color = Color3.new(0, 0.12549, 0.376471)
- Part12.Position = Vector3.new(29.5000439, 5.6899581, -15.4997559)
- Part12.Orientation = Vector3.new(0, 89.9899979, -180)
- Part12.Color = Color3.new(0, 0.12549, 0.376471)
- SpecialMesh13.Parent = Part12
- SpecialMesh13.MeshId = "http://www.roblox.com/Asset/?id=9756362"
- SpecialMesh13.Scale = Vector3.new(0.75, 1, 0.75)
- SpecialMesh13.MeshType = Enum.MeshType.FileMesh
- SpecialMesh13.Scale = Vector3.new(0.75, 1, 0.75)
- Fire14.Parent = Part12
- Fire14.Size = 30
- Fire14.Color = Color3.new(0, 0, 1)
- Fire14.Enabled = false
- Fire14.Heat = 25
- Fire14.SecondaryColor = Color3.new(1, 1, 1)
- Fire14.Color = Color3.new(0, 0, 1)
- Script15.Name = "Spread"
- Script15.Parent = Fire14
- table.insert(cors,sandbox(Script15,function()
- function Spread(part)
- check = part:findFirstChild("Fire")
- if check == nil then
- script.Parent:Clone().Parent = part
- elseif check ~= nil then
- check.Size = check.Size + 1
- check.Heat = check.Heat +1
- end
- end
- script.Parent.Parent.Touched:connect(Spread)
- end))
- Weld16.Parent = Part12
- Weld16.C0 = CFrame.new(23.5, 6.12995434, 2.5, 5.60988864e-13, -9.9475983e-13, 1, 5.47117907e-12, -1, 9.9475983e-13, 1, -5.47117907e-12, 5.60988864e-13)
- Weld16.C1 = CFrame.new(23.5, 5.64002514, 2.5, 3.04536805e-13, -5.40012479e-13, 1, 2.97006864e-12, -1, 5.40012479e-13, 1, -2.97006864e-12, 3.04536805e-13)
- Weld16.Part0 = Part12
- Weld16.Part1 = Part17
- Part17.Name = "Bump1"
- Part17.Parent = Tool0
- Part17.BrickColor = BrickColor.new("Black")
- Part17.Rotation = Vector3.new(8.93000031, 89.9700012, 171.070007)
- Part17.RotVelocity = Vector3.new(0.000331505871, 3.81375139e-05, 0.000448036939)
- Part17.Velocity = Vector3.new(-0.00198809197, -0.00293432106, 0.000720201118)
- Part17.CanCollide = false
- Part17.FormFactor = Enum.FormFactor.Plate
- Part17.Size = Vector3.new(1, 0.400000006, 1)
- Part17.CFrame = CFrame.new(29.5000324, 5.2000289, -15.4997635, -0.000154435635, -2.42607421e-05, 0.999999881, -1.47192122e-05, -1, -2.42630231e-05, 0.999999881, -1.47229548e-05, 0.000154435635)
- Part17.BottomSurface = Enum.SurfaceType.Smooth
- Part17.TopSurface = Enum.SurfaceType.Smooth
- Part17.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part17.Position = Vector3.new(29.5000324, 5.2000289, -15.4997635)
- Part17.Orientation = Vector3.new(0, 89.9899979, -180)
- Part17.Color = Color3.new(0.105882, 0.164706, 0.207843)
- SpecialMesh18.Parent = Part17
- SpecialMesh18.Scale = Vector3.new(0.550000012, 0.699999988, 0.550000012)
- SpecialMesh18.MeshType = Enum.MeshType.Sphere
- SpecialMesh18.Scale = Vector3.new(0.550000012, 0.699999988, 0.550000012)
- Fire19.Parent = Part17
- Fire19.Size = 30
- Fire19.Color = Color3.new(0, 0, 1)
- Fire19.Enabled = false
- Fire19.Heat = 25
- Fire19.SecondaryColor = Color3.new(1, 1, 1)
- Fire19.Color = Color3.new(0, 0, 1)
- Script20.Name = "Spread"
- Script20.Parent = Fire19
- table.insert(cors,sandbox(Script20,function()
- function Spread(part)
- check = part:findFirstChild("Fire")
- if check == nil then
- script.Parent:Clone().Parent = part
- elseif check ~= nil then
- check.Size = check.Size + 1
- check.Heat = check.Heat +1
- end
- end
- script.Parent.Parent.Touched:connect(Spread)
- end))
- Weld21.Parent = Part17
- Weld21.C0 = CFrame.new(23.5, 5.64002514, 2.5, 3.04536805e-13, -5.40012479e-13, 1, 2.97006864e-12, -1, 5.40012479e-13, 1, -2.97006864e-12, 3.04536805e-13)
- Weld21.C1 = CFrame.new(-23.5, -3.04004931, 2.5, -9.61695187e-14, 1.70530257e-13, -1, -9.37916411e-13, 1, -1.70530257e-13, 1, -9.37916411e-13, 9.61695187e-14)
- Weld21.Part0 = Part17
- Weld21.Part1 = Part22
- Part22.Name = "Handle"
- Part22.Parent = Tool0
- Part22.BrickColor = BrickColor.new("Navy blue")
- Part22.Reflectance = 0.34999999403954
- Part22.Rotation = Vector3.new(8.93000031, 89.9700012, -8.93000031)
- Part22.RotVelocity = Vector3.new(0.000331505871, 3.81375139e-05, 0.000448036939)
- Part22.Velocity = Vector3.new(-0.000823208247, -0.00293433666, -0.000141703771)
- Part22.FormFactor = Enum.FormFactor.Plate
- Part22.Size = Vector3.new(1, 5.20000029, 1)
- Part22.CFrame = CFrame.new(29.4999695, 2.60005307, -15.4998016, 0.000154435635, 2.42607457e-05, 0.999999881, 1.47192113e-05, 1, -2.42630194e-05, -0.999999881, 1.47229557e-05, 0.000154435635)
- Part22.BottomSurface = Enum.SurfaceType.Smooth
- Part22.TopSurface = Enum.SurfaceType.Smooth
- Part22.Color = Color3.new(0, 0.12549, 0.376471)
- Part22.Position = Vector3.new(29.4999695, 2.60005307, -15.4998016)
- Part22.Orientation = Vector3.new(0, 89.9899979, 0)
- Part22.Color = Color3.new(0, 0.12549, 0.376471)
- SpecialMesh23.Parent = Part22
- SpecialMesh23.Scale = Vector3.new(0.349999994, 1.04999995, 0.349999994)
- SpecialMesh23.Scale = Vector3.new(0.349999994, 1.04999995, 0.349999994)
- Fire24.Parent = Part22
- Fire24.Size = 30
- Fire24.Color = Color3.new(0, 0, 1)
- Fire24.Enabled = false
- Fire24.Heat = 25
- Fire24.SecondaryColor = Color3.new(1, 1, 1)
- Fire24.Color = Color3.new(0, 0, 1)
- Script25.Name = "Spread"
- Script25.Parent = Fire24
- table.insert(cors,sandbox(Script25,function()
- function Spread(part)
- check = part:findFirstChild("Fire")
- if check == nil then
- script.Parent:Clone().Parent = part
- elseif check ~= nil then
- check.Size = check.Size + 1
- check.Heat = check.Heat +1
- end
- end
- script.Parent.Parent.Touched:connect(Spread)
- end))
- Weld26.Parent = Part22
- Weld26.C0 = CFrame.new(-23.5, -3.04004931, 2.5, -9.61695187e-14, 1.70530257e-13, -1, -9.37916411e-13, 1, -1.70530257e-13, 1, -9.37916411e-13, 9.61695187e-14)
- Weld26.C1 = CFrame.new(23.5, 6.12995434, 2.5, 3.04536805e-13, -5.40012479e-13, 1, 2.97006864e-12, -1, 5.40012479e-13, 1, -2.97006864e-12, 3.04536805e-13)
- Weld26.Part0 = Part22
- Weld26.Part1 = Part28
- Script27.Name = "Thaw"
- Script27.Parent = Tool0
- Script27.Disabled = true
- table.insert(cors,sandbox(Script27,function()
- w=script.Parent.Parent.Torso:FindFirstChild("WELDAH")
- bp=script.Parent.Parent.Torso:FindFirstChild("FreezeHere")
- function ICE()
- for k=1, 5 do
- s=Instance.new("Part")
- s.TopSurface="Smooth"
- s.BottomSurface="Smooth"
- s.formFactor="Symmetric"
- s.Size=Vector3.new(1,1,1)
- s.Reflectance=0.3
- s.Transparency=0.3
- s.Friction=2
- s.CFrame=script.Parent.CFrame*CFrame.new(math.random(-5,5),math.random(0.1,2),math.random(-5,5))
- s.BrickColor=script.Parent.BrickColor
- sm=Instance.new("BodyVelocity")
- sm.P=2000
- sm.velocity=Vector3.new(math.random(-20,20),math.random(5,20),math.random(-20,20))
- sm.maxForce=Vector3.new(math.huge,math.huge,math.huge)
- sm.Parent=s
- s.Parent=game.Workspace
- game:GetService("Debris"):AddItem(s,2)
- game:GetService("Debris"):AddItem(sm,.3)
- end
- end
- wait(1.65)
- for i=1, 5 do
- w.C0=w.C0*CFrame.new(math.random(-0.7,0.7),math.random(-0.3,0.3),math.random(-0.7,0.7))
- wait()
- end
- ICE()
- script.Parent.Parent.Humanoid.WalkSpeed=16
- if w~=nil then
- w:remove()
- end
- if bp~=nil then
- bp:remove()
- end
- wait()
- script.Parent:remove()
- end))
- Part28.Name = "Glow"
- Part28.Parent = Tool0
- Part28.BrickColor = BrickColor.new("Really black")
- Part28.Reflectance = 0.15000000596046
- Part28.Transparency = 0.60000002384186
- Part28.Rotation = Vector3.new(8.93000031, 89.9700012, 171.070007)
- Part28.RotVelocity = Vector3.new(0.000331505871, 3.81375139e-05, 0.000448036939)
- Part28.Velocity = Vector3.new(-0.00220759818, -0.0029343185, 0.000882615102)
- Part28.CanCollide = false
- Part28.FormFactor = Enum.FormFactor.Symmetric
- Part28.Size = Vector3.new(1, 1, 1)
- Part28.CFrame = CFrame.new(29.5000439, 5.6899581, -15.4997559, -0.000154435635, -2.42607421e-05, 0.999999881, -1.47192122e-05, -1, -2.42630231e-05, 0.999999881, -1.47229548e-05, 0.000154435635)
- Part28.BottomSurface = Enum.SurfaceType.Smooth
- Part28.TopSurface = Enum.SurfaceType.Smooth
- Part28.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part28.Position = Vector3.new(29.5000439, 5.6899581, -15.4997559)
- Part28.Orientation = Vector3.new(0, 89.9899979, -180)
- Part28.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- SpecialMesh29.Parent = Part28
- SpecialMesh29.Scale = Vector3.new(1.75, 1.75, 1.75)
- SpecialMesh29.MeshType = Enum.MeshType.Sphere
- SpecialMesh29.Scale = Vector3.new(1.75, 1.75, 1.75)
- Fire30.Parent = Part28
- Fire30.Size = 30
- Fire30.Color = Color3.new(0, 0, 1)
- Fire30.Enabled = false
- Fire30.Heat = 25
- Fire30.SecondaryColor = Color3.new(1, 1, 1)
- Fire30.Color = Color3.new(0, 0, 1)
- Script31.Name = "Spread"
- Script31.Parent = Fire30
- table.insert(cors,sandbox(Script31,function()
- function Spread(part)
- check = part:findFirstChild("Fire")
- if check == nil then
- script.Parent:Clone().Parent = part
- elseif check ~= nil then
- check.Size = check.Size + 1
- check.Heat = check.Heat +1
- end
- end
- script.Parent.Parent.Touched:connect(Spread)
- end))
- Weld32.Parent = Part28
- Weld32.C0 = CFrame.new(23.5, 6.12995434, 2.5, 4.96875869e-13, -8.81072992e-13, 1, 4.84590146e-12, -1, 8.81072992e-13, 1, -4.84590146e-12, 4.96875869e-13)
- Weld32.C1 = CFrame.new(23.5, 5.24006176, 2.5, 1.17006253e-12, -2.07478479e-12, 1, 1.14113163e-11, -1, 2.07478479e-12, 1, -1.14113163e-11, 1.17006253e-12)
- Weld32.Part0 = Part28
- Weld32.Part1 = Part33
- Part33.Name = "Bump2"
- Part33.Parent = Tool0
- Part33.BrickColor = BrickColor.new("Black")
- Part33.Rotation = Vector3.new(8.93000031, 89.9700012, 171.070007)
- Part33.RotVelocity = Vector3.new(0.000331505871, 3.81375139e-05, 0.000448036939)
- Part33.Velocity = Vector3.new(-0.00180889387, -0.00293432339, 0.000587611285)
- Part33.CanCollide = false
- Part33.FormFactor = Enum.FormFactor.Plate
- Part33.Size = Vector3.new(1, 0.400000006, 1)
- Part33.CFrame = CFrame.new(29.5000229, 4.80006552, -15.4997692, -0.000154435635, -2.42607257e-05, 0.999999881, -1.4719215e-05, -1, -2.42630394e-05, 0.999999881, -1.47229521e-05, 0.000154435635)
- Part33.BottomSurface = Enum.SurfaceType.Smooth
- Part33.TopSurface = Enum.SurfaceType.Smooth
- Part33.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part33.Position = Vector3.new(29.5000229, 4.80006552, -15.4997692)
- Part33.Orientation = Vector3.new(0, 89.9899979, -180)
- Part33.Color = Color3.new(0.105882, 0.164706, 0.207843)
- SpecialMesh34.Parent = Part33
- SpecialMesh34.Scale = Vector3.new(0.649999976, 0.800000012, 0.649999976)
- SpecialMesh34.MeshType = Enum.MeshType.Sphere
- SpecialMesh34.Scale = Vector3.new(0.649999976, 0.800000012, 0.649999976)
- Fire35.Parent = Part33
- Fire35.Size = 30
- Fire35.Color = Color3.new(0, 0, 1)
- Fire35.Enabled = false
- Fire35.Heat = 25
- Fire35.SecondaryColor = Color3.new(1, 1, 1)
- Fire35.Color = Color3.new(0, 0, 1)
- Script36.Name = "Spread"
- Script36.Parent = Fire35
- table.insert(cors,sandbox(Script36,function()
- function Spread(part)
- check = part:findFirstChild("Fire")
- if check == nil then
- script.Parent:Clone().Parent = part
- elseif check ~= nil then
- check.Size = check.Size + 1
- check.Heat = check.Heat +1
- end
- end
- script.Parent.Parent.Touched:connect(Spread)
- end))
- Weld37.Parent = Part33
- Weld37.C0 = CFrame.new(23.5, 5.24006176, 2.5, 2.16381427e-12, -3.83693077e-12, 1, 2.11031193e-11, -1, 3.83693077e-12, 1, -2.11031193e-11, 2.16381427e-12)
- Weld37.C1 = CFrame.new(23.5, 4.84003735, 2.5, 4.35968492e-12, -7.73070497e-12, 1, 4.25188773e-11, -1, 7.73070497e-12, 1, -4.25188773e-11, 4.35968492e-12)
- Weld37.Part0 = Part33
- Weld37.Part1 = Part38
- Part38.Name = "Bump3"
- Part38.Parent = Tool0
- Part38.BrickColor = BrickColor.new("Black")
- Part38.Rotation = Vector3.new(8.93000031, 89.9700012, 171.070007)
- Part38.RotVelocity = Vector3.new(0.000331505871, 3.81375139e-05, 0.000448036939)
- Part38.Velocity = Vector3.new(-0.0016296684, -0.00293432572, 0.000455001194)
- Part38.CanCollide = false
- Part38.FormFactor = Enum.FormFactor.Plate
- Part38.Size = Vector3.new(1, 0.400000006, 1)
- Part38.CFrame = CFrame.new(29.5000134, 4.4000411, -15.4997749, -0.000154435635, -2.4260662e-05, 0.999999881, -1.47192268e-05, -1, -2.42631031e-05, 0.999999881, -1.47229403e-05, 0.000154435635)
- Part38.BottomSurface = Enum.SurfaceType.Smooth
- Part38.TopSurface = Enum.SurfaceType.Smooth
- Part38.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part38.Position = Vector3.new(29.5000134, 4.4000411, -15.4997749)
- Part38.Orientation = Vector3.new(0, 89.9899979, -180)
- Part38.Color = Color3.new(0.105882, 0.164706, 0.207843)
- SpecialMesh39.Parent = Part38
- SpecialMesh39.Scale = Vector3.new(0.550000012, 0.699999988, 0.550000012)
- SpecialMesh39.MeshType = Enum.MeshType.Sphere
- SpecialMesh39.Scale = Vector3.new(0.550000012, 0.699999988, 0.550000012)
- Fire40.Parent = Part38
- Fire40.Size = 30
- Fire40.Color = Color3.new(0, 0, 1)
- Fire40.Enabled = false
- Fire40.Heat = 25
- Fire40.SecondaryColor = Color3.new(1, 1, 1)
- Fire40.Color = Color3.new(0, 0, 1)
- Script41.Name = "Spread"
- Script41.Parent = Fire40
- table.insert(cors,sandbox(Script41,function()
- function Spread(part)
- check = part:findFirstChild("Fire")
- if check == nil then
- script.Parent:Clone().Parent = part
- elseif check ~= nil then
- check.Size = check.Size + 1
- check.Heat = check.Heat +1
- end
- end
- script.Parent.Parent.Touched:connect(Spread)
- end))
- Weld42.Parent = Part38
- Weld42.C0 = CFrame.new(23.5, 4.84003735, 2.5, 8.68731302e-12, -1.54045665e-11, 1, 8.47251158e-11, -1, 1.54045665e-11, 1, -8.47251158e-11, 8.68731302e-12)
- Weld42.C1 = CFrame.new(23.5, 0.69999218, 2.5, 1.59000278e-11, -2.81943358e-11, 1, 1.55068847e-10, -1, 2.81943358e-11, 1, -1.55068847e-10, 1.59000278e-11)
- Weld42.Part0 = Part38
- Weld42.Part1 = Part43
- Part43.Name = "Bump4"
- Part43.Parent = Tool0
- Part43.BrickColor = BrickColor.new("Really black")
- Part43.Rotation = Vector3.new(8.93000031, 89.9700012, 171.070007)
- Part43.RotVelocity = Vector3.new(0.000331505871, 3.81375139e-05, 0.000448036939)
- Part43.Velocity = Vector3.new(0.000225222437, -0.00293435086, -0.000917444297)
- Part43.CanCollide = false
- Part43.FormFactor = Enum.FormFactor.Plate
- Part43.Size = Vector3.new(1, 0.400000006, 1)
- Part43.CFrame = CFrame.new(29.4999123, 0.259995937, -15.499836, -0.000154435606, -2.42604219e-05, 0.999999881, -1.47192704e-05, -1, -2.42633432e-05, 0.999999881, -1.47228966e-05, 0.000154435664)
- Part43.BottomSurface = Enum.SurfaceType.Smooth
- Part43.TopSurface = Enum.SurfaceType.Smooth
- Part43.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part43.Position = Vector3.new(29.4999123, 0.259995937, -15.499836)
- Part43.Orientation = Vector3.new(0, 89.9899979, -180)
- Part43.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- SpecialMesh44.Parent = Part43
- SpecialMesh44.Scale = Vector3.new(0.649999976, 0.800000012, 0.649999976)
- SpecialMesh44.MeshType = Enum.MeshType.Sphere
- SpecialMesh44.Scale = Vector3.new(0.649999976, 0.800000012, 0.649999976)
- Fire45.Parent = Part43
- Fire45.Size = 30
- Fire45.Color = Color3.new(0, 0, 1)
- Fire45.Enabled = false
- Fire45.Heat = 25
- Fire45.SecondaryColor = Color3.new(1, 1, 1)
- Fire45.Color = Color3.new(0, 0, 1)
- Script46.Name = "Spread"
- Script46.Parent = Fire45
- table.insert(cors,sandbox(Script46,function()
- function Spread(part)
- check = part:findFirstChild("Fire")
- if check == nil then
- script.Parent:Clone().Parent = part
- elseif check ~= nil then
- check.Size = check.Size + 1
- check.Heat = check.Heat +1
- end
- end
- script.Parent.Parent.Touched:connect(Spread)
- end))
- Script47.Name = "Beam"
- Script47.Parent = Tool0
- Script47.Disabled = true
- table.insert(cors,sandbox(Script47,function()
- c=script.Parent.CFrame
- onTouched=function(hit)
- if hit.Parent==nil then
- return
- end
- h=hit.Parent:FindFirstChild("Humanoid")
- if h~=nil then
- if h==script.Owner.Value then
- return
- end
- h:TakeDamage(31)
- end
- end
- script.Parent.Touched:connect(onTouched)
- while true do
- if script.Parent.Transparency>.95 then
- break
- end
- script.Parent.CFrame=c
- script.Parent.Transparency=script.Parent.Transparency+.1
- wait()
- end
- script.Parent.Parent=nil
- end))
- Script48.Name = "Weld"
- Script48.Parent = Tool0
- table.insert(cors,sandbox(Script48,function()
- local prev
- local parts = script.Parent:GetChildren()
- for i = 1,#parts do
- if (parts[i].className == "Part" or parts[i].className == "WedgePart") then
- if (prev ~= nil)then
- local weld = Instance.new("Weld")
- weld.Part0 = prev
- weld.Part1 = parts[i]
- weld.C0 = prev.CFrame:inverse()
- weld.C1 = parts[i].CFrame:inverse()
- weld.Parent = prev
- end
- prev = parts[i]
- end
- end
- end))
- LocalScript49.Name = "StaffScript"
- LocalScript49.Parent = Tool0
- table.insert(cors,sandbox(LocalScript49,function()
- -------- OMG HAX
- wait()
- r = game:service("RunService")
- local sword = script.Parent.Handle
- local Tool = script.Parent
- local working=Tool.Working
- local S1 = true
- local S2 = false
- local S3 = false
- local S4 = false
- local First = false
- local Second = false
- local Third = false
- local Fourth = false
- local deb = false
- local damage = 0
- local p = nil
- local humanoid = nil
- local divine=false
- local sun=false
- c2 = {"Really black","Bright violet", "Black"}
- ChargeId="http://www.roblox.com/asset/?id=2101137"
- CastId="http://www.roblox.com/asset/?id=2248511"
- FireId="http://www.roblox.com/asset/?id=2248511"
- ChargeSound=Instance.new("Sound")
- ChargeSound.Volume=0.6
- ChargeSound.Pitch=0.85
- ChargeSound.SoundId=ChargeId
- CastSound=Instance.new("Sound")
- CastSound.Volume=0.6
- CastSound.Pitch=0.65
- CastSound.SoundId=CastId
- FireSound=Instance.new("Sound")
- FireSound.Volume=0.45
- FireSound.Pitch=2
- FireSound.SoundId=FireId
- arms = {Tool.Parent:FindFirstChild("Left Arm"), Tool.Parent:FindFirstChild("Right Arm")}
- torso = Tool.Parent:FindFirstChild("Torso")
- arms = nil
- torso = nil
- welds = {}
- function Weld()
- wait(0.01)
- arm = Tool.Parent:FindFirstChild("Right Arm")
- torso = Tool.Parent:FindFirstChild("Torso")
- if arm ~= nil and torso ~= nil then
- local sh = torso:FindFirstChild("Right Shoulder")
- if sh ~= nil then
- local yes = true
- if yes then
- yes = false
- sh.Part1 = nil
- weld2 = Instance.new("Weld")
- weld2.Part0 = torso
- weld2.Parent = torso
- weld2.Part1 = arm
- weld2.C0 = CFrame.new(1.5,0.5,0)
- weld2.C1 = CFrame.new(0,0.5,0)
- welds = weld2
- for i=1,10 do
- weld2.C1 = weld2.C1*CFrame.fromEulerAnglesXYZ(math.pi/-20, 0, 0)
- wait()
- end
- end
- else
- print("sh")
- end
- else
- print("arms")
- end
- end
- Damage=function(Point)
- for ii,vv in pairs(workspace:children()) do
- if vv.className=="Model" then
- local vCharacter = Tool.Parent
- local vPlayer = game.Players:playerFromCharacter(vCharacter)
- Human=vv:FindFirstChild("Humanoid")
- Torso=vv:FindFirstChild("Torso")
- if Human~=nil and Torso~=nil then
- if Human.Health>0 then
- if divine==true then
- if ((Torso.Position-Point).magnitude<=18 and vv~=Tool.Parent) then
- tagHumanoid(Human, vPlayer)
- Torso.CFrame=CFrame.new(Torso.Position,Vector3.new(Point.x,Torso.Position.y,Point.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
- Push=Instance.new("BodyVelocity")
- Push.P=1000
- Push.maxForce=Vector3.new(500000,500000,500000)*50000
- Push.velocity=(Torso.Position-Point).unit*18+Vector3.new(0,6,0)
- Push.Parent=Torso
- game:GetService("Debris"):AddItem(Gyro,.5)
- game:GetService("Debris"):AddItem(Push,.25)
- Human:TakeDamage(45)
- coroutine.resume(coroutine.create(function(Part,CF) wait(1) untagHumanoid(Human) end),script)
- end
- elseif sun==true then
- if ((Torso.Position-Point).magnitude<=25 and vv~=Tool.Parent) then
- tagHumanoid(Human, vPlayer)
- Torso.CFrame=CFrame.new(Torso.Position,Vector3.new(Point.x,Torso.Position.y,Point.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
- Gyro=Instance.new("BodyGyro")
- Gyro.P=2000
- Gyro.D=Gyro.D/2
- Gyro.maxTorque=Vector3.new(500000,500000,500000)*500000
- Gyro.cframe=Torso.CFrame*CFrame.fromEulerAnglesXYZ(math.pi/32,0,0)
- Gyro.Parent=Torso
- Push=Instance.new("BodyVelocity")
- Push.P=1000
- Push.maxForce=Vector3.new(500000,500000,500000)*50000
- Push.velocity=(Torso.Position-Point).unit*10+Vector3.new(0,5,0)
- Push.Parent=Torso
- game:GetService("Debris"):AddItem(Gyro,1.5)
- game:GetService("Debris"):AddItem(Push,.25)
- Human:TakeDamage(35)
- coroutine.resume(coroutine.create(function(Part,CF) wait(1) untagHumanoid(Human) end),script)
- end
- end
- end
- end
- end
- end
- end
- Effect=function(Part,V)
- for i=1,3 do
- S=Instance.new("Part")
- S.Name="Effect"
- S.formFactor="Symmetric"
- S.Size=Vector3.new(2,2,2)
- S.BrickColor=BrickColor.new(c2[math.random(1,#c2)])
- S.TopSurface=0
- S.BottomSurface=0
- S.Transparency=0
- S.Anchored=true
- S.CanCollide=false
- S.CFrame=Part.CFrame*CFrame.new(0,-1.5,0)*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
- S.Parent=Tool
- coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Transparency=i*.1 Part.Size=Part.Size+Vector3.new(V,V,V) Part.CFrame=CF*CFrame.fromEulerAnglesXYZ(math.random(-1,1)/2*i,math.random(-1,1)/2*i,math.random(-1,1)/2*i) wait() end Part.Parent=nil end),S,S.CFrame)
- wait()
- end
- end
- function tagHumanoid(humanoid, player)
- local creator_tag = Instance.new("ObjectValue")
- creator_tag.Value = player
- creator_tag.Name = "creator"
- creator_tag.Parent = humanoid
- end
- function untagHumanoid(humanoid)
- if humanoid ~= nil then
- local tag = humanoid:findFirstChild("creator")
- if tag ~= nil then
- tag.Parent = nil
- end
- end
- end
- function lungegrip2()
- for i=1,4 do
- Tool.Parent["Right Arm"]["RightGrip"].C0=Tool.Parent["Right Arm"]["RightGrip"].C0*CFrame.fromEulerAnglesXYZ(math.pi/8,0,0)
- wait()
- end
- end
- function swordUp()
- Tool.GripForward = Vector3.new(-1,0,0)
- Tool.GripRight = Vector3.new(0,1,0)
- Tool.GripUp = Vector3.new(0,0,1)
- end
- function swordOut()
- Tool.GripForward = Vector3.new(0,0,1)
- Tool.GripRight = Vector3.new(0,1,0)
- Tool.GripUp = Vector3.new(1,0,0)
- end
- Tool.Enabled = true
- local last_attack = 0
- function onActivated(mouse)
- if deb==true then
- return
- end
- if not Tool.Enabled then
- return
- end
- local character = Tool.Parent;
- local humanoid = character.Humanoid
- if humanoid == nil then
- print("Humanoid not found")
- return
- end
- if (S1==true and Tool.Enabled==true and First==false and Second==false) then
- vCharacter = Tool.Parent
- vPlayer = game.Players:playerFromCharacter(vCharacter)
- if Tool.Mode.Value==0 then
- MGui=vPlayer.PlayerGui:FindFirstChild("Stats")
- if MGui~=nil then
- if MGui.MP.Value.Value<3.3333 then
- print("Not enough MP!")
- return
- end
- end
- First=true
- Tool.Enabled = false
- print("Beam")
- Pos=mouse.Hit.p
- V=(mouse.Hit.p-Tool.Parent.Torso.Position).unit
- M=(mouse.Hit.p-Tool.Parent.Torso.Position).magnitude
- if M>500 then
- Pos=Tool.Parent.Torso.Position+V*500
- end
- TurnG = Instance.new("BodyGyro")
- TurnG.Name = "TurnGyro"
- TurnG.P = TurnG.P*5
- TurnG.maxTorque = Vector3.new(0,100,0)
- TurnG.cframe = Tool.Parent.Torso.CFrame
- TurnG.Parent = Tool.Parent.Torso
- TurnG.cframe=CFrame.new(Tool.Parent.Torso.Position,Tool.Parent.Torso.Position+V)
- weld20=weld2.C0
- weld21=weld2.C1
- grip=Tool.Parent["Right Arm"].RightGrip.C1
- for i=1,6 do
- weld2.C0 = weld2.C0*CFrame.fromEulerAnglesXYZ(math.pi/16, 0, 0)
- Tool.Parent["Right Arm"].RightGrip.C1 = Tool.Parent["Right Arm"].RightGrip.C1 * CFrame.fromEulerAnglesXYZ(math.pi/32,0,0)
- wait()
- end
- Tool.Parent["Humanoid"].WalkSpeed=0
- wait(0.55)
- working.Value=true
- for i=1,10 do
- weld2.C0 = weld2.C0*CFrame.fromEulerAnglesXYZ(math.pi/-16, 0, 0)
- --weld2.C0 = weld2.C0+Vector3.new(0,-0.005,-0.005)
- wait()
- end
- wait()
- E=Instance.new("Part")
- E.Transparency=1
- E.Reflectance=0
- E.TopSurface=0
- E.BottomSurface=0
- E.Anchored=false
- E.CanCollide=false
- E.BrickColor=BrickColor.new("Dark stone grey")
- E.Shape="Ball"
- E.formFactor="Symmetric"
- E.Size=Vector3.new(1,1,1)
- E.CFrame=Tool.Crystal.CFrame
- E.Parent=Tool
- weldE = Instance.new("Weld")
- weldE.Parent = E
- weldE.Part0 = weldE.Parent
- weldE.Part1 = Tool.Crystal
- weldE.C0 = CFrame.new(0,0,0)
- Me=Instance.new("SpecialMesh")
- Me.MeshType="Sphere"
- Me.Scale=Vector3.new(5,5,5)
- Me.Parent=E
- for i=1,10 do
- Me.Scale=Me.Scale-Vector3.new(0.5,0.5,0.5)
- E.Transparency=E.Transparency-0.1
- E.Reflectance=E.Reflectance+0.05
- wait()
- end
- TurnG:remove()
- E:remove()
- L=Instance.new("Part")
- L.Anchored=true
- L.CanCollide=false
- L.Name="DarkBeam"
- L.BrickColor=BrickColor.new("Bright violet")
- L.TopSurface=0
- L.BottomSurface=0
- L.Transparency=0.175
- L.Reflectance=0.3
- L.Shape="Block"
- L.formFactor="Symmetric"
- if (Tool.Crystal.Position-Pos).magnitude<60 then
- L.Size=Vector3.new(2,(Tool.Handle.Position-Pos).magnitude,2)
- elseif (Tool.Crystal.Position-Pos).magnitude>=60 then
- L.Size=Vector3.new(2,50,2)
- end
- L.CFrame=CFrame.new(Tool.Crystal.Position+Tool.Parent.Torso.CFrame.lookVector*0.25+V*(L.Size.y/2),Tool.Crystal.Position+V*1500*(Tool.Crystal.Position-Pos).magnitude/300)*CFrame.fromEulerAnglesXYZ(math.pi/2,0,0)
- L.Parent=Tool
- M=Instance.new("SpecialMesh")
- M.MeshType="Head"
- M.Scale=Vector3.new(0.65,1,0.65)
- M.Parent=L
- S=Tool.Beam:clone()
- S.Disabled=false
- t=Instance.new("ObjectValue")
- t.Name="Owner"
- t.Parent=S
- t.Value=Tool.Parent.Humanoid
- S.Parent=L
- --[[
- V=Instance.new("BodyVelocity")
- V.maxForce=Vector3.new(math.huge,500,math.huge)
- V.velocity=Tool.Parent.Torso.CFrame.lookVector*-5
- V.Parent=Tool.Parent.Torso
- game:GetService("Debris"):AddItem(V,.2)
- ]]
- MGui=vPlayer.PlayerGui:FindFirstChild("Stats")
- if MGui~=nil then
- if MGui.MP.Value.Value>=2.5 then
- MGui.MP.Value.Value=MGui.MP.Value.Value-2.5
- end
- end
- N1=ChargeSound:clone()
- N1.Pitch=1.5
- N1.Parent=Tool.Crystal
- N1:Play()
- working.Value=false
- wait()
- damage=0
- Tool.Parent["Humanoid"].WalkSpeed=6
- wait(0.35)
- weld2.C0 = CFrame.new(1.5,0.5,0)
- weld2.C1 = CFrame.new(0,0.5,0)*CFrame.fromEulerAnglesXYZ(math.pi/-2, 0, 0)
- Tool.Parent["Right Arm"].RightGrip.C1=grip
- damage = 0
- print("End of Beam Spell")
- wait(0.4)
- N1:remove()
- First=false
- Tool.Enabled = true
- elseif Tool.Mode.Value==1 then
- MGui=vPlayer.PlayerGui:FindFirstChild("Stats")
- if MGui~=nil then
- if MGui.MP.Value.Value<5 then
- print("Not enough MP!")
- return
- end
- end
- Second=true
- Tool.Enabled = false
- print("Impurity")
- bp = Instance.new("BodyPosition")
- bp.Name="StayHere"
- bp.P = 1e+004
- bp.D = 1e+003
- bp.Parent = Tool.Parent.Torso
- bp.maxForce = Vector3.new(1e+008, 1e+008, 1e+008)
- bp.position=Tool.Parent.Torso.Position
- weld20=weld2.C0
- weld21=weld2.C1
- grip=Tool.Parent["Right Arm"].RightGrip.C1
- for i=1,2 do
- weld2.C0 = weld2.C0*CFrame.fromEulerAnglesXYZ(0, math.pi/16, math.pi/4)
- weld2.C0 = weld2.C0+Vector3.new(-0.1,0,-0.1)
- Tool.Parent["Right Arm"].RightGrip.C1 = Tool.Parent["Right Arm"].RightGrip.C1 * CFrame.fromEulerAnglesXYZ(math.pi/32,0,0)
- wait()
- end
- Tool.Parent["Humanoid"].WalkSpeed=0
- wait(0.15)
- working.Value=true
- wait()
- E=Instance.new("Part")
- E.Transparency=1
- E.TopSurface=0
- E.BottomSurface=0
- E.Anchored=false
- E.CanCollide=false
- E.BrickColor=BrickColor.new("Black")
- E.Shape="Ball"
- E.formFactor="Symmetric"
- E.Size=Vector3.new(1,1,1)
- E.CFrame=Tool.Crystal.CFrame
- E.Parent=Tool
- weldE = Instance.new("Weld")
- weldE.Parent = E
- weldE.Part0 = weldE.Parent
- weldE.Part1 = Tool.Crystal
- weldE.C0 = CFrame.new(0,0,0)
- Me=Instance.new("SpecialMesh")
- Me.MeshType="Sphere"
- Me.Scale=Vector3.new(10,10,10)
- Me.Parent=E
- for i=1,10 do
- Me.Scale=Me.Scale-Vector3.new(1,1,1)
- E.Transparency=E.Transparency-0.1
- wait()
- end
- wait(0.5)
- MGui=vPlayer.PlayerGui:FindFirstChild("Stats")
- if MGui~=nil then
- if MGui.MP.Value.Value>=5 then
- MGui.MP.Value.Value=MGui.MP.Value.Value-5
- end
- end
- F=Instance.new("Fire")
- F.Color=Color3.new(71/255,0,72/255)
- F.Heat=9
- F.SecondaryColor=Color3.new(129/255,42/255,203/255)
- F.Size=8
- F.Parent=Tool.Parent.Torso
- for i=1, 10 do
- F.Size=F.Size+1
- wait()
- end
- for i=1, 20 do
- F.Heat=F.Heat+0.05
- wait()
- end
- hp=(Tool.Parent.Humanoid.MaxHealth-Tool.Parent.Humanoid.Health)
- firesize=(F.Size/50)
- fireheat=(F.Heat/50)
- for i=1, 50 do
- F.Heat=F.Heat-fireheat
- F.Size=F.Size-firesize
- Tool.Parent.Humanoid.Health=Tool.Parent.Humanoid.Health+(hp/50)
- wait()
- end
- for i=1,10 do
- Me.Scale=Me.Scale+Vector3.new(2,2,2)
- wait()
- end
- divine=true
- sun=false
- Damage(Tool.Parent.Torso.CFrame.p)
- divine=false
- sun=false
- for i=1,5 do
- Me.Scale=Me.Scale+Vector3.new(1,1,1)
- E.Transparency=E.Transparency+0.2
- wait()
- end
- E:remove()
- F:remove()
- bp:remove()
- Tool.Parent["Humanoid"].WalkSpeed=8
- working.Value=false
- wait()
- damage=0
- Tool.Parent["Humanoid"].WalkSpeed=6
- wait(1.15)
- weld2.C0 = CFrame.new(1.5,0.5,0)
- weld2.C1 = CFrame.new(0,0.5,0)*CFrame.fromEulerAnglesXYZ(math.pi/-2, 0, 0)
- Tool.Parent["Right Arm"].RightGrip.C1=grip
- wait(1)
- Second=false
- Tool.Enabled = true
- damage = 0
- print("End of Impurity Spell")
- elseif Tool.Mode.Value==2 then
- MGui=vPlayer.PlayerGui:FindFirstChild("Stats")
- if MGui~=nil then
- if MGui.MP.Value.Value<4 then
- print("Not enough MP!")
- return
- end
- end
- Second=true
- Tool.Enabled = false
- print("DarkBlast")
- weld20=weld2.C0
- weld21=weld2.C1
- grip=Tool.Parent["Right Arm"].RightGrip.C1
- for i=1,12 do
- weld2.C0 = weld2.C0*CFrame.fromEulerAnglesXYZ(math.pi/32, 0, 0)
- Tool.Parent["Right Arm"].RightGrip.C1 = Tool.Parent["Right Arm"].RightGrip.C1 * CFrame.fromEulerAnglesXYZ(math.pi/32,0,0)
- wait()
- end
- Tool.Parent["Humanoid"].WalkSpeed=0
- wait(0.35)
- working.Value=true
- wait()
- E=Instance.new("Part")
- E.Transparency=1
- E.TopSurface=0
- E.BottomSurface=0
- E.Anchored=false
- E.CanCollide=false
- E.BrickColor=BrickColor.new("Really black")
- E.Shape="Ball"
- E.formFactor="Symmetric"
- E.Size=Vector3.new(1,1,1)
- E.CFrame=Tool.Crystal.CFrame
- E.Parent=Tool
- weldE = Instance.new("Weld")
- weldE.Parent = E
- weldE.Part0 = weldE.Parent
- weldE.Part1 = Tool.Crystal
- weldE.C0 = CFrame.new(0,0,0)
- Me=Instance.new("SpecialMesh")
- Me.MeshType="Sphere"
- Me.Scale=Vector3.new(10,10,10)
- Me.Parent=E
- N1=ChargeSound:clone()
- N1.Pitch=0.7
- N1.Parent=Tool.Crystal
- N1:Play()
- for i=1,20 do
- Me.Scale=Me.Scale-Vector3.new(0.5,0.5,0.5)
- E.Transparency=E.Transparency-0.1
- wait()
- end
- E:remove()
- wait(0.35)
- N1:remove()
- MGui=vPlayer.PlayerGui:FindFirstChild("Stats")
- if MGui~=nil then
- if MGui.MP.Value.Value>=4 then
- MGui.MP.Value.Value=MGui.MP.Value.Value-4
- end
- end
- L=Instance.new("Part")
- L.Transparency=0.25
- L.TopSurface=0
- L.BottomSurface=0
- L.Anchored=false
- L.CanCollide=false
- L.BrickColor=BrickColor.new("Really black")
- L.Shape="Ball"
- L.formFactor="Symmetric"
- L.Size=Vector3.new(1,1,1)
- L.CFrame=Tool.Crystal.CFrame
- L.Parent=Tool
- weldL = Instance.new("Weld")
- weldL.Parent = L
- weldL.Part0 = weldL.Parent
- weldL.Part1 = Tool.Crystal
- weldL.C0 = CFrame.new(0,0,0)
- Me2=Instance.new("SpecialMesh")
- Me2.MeshType="Sphere"
- Me2.Scale=Vector3.new(0,0,0)
- Me2.Parent=L
- divine=false
- sun=true
- wait()
- N=CastSound:clone()
- N.Parent=L
- N.Volume=0.7
- N.Pitch=0.875
- N:Play()
- for i=1,10 do
- Me2.Scale=Me2.Scale+Vector3.new(1.5,1.5,1.5)
- wait()
- end
- Effect(Tool.Crystal,1)
- Damage(Tool.Parent.Torso.CFrame.p)
- for i=1,10 do
- Me2.Scale=Me2.Scale+Vector3.new(1.5,1.5,1.5)
- L.Transparency=L.Transparency+0.075
- wait()
- end
- wait()
- L:remove()
- wait(0.5)
- divine=false
- sun=false
- working.Value=false
- wait()
- damage=0
- Tool.Parent["Humanoid"].WalkSpeed=6
- wait(1.75)
- weld2.C0 = CFrame.new(1.5,0.5,0)
- weld2.C1 = CFrame.new(0,0.5,0)*CFrame.fromEulerAnglesXYZ(math.pi/-2, 0, 0)
- Tool.Parent["Right Arm"].RightGrip.C1=grip
- wait(0.65)
- N:remove()
- Second=false
- Tool.Enabled = true
- damage = 0
- print("End of DarkBlast Spell")
- end
- if (First==false and Second==false) then
- Tool.Parent["Humanoid"].WalkSpeed=20
- print("Oh no!")
- S1=true
- end
- end
- Tool.Enabled = true
- end
- function Switch(key)
- if (key=="e") then
- if Tool.Mode.Value==0 then
- Tool.Mode.Value=1
- player=game.Players:GetPlayerFromCharacter(Tool.Parent)
- modegui=player.PlayerGui:FindFirstChild("ModeGui")
- if modegui~=nil then
- modegui.Mode.Text="Impurity"
- modegui.Mode.BackgroundColor3=Color3.new(124/255,58/255,145/255)
- end
- elseif Tool.Mode.Value==1 then
- Tool.Mode.Value=2
- player=game.Players:GetPlayerFromCharacter(Tool.Parent)
- modegui=player.PlayerGui:FindFirstChild("ModeGui")
- if modegui~=nil then
- modegui.Mode.Text="Dark Blast"
- modegui.Mode.BackgroundColor3=Color3.new(180/255,111/255,190/255)
- end
- elseif Tool.Mode.Value==2 then
- Tool.Mode.Value=0
- player=game.Players:GetPlayerFromCharacter(Tool.Parent)
- modegui=player.PlayerGui:FindFirstChild("ModeGui")
- if modegui~=nil then
- modegui.Mode.Text="Beam"
- modegui.Mode.BackgroundColor3=Color3.new(210/255,164/255,223/255)
- end
- end
- end
- end
- function UnWeld()
- if arm ~= nil and torso ~= nil then
- local sh = torso:FindFirstChild("Right Shoulder")
- if sh ~= nil then
- local yes = true
- if yes then
- yes = false
- sh.Part1 = arm
- welds.Parent = nil
- end
- else
- print("sh")
- end
- else
- print("arms")
- end
- end
- function onEquipped(mouse)
- mouse.Button1Down:connect(function() onActivated(mouse) end)
- mouse.KeyDown:connect(function(key) Switch(key) end)
- local humanoid = Tool.Parent:FindFirstChild("Humanoid",false)
- p = game.Players:GetPlayerFromCharacter(Tool.Parent)
- gui=p.PlayerGui:FindFirstChild("ModeGui")
- if gui==nil then
- gui1=Tool.ModeGui:clone()
- gui1.Parent=p.PlayerGui
- end
- end
- function onUnequipped()
- gui=p.PlayerGui:FindFirstChild("ModeGui")
- if gui~=nil then
- gui:remove()
- end
- end
- --script.Parent.Parent.Humanoid.Jumping:connect(Leap)
- script.Parent.Unequipped:connect(onUnequipped)
- script.Parent.Equipped:connect(onEquipped)
- script.Parent.Equipped:connect(Weld)
- script.Parent.Unequipped:connect(UnWeld)
- end))
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = game:GetService("Players").LocalPlayer.Backpack
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
Add Comment
Please, Sign In to add comment