SHOW:
|
|
- or go back to the newest paste.
| 1 | - | --Op thing I found one time |
| 1 | + | -- Project Name: "ethan15864" |
| 2 | ----------------------------Declarations | |
| 3 | local p = game.Players.LocalPlayer | |
| 4 | local char = p.Character | |
| 5 | local mouse = p:GetMouse() | |
| 6 | local larm = char["Left Arm"] | |
| 7 | local rarm = char["Right Arm"] | |
| 8 | local lleg = char["Left Leg"] | |
| 9 | local rleg = char["Right Leg"] | |
| 10 | local hed = char.Head | |
| 11 | - | local hum = char.Humanoid |
| 11 | + | |
| 12 | local cam = game.Workspace.CurrentCamera | |
| 13 | local root = char.HumanoidRootPart | |
| 14 | local deb = false | |
| 15 | local shot = 0 | |
| 16 | local l = game.Lighting | |
| 17 | local stanceToggle = "Assertive" | |
| 18 | local CanAttack = true | |
| 19 | - | local stanceToggle = "Normal" |
| 19 | + | local Daytime = true |
| 20 | - | local l = game:GetService("Lighting")
|
| 20 | + | |
| 21 | - | local rs = game:GetService("RunService").RenderStepped
|
| 21 | + | |
| 22 | - | math.randomseed(os.time()) |
| 22 | + | ----------------------------Tables |
| 23 | - | hum.MaxHealth = 9001 |
| 23 | + | |
| 24 | on = false; | |
| 25 | - | hum.Health = 9001 |
| 25 | + | Ready = false; |
| 26 | Here = false; | |
| 27 | - | for i,v in pairs (hed:GetChildren()) do |
| 27 | + | |
| 28 | - | if v:IsA("Sound") then
|
| 28 | + | Shewt = false; |
| 29 | - | v:Destroy() |
| 29 | + | |
| 30 | Slashed = false; | |
| 31 | } | |
| 32 | - | --game:service'InsertService':LoadAsset(16469427):children()[1].Parent = char |
| 32 | + | |
| 33 | - | --char.Reaper.Handle.Mesh.TextureId = "http://www.roblox.com/asset/?id=176349813" |
| 33 | + | ----------------------------Global Functions |
| 34 | - | ---------------------------------------------------- |
| 34 | + | |
| 35 | local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
| |
| 36 | - | CanAttack = true; |
| 36 | + | |
| 37 | - | CanJoke = true; |
| 37 | + | |
| 38 | com1[i] = v+(com2[i]-v)*al | |
| 39 | end | |
| 40 | return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1))) | |
| 41 | - | Slapping = false; |
| 41 | + | |
| 42 | - | Slapped = false; |
| 42 | + | ----------- |
| 43 | - | ks = false; |
| 43 | + | |
| 44 | wld = Instance.new("Weld", wp1)
| |
| 45 | wld.Part0 = wp0 | |
| 46 | wld.Part1 = wp1 | |
| 47 | - | ---------------------------------------------------- |
| 47 | + | |
| 48 | end | |
| 49 | ----------- | |
| 50 | function HasntTouched(plrname) | |
| 51 | local ret = true | |
| 52 | for _, v in pairs(Touche) do | |
| 53 | if v == plrname then | |
| 54 | ret = false | |
| 55 | end | |
| 56 | end | |
| 57 | - | ---------------------------------------------------- |
| 57 | + | |
| 58 | - | function weld5(part0, part1, c0, c1) |
| 58 | + | |
| 59 | - | weeld=Instance.new("Weld", part0)
|
| 59 | + | ----------------------------Welding |
| 60 | - | weeld.Part0=part0 |
| 60 | + | |
| 61 | - | weeld.Part1=part1 |
| 61 | + | |
| 62 | - | weeld.C0=c0 |
| 62 | + | |
| 63 | - | weeld.C1=c1 |
| 63 | + | |
| 64 | - | return weeld |
| 64 | + | |
| 65 | newWeld(torso, lleg, -0.5, -1, 0) | |
| 66 | - | ---------------------------------------------------- |
| 66 | + | |
| 67 | - | mod=Instance.new('Model',char)
|
| 67 | + | |
| 68 | rleg.Weld.C1 = CFrame.new(0, 1, 0) | |
| 69 | - | function Burst() |
| 69 | + | |
| 70 | - | part=Instance.new('Part',mod)
|
| 70 | + | |
| 71 | - | part.Anchored=true |
| 71 | + | ----------------------------Creation |
| 72 | - | part.CanCollide=false |
| 72 | + | function stick(x,y) |
| 73 | - | part.FormFactor='Custom' |
| 73 | + | weld = Instance.new("Weld")
|
| 74 | - | part.Size=Vector3.new(.2,.2,.2) |
| 74 | + | weld.Part0 = x |
| 75 | - | part.CFrame=root.CFrame*CFrame.new(0,1,0)*CFrame.Angles(math.rad(90),0,0) |
| 75 | + | weld.Part1 = y |
| 76 | - | part.Transparency=.7 |
| 76 | + | local HitPos = x.Position |
| 77 | - | part.BrickColor=BrickColor.new('Really black')
|
| 77 | + | local CJ = CFrame.new(HitPos) |
| 78 | - | mesh=Instance.new('SpecialMesh',part)
|
| 78 | + | local C0 = x.CFrame:inverse() *CJ |
| 79 | - | mesh.MeshId='http://www.roblox.com/asset/?id=20329976' |
| 79 | + | local C1 = y.CFrame:inverse() * CJ |
| 80 | - | mesh.Scale=Vector3.new(10,5,10) |
| 80 | + | weld.C0 = C0 |
| 81 | - | part2=part:clone() |
| 81 | + | weld.C1 = C1 |
| 82 | - | part2.Parent=mod |
| 82 | + | weld.Parent = x |
| 83 | - | part2.BrickColor=BrickColor.new('Dark indigo')
|
| 83 | + | y.Anchored=false |
| 84 | - | mesh2=mesh:clone() |
| 84 | + | return weld |
| 85 | - | mesh2.Parent=part2 |
| 85 | + | |
| 86 | - | mesh2.Scale=Vector3.new(5,2.5,5) |
| 86 | + | blocks = {}
|
| 87 | - | coroutine.resume(coroutine.create(function() |
| 87 | + | last_block = nil |
| 88 | - | for i=0,1,0.1 do |
| 88 | + | function ezBlock(type, name, cframe, size, rotation, material, parent, BrickColor, transparency, |
| 89 | ||
| 90 | - | part.CFrame=part.CFrame |
| 90 | + | weldToThis, formFactor) |
| 91 | - | part.Transparency=i |
| 91 | + | block = Instance.new(type, parent) |
| 92 | - | mesh.Scale=mesh.Scale+Vector3.new(1,1,1) |
| 92 | + | block.Name = name |
| 93 | - | part2.CFrame=part2.CFrame |
| 93 | + | block.FormFactor=formFactor |
| 94 | - | part2.Transparency=i |
| 94 | + | block.Size = size |
| 95 | - | mesh2.Scale=mesh2.Scale+Vector3.new(1,1,1) |
| 95 | + | block.CanCollide = false |
| 96 | block.Anchored = false | |
| 97 | - | part.Parent=nil |
| 97 | + | block.BrickColor = BrickColor |
| 98 | - | part2.Parent=nil |
| 98 | + | block.Transparency=transparency |
| 99 | - | end)) |
| 99 | + | block.TopSurface = 'SmoothNoOutlines' |
| 100 | block.BottomSurface = 'SmoothNoOutlines' | |
| 101 | - | ---------------------------------------------------- |
| 101 | + | block.FrontSurface = 'SmoothNoOutlines' |
| 102 | - | mod4 = Instance.new("Model",char)
|
| 102 | + | block.BackSurface = 'SmoothNoOutlines' |
| 103 | block.LeftSurface = 'SmoothNoOutlines' | |
| 104 | - | ptez = {0.7, 0.8, 0.9, 1}
|
| 104 | + | block.RightSurface = 'SmoothNoOutlines' |
| 105 | block.Material = material | |
| 106 | - | function FindNearestTorso(Position,Distance,SinglePlayer) |
| 106 | + | block.formFactor = 'Custom' |
| 107 | - | if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end |
| 107 | + | block.CFrame = cframe |
| 108 | - | local List = {}
|
| 108 | + | |
| 109 | - | for i,v in pairs(workspace:GetChildren())do |
| 109 | + | if weldToThis then |
| 110 | - | if v:IsA("Model")then
|
| 110 | + | stick(weldToThis, block) |
| 111 | - | if v:findFirstChild("Torso")then
|
| 111 | + | elseif last_block ~= nil then |
| 112 | - | if v ~= char then |
| 112 | + | stick(block, last_block) |
| 113 | - | if(v.Torso.Position -Position).magnitude <= Distance then |
| 113 | + | last_block = block |
| 114 | - | table.insert(List,v) |
| 114 | + | else |
| 115 | - | end |
| 115 | + | last_block = block |
| 116 | - | end |
| 116 | + | |
| 117 | - | end |
| 117 | + | table.insert(blocks, block) |
| 118 | - | end |
| 118 | + | |
| 119 | return #blocks | |
| 120 | - | return List |
| 120 | + | |
| 121 | ||
| 122 | local model = Instance.new("Model", game.Players.LocalPlayer.Character)
| |
| 123 | - | function Slam() |
| 123 | + | model.Name = 'KZ' |
| 124 | - | part=Instance.new('Part',mod4)
|
| 124 | + | |
| 125 | - | part.Anchored=true |
| 125 | + | plr=game.Players.LocalPlayer |
| 126 | - | part.CanCollide=false |
| 126 | + | chr=plr.Character |
| 127 | - | part.FormFactor='Custom' |
| 127 | + | |
| 128 | - | part.Size=Vector3.new(.2,.2,.2) |
| 128 | + | x_offset=chr["Right Arm"].Position.x-3 |
| 129 | - | part.CFrame=root.CFrame*CFrame.new(0,-2.8,-1.4)*CFrame.Angles(math.rad(90),0,0) |
| 129 | + | y_offset=chr["Right Arm"].Position.y-6 |
| 130 | - | part.Transparency=.7 |
| 130 | + | z_offset=chr["Right Arm"].Position.z-2 |
| 131 | - | part.BrickColor=BrickColor.new('Really black')
|
| 131 | + | handle=0 |
| 132 | - | mesh=Instance.new('SpecialMesh',part)
|
| 132 | + | |
| 133 | - | mesh.MeshId='http://www.roblox.com/asset/?id=3270017' |
| 133 | + | function makeModel() |
| 134 | - | mesh.Scale=Vector3.new(3,3,3) |
| 134 | + | x=ezBlock('Part', 'Part', CFrame.new(2.9000239372253+x_offset,9.9575099945068+y_offset,2.4182820320129+z_offset) * CFrame.Angles(math.rad(-62.47554397583),math.rad(89.951538085938),math.rad(62.96166229248)), Vector3.new(1,4,1), nil,Enum.Material.Plastic, model, BrickColor.new("Really black"),0,nil,Enum.FormFactor.Symmetric)
|
| 135 | - | part2=Instance.new('Part',mod4)
|
| 135 | + | m=Instance.new('BlockMesh',blocks[x])
|
| 136 | - | part2.Anchored=true |
| 136 | + | m.Scale=Vector3.new(0.29999992251396,1,0.12000000476837) |
| 137 | - | part2.CanCollide=false |
| 137 | + | test=ezBlock('Part', 'Part', CFrame.new(2.9001767635345+x_offset,12.307532310486+y_offset,2.3282859325409+z_offset) * CFrame.Angles(math.rad(75.000564575195),math.rad(-0.0027364948764443),math.rad(-0.0040953187271953)), Vector3.new(1,1,1), nil,Enum.Material.Plastic, model, BrickColor.new("Really black"),0,nil,Enum.FormFactor.Symmetric)
|
| 138 | - | part2.FormFactor='Custom' |
| 138 | + | m=Instance.new('SpecialMesh',blocks[test])
|
| 139 | - | part2.Size=Vector3.new(.2,.2,.2) |
| 139 | + | m.MeshType=Enum.MeshType.Wedge |
| 140 | - | part2.CFrame=root.CFrame*CFrame.new(0,-2.4,-1.6) |
| 140 | + | m.Scale=Vector3.new(0.11999999731779,0.29999992251396,0.79999995231628) |
| 141 | - | part2.Transparency=.7 |
| 141 | + | x=ezBlock('Part', 'Part', CFrame.new(2.9000627994537+x_offset,11.292961120605+y_offset,2.8021762371063+z_offset) * CFrame.Angles(math.rad(-120.99560546875),math.rad(0.0018079035216942),math.rad(-179.99545288086)), Vector3.new(1,1,2), nil,Enum.Material.Plastic, model, BrickColor.new("Really black"),0,nil,Enum.FormFactor.Symmetric)
|
| 142 | - | part2.BrickColor=BrickColor.new('Dark indigo')
|
| 142 | + | m=Instance.new('SpecialMesh',blocks[x])
|
| 143 | - | mesh2=Instance.new('SpecialMesh',part2)
|
| 143 | + | m.MeshType=Enum.MeshType.Wedge |
| 144 | - | mesh2.MeshId='http://www.roblox.com/asset/?id=20329976' |
| 144 | + | m.Scale=Vector3.new(0.11999999731779,0.29999992251396,0.69999992847443) |
| 145 | - | mesh2.Scale=Vector3.new(3,1.5,3) |
| 145 | + | x=ezBlock('Part', 'Part', CFrame.new(2.8998336791992+x_offset,6.8374934196472+y_offset,2.4182815551758+z_offset) * CFrame.Angles(math.rad(-62.47554397583),math.rad(89.951538085938),math.rad(62.96166229248)), Vector3.new(1,1,1), nil,Enum.Material.Plastic, model, BrickColor.new("Really black"),0,nil,Enum.FormFactor.Symmetric)
|
| 146 | - | x = Instance.new("Sound",char)
|
| 146 | + | m=Instance.new('BlockMesh',blocks[x])
|
| 147 | - | x.SoundId = "http://www.roblox.com/asset/?id=142070127" |
| 147 | + | m.Scale=Vector3.new(0.29999992251396,0.79999995231628,0.12000000476837) |
| 148 | - | x.Pitch = ptez[math.random(1,#ptez)] |
| 148 | + | x=ezBlock('Part', 'Part', CFrame.new(2.8999021053314+x_offset,7.9074859619141+y_offset,2.5182840824127+z_offset) * CFrame.Angles(math.rad(132.43475341797),math.rad(89.868774414062),math.rad(-179.9655456543)), Vector3.new(1,1,1), nil,Enum.Material.Plastic, model, BrickColor.new("Really black"),0,nil,Enum.FormFactor.Symmetric)
|
| 149 | - | x.Volume = 1 |
| 149 | + | m=Instance.new('BlockMesh',blocks[x])
|
| 150 | - | wait(.1) |
| 150 | + | m.Scale=Vector3.new(0.29999992251396,0.59999990463257,0.12000000476837) |
| 151 | - | x1 = Instance.new("Sound",char)
|
| 151 | + | x=ezBlock('Part', 'Part', CFrame.new(2.8998639583588+x_offset,7.4174952507019+y_offset,2.658282995224+z_offset) * CFrame.Angles(math.rad(101.38736724854),math.rad(89.951538085938),math.rad(-56.383499145508)), Vector3.new(1,1,1), nil,Enum.Material.Plastic, model, BrickColor.new("Really black"),0,nil,Enum.FormFactor.Symmetric)
|
| 152 | - | x1.SoundId = "http://www.roblox.com/asset/?id=206082327" |
| 152 | + | m=Instance.new('BlockMesh',blocks[x])
|
| 153 | - | x1.Pitch = ptez[math.random(1,#ptez)] |
| 153 | + | m.Scale=Vector3.new(0.29999992251396,0.79999995231628,0.12000000476837) |
| 154 | - | x1.Volume = 1 |
| 154 | + | x=ezBlock('Part', 'Part', CFrame.new(2.8998181819916+x_offset,6.4374675750732+y_offset,2.418304681778+z_offset) * CFrame.Angles(math.rad(179.99493408203),math.rad(-0.0017437987262383),math.rad(0.0042136842384934)), Vector3.new(1,0.40000000596046,1), nil,Enum.Material.Plastic, model, BrickColor.new("Really black"),0,nil,Enum.FormFactor.Plate)
|
| 155 | - | wait(.1) |
| 155 | + | m=Instance.new('BlockMesh',blocks[x])
|
| 156 | - | x:Play() |
| 156 | + | m.Scale=Vector3.new(0.29999992251396,0.3999999165535,0.79999995231628) |
| 157 | - | x1:Play() |
| 157 | + | handle=ezBlock('Part', 'Handle', CFrame.new(2.8998110294342+x_offset,5.7374625205994+y_offset,2.4182667732239+z_offset) * CFrame.Angles(math.rad(-26.479055404663),math.rad(-89.965728759766),math.rad(153.52093505859)), Vector3.new(1,2,1), nil,Enum.Material.Plastic, model, BrickColor.new("Really black"),0,nil,Enum.FormFactor.Symmetric)
|
| 158 | - | for i,v in pairs(FindNearestTorso(torso.CFrame.p,4))do |
| 158 | + | m=Instance.new('BlockMesh',blocks[handle])
|
| 159 | - | if v:FindFirstChild('Humanoid') then
|
| 159 | + | m.Scale=Vector3.new(0.09999992698431,0.69999992847443,0.09999992698431) --lolfunnyjoke lolhilarlar |
| 160 | - | v.Humanoid:TakeDamage(math.random(45,50)) |
| 160 | + | wait() |
| 161 | for i, v in pairs(blocks) do | |
| 162 | v.Parent = model | |
| 163 | - | coroutine.resume(coroutine.create(function() |
| 163 | + | |
| 164 | - | for i=0,0.62,0.13 do |
| 164 | + | |
| 165 | makeModel() | |
| 166 | - | part.CFrame=part.CFrame |
| 166 | + | ---- |
| 167 | - | part.Transparency=i |
| 167 | + | local cor = Instance.new("Part", model)
|
| 168 | - | mesh.Scale=mesh.Scale+Vector3.new(0.4,0.4,0.4) |
| 168 | + | cor.Name = "HitBox" |
| 169 | - | part2.CFrame=part2.CFrame |
| 169 | + | |
| 170 | - | part2.Transparency=i |
| 170 | + | |
| 171 | - | mesh2.Scale=mesh2.Scale+Vector3.new(0.4,0.2,0.4) |
| 171 | + | cor.Size = Vector3.new(1, 6, 1) |
| 172 | cor.Transparency = 1 | |
| 173 | - | part.Parent=nil |
| 173 | + | |
| 174 | - | part2.Parent=nil |
| 174 | + | |
| 175 | - | x:Destroy() |
| 175 | + | corw.Part0 = larm |
| 176 | - | end)) |
| 176 | + | |
| 177 | corw.C0 = CFrame.new(0, -1, -2.75) * CFrame.Angles(math.rad(90), math.rad(90), math.rad(0)) | |
| 178 | - | ---------------------------------------------------- |
| 178 | + | corw.C1 = CFrame.new(0, 0, 0) |
| 179 | - | GroundWave = function() |
| 179 | + | hndlw = Instance.new("Weld", model.Handle)
|
| 180 | - | local HandCF = CFrame.new(root.Position - Vector3.new(0,3,0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) |
| 180 | + | hndlw.Part0 = cor |
| 181 | - | local Colors = {"Dark indigo", "Really black"}
|
| 181 | + | hndlw.Part1 = model.Handle |
| 182 | - | local wave = Instance.new("Part", torso)
|
| 182 | + | hndlw.C0 = CFrame.new(0, 2.75, 0) |
| 183 | - | wave.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)]) |
| 183 | + | ----------------------------Extra Settings |
| 184 | - | wave.Anchored = true |
| 184 | + | --[[f = Instance.new("Fire")
|
| 185 | - | wave.CanCollide = false |
| 185 | + | f.Parent = larm |
| 186 | - | wave.Locked = true |
| 186 | + | f.Size = 5 |
| 187 | - | wave.Size = Vector3.new(1, 1, 1) |
| 187 | + | f.Heat = 5 |
| 188 | - | wave.TopSurface = "Smooth" |
| 188 | + | f.Color = Color3.new(0,0,0) |
| 189 | - | wave.BottomSurface = "Smooth" |
| 189 | + | f.SecondaryColor = Color3.new(44/255,31/255,90/255) |
| 190 | - | wave.Transparency = 0.35 |
| 190 | + | f1 = Instance.new("Fire")
|
| 191 | - | wave.CFrame = HandCF |
| 191 | + | f1.Parent = rarm |
| 192 | - | wm = Instance.new("SpecialMesh", wave)
|
| 192 | + | f1.Size = 5 |
| 193 | - | wm.MeshId = "rbxassetid://3270017" |
| 193 | + | f1.Heat = 5 |
| 194 | - | coroutine.wrap(function() |
| 194 | + | f1.Color = Color3.new(0,0,0) |
| 195 | - | for i = 1, 14, 1 do |
| 195 | + | f1.SecondaryColor = Color3.new(44/255,31/255,90/255)]] |
| 196 | - | wm.Scale = Vector3.new(1 + i*1.1, 1 + i*1.1, 1) |
| 196 | + | z = Instance.new("Sound")
|
| 197 | - | wave.Size = wm.Scale |
| 197 | + | z.SoundId = "http://www.roblox.com/asset/?id=146309999"--160453802 |
| 198 | - | wave.CFrame = HandCF |
| 198 | + | z.Parent = char |
| 199 | - | wave.Transparency = i/14 |
| 199 | + | |
| 200 | - | wait() |
| 200 | + | z.Pitch = 1 |
| 201 | z.Volume = 1 | |
| 202 | - | wait() |
| 202 | + | z.PlayOnRemove = false |
| 203 | - | wave:Destroy() |
| 203 | + | wait(.01) |
| 204 | - | end)() |
| 204 | + | |
| 205 | char.Humanoid.WalkSpeed = 10 | |
| 206 | - | ---------------------------------------------------- |
| 206 | + | -----------------------------Cero |
| 207 | - | Magik = function() |
| 207 | + | |
| 208 | - | Spawn(function() |
| 208 | + | if key == "f" then |
| 209 | - | local function lerp(a,b,c) |
| 209 | + | if CanAttack == true then |
| 210 | - | return a+(b-a)*c |
| 210 | + | CanAttack = false |
| 211 | Debounces.NoIdl = true | |
| 212 | - | local function rndRange(rng) |
| 212 | + | |
| 213 | - | return math.random(-rng*1000,rng*1000)/1000 |
| 213 | + | |
| 214 | for i = 1, 20 do | |
| 215 | - | local magik = Instance.new("Part", larm)
|
| 215 | + | |
| 216 | - | local Colors = {"Dark indigo", "Really black"}
|
| 216 | + | |
| 217 | - | magik.Anchored = true |
| 217 | + | |
| 218 | - | magik.Locked = true |
| 218 | + | |
| 219 | - | magik.FormFactor = "Custom" |
| 219 | + | |
| 220 | - | magik.Size = Vector3.new(1.2, 1.2, 1.2) |
| 220 | + | |
| 221 | - | magik.TopSurface = "Smooth" |
| 221 | + | if Debounces.on == false then |
| 222 | - | magik.BottomSurface = "Smooth" |
| 222 | + | break |
| 223 | - | magik.Transparency = 0 |
| 223 | + | |
| 224 | - | magik.CanCollide = false |
| 224 | + | |
| 225 | - | magik.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)]) |
| 225 | + | |
| 226 | - | local mr = math.rad |
| 226 | + | |
| 227 | - | local rnx,rny,rnz = mr(rndRange(180)),mr(rndRange(180)),mr(rndRange(180)) |
| 227 | + | |
| 228 | - | local cf = larm.CFrame * CFrame.new(0, -.8, 0) * CFrame.Angles(rnx,rny,rnz) |
| 228 | + | |
| 229 | - | magik.CFrame = cf |
| 229 | + | |
| 230 | - | for i = 0, 1, .05 do |
| 230 | + | |
| 231 | - | local newTrans = lerp(0.5, 1, i) |
| 231 | + | |
| 232 | - | local ns = lerp(1,1.2,i) |
| 232 | + | |
| 233 | - | magik.Transparency = newTrans |
| 233 | + | |
| 234 | - | magik.Size = Vector3.new(ns,ns,ns) |
| 234 | + | |
| 235 | - | magik.CFrame = cf |
| 235 | + | |
| 236 | - | rs:wait() |
| 236 | + | |
| 237 | - | end |
| 237 | + | shot = shot + 1 |
| 238 | - | magik:Destroy() |
| 238 | + | |
| 239 | - | wait() |
| 239 | + | |
| 240 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90), 0, math.rad(101)), 0.4) | |
| 241 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(0), 0, math.rad(-6)), 0.4) | |
| 242 | - | ---------------------------------------------------- |
| 242 | + | |
| 243 | - | Magik2 = function() |
| 243 | + | |
| 244 | - | Spawn(function() |
| 244 | + | |
| 245 | - | if stanceToggle == "Melee" then |
| 245 | + | |
| 246 | - | local function lerp(a,b,c) |
| 246 | + | |
| 247 | - | return a+(b-a)*c |
| 247 | + | |
| 248 | rng.Anchored = true | |
| 249 | - | local function rndRange(rng) |
| 249 | + | |
| 250 | - | return math.random(-rng*1000,rng*1000)/1000 |
| 250 | + | |
| 251 | rng.FormFactor = 3 | |
| 252 | - | local magik2 = Instance.new("Part", rarm)
|
| 252 | + | |
| 253 | - | local Colors = {"Dark indigo", "Really black"}
|
| 253 | + | |
| 254 | - | magik2.Anchored = true |
| 254 | + | |
| 255 | - | magik2.Locked = true |
| 255 | + | |
| 256 | - | magik2.FormFactor = "Custom" |
| 256 | + | |
| 257 | - | magik2.Size = Vector3.new(1.2, 1.2, 1.2) |
| 257 | + | |
| 258 | - | magik2.TopSurface = "Smooth" |
| 258 | + | |
| 259 | - | magik2.BottomSurface = "Smooth" |
| 259 | + | |
| 260 | - | magik2.Transparency = 0 |
| 260 | + | |
| 261 | - | magik2.CanCollide = false |
| 261 | + | |
| 262 | - | magik2.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)]) |
| 262 | + | |
| 263 | - | local mr = math.rad |
| 263 | + | |
| 264 | - | local rnx,rny,rnz = mr(rndRange(180)),mr(rndRange(180)),mr(rndRange(180)) |
| 264 | + | |
| 265 | - | local cf = rarm.CFrame * CFrame.new(0, -.8, 0) * CFrame.Angles(rnx,rny,rnz) |
| 265 | + | |
| 266 | - | magik2.CFrame = cf |
| 266 | + | |
| 267 | - | for i = 0, 1, .05 do |
| 267 | + | |
| 268 | - | local newTrans = lerp(0.5, 1, i) |
| 268 | + | |
| 269 | - | local ns = lerp(1,1.2,i) |
| 269 | + | |
| 270 | - | magik2.Transparency = newTrans |
| 270 | + | |
| 271 | - | magik2.Size = Vector3.new(ns,ns,ns) |
| 271 | + | |
| 272 | - | magik2.CFrame = cf |
| 272 | + | |
| 273 | - | rs:wait() |
| 273 | + | |
| 274 | - | end |
| 274 | + | |
| 275 | - | magik2:Destroy() |
| 275 | + | |
| 276 | - | elseif stanceToggle ~= "Melee" then |
| 276 | + | |
| 277 | - | wait() |
| 277 | + | |
| 278 | out.Name = "Out" | |
| 279 | out.Size = Vector3.new(1, 1, 1) | |
| 280 | out.Transparency = 0.35 | |
| 281 | - | ---------------------------------------------------- |
| 281 | + | |
| 282 | - | function lerp(a, b, t) -- Linear interpolation |
| 282 | + | |
| 283 | - | return a + (b - a)*t |
| 283 | + | |
| 284 | outm.MeshId = "http://www.roblox.com/asset/?id=1033714" | |
| 285 | outm.Scale = Vector3.new(2, 2, 2) | |
| 286 | - | function slerp(a, b, t) --Spherical interpolation |
| 286 | + | |
| 287 | - | dot = a:Dot(b) |
| 287 | + | |
| 288 | - | if dot > 0.99999 or dot < -0.99999 then |
| 288 | + | |
| 289 | - | return t <= 0.5 and a or b |
| 289 | + | |
| 290 | bnd.FormFactor = 3 | |
| 291 | - | r = math.acos(dot) |
| 291 | + | |
| 292 | - | return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r) |
| 292 | + | |
| 293 | bnd.Transparency = 0.35 | |
| 294 | bnd.TopSurface = 0 | |
| 295 | bnd.BottomSurface = 0 | |
| 296 | - | function matrixInterpolate(a, b, t) |
| 296 | + | |
| 297 | - | local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components() |
| 297 | + | |
| 298 | - | local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components() |
| 298 | + | |
| 299 | - | local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position |
| 299 | + | |
| 300 | - | local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector right |
| 300 | + | |
| 301 | - | local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector up |
| 301 | + | |
| 302 | - | local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector back |
| 302 | + | |
| 303 | - | local t = v1:Dot(v2) |
| 303 | + | |
| 304 | - | if not (t < 0 or t == 0 or t > 0) then -- Failsafe |
| 304 | + | |
| 305 | - | return CFrame.new() |
| 305 | + | |
| 306 | rngm.Scale = Vector3.new(10 + i*2, 10 + i*2, 1) | |
| 307 | - | return CFrame.new( |
| 307 | + | |
| 308 | - | v0.x, v0.y, v0.z, |
| 308 | + | |
| 309 | - | v1.x, v1.y, v1.z, |
| 309 | + | |
| 310 | - | v2.x, v2.y, v2.z, |
| 310 | + | |
| 311 | - | v3.x, v3.y, v3.z) |
| 311 | + | |
| 312 | end)() | |
| 313 | - | ---------------------------------------------------- |
| 313 | + | |
| 314 | - | function genWeld(a,b) |
| 314 | + | |
| 315 | - | local w = Instance.new("Weld",a)
|
| 315 | + | |
| 316 | - | w.Part0 = a |
| 316 | + | |
| 317 | - | w.Part1 = b |
| 317 | + | |
| 318 | - | return w |
| 318 | + | |
| 319 | if HasntTouched(hit.Name) == true and deb == false then | |
| 320 | - | function weld(a, b) |
| 320 | + | |
| 321 | - | local weld = Instance.new("Weld")
|
| 321 | + | |
| 322 | - | weld.Name = "W" |
| 322 | + | |
| 323 | - | weld.Part0 = a |
| 323 | + | |
| 324 | - | weld.Part1 = b |
| 324 | + | |
| 325 | - | weld.C0 = a.CFrame:inverse() * b.CFrame |
| 325 | + | |
| 326 | - | weld.Parent = a |
| 326 | + | |
| 327 | - | return weld; |
| 327 | + | |
| 328 | table.insert(Touche, hit.Name) | |
| 329 | - | ---------------------------------------------------- |
| 329 | + | |
| 330 | end | |
| 331 | elseif hit:IsA("Hat") and hit.Parent:findFirstChild("Humanoid") then
| |
| 332 | print("Yes")
| |
| 333 | if HasntTouched(hit.Parent.Name) == true and deb == false then | |
| 334 | deb = true | |
| 335 | coroutine.wrap(function() | |
| 336 | hit.Parent:FindFirstChild("Humanoid").PlatformStand = true
| |
| 337 | hit.Parent:FindFirstChild("Torso").Velocity = char.Head.CFrame.lookVector * 140
| |
| 338 | - | ---------------------------------------------------- |
| 338 | + | |
| 339 | hit.Parent:FindFirstChild("Humanoid").PlatformStand = false
| |
| 340 | - | local wld = Instance.new("Weld", wp1)
|
| 340 | + | |
| 341 | table.insert(Touche, hit.Parent.Name) | |
| 342 | deb = false | |
| 343 | for i, v in pairs(Touche) do | |
| 344 | print(v) | |
| 345 | - | ---------------------------------------------------- |
| 345 | + | |
| 346 | end | |
| 347 | end | |
| 348 | end) | |
| 349 | end | |
| 350 | for i = 0, 200, 7 do | |
| 351 | bem.Size = Vector3.new(i, 1, 1) | |
| 352 | bem.CFrame = rarm.CFrame * CFrame.new(0, -2.5 -(i/2), 0) * CFrame.Angles(0, 0, math.rad(90)) | |
| 353 | bnd.CFrame = bem.CFrame * CFrame.new(-i/2, 0, 0) | |
| 354 | wait() | |
| 355 | end | |
| 356 | wait() | |
| 357 | - | ---------------------------------------------------- |
| 357 | + | |
| 358 | - | --local SIDz = {"167985102, 163752916"}--181449739, 167161785, 148274436, 167985102, 163752916
|
| 358 | + | |
| 359 | - | z = Instance.new("Sound",char) --music
|
| 359 | + | |
| 360 | - | z.SoundId = "rbxassetid://0"--..SIDz[math.random(1,#SIDz)] |
| 360 | + | |
| 361 | char.Humanoid.WalkSpeed = 10 | |
| 362 | Debounces.Ready = false | |
| 363 | - | z.Pitch = .72 |
| 363 | + | |
| 364 | table.remove(Touche, i) | |
| 365 | end | |
| 366 | - | hum.WalkSpeed = 9 |
| 366 | + | |
| 367 | - | lite = Instance.new("PointLight",torso)
|
| 367 | + | |
| 368 | - | lite.Brightness = 16 |
| 368 | + | |
| 369 | - | lite.Range = 12 |
| 369 | + | if CanAttack == false then |
| 370 | - | lite.Color = Color3.new(255/255,0,0) |
| 370 | + | CanAttack = true |
| 371 | - | ---------------------------------------------------- |
| 371 | + | |
| 372 | end | |
| 373 | - | ---------------------------------------------------- |
| 373 | + | |
| 374 | - | local m = Instance.new("Model")
|
| 374 | + | |
| 375 | - | m.Name = "Genkadda" |
| 375 | + | -------------------------------Nightshift Blast |
| 376 | - | p1 = Instance.new("Part", m)
|
| 376 | + | |
| 377 | - | p1.Material = "Metal" |
| 377 | + | |
| 378 | - | p1.BrickColor = BrickColor.new("Really black")
|
| 378 | + | |
| 379 | - | p1.Name = "BladePart" |
| 379 | + | |
| 380 | - | p1.FormFactor = Enum.FormFactor.Symmetric |
| 380 | + | |
| 381 | - | p1.Size = Vector3.new(1, 1, 1) |
| 381 | + | |
| 382 | - | p1.CFrame = CFrame.new(103.003883, 10.755723, -7.61905956, 5.61699271e-005, -7.1823597e-006, 0.999998987, -0.984785616, -0.173714966, 3.55839729e-005, 0.173720747, -0.984761655, 5.9530139e-006) |
| 382 | + | |
| 383 | - | p1.CanCollide = false |
| 383 | + | |
| 384 | - | p1.Locked = true |
| 384 | + | |
| 385 | - | p1.Elasticity = 0 |
| 385 | + | |
| 386 | - | p1.BottomSurface = Enum.SurfaceType.Smooth |
| 386 | + | |
| 387 | - | p1.TopSurface = Enum.SurfaceType.Smooth |
| 387 | + | |
| 388 | - | b1 = Instance.new("BlockMesh", p1)
|
| 388 | + | |
| 389 | - | b1.Name = "Mesh" |
| 389 | + | |
| 390 | - | b1.Scale = Vector3.new(0.299999923, 1, 0.120000005) |
| 390 | + | |
| 391 | - | p2 = Instance.new("Part", m)
|
| 391 | + | |
| 392 | - | p2.Material = "Metal" |
| 392 | + | |
| 393 | - | p2.BrickColor = BrickColor.new("Really black")
|
| 393 | + | |
| 394 | - | p2.FormFactor = Enum.FormFactor.Symmetric |
| 394 | + | |
| 395 | - | p2.Size = Vector3.new(1, 1, 1) |
| 395 | + | |
| 396 | - | p2.CFrame = CFrame.new(103.00399, 10.7255898, -6.52608919, 0.00135809346, 0.00169118668, -0.999996662, 0.965820193, 0.259168088, 0.0017684648, 0.259154975, -0.965800881, -0.00130418094) |
| 396 | + | |
| 397 | - | p2.CanCollide = false |
| 397 | + | |
| 398 | - | p2.Locked = true |
| 398 | + | |
| 399 | - | p2.Elasticity = 0 |
| 399 | + | |
| 400 | - | p2.BottomSurface = Enum.SurfaceType.Smooth |
| 400 | + | |
| 401 | - | p2.TopSurface = Enum.SurfaceType.Smooth |
| 401 | + | |
| 402 | - | b2 = Instance.new("BlockMesh", p2)
|
| 402 | + | |
| 403 | - | b2.Name = "Mesh" |
| 403 | + | |
| 404 | - | b2.Scale = Vector3.new(0.099999927, 0.699999928, 0.099999927) |
| 404 | + | |
| 405 | - | p3 = Instance.new("Part", m)
|
| 405 | + | |
| 406 | - | p3.Material = "Metal" |
| 406 | + | |
| 407 | - | p3.BrickColor = BrickColor.new("Really black")
|
| 407 | + | |
| 408 | - | p3.FormFactor = Enum.FormFactor.Symmetric |
| 408 | + | |
| 409 | - | p3.Size = Vector3.new(1, 2, 1) |
| 409 | + | |
| 410 | - | p3.CFrame = CFrame.new(103.004028, 11.1456547, -6.819067, 1.43263023e-005, -2.88564479e-006, 0.999998987, -0.882936299, -0.469471544, -7.18829688e-006, 0.469469696, -0.882911503, 1.35099981e-005) |
| 410 | + | |
| 411 | - | p3.CanCollide = false |
| 411 | + | |
| 412 | - | p3.Locked = true |
| 412 | + | |
| 413 | - | p3.Elasticity = 0 |
| 413 | + | |
| 414 | - | p3.BottomSurface = Enum.SurfaceType.Smooth |
| 414 | + | |
| 415 | - | p3.TopSurface = Enum.SurfaceType.Smooth |
| 415 | + | |
| 416 | - | b3 = Instance.new("BlockMesh", p3)
|
| 416 | + | |
| 417 | - | b3.Name = "Mesh" |
| 417 | + | |
| 418 | - | b3.Scale = Vector3.new(0.099999927, 0.699999928, 0.099999927) |
| 418 | + | |
| 419 | - | p4 = Instance.new("Part", m)
|
| 419 | + | |
| 420 | - | p4.Material = "Metal" |
| 420 | + | |
| 421 | - | p4.BrickColor = BrickColor.new("Really black")
|
| 421 | + | |
| 422 | - | p4.Name = "BladePart" |
| 422 | + | |
| 423 | - | p4.FormFactor = Enum.FormFactor.Symmetric |
| 423 | + | |
| 424 | - | p4.Size = Vector3.new(1, 1, 1) |
| 424 | + | |
| 425 | - | p4.CFrame = CFrame.new(103.003372, 10.965373, -6.66876507, 1.57370523e-005, -6.04354591e-006, 0.999996603, -0.965898931, -0.25886938, -7.14969246e-006, 0.258875549, -0.965874314, 1.58735529e-005) |
| 425 | + | |
| 426 | - | p4.CanCollide = false |
| 426 | + | |
| 427 | - | p4.Locked = true |
| 427 | + | |
| 428 | - | p4.Elasticity = 0 |
| 428 | + | |
| 429 | - | p4.BottomSurface = Enum.SurfaceType.Smooth |
| 429 | + | |
| 430 | - | p4.TopSurface = Enum.SurfaceType.Smooth |
| 430 | + | |
| 431 | - | b4 = Instance.new("BlockMesh", p4)
|
| 431 | + | |
| 432 | - | b4.Name = "Mesh" |
| 432 | + | |
| 433 | - | b4.Scale = Vector3.new(0.299999923, 1, 0.120000005) |
| 433 | + | |
| 434 | - | p5 = Instance.new("Part", m)
|
| 434 | + | |
| 435 | - | p5.Material = "Metal" |
| 435 | + | |
| 436 | - | p5.BrickColor = BrickColor.new("Really black")
|
| 436 | + | |
| 437 | - | p5.Name = "Hilt" |
| 437 | + | |
| 438 | - | p5.FormFactor = Enum.FormFactor.Custom |
| 438 | + | |
| 439 | - | p5.Size = Vector3.new(1, 0.400000006, 1.60000014) |
| 439 | + | |
| 440 | - | p5.CFrame = CFrame.new(103.003395, 11.0653381, -6.1687479, -0.99999404, 5.54991711e-005, -0.000617815298, -0.000594727404, -0.000124425016, 0.999983907, 2.66434654e-005, 0.999962509, 0.000109782166) |
| 440 | + | |
| 441 | - | p5.CanCollide = false |
| 441 | + | |
| 442 | - | p5.Locked = true |
| 442 | + | |
| 443 | - | p5.BottomSurface = Enum.SurfaceType.Smooth |
| 443 | + | |
| 444 | - | p5.TopSurface = Enum.SurfaceType.Smooth |
| 444 | + | |
| 445 | - | b5 = Instance.new("BlockMesh", p5)
|
| 445 | + | |
| 446 | - | b5.Name = "Mesh" |
| 446 | + | |
| 447 | - | b5.Scale = Vector3.new(0.299999923, 0.399999917, 0.799999952) |
| 447 | + | |
| 448 | - | p6 = Instance.new("Part", m)
|
| 448 | + | |
| 449 | - | p6.Material = "Metal" |
| 449 | + | |
| 450 | - | p6.BrickColor = BrickColor.new("Really black")
|
| 450 | + | |
| 451 | - | p6.Name = "Handle" |
| 451 | + | |
| 452 | - | p6.FormFactor = Enum.FormFactor.Custom |
| 452 | + | |
| 453 | - | p6.Size = Vector3.new(1.29999995, 1, 1) |
| 453 | + | |
| 454 | - | p6.CFrame = CFrame.new(103.000061, 11.0688219, -5.5480547, -1.23393656e-005, -1.36360759e-005, 0.999994218, 5.37017331e-006, 0.999984086, -9.45257489e-006, -0.999962509, -9.28580994e-006, 1.64470257e-005) |
| 454 | + | |
| 455 | - | p6.CanCollide = false |
| 455 | + | |
| 456 | - | p6.Locked = true |
| 456 | + | |
| 457 | - | p6.BottomSurface = Enum.SurfaceType.Smooth |
| 457 | + | |
| 458 | - | p6.TopSurface = Enum.SurfaceType.Smooth |
| 458 | + | |
| 459 | - | b6 = Instance.new("SpecialMesh", p6)
|
| 459 | + | |
| 460 | - | b6.MeshType = Enum.MeshType.Cylinder |
| 460 | + | |
| 461 | - | b6.Name = "Mesh" |
| 461 | + | |
| 462 | - | b6.Scale = Vector3.new(1, 0.200000003, 0.200000003) |
| 462 | + | |
| 463 | - | p7 = Instance.new("Part", m)
|
| 463 | + | |
| 464 | - | p7.Material = "Metal" |
| 464 | + | |
| 465 | - | p7.BrickColor = BrickColor.new("Really black")
|
| 465 | + | |
| 466 | - | p7.FormFactor = Enum.FormFactor.Symmetric |
| 466 | + | |
| 467 | - | p7.Size = Vector3.new(1, 1, 1) |
| 467 | + | |
| 468 | - | p7.CFrame = CFrame.new(103.000099, 11.0688391, -4.79808855, -0.000332629686, 0.00429873355, -0.99998492, -4.5920292e-006, 0.999974728, 0.00432178052, 0.999962449, -8.49941443e-006, -0.000361445156) |
| 468 | + | |
| 469 | - | p7.CanCollide = false |
| 469 | + | |
| 470 | - | p7.Locked = true |
| 470 | + | |
| 471 | - | b7 = Instance.new("SpecialMesh", p7)
|
| 471 | + | |
| 472 | - | b7.MeshId = "http://www.roblox.com/Asset/?id=9756362" |
| 472 | + | |
| 473 | - | b7.TextureId = "" |
| 473 | + | |
| 474 | - | b7.MeshType = Enum.MeshType.FileMesh |
| 474 | + | |
| 475 | - | b7.Name = "Mesh" |
| 475 | + | |
| 476 | - | b7.Scale = Vector3.new(0.400000006, 0.400000006, 0.400000006) |
| 476 | + | |
| 477 | - | p8 = Instance.new("Part", m)
|
| 477 | + | |
| 478 | - | p8.Material = "Metal" |
| 478 | + | |
| 479 | - | p8.BrickColor = BrickColor.new("Really black")
|
| 479 | + | |
| 480 | - | p8.Name = "BladePart" |
| 480 | + | |
| 481 | - | p8.FormFactor = Enum.FormFactor.Symmetric |
| 481 | + | |
| 482 | - | p8.Size = Vector3.new(1, 1, 1) |
| 482 | + | |
| 483 | - | p8.CFrame = CFrame.new(103.003326, 10.6254845, -8.59870911, -2.92104669e-005, -1.10579058e-005, 0.999994218, -0.996175766, -0.0871899351, -5.3152442e-005, 0.0872026458, -0.996152997, 2.03179661e-005) |
| 483 | + | |
| 484 | - | p8.CanCollide = false |
| 484 | + | |
| 485 | - | p8.Locked = true |
| 485 | + | |
| 486 | - | p8.Elasticity = 0 |
| 486 | + | |
| 487 | - | p8.BottomSurface = Enum.SurfaceType.Smooth |
| 487 | + | |
| 488 | - | p8.TopSurface = Enum.SurfaceType.Smooth |
| 488 | + | |
| 489 | - | b8 = Instance.new("BlockMesh", p8)
|
| 489 | + | |
| 490 | - | b8.Name = "Mesh" |
| 490 | + | |
| 491 | - | b8.Scale = Vector3.new(0.299999923, 1, 0.120000005) |
| 491 | + | |
| 492 | - | p9 = Instance.new("Part", m)
|
| 492 | + | |
| 493 | - | p9.Material = "Metal" |
| 493 | + | |
| 494 | - | p9.BrickColor = BrickColor.new("Really black")
|
| 494 | + | |
| 495 | - | p9.Name = "BladePart" |
| 495 | + | |
| 496 | - | p9.FormFactor = Enum.FormFactor.Symmetric |
| 496 | + | -------------------------------Slash |
| 497 | - | p9.Size = Vector3.new(1, 1, 1) |
| 497 | + | |
| 498 | - | p9.CFrame = CFrame.new(103.003311, 10.625597, -9.51878738, -2.59891603e-005, -1.34348729e-005, 0.999994218, -0.996185422, 0.087079078, -4.78096408e-005, -0.0870626047, -0.996165276, 1.31400229e-005) |
| 498 | + | |
| 499 | - | p9.CanCollide = false |
| 499 | + | |
| 500 | - | p9.Locked = true |
| 500 | + | |
| 501 | - | p9.Elasticity = 0 |
| 501 | + | |
| 502 | - | p9.BottomSurface = Enum.SurfaceType.Smooth |
| 502 | + | |
| 503 | - | p9.TopSurface = Enum.SurfaceType.Smooth |
| 503 | + | |
| 504 | - | b9 = Instance.new("BlockMesh", p9)
|
| 504 | + | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(75), math.rad(-36), math.rad(30)), 0.3) |
| 505 | - | b9.Name = "Mesh" |
| 505 | + | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(-20), 0, math.rad(32)), 0.6) |
| 506 | - | b9.Scale = Vector3.new(0.299999923, 1, 0.120000005) |
| 506 | + | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, 0, -1) * CFrame.Angles(math.rad(0), 0, math.rad(-10)), 0.6) |
| 507 | - | p10 = Instance.new("Part", m)
|
| 507 | + | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(0), 0, math.rad(10)), 0.6) |
| 508 | - | p10.Material = "Metal" |
| 508 | + | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-10), math.rad(18), 0), 0.6) |
| 509 | - | p10.BrickColor = BrickColor.new("Really black")
|
| 509 | + | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-60), math.rad(-10)), 0.6) |
| 510 | - | p10.Name = "BladeTip" |
| 510 | + | if Debounces.on == false then |
| 511 | - | p10.FormFactor = Enum.FormFactor.Symmetric |
| 511 | + | break |
| 512 | - | p10.Size = Vector3.new(1, 1, 2) |
| 512 | + | |
| 513 | - | p10.CFrame = CFrame.new(103.00309, 11.1081867, -11.6109829, -0.999994099, -0.000455793255, 4.643387e-005, 0.00045133481, -0.965918779, -0.25878337, 0.000134008093, -0.258763671, 0.965901971) |
| 513 | + | |
| 514 | - | p10.CanCollide = false |
| 514 | + | |
| 515 | - | p10.Locked = true |
| 515 | + | |
| 516 | - | p10.Elasticity = 0 |
| 516 | + | z = Instance.new("Sound")
|
| 517 | - | p10.BottomSurface = Enum.SurfaceType.Smooth |
| 517 | + | z.SoundId = "http://www.roblox.com/asset/?id=160069154" |
| 518 | - | p10.TopSurface = Enum.SurfaceType.Smooth |
| 518 | + | z.Parent = char.Head |
| 519 | - | b10 = Instance.new("SpecialMesh", p10)
|
| 519 | + | z.Looped = false |
| 520 | - | b10.MeshType = Enum.MeshType.Wedge |
| 520 | + | z.Pitch = 1 |
| 521 | - | b10.Name = "Mesh" |
| 521 | + | z.Volume = 1 |
| 522 | - | b10.Scale = Vector3.new(0.119999997, 0.299999923, 0.699999928) |
| 522 | + | wait(.01) |
| 523 | - | p11 = Instance.new("Part", m)
|
| 523 | + | z:Play() |
| 524 | - | p11.Material = "Metal" |
| 524 | + | Debounces.Slashing = true |
| 525 | - | p11.BrickColor = BrickColor.new("Really black")
|
| 525 | + | |
| 526 | - | p11.Name = "BladePart" |
| 526 | + | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(-21), math.rad(50), math.rad(-40)), 0.46) |
| 527 | - | p11.FormFactor = Enum.FormFactor.Symmetric |
| 527 | + | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(18)), 0.6) |
| 528 | - | p11.Size = Vector3.new(1, 1, 1) |
| 528 | + | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(-14), 0, math.rad(-10)), 0.6) |
| 529 | - | p11.CFrame = CFrame.new(103.003296, 10.7956495, -10.4587727, 2.83485351e-005, -1.54050977e-005, 0.999994218, -0.96592474, 0.258761972, 8.27970416e-006, -0.258742362, -0.965907693, 2.1241216e-005) |
| 529 | + | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(6), 0, math.rad(10)), 0.6) |
| 530 | - | p11.CanCollide = false |
| 530 | + | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-14), math.rad(-36), 0), 0.6) |
| 531 | - | p11.Locked = true |
| 531 | + | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(36), 0), 0.6) |
| 532 | - | p11.Elasticity = 0 |
| 532 | + | |
| 533 | - | p11.BottomSurface = Enum.SurfaceType.Smooth |
| 533 | + | if Debounces.on == false then |
| 534 | - | p11.TopSurface = Enum.SurfaceType.Smooth |
| 534 | + | break |
| 535 | - | b11 = Instance.new("BlockMesh", p11)
|
| 535 | + | |
| 536 | - | b11.Name = "Mesh" |
| 536 | + | |
| 537 | - | b11.Scale = Vector3.new(0.299999923, 1, 0.120000005) |
| 537 | + | |
| 538 | - | p12 = Instance.new("Part", m)
|
| 538 | + | Debounces.Slashing = false |
| 539 | - | p12.Material = "Metal" |
| 539 | + | |
| 540 | - | p12.BrickColor = BrickColor.new("Really black")
|
| 540 | + | |
| 541 | - | p12.Name = "BladeTip2" |
| 541 | + | if CanAttack == false then |
| 542 | - | p12.FormFactor = Enum.FormFactor.Custom |
| 542 | + | CanAttack = true |
| 543 | - | p12.Size = Vector3.new(1, 1, 2.4000001) |
| 543 | + | end -- dis betr |
| 544 | - | p12.CFrame = CFrame.new(102.999977, 10.6319504, -10.4398403, -0.999994218, -5.5769262e-005, 6.55075928e-005, 4.61044419e-006, 0.882887006, 0.469551951, -0.000112806956, 0.469529003, -0.882874727) |
| 544 | + | |
| 545 | - | p12.CanCollide = false |
| 545 | + | |
| 546 | - | p12.Locked = true |
| 546 | + | |
| 547 | - | p12.Elasticity = 0 |
| 547 | + | cor.Touched:connect(function(ht) |
| 548 | - | p12.BottomSurface = Enum.SurfaceType.Smooth |
| 548 | + | |
| 549 | - | p12.TopSurface = Enum.SurfaceType.Smooth |
| 549 | + | |
| 550 | - | b12 = Instance.new("SpecialMesh", p12)
|
| 550 | + | |
| 551 | - | b12.MeshType = Enum.MeshType.Wedge |
| 551 | + | |
| 552 | - | b12.Name = "Mesh" |
| 552 | + | if Debounces.Slashing == true and Debounces.Slashed == false then |
| 553 | - | b12.Scale = Vector3.new(0.119999997, 0.239999995, 0.699999928) |
| 553 | + | Debounces.Slashed = true |
| 554 | - | p13 = Instance.new("Part", m)
|
| 554 | + | if (lastanimpose == "Running" and animpose == "Idle") or animpose == "Running" then |
| 555 | - | p13.Material = "Metal" |
| 555 | + | -- extra damage, 100 for testing. |
| 556 | - | p13.BrickColor = BrickColor.new("Medium stone grey")
|
| 556 | + | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(37, 56))
|
| 557 | - | p13.Transparency = 1 |
| 557 | + | else |
| 558 | - | p13.Name = "HitBox" |
| 558 | + | print(lastanimpose, animpose) |
| 559 | - | p13.FormFactor = Enum.FormFactor.Custom |
| 559 | + | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(18,37))
|
| 560 | - | p13.Size = Vector3.new(6.0999999, 0.400000006, 1.5999999) |
| 560 | + | end |
| 561 | - | p13.CFrame = CFrame.new(103.009995, 10.9988394, -9.2679081, 1.22519814e-005, -0.999994218, 1.36361559e-005, -5.27501106e-006, 9.45320426e-006, -0.999984264, 0.999962687, -1.65344682e-005, 9.20891762e-006) |
| 561 | + | wait(1) |
| 562 | - | p13.CanCollide = false |
| 562 | + | Debounces.Slashed = false |
| 563 | - | p13.Locked = true |
| 563 | + | |
| 564 | - | p13.BottomSurface = Enum.SurfaceType.Smooth |
| 564 | + | |
| 565 | - | p13.TopSurface = Enum.SurfaceType.Smooth |
| 565 | + | |
| 566 | - | w1 = Instance.new("Weld", p1)
|
| 566 | + | |
| 567 | - | w1.Name = "Part_Weld" |
| 567 | + | |
| 568 | - | w1.Part0 = p1 |
| 568 | + | |
| 569 | - | w1.C0 = CFrame.new(11.9124546, -5.63626003, -103.00383, 4.33940659e-005, -0.984795153, 0.173719674, 1.85460614e-009, -0.173719659, -0.984795094, 1, 4.27345876e-005, -7.53657105e-006) |
| 569 | + | if Debounces.Slashing == true and Debounces.Slashed == false then |
| 570 | - | w1.Part1 = p2 |
| 570 | + | Debounces.Slashed = true |
| 571 | - | w1.C1 = CFrame.new(-8.80891991, -9.26009178, 102.975845, 0.00136663229, 0.965830803, 0.259170175, 0.00170310249, 0.25916782, -0.965830863, -0.999997616, 0.00176132878, -0.00129072159) |
| 571 | + | if (lastanimpose == "Running" and animpose == "Idle") or animpose == "Running" then |
| 572 | - | w2 = Instance.new("Weld", p2)
|
| 572 | + | -- extra damage, 100 for testing. |
| 573 | - | w2.Name = "Part_Weld" |
| 573 | + | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(37, 56))
|
| 574 | - | w2.Part0 = p2 |
| 574 | + | else |
| 575 | - | w2.C0 = CFrame.new(-8.80891991, -9.26009178, 102.975845, 0.00136663229, 0.965830803, 0.259170175, 0.00170310249, 0.25916782, -0.965830863, -0.999997616, 0.00176132878, -0.00129072159) |
| 575 | + | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(18,37))
|
| 576 | - | w2.Part1 = p3 |
| 576 | + | end |
| 577 | - | w2.C1 = CFrame.new(13.0439634, -0.78926897, -103.003448, -4.37113883e-008, -0.88294369, 0.469478935, 0, -0.469478935, -0.88294369, 1, -3.85946954e-008, 2.05215755e-008) |
| 577 | + | wait(1) |
| 578 | - | w3 = Instance.new("Weld", p3)
|
| 578 | + | Debounces.Slashed = false |
| 579 | - | w3.Name = "BladePart_Weld" |
| 579 | + | |
| 580 | - | w3.Part0 = p3 |
| 580 | + | |
| 581 | - | w3.C0 = CFrame.new(13.0439634, -0.78926897, -103.003448, -4.37113883e-008, -0.88294369, 0.469478935, 0, -0.469478935, -0.88294369, 1, -3.85946954e-008, 2.05215755e-008) |
| 581 | + | |
| 582 | - | w3.Part1 = p4 |
| 582 | + | |
| 583 | - | w3.C1 = CFrame.new(12.3193283, -3.60437131, -103.003067, 2.38418579e-006, -0.965907753, 0.258877277, 0, -0.258874893, -0.965907753, 0.999997616, 0, 2.38418579e-006) |
| 583 | + | |
| 584 | - | w4 = Instance.new("Weld", p4)
|
| 584 | + | -------------------------------Stab |
| 585 | - | w4.Name = "Hilt_Weld" |
| 585 | + | |
| 586 | - | w4.Part0 = p4 |
| 586 | + | |
| 587 | - | w4.C0 = CFrame.new(12.3193283, -3.60437131, -103.003067, 2.38418579e-006, -0.965907753, 0.258877277, 0, -0.258874893, -0.965907753, 0.999997616, 0, 2.38418579e-006) |
| 587 | + | |
| 588 | - | w4.Part1 = p5 |
| 588 | + | |
| 589 | - | w4.C1 = CFrame.new(103.010277, 6.16758585, -11.003541, -0.999999821, -0.00060418935, 4.31301851e-005, 4.32021443e-005, -0.000119086159, 1, -0.000604184228, 0.999999821, 0.000119112243) |
| 589 | + | Debounces.NoIdl = true |
| 590 | - | w5 = Instance.new("Weld", p5)
|
| 590 | + | Debounces.on = true |
| 591 | - | w5.Name = "Handle_Weld" |
| 591 | + | |
| 592 | - | w5.Part0 = p5 |
| 592 | + | |
| 593 | - | w5.C0 = CFrame.new(103.010277, 6.16758585, -11.003541, -0.999999821, -0.00060418935, 4.31301851e-005, 4.32021443e-005, -0.000119086159, 1, -0.000604184228, 0.999999821, 0.000119112243) |
| 593 | + | |
| 594 | - | w5.Part1 = p6 |
| 594 | + | |
| 595 | - | w5.C1 = CFrame.new(-5.54999733, -11.0699978, -103, -4.37113883e-008, 2.98366913e-008, -1, 0, 1, 2.98366913e-008, 1, 1.3042032e-015, -4.37113883e-008) |
| 595 | + | z.Pitch = .9 |
| 596 | - | w6 = Instance.new("Weld", p6)
|
| 596 | + | |
| 597 | - | w6.Name = "Part_Weld" |
| 597 | + | |
| 598 | - | w6.Part0 = p6 |
| 598 | + | |
| 599 | - | w6.C0 = CFrame.new(-5.54999733, -11.0699978, -103, -4.37113883e-008, 2.98366913e-008, -1, 0, 1, 2.98366913e-008, 1, 1.3042032e-015, -4.37113883e-008) |
| 599 | + | |
| 600 | - | w6.Part1 = p7 |
| 600 | + | |
| 601 | - | w6.C1 = CFrame.new(4.83552647, -11.5140886, 102.949669, -0.000344927335, 7.4505806e-007, 0.99999994, 0.00431239465, 0.999990702, 7.4505806e-007, -0.999990642, 0.00431239465, -0.000344927335) |
| 601 | + | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.2, -2.75) * CFrame.Angles(math.rad(90), math.rad(90), math.rad(-10)), 0.6) |
| 602 | - | w7 = Instance.new("Weld", p7)
|
| 602 | + | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(60), math.rad(50), math.rad(-40)), 0.6) |
| 603 | - | w7.Name = "BladePart_Weld" |
| 603 | + | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(-10), math.rad(34), math.rad(-20)), 0.6) |
| 604 | - | w7.Part0 = p7 |
| 604 | + | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(0), 0, math.rad(-14)), 0.6) |
| 605 | - | w7.C0 = CFrame.new(4.83552647, -11.5140886, 102.949669, -0.000344927335, 7.4505806e-007, 0.99999994, 0.00431239465, 0.999990702, 7.4505806e-007, -0.999990642, 0.00431239465, -0.000344927335) |
| 605 | + | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(0), 0, math.rad(14)), 0.6) |
| 606 | - | w7.Part1 = p8 |
| 606 | + | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(0), math.rad(48), 0), 0.6) |
| 607 | - | w7.C1 = CFrame.new(11.3406382, -7.6414094, -103.0028, -4.38670977e-005, -0.996191144, 0.0871966407, 1.91451011e-009, -0.0871966407, -0.996191144, 1, -4.36998489e-005, 3.82696771e-006) |
| 607 | + | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-70), 0), 0.7) |
| 608 | - | w8 = Instance.new("Weld", p8)
|
| 608 | + | |
| 609 | - | w8.Name = "BladePart_Weld" |
| 609 | + | |
| 610 | - | w8.Part0 = p8 |
| 610 | + | |
| 611 | - | w8.C0 = CFrame.new(11.3406382, -7.6414094, -103.0028, -4.38670977e-005, -0.996191144, 0.0871966407, 1.91451011e-009, -0.0871966407, -0.996191144, 1, -4.36998489e-005, 3.82696771e-006) |
| 611 | + | |
| 612 | - | w8.Part1 = p9 |
| 612 | + | |
| 613 | - | w8.C1 = CFrame.new(9.76131344, -10.4100504, -103.002922, -3.85031162e-005, -0.996201694, -0.0870751292, 1.47589729e-009, 0.0870751366, -0.996201754, 1, -3.83570004e-005, -3.35119148e-006) |
| 613 | + | |
| 614 | - | w9 = Instance.new("Weld", p9)
|
| 614 | + | Debounces.Slashing = false |
| 615 | - | w9.Name = "BladeTip_Weld" |
| 615 | + | |
| 616 | - | w9.Part0 = p9 |
| 616 | + | if CanAttack == false then |
| 617 | - | w9.C0 = CFrame.new(9.76131344, -10.4100504, -103.002922, -3.85031162e-005, -0.996201694, -0.0870751292, 1.47589729e-009, 0.0870751366, -0.996201754, 1, -3.83570004e-005, -3.35119148e-006) |
| 617 | + | CanAttack = true |
| 618 | - | w9.Part1 = p10 |
| 618 | + | |
| 619 | - | w9.C1 = CFrame.new(102.999939, 7.7735939, 14.0892649, -0.999999881, 0.000441889424, 0.000150508567, -0.000465785735, -0.965935588, -0.258782327, 3.10284122e-005, -0.258782327, 0.965935647) |
| 619 | + | |
| 620 | - | w10 = Instance.new("Weld", p10)
|
| 620 | + | |
| 621 | - | w10.Name = "BladePart_Weld" |
| 621 | + | -------------------------------Getsuga Tenshou |
| 622 | - | w10.Part0 = p10 |
| 622 | + | |
| 623 | - | w10.C0 = CFrame.new(102.999939, 7.7735939, 14.0892649, -0.999999881, 0.000441889424, 0.000150508567, -0.000465785735, -0.965935588, -0.258782327, 3.10284122e-005, -0.258782327, 0.965935647) |
| 623 | + | |
| 624 | - | w10.Part1 = p11 |
| 624 | + | |
| 625 | - | w10.C1 = CFrame.new(7.72030354, -12.8984127, -103.003448, 1.83585671e-005, -0.965941429, -0.258760989, 3.25545535e-010, 0.258760959, -0.96594137, 1, 1.77332167e-005, 4.7507956e-006) |
| 625 | + | |
| 626 | - | w11 = Instance.new("Weld", p11)
|
| 626 | + | |
| 627 | - | w11.Name = "BladeTip2_Weld" |
| 627 | + | |
| 628 | - | w11.Part0 = p11 |
| 628 | + | |
| 629 | - | w11.C0 = CFrame.new(7.72030354, -12.8984127, -103.003448, 1.83585671e-005, -0.965941429, -0.258760989, 3.25545535e-010, 0.258760959, -0.96594137, 1, 1.77332167e-005, 4.7507956e-006) |
| 629 | + | |
| 630 | - | w11.Part1 = p12 |
| 630 | + | |
| 631 | - | w11.C1 = CFrame.new(102.999031, -4.47981405, -14.2206001, -1, -4.84334305e-006, -9.63198472e-005, -4.95036402e-005, 0.882903397, 0.469554722, 8.27668991e-005, 0.469554722, -0.882903397) |
| 631 | + | |
| 632 | - | w12 = Instance.new("Weld", p12)
|
| 632 | + | |
| 633 | - | w12.Name = "HitBox_Weld" |
| 633 | + | |
| 634 | - | w12.Part0 = p12 |
| 634 | + | |
| 635 | - | w12.C0 = CFrame.new(102.999031, -4.47981405, -14.2206001, -1, -4.84334305e-006, -9.63198472e-005, -4.95036402e-005, 0.882903397, 0.469554722, 8.27668991e-005, 0.469554722, -0.882903397) |
| 635 | + | |
| 636 | - | w12.Part1 = p13 |
| 636 | + | |
| 637 | - | w12.C1 = CFrame.new(9.27000427, 103.009995, 10.9999933, -4.37113883e-008, -4.37113883e-008, 1, -1, 1.91068547e-015, -4.37113883e-008, 0, -1, -4.37113883e-008) |
| 637 | + | |
| 638 | - | w13 = Instance.new("Weld", p13)
|
| 638 | + | |
| 639 | - | w13.Name = "Weld" |
| 639 | + | |
| 640 | - | w13.Part0 = p13 |
| 640 | + | |
| 641 | - | w13.C0 = CFrame.new(9.27000427, 103.009995, 10.9999933, -4.37113883e-008, -4.37113883e-008, 1, -1, 1.91068547e-015, -4.37113883e-008, 0, -1, -4.37113883e-008) |
| 641 | + | |
| 642 | - | m.Parent = char |
| 642 | + | |
| 643 | - | m:MakeJoints() |
| 643 | + | |
| 644 | - | ---------------------------------------------------- |
| 644 | + | |
| 645 | - | local cor = Instance.new("Part", char.Genkadda)
|
| 645 | + | |
| 646 | - | cor.Name = "Thingy" |
| 646 | + | |
| 647 | - | cor.Locked = true |
| 647 | + | |
| 648 | wait(.01) | |
| 649 | z:Play() | |
| 650 | - | cor.Size = Vector3.new(1, 9, 1) |
| 650 | + | |
| 651 | for i = 1, 20 do | |
| 652 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.2, -2.75) * CFrame.Angles(math.rad(90), math.rad(40), math.rad(0)), 0.6) | |
| 653 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1, .5, -.5) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(40)), 0.6) | |
| 654 | - | corw.Part0 = rarm |
| 654 | + | |
| 655 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -1.5, -.5) * CFrame.Angles(math.rad(-90), 0, math.rad(0)), 0.6) | |
| 656 | - | corw.C0 = CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(90)) |
| 656 | + | |
| 657 | - | corw.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) |
| 657 | + | |
| 658 | - | weld1 = Instance.new("Weld", char.Genkadda)
|
| 658 | + | |
| 659 | - | weld1.Part0 = cor |
| 659 | + | |
| 660 | - | weld1.Part1 = p6 |
| 660 | + | |
| 661 | - | weld1.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) |
| 661 | + | |
| 662 | - | ---------------------------------------------------- |
| 662 | + | |
| 663 | - | function Vanish() |
| 663 | + | |
| 664 | - | for i = 1, 10 do wait() |
| 664 | + | |
| 665 | - | for i,v in pairs(char.Genkadda:GetChildren()) do |
| 665 | + | |
| 666 | - | if v:IsA("Part") or v:IsA("WedgePart") then
|
| 666 | + | |
| 667 | - | if v.Name ~= "HitBox" or v.Name ~= "Thingy" then |
| 667 | + | |
| 668 | - | v.Transparency = v.Transparency + 0.1 |
| 668 | + | |
| 669 | - | end |
| 669 | + | |
| 670 | end | |
| 671 | end | |
| 672 | end | |
| 673 | end) | |
| 674 | - | ---------------------------------------------------- |
| 674 | + | |
| 675 | - | function Appear() |
| 675 | + | --------------------------------------------------Insanity |
| 676 | - | for i = 1, 10 do wait() |
| 676 | + | |
| 677 | - | for i,v in pairs(char.Genkadda:GetChildren()) do |
| 677 | + | if key == "g" then |
| 678 | - | if v:IsA("Part") or v:IsA("WedgePart") then
|
| 678 | + | if CanAttack == true then |
| 679 | - | if v.Name ~= "HitBox" or v.Name ~= "Thingy" then |
| 679 | + | |
| 680 | - | v.Transparency = v.Transparency - 0.1 |
| 680 | + | |
| 681 | - | end |
| 681 | + | z = Instance.new("Sound")
|
| 682 | z.SoundId = "http://www.roblox.com/asset/?id=154564700" | |
| 683 | z.Parent = char | |
| 684 | z.Looped = true | |
| 685 | z.Pitch = .88 | |
| 686 | - | ---------------------------------------------------- |
| 686 | + | |
| 687 | - | local player = game.Players.LocalPlayer |
| 687 | + | |
| 688 | - | local pchar = player.Character |
| 688 | + | |
| 689 | - | local mouse = player:GetMouse() |
| 689 | + | |
| 690 | - | local cam = workspace.CurrentCamera |
| 690 | + | |
| 691 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(75), 0, math.rad(30)), 0.2) | |
| 692 | - | local rad = math.rad |
| 692 | + | |
| 693 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, 0.5, -1) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.2) | |
| 694 | - | local keysDown = {}
|
| 694 | + | |
| 695 | - | local flySpeed = 0 |
| 695 | + | |
| 696 | - | local MAX_FLY_SPEED = 50 |
| 696 | + | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2, 0) * CFrame.Angles(math.rad(-10), math.rad(0), 0), 0.2) |
| 697 | if Debounces.on == false then | |
| 698 | - | local canFly = false |
| 698 | + | break |
| 699 | - | local flyToggled = false |
| 699 | + | |
| 700 | wait() | |
| 701 | - | local forward, side = 0, 0 |
| 701 | + | |
| 702 | - | local lastForward, lastSide = 0, 0 |
| 702 | + | |
| 703 | if key == "g" then | |
| 704 | - | local floatBP = Instance.new("BodyPosition")
|
| 704 | + | z:Stop() |
| 705 | - | floatBP.maxForce = Vector3.new(0, math.huge, 0) |
| 705 | + | Debounces.NoIdl = false |
| 706 | - | local flyBV = Instance.new("BodyVelocity")
|
| 706 | + | wait() |
| 707 | - | flyBV.maxForce = Vector3.new(9e9, 9e9, 9e9) |
| 707 | + | if CanAttack == true then |
| 708 | - | local turnBG = Instance.new("BodyGyro")
|
| 708 | + | CanAttack = false |
| 709 | - | turnBG.maxTorque = Vector3.new(math.huge, math.huge, math.huge) |
| 709 | + | |
| 710 | end | |
| 711 | end) | |
| 712 | - | keysDown[key] = true |
| 712 | + | |
| 713 | - | |
| 713 | + | |
| 714 | - | if key == "f" then |
| 714 | + | end) |
| 715 | - | flyToggled = not flyToggled |
| 715 | + | --------------------------------------------------Idle Changing |
| 716 | - | |
| 716 | + | |
| 717 | - | if not flyToggled then |
| 717 | + | |
| 718 | - | stanceToggle = "Normal" |
| 718 | + | stanceToggle = "Aggressive" |
| 719 | - | floatBP.Parent = nil |
| 719 | + | elseif key == "x" then |
| 720 | - | flyBV.Parent = nil |
| 720 | + | stanceToggle = "Assertive" |
| 721 | - | turnBG.Parent = nil |
| 721 | + | elseif key == "c" then |
| 722 | - | root.Velocity = Vector3.new() |
| 722 | + | stanceToggle = "Floating" |
| 723 | - | pchar.Humanoid.PlatformStand = false |
| 723 | + | |
| 724 | end) | |
| 725 | -------------------------------Sprint | |
| 726 | - | |
| 726 | + | |
| 727 | if string.byte(key) == 52 then | |
| 728 | char.Humanoid.WalkSpeed = 48 | |
| 729 | - | keysDown[key] = nil |
| 729 | + | |
| 730 | end) | |
| 731 | mouse.KeyUp:connect(function(key) | |
| 732 | - | local function updateFly() |
| 732 | + | |
| 733 | char.Humanoid.WalkSpeed = 10 | |
| 734 | - | if not flyToggled then return end |
| 734 | + | |
| 735 | - | |
| 735 | + | |
| 736 | - | lastForward = forward |
| 736 | + | |
| 737 | - | lastSide = side |
| 737 | + | |
| 738 | - | |
| 738 | + | |
| 739 | - | forward = 0 |
| 739 | + | |
| 740 | - | side = 0 |
| 740 | + | |
| 741 | - | |
| 741 | + | --------------------------------Trail |
| 742 | - | if keysDown.w then |
| 742 | + | local LastCFr = nil |
| 743 | - | forward = forward + 1 |
| 743 | + | local Trails = Instance.new("Model",char)
|
| 744 | local Trail = {}
| |
| 745 | - | if keysDown.s then |
| 745 | + | local Tip = blocks[test] |
| 746 | - | forward = forward - 1 |
| 746 | + | local number = 0 |
| 747 | local num2 = 1 | |
| 748 | - | if keysDown.a then |
| 748 | + | |
| 749 | - | side = side - 1 |
| 749 | + | local start = nil |
| 750 | for i = num2,number do | |
| 751 | - | if keysDown.d then |
| 751 | + | local v = Trail[i] |
| 752 | - | side = side + 1 |
| 752 | + | if v ~= nil then |
| 753 | local cfr = v.CFrame | |
| 754 | - | |
| 754 | + | local Amount = v.Size.Y/4 |
| 755 | - | canFly = (forward ~= 0 or side ~= 0) |
| 755 | + | v.Size = v.Size-Vector3.new(0,Amount,0) |
| 756 | - | |
| 756 | + | v.Transparency = v.Transparency+0.05 |
| 757 | - | if canFly then |
| 757 | + | v.CFrame = cfr*CFrame.new(0,Amount/2,0) |
| 758 | - | stanceToggle = "Floating" |
| 758 | + | if v.Size.Y <= 0.205 or v.Transparency > 0.95 then |
| 759 | - | turnBG.Parent = root |
| 759 | + | v:Destroy() |
| 760 | - | floatBP.Parent = nil |
| 760 | + | Trail[i] = nil |
| 761 | - | flyBV.Parent = root |
| 761 | + | num2=num2+1 |
| 762 | - | |
| 762 | + | |
| 763 | - | flySpeed = flySpeed + 1 + (flySpeed / MAX_FLY_SPEED) |
| 763 | + | break |
| 764 | - | if flySpeed > MAX_FLY_SPEED then flySpeed = MAX_FLY_SPEED end |
| 764 | + | |
| 765 | end | |
| 766 | - | floatBP.position = root.Position |
| 766 | + | if Debounces.Slashing then |
| 767 | - | floatBP.Parent = root |
| 767 | + | if LastCFr ~= nil and (Tip.Position-LastCFr.p).Magnitude > 0.01 then |
| 768 | - | |
| 768 | + | local cfr = Tip.CFrame |
| 769 | - | flySpeed = flySpeed - 1 |
| 769 | + | local T = Instance.new("Part",Trails)
|
| 770 | - | if flySpeed < 0 then flySpeed = 0 end |
| 770 | + | number = number+1 |
| 771 | Trail[number] = T | |
| 772 | - | |
| 772 | + | T.FormFactor = "Custom" |
| 773 | - | local camCF = cam.CoordinateFrame |
| 773 | + | T.Name = "Trail" |
| 774 | - | local in_forward = canFly and forward or lastForward |
| 774 | + | T.Anchored = true |
| 775 | - | local in_side = canFly and side or lastSide |
| 775 | + | T.CanCollide = false |
| 776 | - | |
| 776 | + | T.Size = Vector3.new(0.5,(LastCFr.p-cfr.p).Magnitude,0.5) |
| 777 | - | flyBV.velocity = ((camCF.lookVector * in_forward) + (camCF * CFrame.new(in_side, |
| 777 | + | T.TopSurface = "SmoothNoOutlines" |
| 778 | - | in_forward * 0.2, 0).p) - camCF.p) * flySpeed |
| 778 | + | T.BottomSurface = "SmoothNoOutlines" |
| 779 | - | |
| 779 | + | T.FrontSurface = "SmoothNoOutlines" |
| 780 | - | turnBG.cframe = camCF * CFrame.Angles(-rad(forward * (flySpeed / MAX_FLY_SPEED)), 0, |
| 780 | + | T.BackSurface = "SmoothNoOutlines" |
| 781 | - | 0) |
| 781 | + | T.LeftSurface = "SmoothNoOutlines" |
| 782 | T.RightSurface = "SmoothNoOutlines" | |
| 783 | --[[local m = Instance.new("SpecialMesh",T)
| |
| 784 | - | game:service'RunService'.RenderStepped:connect(function() |
| 784 | + | m.MeshType = "Head" |
| 785 | - | if flyToggled then |
| 785 | + | m.Name = "Mesh"]] |
| 786 | - | pchar.Humanoid.PlatformStand = true |
| 786 | + | T.BrickColor = BrickColor.new("Really black")
|
| 787 | T.Transparency = 0.4 | |
| 788 | - | updateFly() |
| 788 | + | T.CFrame = CFrame.new(cfr.p, LastCFr.p)* CFrame.Angles(math.rad(90),0,0) * CFrame.new(0, -(LastCFr.p-cfr.p).Magnitude/2, 0) |
| 789 | LastCFr = cfr | |
| 790 | - | ---------------------------------------------------- |
| 790 | + | else |
| 791 | - | p13.Touched:connect(function(ht) |
| 791 | + | LastCFr = Tip.CFrame |
| 792 | - | hit = ht.Parent |
| 792 | + | |
| 793 | - | if ht and hit:IsA("Model") then
|
| 793 | + | |
| 794 | - | if hit:FindFirstChild("Humanoid") then
|
| 794 | + | if LastCFr ~= nil then LastCFr = nil Trails:ClearAllChildren() Trail = {} end
|
| 795 | - | if hit.Name ~= p.Name then |
| 795 | + | |
| 796 | - | if Debounces.Slashing == true and Debounces.Slashed == false then |
| 796 | + | ----------------------------------- |
| 797 | - | Debounces.Slashed = true |
| 797 | + | --[[if stanceToggle ~= "Floating" then |
| 798 | - | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(20,25))
|
| 798 | + | bodypos.Parent = nil |
| 799 | - | wait(.3) |
| 799 | + | |
| 800 | - | Debounces.Slashed = false |
| 800 | + | -----------------------------------Animations |
| 801 | char.Humanoid.FreeFalling:connect(function(f) | |
| 802 | if f then | |
| 803 | ffing = true | |
| 804 | - | elseif ht and hit:IsA("Hat") then
|
| 804 | + | |
| 805 | - | if hit.Parent.Name ~= p.Name then |
| 805 | + | |
| 806 | - | if hit.Parent:FindFirstChild("Humanoid") then
|
| 806 | + | |
| 807 | - | if Debounces.Slashing == true and Debounces.Slashed == false then |
| 807 | + | |
| 808 | - | Debounces.Slashed = true |
| 808 | + | |
| 809 | - | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(20,25))
|
| 809 | + | if jump == true then |
| 810 | - | wait(.3) |
| 810 | + | |
| 811 | - | Debounces.Slashed = false |
| 811 | + | |
| 812 | - | end |
| 812 | + | |
| 813 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then | |
| 814 | animpose = "Idle" | |
| 815 | - | end |
| 815 | + | |
| 816 | animpose = "Walking" | |
| 817 | - | ---------------------------------------------------- |
| 817 | + | |
| 818 | - | ptz = {0.7, 0.8, 0.9, 1}
|
| 818 | + | |
| 819 | - | idz = {"161006212", "161006195"}
|
| 819 | + | |
| 820 | if animpose ~= lastanimpose then | |
| 821 | sine = 0 | |
| 822 | - | if Debounces.CanAttack == true then |
| 822 | + | |
| 823 | - | Debounces.CanAttack = false |
| 823 | + | |
| 824 | - | Debounces.NoIdl = true |
| 824 | + | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.6) |
| 825 | - | Debounces.on = true |
| 825 | + | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.6) |
| 826 | - | for i = 1, 20 do |
| 826 | + | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1, -2.75) * CFrame.Angles(math.rad(90), math.rad(90), math.rad(0)), 0.6) |
| 827 | - | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad (60),math.rad(70),math.rad(70)), 0.2) |
| 827 | + | |
| 828 | - | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0) *CFrame.Angles(math.rad(-20),math.rad(0),math.rad (-40)), 0.2) |
| 828 | + | |
| 829 | - | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(-50), math.rad(0)), 0.2) |
| 829 | + | |
| 830 | - | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(-.4, -1, 0) * CFrame.Angles(math.rad(0), math.rad(70), math.rad(0)), 0.2) |
| 830 | + | |
| 831 | - | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles (math.rad(-10), 0, math.rad(-10)), 0.2) |
| 831 | + | |
| 832 | - | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles (math.rad(10), 0, math.rad(10)), 0.2) |
| 832 | + | |
| 833 | - | if Debounces.on == false then break end |
| 833 | + | |
| 834 | - | rs:wait(2) |
| 834 | + | if ffing then |
| 835 | change = 0.5 | |
| 836 | - | z = Instance.new("Sound", hed)
|
| 836 | + | if stanceToggle == "Assertive" then |
| 837 | - | z.SoundId = "rbxassetid://"..idz[math.random(1,#idz)] |
| 837 | + | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(15), 0, math.rad(30)), 0.1) |
| 838 | - | z.Pitch = ptz[math.random(1,#ptz)] |
| 838 | + | elseif stanceToggle == "Aggressive" then |
| 839 | ||
| 840 | ||
| 841 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(50),math.rad(20+2*math.cos(sine/14)),math.rad(95)), 0.1) | |
| 842 | - | Debounces.Slashing = true |
| 842 | + | |
| 843 | - | for i = 1, 20 do |
| 843 | + | |
| 844 | - | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.65, 0) * CFrame.Angles(math.rad(-40),math.rad(-20),math.rad(40)), 0.3) |
| 844 | + | |
| 845 | - | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2, 0.65, -.3) * CFrame.Angles(math.rad(65),math.rad(-20),math.rad(30)), 0.3) |
| 845 | + | |
| 846 | - | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-9),math.rad(35), math.rad(0)), 0.3) |
| 846 | + | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-20)), 0.1) |
| 847 | - | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 1) * CFrame.Angles(math.rad(0), math.rad(-65), math.rad(0)), 0.3) |
| 847 | + | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(20)), 0.1) |
| 848 | - | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), 0, math.rad(-10)), 0.3) |
| 848 | + | |
| 849 | - | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), 0, math.rad(10)), 0.3) |
| 849 | + | elseif animpose == "Idle" then |
| 850 | - | if Debounces.on == false then break end |
| 850 | + | if stanceToggle == "Aggressive" then |
| 851 | - | rs:wait(2) |
| 851 | + | |
| 852 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(50),math.rad(20+2*math.cos(sine/14)),math.rad(70)), 0.2) | |
| 853 | - | z1 = Instance.new("Sound", hed)
|
| 853 | + | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(10),math.rad(-70),math.rad(-30-2*math.cos(sine/14))), 0.2) |
| 854 | - | z1.SoundId = "rbxassetid://"..idz[math.random(1,#idz)] |
| 854 | + | hed.Weld.C0 = CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-5+2*math.cos(sine/14)),math.rad(-60),math.rad(10)) |
| 855 | - | z1.Pitch = ptz[math.random(1,#ptz)] |
| 855 | + | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(0, math.rad(70), math.rad(0)), 0.2) |
| 856 | - | z1.Volume = 1 |
| 856 | + | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(6), math.rad(0), math.rad(-20-3*math.cos(sine/14))), 0.2) |
| 857 | - | wait(.01) |
| 857 | + | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-8), math.rad(0), math.rad(20+3*math.cos(sine/14))), 0.2) |
| 858 | - | z1:Play() |
| 858 | + | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1, -2.75) * CFrame.Angles(math.rad(90), math.rad(90), math.rad(0)), 0.2) |
| 859 | - | Debounces.Slashing = true |
| 859 | + | elseif stanceToggle == "Assertive" then |
| 860 | - | for i = 1, 26 do |
| 860 | + | |
| 861 | - | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad (90),math.rad(-40),math.rad(80)), 0.35) |
| 861 | + | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(10+2*math.cos(sine/14))), 0.2) |
| 862 | - | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad (- 70)), 0.35) |
| 862 | + | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16),math.rad(12),math.rad(-10+2*math.cos(sine/14))), 0.2) |
| 863 | - | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(-90), math.rad(0)), 0.35) |
| 863 | + | hed.Weld.C0 = CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-10+2*math.cos(sine/14)),math.rad(-32),0) |
| 864 | - | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, -1) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 0.35) |
| 864 | + | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(36), math.rad(0)), 0.2) |
| 865 | - | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles (math.rad(-10), 0, math.rad(-10)), 0.35) |
| 865 | + | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-10)), 0.2) |
| 866 | - | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles (math.rad(10), 0, math.rad(10)), 0.35) |
| 866 | + | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(10)), 0.2) |
| 867 | - | cor.Weld.C1 = Lerp(cor.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles (math.rad(0), math.rad(-30), math.rad(0)), 0.35) |
| 867 | + | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1, -2.75) * CFrame.Angles(math.rad(90), math.rad(90), math.rad(0)), 0.2) |
| 868 | - | if Debounces.on == false then break end |
| 868 | + | |
| 869 | - | rs:wait(2) |
| 869 | + | |
| 870 | ||
| 871 | - | Debounces.Slashing = false |
| 871 | + | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(10+2*math.cos(sine/14))), 0.4) |
| 872 | - | z:Destroy() |
| 872 | + | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16-4*math.cos(sine/14)),math.rad(12),math.rad(-10-2*math.cos(sine/14))), 0.4) |
| 873 | - | z1:Destroy() |
| 873 | + | hed.Weld.C0 = CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-16+2*math.cos(sine/14)),math.rad(0),0) |
| 874 | - | cor.Weld.C1 = CFrame.Angles(0,0,0) |
| 874 | + | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, (2-0.4*math.cos(sine/14)), 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.05) |
| 875 | - | if Debounces.CanAttack == false then |
| 875 | + | |
| 876 | - | Debounces.CanAttack = true |
| 876 | + | |
| 877 | - | Debounces.NoIdl = false |
| 877 | + | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1, -2.75) * CFrame.Angles(math.rad(90), math.rad(90), math.rad(0)), 0.4) |
| 878 | - | Debounces.on = false |
| 878 | + | --[[bodypos.Parent = root |
| 879 | local hit,pos = workspace:FindPartOnRayWithIgnoreList(Ray.new(root.CFrame,CFrame.new(0,-20,0)),char:children()) | |
| 880 | if hit then | |
| 881 | bodypos.position = Vector3.new(0,hit.CFrame.2 + hit.Size.2/2 + 2,0) | |
| 882 | else | |
| 883 | bodypos.position = Vector3.new(0,root.CFrame.2,0) | |
| 884 | - | pts = {4, 4.2, 4.4, 4.6, 4.8, 5, 5.2, 5.4}
|
| 884 | + | |
| 885 | end | |
| 886 | elseif animpose == "Walking" then | |
| 887 | - | if Debounces.CanAttack == true then |
| 887 | + | |
| 888 | - | Debounces.CanAttack = false |
| 888 | + | if stanceToggle == "Assertive" then |
| 889 | - | Debounces.NoIdl = true |
| 889 | + | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.4) |
| 890 | - | Debounces.on = true |
| 890 | + | elseif stanceToggle == "Passive" then |
| 891 | - | Debounces.ks = true |
| 891 | + | |
| 892 | - | larm.Touched:connect(function(ht) |
| 892 | + | |
| 893 | if stanceToggle == "Assertive" then | |
| 894 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(0),math.rad(14),math.rad(-10-2*math.cos(sine/14))), 0.2) | |
| 895 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.sin(sine/10)/6, math.rad(10), math.rad(10)), 0.4) | |
| 896 | hed.Weld.C0 = CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-10-4*math.cos(sine/14)),0,0) | |
| 897 | - | if Debounces.Slapping == true and Debounces.Slapped == false then |
| 897 | + | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(-math.sin(sine/14)/2, 0, 0), .4) |
| 898 | - | Debounces.Slapped = true |
| 898 | + | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.sin(sine/14)/2, 0, 0), .4) |
| 899 | - | if Debounces.ks==true then |
| 899 | + | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, --[[math.rad(36)]]0, math.rad(0)), 0.2) |
| 900 | - | z = Instance.new("Sound",hed)
|
| 900 | + | elseif stanceToggle == "Aggressive" then |
| 901 | - | z.SoundId = "rbxassetid://169380525" |
| 901 | + | change = 1.5 |
| 902 | - | z.Volume = 1 |
| 902 | + | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(10),math.rad(-70),math.rad(-30-2*math.cos(sine/14))), 0.2) |
| 903 | - | z:Play() |
| 903 | + | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(50),math.rad(20+2*math.cos(sine/14)),math.rad(30)), 0.2) |
| 904 | - | z1 = Instance.new("Sound",char)
|
| 904 | + | hed.Weld.C0 = CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0+2*math.cos(sine/10)),math.rad(-60),math.rad(10)) |
| 905 | - | z1.SoundId = "rbxassetid://261010715" |
| 905 | + | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(4), math.rad(0), math.rad(-10-8*math.cos(sine/14))), 0.2) |
| 906 | - | z1.Pitch = pts[math.random(1,#pts)] |
| 906 | + | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-6), math.rad(0), math.rad(10+6*math.cos(sine/14))), 0.2) |
| 907 | - | z1.Volume = 1 |
| 907 | + | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(70), math.rad(0)), 0.2) |
| 908 | - | z2 = Instance.new("Sound",char)
|
| 908 | + | |
| 909 | - | z2.SoundId = "rbxassetid://261010715" |
| 909 | + | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(0),math.rad(14),math.rad(-10-2*math.cos(sine/14))), 0.4) |
| 910 | - | z2.Pitch = z1.Pitch |
| 910 | + | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.sin(sine/10)/6, math.rad(10), math.rad(10)), 0.4) |
| 911 | - | z2.Volume = 1 |
| 911 | + | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-14-4*math.cos(sine/14)),0,0), 0.4) |
| 912 | - | z3 = Instance.new("Sound",char)
|
| 912 | + | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0-8*math.cos(sine/14)), 0, 0), 0.4) |
| 913 | - | z3.SoundId = "rbxassetid://261010715" |
| 913 | + | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(1-9*math.cos(sine/13)), 0, 0), 0.4) |
| 914 | - | z3.Pitch = z1.Pitch |
| 914 | + | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, (2-0.2*math.cos(sine/14)), 0) * CFrame.Angles(math.rad(-10),0, math.rad(0)), 0.05) |
| 915 | - | z3.Volume = 1 |
| 915 | + | |
| 916 | - | z1:Play() |
| 916 | + | |
| 917 | - | z2:Play() |
| 917 | + | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1, -2.75) * CFrame.Angles(math.rad(90), math.rad(90), math.rad(0)), 0.4) |
| 918 | - | z3:Play() |
| 918 | + | |
| 919 | - | Debounces.ks=false |
| 919 | + | change = 1 |
| 920 | - | end |
| 920 | + | if stanceToggle == "Assertive" then |
| 921 | - | hit:FindFirstChild("Humanoid"):TakeDamage(10)
|
| 921 | + | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, -1) * CFrame.Angles(math.rad(-30), math.rad(0), 0), 0.04) |
| 922 | - | hit:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 90
|
| 922 | + | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(-12.5-6*math.cos(sine/14)), math.rad(50), math.rad(-40)), 0.4) |
| 923 | - | wait(.5) |
| 923 | + | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(-50), math.rad(-30), math.rad(26)), 0.4) |
| 924 | - | Debounces.Slapped = false |
| 924 | + | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.75 + -math.sin(sine / 20)/12, -0.5 + -math.sin(sine / 16) / 2.5) * CFrame.Angles(math.rad(8) + -math.sin(sine/6)/1.5, 0, 0), .4) |
| 925 | - | z:Destroy() |
| 925 | + | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.75 + math.sin(sine / 20)/12, -0.5 + math.sin(sine / 16) / 2.5) * CFrame.Angles(math.rad(8) + math.sin(sine/6)/1.5, 0, 0), .4) |
| 926 | - | z1:Destroy() |
| 926 | + | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(-1.1, -3.2, 0) * CFrame.Angles(0, 0, math.rad(-28)), 0.4) |
| 927 | - | z2:Destroy() |
| 927 | + | if sine <= 7 then |
| 928 | - | z3:Destroy() |
| 928 | + | for i = 1, 1.5 do |
| 929 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-17-2*math.cos(sine/10)), math.rad(0), math.rad(0)), 0.2) | |
| 930 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, -1) * CFrame.Angles(math.rad(-30+4*math.cos(sine/14)), math.rad(0), 0), 0.05) | |
| 931 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -1, -0.5) * CFrame.Angles(math.rad(0), 0, math.rad(-5)), 0.2) | |
| 932 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, 0, -1) * CFrame.Angles(math.rad(0), 0, math.rad(5)), 0.2) | |
| 933 | if sine > 7 or Debounces.on == true then | |
| 934 | break | |
| 935 | - | if Debounces.Slapping == true and Debounces.Slapped == false then |
| 935 | + | |
| 936 | - | Debounces.Slapped = true |
| 936 | + | wait() |
| 937 | - | if Debounces.ks==true then |
| 937 | + | |
| 938 | - | z = Instance.new("Sound",hed)
|
| 938 | + | elseif sine <= 10 then |
| 939 | - | z.SoundId = "rbxassetid://169380525" |
| 939 | + | for i = 1, 1.5 do |
| 940 | - | z.Volume = 1 |
| 940 | + | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -1, -0.5) * CFrame.Angles(math.rad(0), 0, math.rad(-5)), 0.2) |
| 941 | - | z:Play() |
| 941 | + | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -1, -0.5) * CFrame.Angles(math.rad(0), 0, math.rad(5)), 0.2) |
| 942 | - | z1 = Instance.new("Sound",char)
|
| 942 | + | if sine > 10 or Debounces.on == true then |
| 943 | - | z1.SoundId = "rbxassetid://261010715" |
| 943 | + | break |
| 944 | - | z1.Pitch = pts[math.random(1,#pts)] |
| 944 | + | |
| 945 | - | z1.Volume = 1 |
| 945 | + | wait() |
| 946 | - | z2 = Instance.new("Sound",char)
|
| 946 | + | |
| 947 | - | z2.SoundId = "rbxassetid://261010715" |
| 947 | + | elseif sine <= 17 then |
| 948 | - | z2.Pitch = z1.Pitch |
| 948 | + | for i = 1, 1.5 do |
| 949 | - | z2.Volume = 1 |
| 949 | + | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, 0, -1) * CFrame.Angles(math.rad(0), 0, math.rad(5)), 0.2) |
| 950 | - | z3 = Instance.new("Sound",char)
|
| 950 | + | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -1, 0.5) * CFrame.Angles(math.rad(0), 0, math.rad(5)), 0.2) |
| 951 | - | z3.SoundId = "rbxassetid://261010715" |
| 951 | + | if sine > 17 or Debounces.on == true then |
| 952 | - | z3.Pitch = z1.Pitch |
| 952 | + | |
| 953 | - | z3.Volume = 1 |
| 953 | + | |
| 954 | - | z1:Play() |
| 954 | + | |
| 955 | - | z2:Play() |
| 955 | + | |
| 956 | - | z3:Play() |
| 956 | + | elseif sine <= 20 then |
| 957 | - | Debounces.ks=false |
| 957 | + | for i = 1, 1.5 do |
| 958 | - | end |
| 958 | + | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -1, -0.5) * CFrame.Angles(math.rad(0), 0, math.rad(-5)), 0.2) |
| 959 | - | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(10)
|
| 959 | + | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -1, -0.5) * CFrame.Angles(math.rad(0), 0, math.rad(5)), 0.2) |
| 960 | - | wait(.5) |
| 960 | + | if sine > 20 or Debounces.on == true then |
| 961 | - | Debounces.Slapped = false |
| 961 | + | break |
| 962 | - | z:Destroy() |
| 962 | + | |
| 963 | - | z1:Destroy() |
| 963 | + | wait() |
| 964 | - | z2:Destroy() |
| 964 | + | |
| 965 | - | z3:Destroy() |
| 965 | + | elseif sine > 20 then |
| 966 | - | end |
| 966 | + | sine = 0 |
| 967 | end | |
| 968 | elseif stanceToggle == "Aggressive" then | |
| 969 | - | end |
| 969 | + | elseif stanceToggle == "Floating" then |
| 970 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-20*math.cos(sine/14)),math.rad(14),math.rad(-10-2*math.cos(sine/14))), 0.4) | |
| 971 | - | for i = 1, 14 do |
| 971 | + | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(-20*math.cos(sine/14)), math.rad(10), math.rad(10)), 0.4) |
| 972 | - | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.3, 0.5, -.3) * CFrame.Angles(math.rad(50), 0, math.rad(40)), 0.5) |
| 972 | + | hed.Weld.C0 = CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-14-4*math.cos(sine/14)),0,0) |
| 973 | - | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(40)), 0.5) |
| 973 | + | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-4-10*math.cos(sine/16)), 0, 0), 0.4) |
| 974 | - | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-90), math.rad(0)), 0.5) |
| 974 | + | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-3-12*math.cos(sine/17)), 0, 0), 0.4) |
| 975 | - | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 0.5) |
| 975 | + | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, (2-0.4*math.cos(sine/14)), 0) * CFrame.Angles(math.rad(-15),0, math.rad(0)), 0.05) |
| 976 | - | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.5) |
| 976 | + | |
| 977 | - | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.5) |
| 977 | + | |
| 978 | - | if Debounces.on==false then break end |
| 978 | + | |
| 979 | - | rs:wait(2) |
| 979 | + |