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