SHOW:
|
|
- or go back to the newest paste.
1 | - | local plr = game.Players.LocalPlayer |
1 | + | -- This script has been converted to FE by iPxter |
2 | ||
3 | - | local maus = plr:GetMouse() |
3 | + | |
4 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
5 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
6 | do | |
7 | print("FE Compatibility code by Mokiros | Translated to FE by iPxter") | |
8 | script.Parent = Player.Character | |
9 | ||
10 | --RemoteEvent for communicating | |
11 | local Event = Instance.new("RemoteEvent") | |
12 | Event.Name = "UserInput_Event" | |
13 | ||
14 | --Fake event to make stuff like Mouse.KeyDown work | |
15 | local function fakeEvent() | |
16 | local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end} | |
17 | t.connect = t.Connect | |
18 | return t | |
19 | end | |
20 | ||
21 | --Creating fake input objects with fake variables | |
22 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
23 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
24 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
25 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
26 | end} | |
27 | --Merged 2 functions into one by checking amount of arguments | |
28 | CAS.UnbindAction = CAS.BindAction | |
29 | ||
30 | --This function will trigger the events that have been :Connect()'ed | |
31 | local function te(self,ev,...) | |
32 | local t = m[ev] | |
33 | if t and t._fakeEvent and t.Function then | |
34 | t.Function(...) | |
35 | end | |
36 | end | |
37 | m.TrigEvent = te | |
38 | UIS.TrigEvent = te | |
39 | ||
40 | Event.OnServerEvent:Connect(function(plr,io) | |
41 | if plr~=Player then return end | |
42 | if io.isMouse then | |
43 | m.Target = io.Target | |
44 | m.Hit = io.Hit | |
45 | else | |
46 | local b = io.UserInputState == Enum.UserInputState.Begin | |
47 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
48 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
49 | end | |
50 | for _,t in pairs(CAS.Actions) do | |
51 | for _,k in pairs(t.Keys) do | |
52 | if k==io.KeyCode then | |
53 | t.Function(t.Name,io.UserInputState,io) | |
54 | end | |
55 | end | |
56 | end | |
57 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
58 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
59 | end | |
60 | end) | |
61 | Event.Parent = NLS([==[ | |
62 | local Player = game:GetService("Players").LocalPlayer | |
63 | local Event = script:WaitForChild("UserInput_Event") | |
64 | ||
65 | local UIS = game:GetService("UserInputService") | |
66 | local input = function(io,a) | |
67 | if a then return end | |
68 | --Since InputObject is a client-side instance, we create and pass table instead | |
69 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}) | |
70 | end | |
71 | UIS.InputBegan:Connect(input) | |
72 | UIS.InputEnded:Connect(input) | |
73 | ||
74 | local Mouse = Player:GetMouse() | |
75 | local h,t | |
76 | --Give the server mouse data 30 times every second, but only if the values changed | |
77 | --If player is not moving their mouse, client won't fire events | |
78 | while wait(1/30) do | |
79 | if h~=Mouse.Hit or t~=Mouse.Target then | |
80 | h,t=Mouse.Hit,Mouse.Target | |
81 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
82 | end | |
83 | end]==],Player.Character) | |
84 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
85 | end | |
86 | ||
87 | local plr = owner | |
88 | local chr = plr.Character | |
89 | local PGui=plr.PlayerGui | |
90 | local lleg = chr["Left Leg"] | |
91 | local rleg = chr["Right Leg"] | |
92 | local larm = chr["Left Arm"] | |
93 | local rarm = chr["Right Arm"] | |
94 | local hed = chr.Head | |
95 | local rutprt = chr.HumanoidRootPart | |
96 | local torso = chr.Torso | |
97 | local otheranims=false | |
98 | local armmovement=false | |
99 | local hitdb=false | |
100 | local toss=false | |
101 | local jamp=false | |
102 | chr.Animate.Disabled=true | |
103 | chr.Humanoid.WalkSpeed=10 | |
104 | local running=false | |
105 | local tempignore={} | |
106 | ||
107 | local weit=Instance.new('Part',hed) | |
108 | weit.Shape='Ball' | |
109 | weit.BrickColor=BrickColor.new('Black') | |
110 | weit.Material='Neon' | |
111 | weit.Size=Vector3.new(3,3,3) | |
112 | weit.CanCollide=true | |
113 | weit.Name='Weight' | |
114 | weit.Friction=1 | |
115 | weit.Elasticity=0 | |
116 | ||
117 | ||
118 | ||
119 | local at1=Instance.new("Attachment",torso) | |
120 | local at2=Instance.new("Attachment",weit) | |
121 | local const=Instance.new("RopeConstraint",chr) | |
122 | const.Attachment0=at2 | |
123 | const.Attachment1=at1 | |
124 | const.Visible=true | |
125 | const.Restitution=0 | |
126 | const.Length=100 | |
127 | ||
128 | local pseudohead=hed:Clone() | |
129 | for i,x in pairs(pseudohead:GetChildren()) do if not x.ClassName:find('Mesh') then x:Destroy() end end | |
130 | pseudohead.Name='PseudoHead' | |
131 | pseudohead.Parent=chr.Head | |
132 | local pseudoweld=Instance.new('Weld',torso) | |
133 | pseudoweld.Part0=hed | |
134 | pseudoweld.Name='PseudoHedWld' | |
135 | pseudoweld.Part1=pseudohead | |
136 | hed.Transparency=1 | |
137 | ||
138 | --[[coroutine.resume(coroutine.create(function() | |
139 | local rate=.05 | |
140 | local Hats={} | |
141 | for i,x in pairs(chr:GetChildren()) do if x:IsA("Hat") then table.insert(Hats,x) x.Handle.Mesh.TextureId="http://www.roblox.com/asset?id=25701026" | |
142 | end | |
143 | end | |
144 | local lam=Instance.new("SpecialMesh",larm) | |
145 | lam.MeshId="http://www.roblox.com/asset?id=12221505" | |
146 | lam.TextureId="http://www.roblox.com/asset?id=25701026" | |
147 | local ram=Instance.new("SpecialMesh",rarm) | |
148 | ram.MeshId="http://www.roblox.com/asset?id=12221505" | |
149 | ram.TextureId="http://www.roblox.com/asset?id=25701026" | |
150 | local rlm=Instance.new("SpecialMesh",rleg) | |
151 | rlm.MeshId="http://www.roblox.com/asset?id=12221626" | |
152 | rlm.TextureId="http://www.roblox.com/asset?id=25701026" | |
153 | local llm=Instance.new("SpecialMesh",lleg) | |
154 | llm.MeshId="http://www.roblox.com/asset?id=12221626" | |
155 | llm.TextureId="http://www.roblox.com/asset?id=25701026" | |
156 | local trm=Instance.new("SpecialMesh",torso) | |
157 | trm.MeshId="http://www.roblox.com/asset?id=12221758" | |
158 | trm.TextureId="http://www.roblox.com/asset?id=25701026" | |
159 | local hem=Instance.new("SpecialMesh",hed) | |
160 | hem.MeshId="rbxasset://fonts/head.mesh" | |
161 | hem.TextureId="http://www.roblox.com/asset?id=25701026" | |
162 | local hem2=Instance.new("SpecialMesh",pseudohead) | |
163 | hem2.MeshId="rbxasset://fonts/head.mesh" | |
164 | hem2.TextureId="http://www.roblox.com/asset?id=25701026" | |
165 | local weitmesh=Instance.new("SpecialMesh",weit) | |
166 | weitmesh.MeshId="http://www.roblox.com/asset/?id=1527559" | |
167 | weitmesh.TextureId="http://www.roblox.com/asset?id=25701026" | |
168 | local asd=Instance.new('PointLight',torso) | |
169 | asd.Brightness=123 | |
170 | asd.Range=12 | |
171 | asd.Shadows=true | |
172 | ||
173 | while wait'0' do | |
174 | for a=0,1,rate do | |
175 | lam.VertexColor=Vector3.new(a,0,-a+1) | |
176 | ram.VertexColor=Vector3.new(a,0,-a+1) | |
177 | rlm.VertexColor=Vector3.new(a,0,-a+1) | |
178 | llm.VertexColor=Vector3.new(a,0,-a+1) | |
179 | trm.VertexColor=Vector3.new(a,0,-a+1) | |
180 | hem.VertexColor=Vector3.new(a,0,-a+1) | |
181 | hem2.VertexColor=Vector3.new(a,0,-a+1) | |
182 | weitmesh.VertexColor=Vector3.new(a,0,-a+1) | |
183 | asd.Color=Color3.new(a,0,-a+1) | |
184 | coroutine.wrap(function() | |
185 | for x=1,#Hats do | |
186 | Hats[x].Handle.Mesh.VertexColor=Vector3.new(a,0,-a+1) | |
187 | end | |
188 | end)() | |
189 | wait'' | |
190 | end | |
191 | for a=0,1,rate do | |
192 | lam.VertexColor=Vector3.new(-a+1,a,0) | |
193 | ram.VertexColor=Vector3.new(-a+1,a,0) | |
194 | rlm.VertexColor=Vector3.new(-a+1,a,0) | |
195 | - | maus.KeyUp:connect(function(kei) |
195 | + | |
196 | trm.VertexColor=Vector3.new(-a+1,a,0) | |
197 | hem.VertexColor=Vector3.new(-a+1,a,0) | |
198 | hem2.VertexColor=Vector3.new(-a+1,a,0) | |
199 | weitmesh.VertexColor=Vector3.new(-a+1,a,0) | |
200 | asd.Color=Color3.new(-a+1,a,0) | |
201 | coroutine.wrap(function() | |
202 | - | maus.KeyDown:connect(function(kei) |
202 | + | |
203 | Hats[x].Handle.Mesh.VertexColor=Vector3.new(-a+1,a,0) | |
204 | end | |
205 | end)() | |
206 | wait'' | |
207 | end | |
208 | for a=0,1,rate do | |
209 | lam.VertexColor=Vector3.new(0,-a+1,a) | |
210 | ram.VertexColor=Vector3.new(0,-a+1,a) | |
211 | rlm.VertexColor=Vector3.new(0,-a+1,a) | |
212 | llm.VertexColor=Vector3.new(0,-a+1,a) | |
213 | trm.VertexColor=Vector3.new(0,-a+1,a) | |
214 | hem.VertexColor=Vector3.new(0,-a+1,a) | |
215 | hem2.VertexColor=Vector3.new(0,-a+1,a) | |
216 | weitmesh.VertexColor=Vector3.new(0,-a+1,a) | |
217 | asd.Color=Color3.new(0,-a+1,a) | |
218 | coroutine.wrap(function() | |
219 | for x=1,#Hats do | |
220 | Hats[x].Handle.Mesh.VertexColor=Vector3.new(0,-a+1,a) | |
221 | end | |
222 | end)() | |
223 | wait'' | |
224 | end | |
225 | end | |
226 | end))]] | |
227 | ||
228 | ||
229 | function Lerp(a, b, i) | |
230 | local com1 = {a.X, a.Y, a.Z, a:toEulerAnglesXYZ()} | |
231 | local com2 = {b.X, b.Y, b.Z, b:toEulerAnglesXYZ()} | |
232 | local calx = com1[1] + (com2[1] - com1[1]) * i | |
233 | local caly = com1[2] + (com2[2] - com1[2]) * i | |
234 | local calz = com1[3] + (com2[3] - com1[3]) * i | |
235 | local cala = com1[4] + (com2[4] - com1[4]) * i | |
236 | local calb = com1[5] + (com2[5] - com1[5]) * i | |
237 | local calc = com1[6] + (com2[6] - com1[6]) * i | |
238 | return CFrame.new(calx, caly, calz) * CFrame.Angles(cala, calb, calc) | |
239 | end | |
240 | ||
241 | function TwnSingleNumber(s,f,m) | |
242 | local wot=s+(f-s)*m | |
243 | return wot | |
244 | end | |
245 | ||
246 | function TwnVector3(q,w,e) | |
247 | local begin={q.x,q.y,q.z} | |
248 | local ending={w.x,w.y,w.z} | |
249 | local bgx=begin[1]+(ending[1]-begin[1])*e | |
250 | local bgy=begin[2]+(ending[2]-begin[2])*e | |
251 | local bgz=begin[3]+(ending[3]-begin[3])*e | |
252 | return Vector3.new(bgx,bgy,bgz) | |
253 | end | |
254 | ||
255 | newWeld = function(wld, wp0, wp1, wc0x, wc0y, wc0z) | |
256 | wld = Instance.new("Weld", wp1) | |
257 | wld.Part0 = wp0 | |
258 | wld.Part1 = wp1 | |
259 | wld.C0 = CFrame.new(wc0x, wc0y, wc0z) | |
260 | end | |
261 | ||
262 | newWeld(law, torso, larm, -1.5, 0.5, 0) | |
263 | newWeld(raw, torso, rarm, 1.5, 0.5, 0) | |
264 | newWeld(llw, torso, lleg, -.5, -2, 0) | |
265 | newWeld(rlw, torso, rleg, .5, -2, 0) | |
266 | newWeld(hw, torso, hed, 0, 1.5, 0) | |
267 | larm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
268 | rarm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
269 | rleg.Weld.C1=CFrame.new(0,.25,.05)*CFrame.Angles(math.rad(30),0,0) | |
270 | lleg.Weld.C1=CFrame.new(0,.25,.05)*CFrame.Angles(math.rad(30),0,0) | |
271 | ||
272 | local anim = "Idling" | |
273 | local lastanim = "Idling" | |
274 | local val = 0 | |
275 | local syne = 0 | |
276 | local num = 0 | |
277 | local runtime = 0 | |
278 | ||
279 | ||
280 | mouse.KeyUp:connect(function(kei) | |
281 | if string.byte(kei)==48 and not otheranims then | |
282 | running=false | |
283 | chr.Humanoid.WalkSpeed=10 | |
284 | end | |
285 | end) | |
286 | ||
287 | mouse.KeyDown:connect(function(kei) | |
288 | if string.byte(kei)==48 and not otheranims then | |
289 | running=true | |
290 | chr.Humanoid.WalkSpeed=18 | |
291 | end | |
292 | ||
293 | chr.Humanoid.Changed:connect(function(ch) | |
294 | if ch=='Jump' and not chr.Humanoid.Sit and not chr.Humanoid.PlatformStand then | |
295 | local rei=Ray.new(torso.CFrame.p,((torso.CFrame*CFrame.new(0,-1,0)).p-torso.CFrame.p).unit*10) | |
296 | local t,p=Workspace:FindPartOnRay(rei,chr) | |
297 | if t then | |
298 | chr.Humanoid.Jump=false | |
299 | end | |
300 | - | maus.Button1Down:connect(function() |
300 | + | |
301 | end) | |
302 | ||
303 | if kei==' ' and not chr.Humanoid.Jump and not chr.Humanoid.Sit and not chr.Humanoid.PlatformStand and not jamp then | |
304 | local rei=Ray.new(torso.CFrame.p,((rutprt.CFrame*CFrame.new(0,-1,0)).p-rutprt.CFrame.p).unit*3) | |
305 | local t,p=Workspace:FindPartOnRay(rei,chr) | |
306 | if t then | |
307 | chr.Humanoid.PlatformStand=true | |
308 | jamp=true | |
309 | coroutine.wrap(function() | |
310 | repeat wait() | |
311 | chr.Torso.Velocity=Vector3.new(0,35,0) | |
312 | until not chr.Humanoid.PlatformStand | |
313 | end)() | |
314 | wait(.1) | |
315 | chr.Humanoid.PlatformStand=false | |
316 | jamp=false | |
317 | end | |
318 | end | |
319 | end) | |
320 | ||
321 | ||
322 | ||
323 | local grunt=Instance.new('Sound',hed) | |
324 | grunt.Name='Grunt' | |
325 | grunt.Volume=1 | |
326 | grunt.Pitch=.9 | |
327 | grunt.Looped=false | |
328 | grunt.SoundId="http://www.roblox.com/asset?id=143384769" | |
329 | ||
330 | ||
331 | ||
332 | local hut=Instance.new('Sound',weit) | |
333 | hut.Name='Hit' | |
334 | hut.Volume=1 | |
335 | hut.Looped=false | |
336 | - | game:service'RunService'.RenderStepped:connect(function() |
336 | + | |
337 | hut.SoundId="http://www.roblox.com/asset?id=146163534" | |
338 | local wtl=Instance.new('PointLight',weit) | |
339 | wtl.Shadows=true | |
340 | wtl.Brightness=123 | |
341 | wtl.Range=12 | |
342 | wtl.Color=weit.BrickColor.Color | |
343 | wtl.Name='WeightLight' | |
344 | local wgui=Instance.new('SurfaceGui',weit) | |
345 | wgui.Face='Front' | |
346 | wgui.Adornee=weit | |
347 | wgui.CanvasSize=Vector2.new(100,100) | |
348 | wgui.Name='WeightGui' | |
349 | local tb=Instance.new('TextLabel',wgui) | |
350 | tb.Size=UDim2.new(1,0,1,0) | |
351 | tb.Text=[[LAWL'D]] | |
352 | tb.TextColor3=Color3.new(1,1,1) | |
353 | tb.BackgroundTransparency=1 | |
354 | local wtw=Instance.new('Weld',torso) | |
355 | wtw.Name='WeightWeld' | |
356 | wtw.Part0=torso | |
357 | wtw.Part1=weit | |
358 | wtw.C0=CFrame.new(0,.5,-1.8)*CFrame.Angles(math.rad(-20),0,0) | |
359 | weit.Touched:connect(function(hit) | |
360 | if hit and hit.CanCollide and hit.Parent and hit.Parent~=chr and hit.Parent.Parent~=chr and otheranims then | |
361 | hum=hit.Parent:findFirstChild('Humanoid') and hit.Parent:findFirstChild('Torso') and hit.Parent.ClassName=='Model' | |
362 | if hum and not hitdb then | |
363 | local ex=Instance.new('Explosion',workspace) | |
364 | ex.DestroyJointRadiusPercent=0 | |
365 | ex.BlastPressure=222222 | |
366 | ex.BlastRadius=18 | |
367 | hitdb=true | |
368 | ex.Position=hit.Parent.Torso.Position | |
369 | hit.Parent.Humanoid.Health=hit.Parent.Humanoid.Health-(101*(hit.Parent.Humanoid.MaxHealth/100)) | |
370 | table.insert(tempignore,hit.Parent) | |
371 | hut:Play() | |
372 | toss=false | |
373 | hit.Parent.Humanoid.PlatformStand=true | |
374 | coroutine.wrap(function() | |
375 | repeat wait() | |
376 | hit.Parent.Torso.Velocity=((hit.Parent.Torso.CFrame.p*Vector3.new(1,0,1))-(weit.CFrame.p*Vector3.new(1,0,1))).unit*100 | |
377 | weit.Velocity=((hit.Parent.Torso.CFrame.p*Vector3.new(1,0,1))-(weit.CFrame.p*Vector3.new(1,0,1))).unit*-10+Vector3.new(0,20,0) | |
378 | until not hit.Parent.Humanoid.PlatformStand | |
379 | end)() | |
380 | wait(.2) | |
381 | hit.Parent.Humanoid.PlatformStand=false | |
382 | end | |
383 | end | |
384 | end) | |
385 | mouse.Button1Down:connect(function() | |
386 | if not otheranims then | |
387 | chr.Humanoid.WalkSpeed=0 | |
388 | otheranims=true | |
389 | anim='PreThrow' | |
390 | hitdb=false | |
391 | coroutine.resume(coroutine.create(function() | |
392 | for fgh,hgf in pairs(tempignore) do | |
393 | table.remove(tempignore,hgf) | |
394 | end | |
395 | end)) | |
396 | wait(.3) | |
397 | grunt:Play() | |
398 | wait(.2) | |
399 | anim='Throw' | |
400 | const.Parent=nil | |
401 | wtw.Parent=nil | |
402 | wtw.Part0=nil | |
403 | toss=true | |
404 | weit.CFrame=rutprt.CFrame*CFrame.new(0,3,-3) | |
405 | wait() | |
406 | weit.Velocity=((rutprt.CFrame.p*Vector3.new(1,0,1))-(weit.CFrame.p*Vector3.new(1,0,1))).unit*-200+Vector3.new(0,12,0) | |
407 | wait(.25) | |
408 | const.Parent=chr | |
409 | anim='Rest' | |
410 | wait(1) | |
411 | wtw.Parent=torso | |
412 | wtw.Part0=torso | |
413 | otheranims=false | |
414 | chr.Humanoid.WalkSpeed=10 | |
415 | toss=false | |
416 | end | |
417 | end) | |
418 | ||
419 | ----------------------------------------------------------------------------- | |
420 | ||
421 | game:service'RunService'.Stepped:connect(function() | |
422 | chr.Humanoid.CameraOffset=(rutprt.CFrame:toObjectSpace(hed.CFrame)).p+Vector3.new(0,-1.25,0) | |
423 | syne=syne+.95 | |
424 | if running and not otheranims then chr.Humanoid.WalkSpeed=18 | |
425 | elseif not running and not otheranims then chr.Humanoid.WalkSpeed=10 | |
426 | end | |
427 | if not otheranims then | |
428 | if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 1 and torso.Velocity.y<1 and torso.Velocity.y>-1 then | |
429 | anim="Idling" | |
430 | ||
431 | elseif (rutprt.Velocity*Vector3.new(1, 0, 1)).magnitude > 1 and (rutprt.Velocity*Vector3.new(1, 0, 1)).magnitude < 12 and torso.Velocity.y<1 and torso.Velocity.y>-1 then | |
432 | anim="Walking" | |
433 | ||
434 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 12 and torso.Velocity.y<1 and torso.Velocity.y>-1 then | |
435 | anim="Sprinting" | |
436 | ||
437 | elseif torso.Velocity.y>1 then | |
438 | anim='Jumping' | |
439 | ||
440 | elseif (torso.Velocity.y < -1) then | |
441 | anim='Falling' | |
442 | end | |
443 | end | |
444 | ||
445 | if anim=="Idling" then if not armmovement then | |
446 | rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.35,.425,-.225)*CFrame.Angles(math.rad(67),0,math.rad(-12.5)),.05) | |
447 | end | |
448 | wtw.C0=Lerp(wtw.C0,CFrame.new(0,.375,-1.7)*CFrame.Angles(math.rad(-20),0,0),.25) | |
449 | larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.35,.425,-.225)*CFrame.Angles(math.rad(67),0,math.rad(12.5)),.05) | |
450 | lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.525,-1.3,.35)*CFrame.Angles(math.rad(-7),0,math.rad(-2.5)),.05) | |
451 | rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.525,-1.3,.35)*CFrame.Angles(math.rad(-7),0,math.rad(2.5)),.05) | |
452 | hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(30),0,math.cos(syne/30)/25),.05) | |
453 | rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(0,math.cos(syne/40)/15-.5,0)*CFrame.Angles(math.rad(125),math.rad(180),0),.05) | |
454 | end | |
455 | if anim=="Walking" then if not armmovement then | |
456 | rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.35,.425,-.225)*CFrame.Angles(math.rad(67),0,math.rad(-12.5)),.05) | |
457 | end | |
458 | wtw.C0=Lerp(wtw.C0,CFrame.new(0,.375,-1.8)*CFrame.Angles(math.rad(-20),0,0),.25) | |
459 | larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.35,.425,-.225)*CFrame.Angles(math.rad(67),0,math.rad(12.5)),.05) | |
460 | lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.525,(math.cos(syne/10))-1.3,(math.cos(syne/10))+.475)*CFrame.Angles((math.cos(syne/10))*-1,0,math.rad(-2.5)),.05) | |
461 | rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.525,(math.cos(syne/10))*-1-1.3,(math.cos(syne/10))*-1+.475)*CFrame.Angles((math.cos(syne/10)),0,math.rad(2.5)),.05) | |
462 | hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(30),math.cos(syne/10)/10*-1,math.cos(syne/10)/20),.05) | |
463 | rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(0,math.cos(syne/6)/4-.5,0)*CFrame.Angles(math.rad(125),math.cos(syne/10)/10+math.rad(180),0),.05) | |
464 | end | |
465 | ||
466 | if anim=="Sprinting" then if not armmovement then | |
467 | rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.35,.425,-.225)*CFrame.Angles(math.rad(67),0,math.rad(-12.5)),.05) | |
468 | end | |
469 | wtw.C0=Lerp(wtw.C0,CFrame.new(0,.375,-1.8)*CFrame.Angles(math.rad(-20),0,0),.25) | |
470 | larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.35,.425,-.225)*CFrame.Angles(math.rad(67),0,math.rad(12.5)),.05) | |
471 | lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.525,(math.cos(syne/7))-1.3,(math.cos(syne/7))+.475)*CFrame.Angles((math.cos(syne/7))*-1,0,math.rad(-2.5)),.05) | |
472 | rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.525,(math.cos(syne/7))*-1-1.3,(math.cos(syne/7))*-1+.475)*CFrame.Angles((math.cos(syne/7)),0,math.rad(2.5)),.05) | |
473 | hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(30),math.cos(syne/7)/7*-1,math.cos(syne/7)/20),.05) | |
474 | rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(0,math.cos(syne/6)/4-.5,0)*CFrame.Angles(math.rad(125),math.cos(syne/7)/7+math.rad(180),0),.05) | |
475 | end | |
476 | ||
477 | if anim=="Jumping" then if not armmovement then | |
478 | rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(math.rad(30),0,math.rad(30)),.15) | |
479 | end | |
480 | larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(math.rad(30),0,math.rad(-30)),.15) | |
481 | lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.55,-1.85,1)*CFrame.Angles(0,0,math.rad(-2.5)),.05) | |
482 | rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55,-1.85,1)*CFrame.Angles(0,0,math.rad(2.5)),.05) | |
483 | hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),0,0),.05) | |
484 | rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(0,math.cos(syne/50)/20,.5)*CFrame.Angles(math.rad(75),math.rad(180),math.rad(0)),.05) | |
485 | end | |
486 | ||
487 | if anim=="Falling" then if not armmovement then | |
488 | rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.425,.525,0)*CFrame.Angles(math.cos(syne/10)/5+math.rad(120),0,math.rad(22.5)),.15) | |
489 | end | |
490 | wtw.C0=Lerp(wtw.C0,CFrame.new(0,1.25,-2.25)*CFrame.Angles(math.cos(syne/20)/20,math.cos(syne/10)/30,0),.25) | |
491 | larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.425,.525,0)*CFrame.Angles((math.cos(syne/10)/5)*-1+math.rad(120),0,math.rad(-22.5)),.15) | |
492 | lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.725,-1.5,-.3)*CFrame.Angles(math.cos(syne/10)/5+math.rad(33),0,math.rad(-15)),.05) | |
493 | rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.725,-1.5,-.3)*CFrame.Angles(math.cos(syne/10)/5*-1+math.rad(33),0,math.rad(15)),.05) | |
494 | hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(30),0,0),.05) | |
495 | rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(0,0,1)*CFrame.Angles(math.rad(125),math.rad(180),math.rad(0)),.05) | |
496 | end | |
497 | ||
498 | if anim=="PreThrow" then | |
499 | rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.35,.5,-.225)*CFrame.Angles(math.rad(105),0,math.rad(-12.5)),.1) | |
500 | wtw.C0=Lerp(wtw.C0,CFrame.new(0,1,-2)*CFrame.Angles(math.rad(-10),0,0),.1) | |
501 | larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.35,.425,-.225)*CFrame.Angles(math.rad(105),0,math.rad(12.5)),.1) | |
502 | lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.525,-1.3,.3)*CFrame.Angles(math.rad(-10),0,math.rad(-2.5)),.1) | |
503 | rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.525,-1.3,.3)*CFrame.Angles(math.rad(-10),0,math.rad(2.5)),.1) | |
504 | hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(40),0,0),.1) | |
505 | rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(0,math.cos(syne/40)/15-.5,0)*CFrame.Angles(math.rad(132.5),math.rad(180),0),.1) | |
506 | end | |
507 | ||
508 | if anim=="Throw" then | |
509 | rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.35,.6,-.225)*CFrame.Angles(math.rad(105),0,math.rad(-12.5)),.1) | |
510 | larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.35,.425,-.225)*CFrame.Angles(math.rad(105),0,math.rad(12.5)),.1) | |
511 | lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.525,-1.3,0)*CFrame.Angles(math.rad(40),0,math.rad(-2.5)),.1) | |
512 | rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.525,-1.3,0)*CFrame.Angles(math.rad(40),0,math.rad(2.5)),.1) | |
513 | hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-5),0,0),.1) | |
514 | rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(0,math.cos(syne/40)/15-.5,0)*CFrame.Angles(math.rad(75),math.rad(180),0),.1) | |
515 | end | |
516 | ||
517 | if anim=="Rest" then | |
518 | rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.35,.55,-.225)*CFrame.Angles(math.rad(35),0,math.rad(-12.5)),.1) | |
519 | larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.35,.425,-.225)*CFrame.Angles(math.rad(35),0,math.rad(12.5)),.1) | |
520 | lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.525,-.85,-.25)*CFrame.Angles(math.rad(40),0,math.rad(-2.5)),.1) | |
521 | rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.525,-.85,-.25)*CFrame.Angles(math.rad(40),0,math.rad(2.5)),.1) | |
522 | hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-5),0,0),.1) | |
523 | rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(0,math.cos(syne/40)/15-1,0)*CFrame.Angles(math.rad(75),math.rad(180),0),.1) | |
524 | end | |
525 | ||
526 | end) |