SHOW:
|
|
- or go back to the newest paste.
| 1 | --void Script bbuilder fe script converter V2 | |
| 2 | ||
| 3 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
| |
| 4 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
| 5 | local RealPlayer = Player | |
| 6 | do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
| |
| 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 hum = char.Humanoid | |
| 18 | local cam = game.Workspace.CurrentCamera | |
| 19 | local root = char.HumanoidRootPart | |
| 20 | local deb = false | |
| 21 | local shot = 0 | |
| 22 | local debris=game:service"Debris" | |
| 23 | local l = game:GetService("Lighting")
| |
| 24 | local rs = game:GetService("RunService").RenderStepped
| |
| 25 | ptz = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1}
| |
| 26 | math.randomseed(os.time()) | |
| 27 | ---------------------------------------------------- | |
| 28 | Debounces = {
| |
| 29 | CanAttack = true; | |
| 30 | NoIdl = false; | |
| 31 | Slashing = false; | |
| 32 | Slashed = false; | |
| 33 | RPunch = false; | |
| 34 | RPunched = false; | |
| 35 | LPunch = false; | |
| 36 | LPunched = false; | |
| 37 | } | |
| 38 | local Touche = {char.Name, }
| |
| 39 | ---------------------------------------------------- | |
| 40 | hed.face.Texture = "rbxassetid://227969918" | |
| 41 | char["Body Colors"].HeadColor = BrickColor.new("Pastel brown")
| |
| 42 | char["Body Colors"].TorsoColor = BrickColor.new("Pastel brown")
| |
| 43 | char["Body Colors"].LeftArmColor = BrickColor.new("Pastel brown")
| |
| 44 | char["Body Colors"].RightArmColor = BrickColor.new("Pastel brown")
| |
| 45 | char["Body Colors"].LeftLegColor = BrickColor.new("Pastel brown")
| |
| 46 | char["Body Colors"].RightLegColor = BrickColor.new("Pastel brown")
| |
| 47 | ---------------------------------------------------- | |
| 48 | ypcall(function() | |
| 49 | char.Shirt:Destroy() | |
| 50 | char.Pants:Destroy() | |
| 51 | shirt = Instance.new("Shirt", char)
| |
| 52 | shirt.Name = "Shirt" | |
| 53 | pants = Instance.new("Pants", char)
| |
| 54 | pants.Name = "Pants" | |
| 55 | char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=0" | |
| 56 | char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=0" | |
| 57 | end) | |
| 58 | ---------------------------------------------------- | |
| 59 | --------------nico | |
| 60 | local fartids={251309043,251309043}
| |
| 61 | local timer=false | |
| 62 | local debris=game:GetService("Debris")
| |
| 63 | local char=game.Players.LocalPlayer.Character | |
| 64 | for i = 1,3,2 do | |
| 65 | local asdf=Instance.new("Part",char)
| |
| 66 | asdf.Shape="Ball" | |
| 67 | asdf.Locked=true | |
| 68 | asdf.FormFactor="Custom" | |
| 69 | asdf.Material="SmoothPlastic" | |
| 70 | asdf.BrickColor=BrickColor.new(1030) | |
| 71 | asdf.Size=Vector3.new(.4,.4,.4) | |
| 72 | local weld=Instance.new("Weld",char)
| |
| 73 | weld.Part0=char.Torso | |
| 74 | weld.Part1=asdf | |
| 75 | weld.C0=CFrame.new((i-2)/2.5,-.9,.4) | |
| 76 | end | |
| 77 | function crap() | |
| 78 | if timer==false then | |
| 79 | timer=true | |
| 80 | local char=game.Players.LocalPlayer.Character | |
| 81 | local crap=Instance.new("Part",Workspace)
| |
| 82 | crap.FormFactor="Custom" | |
| 83 | crap.BrickColor=BrickColor.new(25) | |
| 84 | crap.Material="Grass" | |
| 85 | crap.Size=Vector3.new(1.2,0.4,0.4) | |
| 86 | local snd=Instance.new("Sound",char)
| |
| 87 | snd.SoundId="rbxassetid://" .. tostring(fartids[math.random(1,#fartids)]) | |
| 88 | snd.Volume=2 | |
| 89 | snd:Play() | |
| 90 | debris:AddItem(snd,snd.TimeLength) | |
| 91 | local smk=Instance.new("Smoke",crap)
| |
| 92 | smk.Color=BrickColor.new(25).Color | |
| 93 | debris:AddItem(smk,2.5) | |
| 94 | for i = 0.15,1.3,.02 do | |
| 95 | local weld=Instance.new("Weld",crap)
| |
| 96 | weld.Part0=char.Torso | |
| 97 | weld.Part1=crap | |
| 98 | weld.C0=CFrame.new(0,-.9,i)*CFrame.Angles(0,math.rad(90),0) | |
| 99 | wait() | |
| 100 | end | |
| 101 | local crapCFrame=crap.CFrame | |
| 102 | crap:Destroy() | |
| 103 | ||
| 104 | for i = 0,1.2,0.4 do | |
| 105 | local newCrap=Instance.new("Part",Workspace)
| |
| 106 | newCrap.FormFactor="Custom" | |
| 107 | newCrap.BrickColor=BrickColor.new(25) | |
| 108 | newCrap.Material="Grass" | |
| 109 | newCrap.Size=Vector3.new(.4,.4,.4) | |
| 110 | newCrap.CFrame=crapCFrame*CFrame.new(i-1,0,0) | |
| 111 | end | |
| 112 | timer=false | |
| 113 | end | |
| 114 | end | |
| 115 | game.Players.LocalPlayer:GetMouse().KeyDown:connect(function(key) | |
| 116 | if string.lower(key)=="x" then | |
| 117 | crap() | |
| 118 | end | |
| 119 | end) | |
| 120 | ||
| 121 | do --CFrame lerp | |
| 122 | local function QuaternionFromCFrame(cf) | |
| 123 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
| 124 | local trace = m00 + m11 + m22 | |
| 125 | if trace > 0 then | |
| 126 | local s = math.sqrt(1 + trace) | |
| 127 | local recip = 0.5/s | |
| 128 | return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 | |
| 129 | else | |
| 130 | local i = 0 | |
| 131 | if m11 > m00 then | |
| 132 | i = 1 | |
| 133 | end | |
| 134 | if m22 > (i == 0 and m00 or m11) then | |
| 135 | i = 2 | |
| 136 | end | |
| 137 | if i == 0 then | |
| 138 | local s = math.sqrt(m00-m11-m22+1) | |
| 139 | local recip = 0.5/s | |
| 140 | return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip | |
| 141 | elseif i == 1 then | |
| 142 | local s = math.sqrt(m11-m22-m00+1) | |
| 143 | local recip = 0.5/s | |
| 144 | return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip | |
| 145 | elseif i == 2 then | |
| 146 | local s = math.sqrt(m22-m00-m11+1) | |
| 147 | local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip | |
| 148 | end | |
| 149 | end | |
| 150 | end | |
| 151 | local function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
| 152 | local xs, ys, zs = x + x, y + y, z + z | |
| 153 | local wx, wy, wz = w*xs, w*ys, w*zs | |
| 154 | local xx = x*xs | |
| 155 | local xy = x*ys | |
| 156 | local xz = x*zs | |
| 157 | local yy = y*ys | |
| 158 | local yz = y*zs | |
| 159 | local zz = z*zs | |
| 160 | return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy)) | |
| 161 | end | |
| 162 | local function QuaternionSlerp(a, b, t) | |
| 163 | local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] | |
| 164 | local startInterp, finishInterp; | |
| 165 | if cosTheta >= 0.0001 then | |
| 166 | if (1 - cosTheta) > 0.0001 then | |
| 167 | local theta = math.acos(cosTheta) | |
| 168 | local invSinTheta = 1/math.sin(theta) | |
| 169 | startInterp = math.sin((1-t)*theta)*invSinTheta | |
| 170 | finishInterp = math.sin(t*theta)*invSinTheta | |
| 171 | else | |
| 172 | startInterp = 1-t | |
| 173 | finishInterp = t | |
| 174 | end | |
| 175 | else | |
| 176 | if (1+cosTheta) > 0.0001 then | |
| 177 | local theta = math.acos(-cosTheta) | |
| 178 | local invSinTheta = 1/math.sin(theta) | |
| 179 | startInterp = math.sin((t-1)*theta)*invSinTheta | |
| 180 | finishInterp = math.sin(t*theta)*invSinTheta | |
| 181 | else | |
| 182 | startInterp = t-1 | |
| 183 | finishInterp = t | |
| 184 | end | |
| 185 | end | |
| 186 | return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp | |
| 187 | end | |
| 188 | function clerp(a,b,t) | |
| 189 | local qa = {QuaternionFromCFrame(a)}
| |
| 190 | local qb = {QuaternionFromCFrame(b)}
| |
| 191 | local ax, ay, az = a.x, a.y, a.z | |
| 192 | local bx, by, bz = b.x, b.y, b.z | |
| 193 | local _t = 1-t | |
| 194 | return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) | |
| 195 | end | |
| 196 | ||
| 197 | end | |
| 198 | do --the animating | |
| 199 | plr = game:service'Players'.LocalPlayer | |
| 200 | char = plr.Character | |
| 201 | mouse = plr:GetMouse() | |
| 202 | humanoid = char:findFirstChild("Humanoid")
| |
| 203 | torso = char:findFirstChild("Torso")
| |
| 204 | head = char.Head | |
| 205 | ra = char:findFirstChild("Right Arm")
| |
| 206 | la = char:findFirstChild("Left Arm")
| |
| 207 | rl = char:findFirstChild("Right Leg")
| |
| 208 | ll = char:findFirstChild("Left Leg")
| |
| 209 | rs = torso:findFirstChild("Right Shoulder")
| |
| 210 | ls = torso:findFirstChild("Left Shoulder")
| |
| 211 | rh = torso:findFirstChild("Right Hip")
| |
| 212 | lh = torso:findFirstChild("Left Hip")
| |
| 213 | neck = torso:findFirstChild("Neck")
| |
| 214 | rj = char:findFirstChild("HumanoidRootPart"):findFirstChild("RootJoint")
| |
| 215 | anim = char:findFirstChild("Animate")
| |
| 216 | rootpart = char:findFirstChild("HumanoidRootPart")
| |
| 217 | camera = workspace.CurrentCamera | |
| 218 | if anim then | |
| 219 | anim:Destroy() | |
| 220 | end | |
| 221 | ||
| 222 | ||
| 223 | local rm = Instance.new("Motor", torso)
| |
| 224 | rm.C0 = CFrame.new(1.5, 0.5, 0) | |
| 225 | rm.C1 = CFrame.new(0, 0.5, 0) | |
| 226 | rm.Part0 = torso | |
| 227 | rm.Part1 = ra | |
| 228 | local lm = Instance.new("Motor", torso)
| |
| 229 | lm.C0 = CFrame.new(-1.5, 0.5, 0) | |
| 230 | lm.C1 = CFrame.new(0, 0.5, 0) | |
| 231 | lm.Part0 = torso | |
| 232 | lm.Part1 = la | |
| 233 | ||
| 234 | local rlegm = Instance.new("Motor", torso)
| |
| 235 | rlegm.C0 = CFrame.new(0.5, -1, 0) | |
| 236 | rlegm.C1 = CFrame.new(0, 1, 0) | |
| 237 | rlegm.Part0 = torso | |
| 238 | rlegm.Part1 = rl | |
| 239 | local llegm = Instance.new("Motor", torso)
| |
| 240 | llegm.C0 = CFrame.new(-0.5, -1, 0) | |
| 241 | llegm.C1 = CFrame.new(0, 1, 0) | |
| 242 | llegm.Part0 = torso | |
| 243 | llegm.Part1 = ll | |
| 244 | ||
| 245 | neck.C0 = CFrame.new(0, 1, 0) | |
| 246 | neck.C1 = CFrame.new(0, -0.5, 0) | |
| 247 | ||
| 248 | ||
| 249 | rj.C0 = CFrame.new() | |
| 250 | rj.C1 = CFrame.new() | |
| 251 | ||
| 252 | ||
| 253 | local sound = Instance.new("Sound", head)
| |
| 254 | sound.SoundId = "http://www.roblox.com/asset/?id=130797915" | |
| 255 | sound.Volume = 0.8 | |
| 256 | sound.Looped = true | |
| 257 | ||
| 258 | local speed = 0.3 | |
| 259 | local angle = 0 | |
| 260 | local sitting = false | |
| 261 | local humanwalk = false | |
| 262 | local anglespeed = 1 | |
| 263 | rsc0 = rm.C0 | |
| 264 | lsc0 = lm.C0 | |
| 265 | llc0 = llegm.C0 | |
| 266 | rlc0 = rlegm.C0 | |
| 267 | neckc0 = neck.C0 | |
| 268 | ||
| 269 | - | local controllerService = game:GetService("ControllerService")
|
| 269 | + | |
| 270 | - | local controller = controllerService:GetChildren()[1] |
| 270 | + | |
| 271 | ||
| 272 | - | controller.Parent = nil |
| 272 | + | |
| 273 | angle = (angle % 100) + anglespeed/10 | |
| 274 | mvmnt = math.pi * math.sin(math.pi*2/100*(angle*10)) | |
| 275 | local rscf = rsc0 | |
| 276 | local lscf = lsc0 | |
| 277 | local rlcf = rlc0 | |
| 278 | local llcf = llc0 | |
| 279 | local rjcf = CFrame.new() | |
| 280 | local ncf = neckc0 | |
| 281 | local rayz = Ray.new(rootpart.Position, Vector3.new(0, -6, 0)) | |
| 282 | local hitz, enz = workspace:findPartOnRay(rayz, char) | |
| 283 | if not hitz then | |
| 284 | if sound.IsPlaying then | |
| 285 | sound:stop() | |
| 286 | end | |
| 287 | ||
| 288 | if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude > 2 then | |
| 289 | ||
| 290 | ncf = neckc0 * CFrame.Angles(math.pi/5, 0, 0) | |
| 291 | rjcf = CFrame.new() * CFrame.Angles(-math.pi/5, math.sin(angle)*0.05, 0) | |
| 292 | rscf = rsc0 * CFrame.Angles(math.pi/1.7+math.sin(angle)*0.1, 0, 0) | |
| 293 | lscf = lsc0 * CFrame.Angles(math.pi/1.7+math.sin(-angle)*0.1, 0, 0) | |
| 294 | rlcf = rlc0 * CFrame.Angles(-math.pi/10+math.sin(-angle)*0.3, 0, 0) | |
| 295 | llcf = llc0 * CFrame.Angles(-math.pi/10+math.sin(angle)*0.3, 0, 0) | |
| 296 | ||
| 297 | else | |
| 298 | ||
| 299 | ncf = neckc0 * CFrame.Angles(math.pi/14, 0, 0) | |
| 300 | rjcf = CFrame.new() * CFrame.Angles(-math.pi/18, math.sin(angle)*0.05, 0) | |
| 301 | rscf = rsc0 * CFrame.Angles(-math.pi/10+math.sin(angle)*0.2, 0, 0) | |
| 302 | lscf = lsc0 * CFrame.Angles(-math.pi/10+math.sin(-angle)*0.2, 0, 0) | |
| 303 | rlcf = rlc0 * CFrame.new(0, 0.7, -0.5) CFrame.Angles(-math.pi/14, 0, 0) | |
| 304 | llcf = llc0 * CFrame.Angles(-math.pi/20, 0, 0) | |
| 305 | ||
| 306 | end | |
| 307 | elseif humanoid.Sit then | |
| 308 | if sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=150794704" then | |
| 309 | anglespeed = 6 | |
| 310 | ncf = neckc0 * CFrame.Angles(math.pi/5-math.sin(angle)*0.1, 0, 0) | |
| 311 | rjcf = CFrame.new(0, -0.8, 0) * CFrame.Angles(-math.pi/5, 0, 0) | |
| 312 | rscf = rsc0 * CFrame.new(-.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, -math.rad(15)) | |
| 313 | lscf = lsc0 * CFrame.new(.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, math.rad(15)) | |
| 314 | rlcf = rlc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, math.rad(20)) | |
| 315 | llcf = llc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, -math.rad(20)) | |
| 316 | elseif sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=135570347" then | |
| 317 | anglespeed = 4 | |
| 318 | ncf = neckc0 * CFrame.Angles(math.pi/5-math.abs(math.sin(angle))*0.3, 0, 0) | |
| 319 | rjcf = CFrame.new(0, -0.8, 0) * CFrame.Angles(-math.pi/5, 0, 0) | |
| 320 | rscf = rsc0 * CFrame.new(-.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, -math.rad(15)) | |
| 321 | lscf = lsc0 * CFrame.new(.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, math.rad(15)) | |
| 322 | rlcf = rlc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, math.rad(20)) | |
| 323 | llcf = llc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, -math.rad(20)) | |
| 324 | elseif sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=149713968" then | |
| 325 | anglespeed = 2 | |
| 326 | ncf = neckc0 * CFrame.Angles(math.pi/5, 0, math.sin(angle)*0.08) | |
| 327 | rjcf = CFrame.new(0, -0.8, 0) * CFrame.Angles(-math.pi/5, math.sin(angle)*0.01, 0) | |
| 328 | rscf = rsc0 * CFrame.new(-.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, -math.rad(15)) | |
| 329 | lscf = lsc0 * CFrame.new(.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, math.rad(15)) | |
| 330 | rlcf = rlc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, math.rad(20)) | |
| 331 | llcf = llc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, -math.rad(20)) | |
| 332 | else | |
| 333 | anglespeed = 1/2 | |
| 334 | ncf = neckc0 * CFrame.Angles(math.pi/5, 0, math.sin(angle)*0.08) | |
| 335 | rjcf = CFrame.new(0, -0.8, 0) * CFrame.Angles(-math.pi/5, math.sin(angle)*0.01, 0) | |
| 336 | rscf = rsc0 * CFrame.new(-.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, -math.rad(15)) | |
| 337 | lscf = lsc0 * CFrame.new(.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, math.rad(15)) | |
| 338 | rlcf = rlc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, math.rad(20)) | |
| 339 | llcf = llc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, -math.rad(20)) | |
| 340 | end | |
| 341 | elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude < 2 then | |
| 342 | if sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=130797915" then | |
| 343 | anglespeed = 6 | |
| 344 | ncf = neckc0 * CFrame.Angles(math.pi/10-math.sin(angle)*0.07, 0, 0) | |
| 345 | rjcf = CFrame.new(0, 0, 0) * CFrame.Angles(-math.pi/10, math.sin(angle)*0.001, 0) | |
| 346 | rscf = rsc0 * CFrame.Angles(math.pi/1+math.sin(angle)*0.5, 0, 0) | |
| 347 | lscf = lsc0 * CFrame.Angles(math.pi/1+math.sin(angle)*0.5, 0, 0) | |
| 348 | rlcf = rlc0 * CFrame.Angles(math.pi/10, math.sin(angle)*0.08, math.rad(6.5)) | |
| 349 | llcf = llc0 * CFrame.Angles(math.pi/10, -math.sin(angle)*0.08, -math.rad(6.5)) | |
| 350 | elseif sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=149713968" then | |
| 351 | anglespeed = 2 | |
| 352 | ncf = neckc0 * CFrame.Angles(math.pi/10-math.abs(math.sin(angle))*0.3, 0, 0) | |
| 353 | rjcf = CFrame.new(0, 0, 0) * CFrame.Angles(-math.pi/20, math.sin(angle)*0.001, 0) | |
| 354 | rscf = rsc0 * CFrame.Angles(math.pi/2+math.abs(math.sin(angle)*1), 0, 0) | |
| 355 | lscf = lsc0 * CFrame.Angles(math.pi/2+math.abs(math.sin(angle)*1), 0, 0) | |
| 356 | rlcf = rlc0 * CFrame.Angles(math.pi/20, math.sin(angle)*0.08, math.rad(2.5)) | |
| 357 | llcf = llc0 * CFrame.Angles(math.pi/20, -math.sin(angle)*0.08, -math.rad(2.5)) | |
| 358 | elseif sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=130802245" then | |
| 359 | anglespeed = 3 | |
| 360 | ncf = neckc0 * CFrame.Angles(math.sin(angle)*0.07, math.rad(30), 0) | |
| 361 | rjcf = CFrame.new(0, 0, 0) * CFrame.Angles(0, math.sin(angle)*0.001, 0) | |
| 362 | rscf = rsc0 * CFrame.Angles(math.sin(angle)*0.05, 0, 0) | |
| 363 | lscf = lsc0 * CFrame.Angles(math.sin(-angle)*0.05, 0, 0) | |
| 364 | rlcf = rlc0 * CFrame.new(0, -0.1 + math.abs(mvmnt)*0.1, -0.1) * CFrame.Angles(0, math.rad(5), math.rad(5)) | |
| 365 | llcf = llc0 * CFrame.Angles(0, math.rad(2.5), math.rad(1)) | |
| 366 | else | |
| 367 | if humanwalk then | |
| 368 | anglespeed = 1/4 | |
| 369 | ncf = neckc0 * CFrame.Angles(-math.sin(angle)*0.07, 0, 0) | |
| 370 | rjcf = CFrame.new(0, 0, 0) * CFrame.Angles(0, math.sin(angle)*0.001, 0) | |
| 371 | rscf = rsc0 * CFrame.Angles(math.sin(angle)*0.1, 0, 0) | |
| 372 | lscf = lsc0 * CFrame.Angles(math.sin(-angle)*0.1, 0, 0) | |
| 373 | rlcf = rlc0 * CFrame.Angles(0, math.sin(angle)*0.08, math.rad(2.5)) | |
| 374 | llcf = llc0 * CFrame.Angles(0, -math.sin(angle)*0.08, -math.rad(2.5)) | |
| 375 | else | |
| 376 | anglespeed = 1/2 | |
| 377 | ncf = neckc0 * CFrame.Angles(math.pi/5, 0, math.sin(angle)*0.08) | |
| 378 | rjcf = CFrame.new(0, -2, 0) * CFrame.Angles(-math.pi/5, math.sin(angle)*0.01, 0) | |
| 379 | rscf = rsc0 * CFrame.new(-.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, -math.rad(15)) | |
| 380 | lscf = lsc0 * CFrame.new(.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, math.rad(15)) | |
| 381 | rlcf = rlc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, math.rad(20)) | |
| 382 | llcf = llc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, -math.rad(20)) | |
| 383 | end | |
| 384 | end | |
| 385 | elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude < 20 then | |
| 386 | if sound.IsPlaying then | |
| 387 | sound:stop() | |
| 388 | end | |
| 389 | if humanwalk then | |
| 390 | anglespeed = 4 | |
| 391 | ncf = neckc0 * CFrame.Angles(math.pi/24, mvmnt*.02, 0) | |
| 392 | rjcf = CFrame.new(0, math.abs(mvmnt)*0.05, 0) * CFrame.Angles(-math.pi/24, -mvmnt*.02, 0) | |
| 393 | rscf = rsc0 * CFrame.Angles(math.sin(angle)*1.25, 0, -math.abs(mvmnt)*0.02) | |
| 394 | lscf = lsc0 * CFrame.Angles(math.sin(-angle)*1.25, 0, math.abs(mvmnt)*0.02) | |
| 395 | rlcf = rlc0 * CFrame.Angles(math.sin(-angle)*1, 0, math.rad(.5)) | |
| 396 | llcf = llc0 * CFrame.Angles(math.sin(angle)*1, 0, -math.rad(.5)) | |
| 397 | else | |
| 398 | anglespeed = 4 | |
| 399 | ncf = neckc0 * CFrame.new(0, 0, .2) * CFrame.Angles(math.pi/1.9, 0, 0) | |
| 400 | rjcf = CFrame.new(0, -1.5+math.abs(mvmnt)*0.05, 0) * CFrame.Angles(-math.pi/1.9, math.sin(mvmnt/2)*0.05, 0) | |
| 401 | rscf = rsc0 * CFrame.new(-.45, 0.2, -.4+math.abs(mvmnt)*0.125) * CFrame.Angles(math.pi/2+math.sin(angle)*0.7, 0, math.rad(5)) | |
| 402 | lscf = lsc0 * CFrame.new(.45, 0.2, .1-math.abs(mvmnt)*0.125) * CFrame.Angles(math.pi/2+math.sin(-angle)*0.7, 0, -math.rad(5)) | |
| 403 | rlcf = rlc0 * CFrame.new(0, 0, -.3+math.abs(mvmnt)*0.125) * CFrame.Angles(math.pi/2.5+math.sin(-angle)*0.6, 0, math.abs(mvmnt)*0.025) | |
| 404 | llcf = llc0 * CFrame.new(0, 0, .3-math.abs(mvmnt)*0.125) * CFrame.Angles(math.pi/2.5+math.sin(angle)*.6, 0, -math.abs(mvmnt)*0.025) | |
| 405 | end | |
| 406 | elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 20 then | |
| 407 | if sound.IsPlaying then | |
| 408 | sound:stop() | |
| 409 | end | |
| 410 | if humanwalk then | |
| 411 | anglespeed = 5 | |
| 412 | ncf = neckc0 * CFrame.Angles(math.pi/20, math.sin(angle)*.04, 0) | |
| 413 | rjcf = CFrame.new(0, -.4 + math.abs(mvmnt)*0.25, 0) * CFrame.Angles(-math.pi/20, -math.sin(angle)*.08, 0) | |
| 414 | rscf = rsc0 * CFrame.new(0, 0, -.3+math.abs(mvmnt)*0.125) * CFrame.Angles(math.pi/18+math.sin(angle)*1.5, 0, -math.abs(mvmnt)*0.02) | |
| 415 | lscf = lsc0 * CFrame.new(0, 0, .3-math.abs(mvmnt)*0.125) * CFrame.Angles(math.pi/18+math.sin(-angle)*1.5, 0, math.abs(mvmnt)*0.02) | |
| 416 | rlcf = rlc0 * CFrame.new(0, 0, -.6+math.abs(mvmnt)*0.125) * CFrame.Angles(-math.pi/18+math.sin(-angle)*1.3, 0, math.rad(.5)) | |
| 417 | llcf = llc0 * CFrame.new(0, 0, -math.abs(mvmnt)*0.125) * CFrame.Angles(-math.pi/18+math.sin(angle)*1.3, 0, -math.rad(.5)) | |
| 418 | else | |
| 419 | anglespeed = 5.5 | |
| 420 | ncf = neckc0 * CFrame.new(0, 0, .2) * CFrame.Angles(math.pi/1.9+math.sin(mvmnt/2)*0.05, 0, 0) | |
| 421 | rjcf = CFrame.new(0, -1.3+math.abs(mvmnt)*0.05, 0) * CFrame.Angles(-math.pi/1.9+math.abs(mvmnt/2)*0.1, 0, 0) | |
| 422 | rscf = rsc0 * CFrame.new(-1, 0.2, -.5) * CFrame.Angles(math.pi/2+math.sin(angle)*1.8, 0, math.rad(5)) | |
| 423 | lscf = lsc0 * CFrame.new(1, 0.2, -.5) * CFrame.Angles(math.pi/2+math.sin(angle)*1.8, 0, -math.rad(5)) | |
| 424 | rlcf = rlc0 * CFrame.new(0, .3-math.abs(mvmnt)*0.125, -.3+math.abs(mvmnt)*0.125) * CFrame.Angles(math.pi/2.5+math.sin(-angle)*1.4, 0, math.abs(mvmnt)*0.025) | |
| 425 | llcf = llc0 * CFrame.new(0, .3-math.abs(mvmnt)*0.125, .3-math.abs(mvmnt)*0.125) * CFrame.Angles(math.pi/2.5+math.sin(-angle)*1.4, 0, -math.abs(mvmnt)*0.025) | |
| 426 | end | |
| 427 | end | |
| 428 | ||
| 429 | rm.C0 = clerp(rm.C0,rscf,speed) | |
| 430 | lm.C0 = clerp(lm.C0,lscf,speed) | |
| 431 | rj.C0 = clerp(rj.C0,rjcf,speed) | |
| 432 | neck.C0 = clerp(neck.C0,ncf,speed) | |
| 433 | rlegm.C0 = clerp(rlegm.C0,rlcf,speed) | |
| 434 | llegm.C0 = clerp(llegm.C0,llcf,speed) | |
| 435 | end | |
| 436 | ||
| 437 | ||
| 438 | end |