SHOW:
|
|
- or go back to the newest paste.
| 1 | --https://github.com/Mokiros/roblox-FE-compatibility | |
| 2 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
| |
| 3 | local Player,game,owner = owner,game | |
| 4 | local RealPlayer = Player | |
| 5 | do print("FE Compatibility code V2 by Mokiros")local RealPlayer=RealPlayer;script.Parent=RealPlayer.Character;local a=function(b)b[1].f[b[2]]=nil end;local c={__index={disconnect=a,Disconnect=a}}local d={__index={Connect=function(b,e)local f=tostring(math.random(0,10000))while b.f[f]do f=tostring(math.random(0,10000))end;b.f[f]=e;return setmetatable({b,f},c)end}}d.__index.connect=d.__index.Connect;local function g()return setmetatable({f={}},d)end;local h={Hit=CFrame.new(),KeyUp=g(),KeyDown=g(),Button1Up=g(),Button1Down=g(),Button2Up=g(),Button2Down=g()}h.keyUp=h.KeyUp;h.keyDown=h.KeyDown;local i={InputBegan=g(),InputEnded=g()}local CAS={Actions={},BindAction=function(self,j,k,l,...)CAS.Actions[j]=k and{Name=j,Function=k,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function m(self,n,...)for o,e in pairs(self[n].f)do e(...)end end;h.T=m;i.T=m;local p=Instance.new("RemoteEvent")p.Name="UserInput_Event"p.OnServerEvent:Connect(function(q,r)if q~=RealPlayer then return end;h.Target=r.e;h.Hit=r.d;if not r.f then local s=r.c==Enum.UserInputState.Begin;if r.b==Enum.UserInputType.MouseButton1 then return h:T(s and"Button1Down"or"Button1Up")end;if r.b==Enum.UserInputType.MouseButton2 then return h:T(s and"Button2Down"or"Button2Up")end;for o,t in pairs(CAS.Actions)do for o,u in pairs(t.Keys)do if u==r.a then t.Function(t.Name,r.c,r)end end end;h:T(s and"KeyDown"or"KeyUp",r.a.Name:lower())i:T(s and"InputBegan"or"InputEnded",r,false)end end)p.Parent=NLS([==[local a=script:WaitForChild("UserInput_Event")local b=owner:GetMouse()local c=game:GetService("UserInputService")local d=function(e,f)if f then return end;a:FireServer({a=e.KeyCode,b=e.UserInputType,c=e.UserInputState,d=b.Hit,e=b.Target})end;c.InputBegan:Connect(d)c.InputEnded:Connect(d)local g,h;local i=game:GetService("RunService").Heartbeat;while true do if g~=b.Hit or h~=b.Target then g,h=b.Hit,b.Target;a:FireServer({f=1,Target=h,d=g})end;for j=1,2 do i:Wait()end end]==],script)local v=game;local w={__index=function(self,u)local x=rawget(self,"_RealService")if x then return typeof(x[u])=="function"and function(o,...)return x[u](x,...)end or x[u]end end,__newindex=function(self,u,y)local x=rawget(self,"_RealService")if x then x[u]=y end end}local function z(t,A)t._RealService=typeof(A)=="string"and v:GetService(A)or A;return setmetatable(t,w)end;local B={GetService=function(self,x)return rawget(self,x)or v:GetService(x)end,Players=z({LocalPlayer=z({GetMouse=function(self)return h end},Player)},"Players"),UserInputService=z(i,"UserInputService"),ContextActionService=z(CAS,"ContextActionService"),RunService=z({_btrs={},RenderStepped=v:GetService("RunService").Heartbeat,BindToRenderStep=function(self,j,o,k)self._btrs[j]=self.Heartbeat:Connect(k)end,UnbindFromRenderStep=function(self,j)self._btrs[j]:Disconnect()end},"RunService")}rawset(B.Players,"localPlayer",B.Players.LocalPlayer)B.service=B.GetService;z(B,game)game,owner=B,B.Players.LocalPlayer end
| |
| 6 | ||
| 7 | --- | |
| 8 | local p = game.Players.LocalPlayer | |
| 9 | local char = p.Character | |
| 10 | local mouse = p:GetMouse() | |
| 11 | local larm = char["Left Arm"] | |
| 12 | local rarm = char["Right Arm"] | |
| 13 | local lleg = char["Left Leg"] | |
| 14 | local rleg = char["Right Leg"] | |
| 15 | local hed = char.Head | |
| 16 | local torso = char.Torso | |
| 17 | local ASD = BrickColor.new("Pastel brown")
| |
| 18 | local hum = char.Humanoid | |
| 19 | local attack = false | |
| 20 | local attacktype = 1 | |
| 21 | local cam = game.Workspace.CurrentCamera | |
| 22 | local root = char.HumanoidRootPart | |
| 23 | local deb = false | |
| 24 | local shot = 0 | |
| 25 | local l = game:GetService("Lighting")
| |
| 26 | local rs = game:GetService("RunService").RenderStepped
| |
| 27 | local stanceToggle = "Normal" | |
| 28 | math.randomseed(os.time()) | |
| 29 | hum.WalkSpeed = 7 | |
| 30 | char.Health:Destroy() | |
| 31 | hum.MaxHealth = 5000000 | |
| 32 | wait(0.1) | |
| 33 | hum.Health = 5000000 | |
| 34 | z = Instance.new("Sound", char.Torso)
| |
| 35 | z.SoundId = "rbxassetid://945754402" | |
| 36 | z.Looped = true | |
| 37 | z.Pitch = 1 | |
| 38 | z.Volume = 1 | |
| 39 | ---------------------------------------------------- | |
| 40 | local SM = Instance.new("Smoke",torso)
| |
| 41 | SM.Size = 15 | |
| 42 | local S = Instance.new("Part",char)
| |
| 43 | S.Size = Vector3.new(1,1,1) | |
| 44 | S.Material = "Neon" | |
| 45 | S.BrickColor = BrickColor.new("Deep orange")
| |
| 46 | S.Transparency = 0 | |
| 47 | S.Anchored = true | |
| 48 | S.CFrame = torso.CFrame*CFrame.new(0,0,0) | |
| 49 | local Ring = Instance.new("Part",S)
| |
| 50 | Ring.Size = Vector3.new(1,1,1) | |
| 51 | Ring.BrickColor = BrickColor.new("Deep orange")
| |
| 52 | Ring.Anchored = true | |
| 53 | Ring.CanCollide = false | |
| 54 | Ring.CFrame = S.CFrame*CFrame.new(0,0,0)*CFrame.Angles(1.55,0,0) | |
| 55 | local Ring2 = Instance.new("SpecialMesh",Ring)
| |
| 56 | Ring2.MeshId = "rbxassetid://3270017" | |
| 57 | Ring2.Scale = Vector3.new(0.1,0.1,0.1) | |
| 58 | local S2 = Instance.new("SpecialMesh",S)
| |
| 59 | S2.MeshType = "Sphere" | |
| 60 | S2.Scale = Vector3.new(1,1,1) | |
| 61 | v = Instance.new("Sound")
| |
| 62 | v.SoundId = "rbxassetid://821439273" | |
| 63 | v.Parent = char.Torso | |
| 64 | v.Looped = false | |
| 65 | v.Pitch = 1 | |
| 66 | v.Volume = 1 | |
| 67 | wait(.01) | |
| 68 | v:Play() | |
| 69 | local partasdeff = Instance.new("ParticleEmitter",S)
| |
| 70 | partasdeff.Color = ColorSequence.new(Color3.new(0,0,0), Color3.new(204,130,2)) | |
| 71 | partasdeff.LightEmission = .1 | |
| 72 | partasdeff.Size = NumberSequence.new(0.2) | |
| 73 | partasdeff.Texture = "http://www.roblox.com/asset/?ID=300899516" | |
| 74 | aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)})
| |
| 75 | bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
| |
| 76 | partasdeff.Transparency = bbb | |
| 77 | partasdeff.Size = aaa | |
| 78 | partasdeff.ZOffset = .9 | |
| 79 | partasdeff.Acceleration = Vector3.new(0, -5, 0) | |
| 80 | partasdeff.LockedToPart = false | |
| 81 | partasdeff.EmissionDirection = "Top" | |
| 82 | partasdeff.Lifetime = NumberRange.new(1, 2) | |
| 83 | partasdeff.Rate = 1000 | |
| 84 | partasdeff.Rotation = NumberRange.new(-100, 100) | |
| 85 | partasdeff.RotSpeed = NumberRange.new(-100, 100) | |
| 86 | partasdeff.Speed = NumberRange.new(10) | |
| 87 | partasdeff.VelocitySpread = 300 | |
| 88 | partasdeff.Enabled = true | |
| 89 | for i = 1,100 do | |
| 90 | Ring2.Scale = Ring2.Scale + Vector3.new(2,2,2) | |
| 91 | Ring.Transparency = Ring.Transparency + 0.01 | |
| 92 | S2.Scale = S2.Scale + Vector3.new(0.3,0.3,0.3) | |
| 93 | S.Transparency = S.Transparency + 0.01 | |
| 94 | game:GetService("RunService").RenderStepped:wait()
| |
| 95 | end | |
| 96 | S:remove() | |
| 97 | wait(1) | |
| 98 | SM:remove() | |
| 99 | v = Instance.new("Sound")
| |
| 100 | v.SoundId = "rbxassetid://181384451" | |
| 101 | v.Parent = torso | |
| 102 | v.Looped = false | |
| 103 | v.Pitch = 1.5 | |
| 104 | v.Volume = 1 | |
| 105 | wait(.01) | |
| 106 | v:Play() | |
| 107 | z:Play() | |
| 108 | ---------------------------------------------------- | |
| 109 | Debounces = {
| |
| 110 | on = false; | |
| 111 | ks = false; | |
| 112 | CanAttack = true; | |
| 113 | CanJoke = true; | |
| 114 | NoIdl = false; | |
| 115 | Slashing = false; | |
| 116 | Slashed = false; | |
| 117 | Grabbing = false; | |
| 118 | Grabbed = false; | |
| 119 | } | |
| 120 | local Touche = {char.Name, }
| |
| 121 | ---------------------------------------------------- | |
| 122 | function lerp(a, b, t) -- Linear interpolation | |
| 123 | return a + (b - a)*t | |
| 124 | end | |
| 125 | ||
| 126 | function slerp(a, b, t) --Spherical interpolation | |
| 127 | dot = a:Dot(b) | |
| 128 | if dot > 0.99999 or dot < -0.99999 then | |
| 129 | return t <= 0.5 and a or b | |
| 130 | else | |
| 131 | r = math.acos(dot) | |
| 132 | return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r) | |
| 133 | end | |
| 134 | end | |
| 135 | ||
| 136 | function matrixInterpolate(a, b, t) | |
| 137 | local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components() | |
| 138 | local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components() | |
| 139 | local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position | |
| 140 | local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector right | |
| 141 | local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector up | |
| 142 | local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector back | |
| 143 | local t = v1:Dot(v2) | |
| 144 | if not (t < 0 or t == 0 or t > 0) then -- Failsafe | |
| 145 | return CFrame.new() | |
| 146 | end | |
| 147 | return CFrame.new( | |
| 148 | v0.x, v0.y, v0.z, | |
| 149 | v1.x, v1.y, v1.z, | |
| 150 | v2.x, v2.y, v2.z, | |
| 151 | v3.x, v3.y, v3.z) | |
| 152 | end | |
| 153 | ---------------------------------------------------- | |
| 154 | function genWeld(a,b) | |
| 155 | local w = Instance.new("Weld",a)
| |
| 156 | w.Part0 = a | |
| 157 | w.Part1 = b | |
| 158 | return w | |
| 159 | end | |
| 160 | function weld(a, b) | |
| 161 | local weld = Instance.new("Weld")
| |
| 162 | weld.Name = "W" | |
| 163 | weld.Part0 = a | |
| 164 | weld.Part1 = b | |
| 165 | weld.C0 = a.CFrame:inverse() * b.CFrame | |
| 166 | weld.Parent = a | |
| 167 | return weld; | |
| 168 | end | |
| 169 | ---------------------------------------------------- | |
| 170 | function Lerp(c1,c2,al) | |
| 171 | local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
| |
| 172 | local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
| |
| 173 | for i,v in pairs(com1) do | |
| 174 | com1[i] = v+(com2[i]-v)*al | |
| 175 | end | |
| 176 | return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1))) | |
| 177 | end | |
| 178 | ---------------------------------------------------- | |
| 179 | newWeld = function(wp0, wp1, wc0x, wc0y, wc0z) | |
| 180 | local wld = Instance.new("Weld", wp1)
| |
| 181 | wld.Part0 = wp0 | |
| 182 | wld.Part1 = wp1 | |
| 183 | wld.C0 = CFrame.new(wc0x, wc0y, wc0z) | |
| 184 | end | |
| 185 | ---------------------------------------------------- | |
| 186 | for i,v in pairs(char:children()) do | |
| 187 | if v:IsA("Hat") then
| |
| 188 | v:Destroy() | |
| 189 | end | |
| 190 | end | |
| 191 | for i,v in pairs(hed:children()) do | |
| 192 | if v:IsA("Sound") then
| |
| 193 | v:Destroy() | |
| 194 | end | |
| 195 | end | |
| 196 | ---------------------------------------------------- | |
| 197 | function HasntTouched(plrname) | |
| 198 | local ret = true | |
| 199 | for _, v in pairs(Touche) do | |
| 200 | if v == plrname then | |
| 201 | ret = false | |
| 202 | end | |
| 203 | end | |
| 204 | return ret | |
| 205 | end | |
| 206 | ---------------------------------------------------- | |
| 207 | larm.Size = larm.Size * 6 | |
| 208 | rarm.Size = rarm.Size * 6 | |
| 209 | lleg.Size = lleg.Size * 6 | |
| 210 | rleg.Size = rleg.Size * 6 | |
| 211 | torso.Size = torso.Size * 6 | |
| 212 | hed.Size = hed.Size * 6 | |
| 213 | root.Size = root.Size * 6 | |
| 214 | ---------------------------------------------------- | |
| 215 | newWeld(torso, larm, -1.5, 0.5, 0) | |
| 216 | larm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
| 217 | newWeld(torso, rarm, 1.5, 0.5, 0) | |
| 218 | rarm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
| 219 | newWeld(torso, hed, 0, 1.5, 0) | |
| 220 | newWeld(torso, lleg, -0.5, -1, 0) | |
| 221 | lleg.Weld.C1 = CFrame.new(0, 1, 0) | |
| 222 | newWeld(torso, rleg, 0.5, -1, 0) | |
| 223 | rleg.Weld.C1 = CFrame.new(0, 1, 0) | |
| 224 | newWeld(root, torso, 0, -1, 0) | |
| 225 | torso.Weld.C1 = CFrame.new(0, -1, 0) | |
| 226 | ---------------------------------------------------- | |
| 227 | local Part = Instance.new("Part",hed)
| |
| 228 | Part.BrickColor = BrickColor.new("Really black")
| |
| 229 | Part.Size = Vector3.new(1,1,1) | |
| 230 | Part.CanCollide = false | |
| 231 | Part.Material = "Neon" | |
| 232 | local M = Instance.new("SpecialMesh",Part)
| |
| 233 | M.MeshId = "rbxassetid://731024518" | |
| 234 | M.Scale = Vector3.new(2,2,2) | |
| 235 | local Part2 = Instance.new("Weld",Part)
| |
| 236 | Part2.Part0 = hed | |
| 237 | Part2.Part1 = Part | |
| 238 | Part2.C0 = CFrame.new(0,0,0)*CFrame.Angles(0,3.1,0) | |
| 239 | char.Shirt:remove() | |
| 240 | char.Pants:remove() | |
| 241 | char.Head.face.Texture = "rbxassetid://470245396" | |
| 242 | char.Humanoid.WalkSpeed = 44 | |
| 243 | ---------------------------------------------------- | |
| 244 | ---------------------------------------------------- | |
| 245 | ||
| 246 | ---------------------------------------------------- | |
| 247 | function weld5(part0, part1, c0, c1) | |
| 248 | weeld=Instance.new("Weld", part0)
| |
| 249 | weeld.Part0=part0 | |
| 250 | weeld.Part1=part1 | |
| 251 | weeld.C0=c0 | |
| 252 | weeld.C1=c1 | |
| 253 | return weeld | |
| 254 | end | |
| 255 | ---------------------------------------------------- | |
| 256 | function newRay(start,face,range,wat) | |
| 257 | local rey=Ray.new(start.p,(face.p-start.p).Unit*range) | |
| 258 | hit,pos=Workspace:FindPartOnRayWithIgnoreList(rey,wat) | |
| 259 | return rey,hit,pos | |
| 260 | end | |
| 261 | ---------------------------------------------------- | |
| 262 | mod5 = Instance.new("Model",char)
| |
| 263 | ||
| 264 | function FindNearestTorso(Position,Distance,SinglePlayer) | |
| 265 | if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end | |
| 266 | local List = {}
| |
| 267 | for i,v in pairs(workspace:GetChildren())do | |
| 268 | if v:IsA("Model")then
| |
| 269 | if v:findFirstChild("Torso")then
| |
| 270 | if v ~= char then | |
| 271 | if(v.Torso.Position -Position).magnitude <= Distance then | |
| 272 | table.insert(List,v) | |
| 273 | end | |
| 274 | end | |
| 275 | end | |
| 276 | end | |
| 277 | end | |
| 278 | return List | |
| 279 | end | |
| 280 | ||
| 281 | function Landing() | |
| 282 | part=Instance.new('Part',mod5)
| |
| 283 | part.Anchored=true | |
| 284 | part.CanCollide=false | |
| 285 | part.FormFactor='Custom' | |
| 286 | part.Size=Vector3.new(.2,.2,.2) | |
| 287 | part.CFrame=root.CFrame*CFrame.new(0,-2,0) | |
| 288 | part.Transparency=.7 | |
| 289 | part.BrickColor=BrickColor.new('Really black')
| |
| 290 | mesh=Instance.new('SpecialMesh',part)
| |
| 291 | mesh.MeshId='http://www.roblox.com/asset/?id=20329976' | |
| 292 | mesh.Scale=Vector3.new(10,5,10) | |
| 293 | ||
| 294 | for i,v in pairs(FindNearestTorso(torso.CFrame.p,40))do | |
| 295 | if v:FindFirstChild('Humanoid') then
| |
| 296 | v.Humanoid:TakeDamage(math.random(20,30)) | |
| 297 | v.Humanoid.PlatformStand = true | |
| 298 | v:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 100
| |
| 299 | end | |
| 300 | end | |
| 301 | ||
| 302 | coroutine.resume(coroutine.create(function() | |
| 303 | for i=0,3.8,0.05 do | |
| 304 | wait() | |
| 305 | part.CFrame=part.CFrame | |
| 306 | part.Transparency=i | |
| 307 | mesh.Scale=mesh.Scale+Vector3.new(1,0.2,1) | |
| 308 | end | |
| 309 | part.Parent = nil | |
| 310 | end)) | |
| 311 | end | |
| 312 | ---------------------------------------------------- | |
| 313 | mod4 = Instance.new("Model",char)
| |
| 314 | ||
| 315 | ptez = {0.7, 0.8, 0.9, 1}
| |
| 316 | ||
| 317 | function FindNearestTorso(Position,Distance,SinglePlayer) | |
| 318 | if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end | |
| 319 | local List = {}
| |
| 320 | for i,v in pairs(workspace:GetChildren())do | |
| 321 | if v:IsA("Model")then
| |
| 322 | if v:findFirstChild("Torso")then
| |
| 323 | if v ~= char then | |
| 324 | if(v.Torso.Position -Position).magnitude <= Distance then | |
| 325 | table.insert(List,v) | |
| 326 | end | |
| 327 | end | |
| 328 | end | |
| 329 | end | |
| 330 | end | |
| 331 | return List | |
| 332 | end | |
| 333 | ||
| 334 | ---------------------------------------------------- | |
| 335 | ||
| 336 | local acos = math.acos | |
| 337 | local sqrt = math.sqrt | |
| 338 | local Vec3 = Vector3.new | |
| 339 | local fromAxisAngle = CFrame.fromAxisAngle | |
| 340 | ||
| 341 | local function toAxisAngle(CFr) | |
| 342 | local X,Y,Z,R00,R01,R02,R10,R11,R12,R20,R21,R22 = CFr:components() | |
| 343 | local Angle = math.acos((R00+R11+R22-1)/2) | |
| 344 | local A = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 | |
| 345 | A = A == 0 and 0.00001 or A | |
| 346 | local B = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 | |
| 347 | B = B == 0 and 0.00001 or B | |
| 348 | local C = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 | |
| 349 | C = C == 0 and 0.00001 or C | |
| 350 | local x = (R21-R12)/sqrt(A) | |
| 351 | local y = (R02-R20)/sqrt(B) | |
| 352 | local z = (R10-R01)/sqrt(C) | |
| 353 | return Vec3(x,y,z),Angle | |
| 354 | end | |
| 355 | ||
| 356 | function ApplyTrig(Num,Func) | |
| 357 | local Min,Max = Func(0),Func(1) | |
| 358 | local i = Func(Num) | |
| 359 | return (i-Min)/(Max-Min) | |
| 360 | --[[if Func == "sin" then | |
| 361 | return (math.sin((1-Num)*math.pi)+1)/2 | |
| 362 | elseif Func == "cos" then | |
| 363 | return (math.cos((1-Num)*math.pi)+1)/2 | |
| 364 | end]] | |
| 365 | end | |
| 366 | ||
| 367 | function LerpCFrame(CFrame1,CFrame2,Num) | |
| 368 | local Vec,Ang = toAxisAngle(CFrame1:inverse()*CFrame2) | |
| 369 | return CFrame1*fromAxisAngle(Vec,Ang*Num) + (CFrame2.p-CFrame1.p)*Num | |
| 370 | end | |
| 371 | ---------------------------------------------------- | |
| 372 | function Hit() | |
| 373 | if Debounces.CanAttack == true then | |
| 374 | Debounces.CanAttack = false | |
| 375 | Debounces.on = true | |
| 376 | Debounces.NoIdl = true | |
| 377 | local HitBox = Instance.new("Part",char)
| |
| 378 | HitBox.Size = Vector3.new(5,5,5) | |
| 379 | HitBox.CanCollide = false | |
| 380 | HitBox.Transparency = math.huge | |
| 381 | local HitBox2 = Instance.new("Weld",HitBox)
| |
| 382 | HitBox2.Part0 = rarm | |
| 383 | HitBox2.Part1 = HitBox | |
| 384 | HitBox2.C0 = CFrame.new(0,-1.3,0) | |
| 385 | HitBox.Touched:connect(function(hit) | |
| 386 | if hit.Parent:FindFirstChild("Humanoid") and hit.Parent ~= nil then
| |
| 387 | local SFXZ = Instance.new("Sound",torso)
| |
| 388 | SFXZ.SoundId = "rbxassetid://743886825" | |
| 389 | SFXZ.Volume = math.huge | |
| 390 | SFXZ.Pitch = 0.5 | |
| 391 | SFXZ.Looped = false | |
| 392 | SFXZ:Play() | |
| 393 | HitBox:remove() | |
| 394 | hit.Parent.Humanoid:TakeDamage(88) | |
| 395 | hit.Parent.Humanoid.PlatformStand = true | |
| 396 | local Fl = Instance.new("BodyVelocity",hit.Parent.Torso)
| |
| 397 | Fl.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
| 398 | Fl.velocity = rleg.CFrame.lookVector*120 | |
| 399 | wait(0.1) | |
| 400 | Fl:remove() | |
| 401 | end | |
| 402 | end) | |
| 403 | for i = 1,20 do | |
| 404 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(10,5.5,-1)*CFrame.Angles(3.1,0,1),.3) | |
| 405 | larm.Weld.C0 = Lerp(larm.Weld.C0,CFrame.new(-10,2.5,-2) *CFrame.Angles(1.55,0,-0.3),.3) | |
| 406 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,9,2) *CFrame.Angles(1.55,0,0),.3) | |
| 407 | torso.Weld.C0 = Lerp(torso.Weld.C0,CFrame.new(0, -9, 0) *CFrame.Angles(-1.55,0,-0.5),.3) | |
| 408 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-3.6, -9.1, -2) * CFrame.Angles(1.55,0,0),.3) | |
| 409 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(3.6, -9.1, -2) * CFrame.Angles(1.33,0,0),.3) | |
| 410 | if Debounces.on == false then break end | |
| 411 | wait() | |
| 412 | end | |
| 413 | local SFXZ = Instance.new("Sound",torso)
| |
| 414 | SFXZ.SoundId = "rbxassetid://169259383" | |
| 415 | SFXZ.Volume = math.huge | |
| 416 | SFXZ.Pitch = 0.5 | |
| 417 | SFXZ.Looped = false | |
| 418 | wait(0.01) | |
| 419 | SFXZ:Play() | |
| 420 | for i = 1,20 do | |
| 421 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,12,-2.5)*CFrame.Angles(3.1,0,-1),.3) | |
| 422 | larm.Weld.C0 = Lerp(larm.Weld.C0,CFrame.new(-10,2.5,-2) *CFrame.Angles(1.55,0,-0.3),.3) | |
| 423 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,9,2) *CFrame.Angles(1.55,0,0),.3) | |
| 424 | torso.Weld.C0 = Lerp(torso.Weld.C0,CFrame.new(0, -9, 0) *CFrame.Angles(-1.55,0,0.5),.3) | |
| 425 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-3.6, -9.1, -2) * CFrame.Angles(1.55,0,0),.3) | |
| 426 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(3.6, -9.1, -2) * CFrame.Angles(1.33,0,0),.3) | |
| 427 | if Debounces.on == false then break end | |
| 428 | wait() | |
| 429 | end | |
| 430 | if Debounces.CanAttack == false then | |
| 431 | Debounces.CanAttack = true | |
| 432 | Debounces.on = false | |
| 433 | Debounces.NoIdl = false | |
| 434 | HitBox:remove() | |
| 435 | end | |
| 436 | end | |
| 437 | end | |
| 438 | function Hit2() | |
| 439 | if Debounces.CanAttack == true then | |
| 440 | Debounces.CanAttack = false | |
| 441 | Debounces.on = true | |
| 442 | Debounces.NoIdl = true | |
| 443 | local HitBox = Instance.new("Part",char)
| |
| 444 | HitBox.Size = Vector3.new(5,5,5) | |
| 445 | HitBox.CanCollide = false | |
| 446 | HitBox.Transparency = math.huge | |
| 447 | local HitBox2 = Instance.new("Weld",HitBox)
| |
| 448 | HitBox2.Part0 = larm | |
| 449 | HitBox2.Part1 = HitBox | |
| 450 | HitBox2.C0 = CFrame.new(0,-1.3,0) | |
| 451 | HitBox.Touched:connect(function(hit) | |
| 452 | if hit.Parent:FindFirstChild("Humanoid") and hit.Parent ~= nil then
| |
| 453 | local SFXZ = Instance.new("Sound",torso)
| |
| 454 | SFXZ.SoundId = "rbxassetid://743886825" | |
| 455 | SFXZ.Volume = math.huge | |
| 456 | SFXZ.Pitch = 0.5 | |
| 457 | SFXZ.Looped = false | |
| 458 | SFXZ:Play() | |
| 459 | HitBox:remove() | |
| 460 | hit.Parent.Humanoid:TakeDamage(88) | |
| 461 | hit.Parent.Humanoid.PlatformStand = true | |
| 462 | local Fl = Instance.new("BodyVelocity",hit.Parent.Torso)
| |
| 463 | Fl.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
| 464 | Fl.velocity = rleg.CFrame.lookVector*120 | |
| 465 | wait(0.1) | |
| 466 | Fl:remove() | |
| 467 | end | |
| 468 | end) | |
| 469 | for i = 1,20 do | |
| 470 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(10,5.5,-1)*CFrame.Angles(1.55,0,0.3),.3) | |
| 471 | larm.Weld.C0 = Lerp(larm.Weld.C0,CFrame.new(-10,2.5,-2) *CFrame.Angles(3.1,0,-1),.3) | |
| 472 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,9,2) *CFrame.Angles(1.55,0,0),.3) | |
| 473 | torso.Weld.C0 = Lerp(torso.Weld.C0,CFrame.new(0, -9, 0) *CFrame.Angles(-1.55,0,0.5),.3) | |
| 474 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-3.6, -9.1, -2) * CFrame.Angles(1.55,0,0),.3) | |
| 475 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(3.6, -9.1, -2) * CFrame.Angles(1.33,0,0),.3) | |
| 476 | if Debounces.on == false then break end | |
| 477 | wait() | |
| 478 | end | |
| 479 | local SFXZ = Instance.new("Sound",torso)
| |
| 480 | SFXZ.SoundId = "rbxassetid://169259383" | |
| 481 | SFXZ.Volume = math.huge | |
| 482 | SFXZ.Pitch = 0.5 | |
| 483 | SFXZ.Looped = false | |
| 484 | wait(0.01) | |
| 485 | SFXZ:Play() | |
| 486 | for i = 1,20 do | |
| 487 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(10,2.5,-2)*CFrame.Angles(1.55,0,0.3),.3) | |
| 488 | larm.Weld.C0 = Lerp(larm.Weld.C0,CFrame.new(-3,12,-2.5) *CFrame.Angles(3.1,0,1),.3) | |
| 489 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,9,2) *CFrame.Angles(1.55,0,0),.3) | |
| 490 | torso.Weld.C0 = Lerp(torso.Weld.C0,CFrame.new(0, -9, 0) *CFrame.Angles(-1.55,0,-0.5),.3) | |
| 491 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-3.6, -9.1, -2) * CFrame.Angles(1.55,0,0),.3) | |
| 492 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(3.6, -9.1, -2) * CFrame.Angles(1.33,0,0),.3) | |
| 493 | if Debounces.on == false then break end | |
| 494 | wait() | |
| 495 | end | |
| 496 | if Debounces.CanAttack == false then | |
| 497 | Debounces.CanAttack = true | |
| 498 | Debounces.on = false | |
| 499 | Debounces.NoIdl = false | |
| 500 | HitBox:remove() | |
| 501 | end | |
| 502 | end | |
| 503 | end | |
| 504 | function Grab() | |
| 505 | if Debounces.CanAttack == true then | |
| 506 | Debounces.CanAttack = false | |
| 507 | Debounces.on = true | |
| 508 | Debounces.NoIdl = true | |
| 509 | for i = 1,20 do | |
| 510 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(9,9,-1)*CFrame.Angles(2.8,0,0),.3) | |
| 511 | larm.Weld.C0 = Lerp(larm.Weld.C0,CFrame.new(-10,2.5,-2) *CFrame.Angles(1.55,0,-0.3),.3) | |
| 512 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,9,2) *CFrame.Angles(1.55,0,0),.3) | |
| 513 | torso.Weld.C0 = Lerp(torso.Weld.C0,CFrame.new(0, -9, -1) *CFrame.Angles(-1.55,0,0),.3) | |
| 514 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-3.6, -9.1, -2) * CFrame.Angles(1.55,0,0),.3) | |
| 515 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(3.6, -9.1, -2) * CFrame.Angles(1.22,0,0),.3) | |
| 516 | if Debounces.on == false then break end | |
| 517 | wait() | |
| 518 | end | |
| 519 | local HitBox = Instance.new("Part",char)
| |
| 520 | HitBox.Size = Vector3.new(5,5,5) | |
| 521 | HitBox.CanCollide = false | |
| 522 | HitBox.Transparency = math.huge | |
| 523 | local HitBox2 = Instance.new("Weld",HitBox)
| |
| 524 | HitBox2.Part0 = rarm | |
| 525 | HitBox2.Part1 = HitBox | |
| 526 | HitBox2.C0 = CFrame.new(0,-4.5,0) | |
| 527 | HitBox.Touched:connect(function(hit) | |
| 528 | if hit.Parent:FindFirstChild("Humanoid") and hit.Parent ~= nil then
| |
| 529 | if not DD then DD = true | |
| 530 | HitBox:remove() | |
| 531 | hit.Parent.Humanoid.PlatformStand = true | |
| 532 | local We = Instance.new("Weld",hit.Parent.Torso)
| |
| 533 | We.Part0 = rarm | |
| 534 | We.Part1 = hit.Parent.Torso | |
| 535 | We.C0 = CFrame.new(0,-7,0)*CFrame.Angles(-1.55,0,0) | |
| 536 | wait(1) | |
| 537 | for i = 1,20 do | |
| 538 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(8,9,-1)*CFrame.Angles(1.55,0,-0.5),.3) | |
| 539 | larm.Weld.C0 = Lerp(larm.Weld.C0,CFrame.new(-10,2.5,-2) *CFrame.Angles(1.55,0,-0.3),.3) | |
| 540 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,9,2) *CFrame.Angles(1.55,0,0),.3) | |
| 541 | torso.Weld.C0 = Lerp(torso.Weld.C0,CFrame.new(0, -9, -1) *CFrame.Angles(-1.55,0,0),.3) | |
| 542 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-3.6, -9.1, -2) * CFrame.Angles(1.55,0,0),.3) | |
| 543 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(3.6, -9.1, -2) * CFrame.Angles(1.22,0,0),.3) | |
| 544 | if Debounces.on == false then break end | |
| 545 | wait() | |
| 546 | end | |
| 547 | for i = 1,4 do | |
| 548 | local SS = Instance.new("Sound",hit.Parent.Torso)
| |
| 549 | SS.SoundId = "rbxassetid://134854740" | |
| 550 | SS.Volume = math.huge | |
| 551 | SS.Looped = false | |
| 552 | SS.Pitch = 0.9 | |
| 553 | SS:play() | |
| 554 | local partasdeff = Instance.new("ParticleEmitter",hit.Parent.Torso)
| |
| 555 | partasdeff.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(1, 0, 0)) | |
| 556 | partasdeff.LightEmission = .1 | |
| 557 | partasdeff.Size = NumberSequence.new(0.2) | |
| 558 | partasdeff.Texture = "http://www.roblox.com/asset/?ID=380529823" | |
| 559 | aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)})
| |
| 560 | bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
| |
| 561 | partasdeff.Transparency = bbb | |
| 562 | partasdeff.Size = aaa | |
| 563 | partasdeff.ZOffset = .9 | |
| 564 | partasdeff.Acceleration = Vector3.new(0, -5, 0) | |
| 565 | partasdeff.LockedToPart = false | |
| 566 | partasdeff.EmissionDirection = "Top" | |
| 567 | partasdeff.Lifetime = NumberRange.new(1, 2) | |
| 568 | partasdeff.Rate = 1000 | |
| 569 | partasdeff.Rotation = NumberRange.new(-100, 100) | |
| 570 | partasdeff.RotSpeed = NumberRange.new(-100, 100) | |
| 571 | partasdeff.Speed = NumberRange.new(10) | |
| 572 | partasdeff.VelocitySpread = 300 | |
| 573 | partasdeff.Enabled = true | |
| 574 | wait(0.005) | |
| 575 | local Ring = Instance.new("Part",hit.Parent.Torso)
| |
| 576 | Ring.BrickColor = BrickColor.new("Camo")
| |
| 577 | Ring.CanCollide = false | |
| 578 | Ring.Anchored = true | |
| 579 | Ring.CFrame = hit.Parent.Torso.CFrame*CFrame.Angles(0,0,0)*CFrame.new(0,0,0) | |
| 580 | local Ring2 = Instance.new("SpecialMesh",Ring)
| |
| 581 | Ring2.MeshId = "rbxassetid://3270017" | |
| 582 | Ring2.Scale = Vector3.new(1,1,1) | |
| 583 | coroutine.resume(coroutine.create(function() | |
| 584 | for i = 1,130 do | |
| 585 | Ring2.Scale = Ring2.Scale + Vector3.new(2,2,2) | |
| 586 | Ring.Transparency = Ring.Transparency + 0.009 | |
| 587 | game:GetService("RunService").RenderStepped:wait()
| |
| 588 | end | |
| 589 | wait(0.5) | |
| 590 | Ring:remove() | |
| 591 | end)) | |
| 592 | for i = 1,20 do | |
| 593 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(8,9,-3)*CFrame.Angles(1.55,0,-0.1),.3) | |
| 594 | larm.Weld.C0 = Lerp(larm.Weld.C0,CFrame.new(-10,2.5,-2) *CFrame.Angles(1.55,0,-0.3),.3) | |
| 595 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,9,2) *CFrame.Angles(1.55,0,0),.3) | |
| 596 | torso.Weld.C0 = Lerp(torso.Weld.C0,CFrame.new(0, -9, -1) *CFrame.Angles(-1.55,0,0),.3) | |
| 597 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-3.6, -9.1, -2) * CFrame.Angles(1.55,0,0),.3) | |
| 598 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(3.6, -9.1, -2) * CFrame.Angles(1.22,0,0),.3) | |
| 599 | if Debounces.on == false then break end | |
| 600 | wait() | |
| 601 | end | |
| 602 | for i = 1,20 do | |
| 603 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(8,9,0)*CFrame.Angles(1.55,0,-0.1),.3) | |
| 604 | larm.Weld.C0 = Lerp(larm.Weld.C0,CFrame.new(-10,2.5,-2) *CFrame.Angles(1.55,0,-0.3),.3) | |
| 605 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,9,2) *CFrame.Angles(1.55,0,0),.3) | |
| 606 | torso.Weld.C0 = Lerp(torso.Weld.C0,CFrame.new(0, -9, -1) *CFrame.Angles(-1.55,0,0),.3) | |
| 607 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-3.6, -9.1, -2) * CFrame.Angles(1.55,0,0),.3) | |
| 608 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(3.6, -9.1, -2) * CFrame.Angles(1.22,0,0),.3) | |
| 609 | if Debounces.on == false then break end | |
| 610 | wait() | |
| 611 | end | |
| 612 | partasdeff.Enabled = false | |
| 613 | end | |
| 614 | hit.Parent:BreakJoints() | |
| 615 | We:remove() | |
| 616 | if Debounces.CanAttack == false then | |
| 617 | Debounces.CanAttack = true | |
| 618 | Debounces.on = false | |
| 619 | Debounces.NoIdl = false | |
| 620 | end | |
| 621 | wait(1) | |
| 622 | DD = false | |
| 623 | end | |
| 624 | end | |
| 625 | end) | |
| 626 | wait(8) | |
| 627 | if Debounces.CanAttack == false then | |
| 628 | Debounces.CanAttack = true | |
| 629 | Debounces.on = false | |
| 630 | Debounces.NoIdl = false | |
| 631 | HitBox:remove() | |
| 632 | end | |
| 633 | end | |
| 634 | end | |
| 635 | ---------------------------------------------------- | |
| 636 | mouse.Button1Down:connect(function(key) | |
| 637 | if attack == false and attacktype == 1 then | |
| 638 | Hit() | |
| 639 | attacktype = 2 | |
| 640 | elseif attack == false and attacktype == 2 then | |
| 641 | Hit2() | |
| 642 | attacktype = 1 | |
| 643 | end | |
| 644 | end) | |
| 645 | mouse.KeyDown:connect(function(key) | |
| 646 | if key == "e" then | |
| 647 | Grab() | |
| 648 | end | |
| 649 | end) | |
| 650 | ---------------------------------------------------- | |
| 651 | local animpose = "Idle" | |
| 652 | local lastanimpose = "Idle" | |
| 653 | local sine = 0 | |
| 654 | local change = 1 | |
| 655 | local val = 0 | |
| 656 | local ffing = false | |
| 657 | ---------------------------------------------------- | |
| 658 | local x = Instance.new("Sound", char.Torso)
| |
| 659 | x.SoundId = "http://www.roblox.com/asset/?id=273962540" | |
| 660 | x.Looped = true | |
| 661 | x.Volume = 1 | |
| 662 | x.Pitch = 1 | |
| 663 | local footsteps = false | |
| 664 | ------------------------------- | |
| 665 | game:GetService("RunService").RenderStepped:connect(function()
| |
| 666 | rarm.BrickColor = ASD | |
| 667 | larm.BrickColor = ASD | |
| 668 | rleg.BrickColor = ASD | |
| 669 | lleg.BrickColor = ASD | |
| 670 | hed.BrickColor = ASD | |
| 671 | torso.BrickColor = ASD | |
| 672 | --[[if char.Humanoid.Jump == true then | |
| 673 | jump = true | |
| 674 | else | |
| 675 | jump = false | |
| 676 | end]] | |
| 677 | char.Humanoid.FreeFalling:connect(function(f) | |
| 678 | if f then | |
| 679 | ffing = true | |
| 680 | else | |
| 681 | ffing = false | |
| 682 | end | |
| 683 | end) | |
| 684 | sine = sine + change | |
| 685 | if jumpn == true then | |
| 686 | animpose = "Jumping" | |
| 687 | elseif ffing == true then | |
| 688 | animpose = "Freefalling" | |
| 689 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then | |
| 690 | animpose = "Idle" | |
| 691 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then | |
| 692 | animpose = "Walking" | |
| 693 | end | |
| 694 | if animpose ~= lastanimpose then | |
| 695 | sine = 0 | |
| 696 | if Debounces.NoIdl == false then | |
| 697 | if animpose == "Idle" then | |
| 698 | for i = 1, 2 do | |
| 699 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(10,2.5,-2)*CFrame.Angles(1.55,0,0.3), 0.2) | |
| 700 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-10,2.5,-2)*CFrame.Angles(1.55,0,0.3), 0.2) | |
| 701 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,9,2)*CFrame.Angles(1.55,0,0), 0.2) | |
| 702 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -9, 0) * CFrame.Angles(-1.55,0,0), 0.2) | |
| 703 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-3.6, -9.1, -2) * CFrame.Angles(1.55, 0, math.rad(-10)), 0.2) | |
| 704 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(3.6, -9.1, -2) * CFrame.Angles(1.55, 0, math.rad(10)), 0.2) | |
| 705 | end | |
| 706 | elseif animpose == "Walking" then | |
| 707 | for i = 1, 2 do | |
| 708 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(10,2.5,-2)*CFrame.Angles(1.55,0,0.3), 0.2) | |
| 709 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-10,2.5,-2)*CFrame.Angles(1.55,0,-0.3), 0.2) | |
| 710 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,9,2)*CFrame.Angles(1.55,0,0),0.2) | |
| 711 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -9, 0) * CFrame.Angles(-1.55, 0,0),0.2) | |
| 712 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-3.6, -9.1, -2) * CFrame.Angles(1.55, 0, 0), .4) | |
| 713 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(3.6, -9.1, -2) * CFrame.Angles(1.55, 0, 0), .4) | |
| 714 | end | |
| 715 | wait() | |
| 716 | end | |
| 717 | else | |
| 718 | end | |
| 719 | end | |
| 720 | lastanimpose = animpose | |
| 721 | if Debounces.NoIdl == false then | |
| 722 | if animpose == "Idle" then | |
| 723 | if stanceToggle == "Normal" then | |
| 724 | change = 0.5 | |
| 725 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(10,2.5,-2)*CFrame.Angles(1.55,0,0.3)*CFrame.new(0,0-.1*math.sin(tick()*2),0-.1*math.sin(tick()*2)),.2) | |
| 726 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-10,2.5,-2)*CFrame.Angles(1.55,0,-0.3)*CFrame.new(0,0-.1*math.sin(tick()*2),0-.1*math.sin(tick()*2)),.2) | |
| 727 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,9,2)*CFrame.Angles(1.55,0,0)*CFrame.Angles(0-.1*math.sin(tick()*2),0,0),.3) | |
| 728 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -9, 0)*CFrame.Angles(-1.55,0,0)*CFrame.new(0,0-.15*math.sin(tick()*2),0),1) | |
| 729 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-3.6, -9.1, -2) * CFrame.Angles(1.55,0,-0.1), 0.2) | |
| 730 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(3.6, -9.1, -2) * CFrame.Angles(1.2,0,0.1)*CFrame.new(0,0-.1*math.sin(tick()*2),0)*CFrame.Angles(0-.1*math.sin(tick()*2),0,0), 0.2) | |
| 731 | elseif stanceToggle == "Sitting" then | |
| 732 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, .9, 0) * CFrame.Angles(math.rad(100-1*math.cos(sine/14)), math.rad(0), math.rad(20)), 0.2) | |
| 733 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2, .9, -1)*CFrame.Angles(math.rad(78+1*math.cos(sine/14)), math.rad(0), math.rad(50)), 0.2) | |
| 734 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, -.3) * CFrame.Angles(math.rad(-14+1*math.cos(sine/14)), math.rad(0), math.rad(0)),0.2) | |
| 735 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -3, 0) * CFrame.Angles(math.rad(-10+1*math.cos(sine/14)), 0, math.rad(0)), 0.2) | |
| 736 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -1, -2) * CFrame.Angles(math.rad(-10-1*math.cos(sine/14)), 0, 0), 0.2) | |
| 737 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3, .6) * CFrame.Angles(math.rad(-50-1*math.cos(sine/14)), 0, 0), 0.2) | |
| 738 | end | |
| 739 | elseif animpose == "Walking" then | |
| 740 | if stanceToggle == "Normal" then | |
| 741 | change = 1 | |
| 742 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(10,2.5,-2)*CFrame.Angles(1.55,0,0.3)*CFrame.Angles(0-.8*math.sin(tick()*9),0,0),.3) | |
| 743 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-10,2.5,-2)*CFrame.Angles(1.55,0,-0.3)*CFrame.Angles(0+.8*math.sin(tick()*9),0,0),.3) | |
| 744 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,9,2)*CFrame.Angles(1.55,0,0)*CFrame.Angles(0-.1*math.sin(tick()*9),0,0),.3) | |
| 745 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -9, 0)*CFrame.Angles(-1.55,0,0)*CFrame.new(0,0,0-.2*math.sin(tick()*9)),1) | |
| 746 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-3.6, -9.1, -2) * CFrame.Angles(1.55,0,-0.1)*CFrame.Angles(0-.8*math.sin(tick()*9),0,0), 0.2) | |
| 747 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(3.6, -9.1, -2) * CFrame.Angles(1.2,0,0.1)*CFrame.Angles(0+.8*math.sin(tick()*9),0,0),0.2) | |
| 748 | end | |
| 749 | end | |
| 750 | end | |
| 751 | end) |