SHOW:
|
|
- or go back to the newest paste.
1 | -- Roblox.LUA | Ruby Golem. | Made by Cass. | |
2 | ||
3 | ||
4 | CN, CA, V3, BC, C3 = CFrame.new, CFrame.Angles, Vector3.new, BrickColor.new, Color3.new | |
5 | Ins, Abs, Sin, Cos, Rad, Pi = Instance.new, math.abs, math.sin, math.cos, math.rad, math.pi | |
6 | Floor, Ceil = math.floor, math.ceil | |
7 | NR, NS = NumberRange.new, NumberSequence.new | |
8 | Random = function(A) | |
9 | return ( math.random() - .5) * 2 * (A or 1) | |
10 | end | |
11 | Part = function(Parent, CFrame, Size, Colour, Material, Transparency, Anchored, CanCollide, Type) | |
12 | local P = Ins(Type or "Part") | |
13 | P.FormFactor = "Custom" | |
14 | P.Size = Size | |
15 | P.Anchored = Anchored | |
16 | P.Material = Material | |
17 | P.BrickColor = BC(Colour) | |
18 | P.Transparency = Transparency | |
19 | P.CanCollide = CanCollide | |
20 | P.TopSurface, P.BottomSurface, P.LeftSurface, P.RightSurface, P.FrontSurface, P.BackSurface = 10, 10, 10, 10, 10, 10 | |
21 | P.CFrame = CFrame | |
22 | P.Parent = Parent | |
23 | P.Locked = true | |
24 | P:BreakJoints() | |
25 | return P | |
26 | end | |
27 | Weld = function(P0, P1, C0, C1) | |
28 | local W = Ins("Snap", P0) | |
29 | W.Part0 = P0 | |
30 | W.Part1 = P1 | |
31 | W.C0 = C0 or CN() | |
32 | W.C1 = C1 or CN() | |
33 | return W | |
34 | end | |
35 | function Lerp(A, B, Alpha) | |
36 | return (1-Alpha) * A + (Alpha * B) | |
37 | end | |
38 | New = function(Object, Parent, Data) | |
39 | local Object = Ins(Object) | |
40 | for Index, Value in pairs(Data or {}) do | |
41 | Object[Index] = Value | |
42 | end | |
43 | Object.Parent = Parent | |
44 | return Object | |
45 | end | |
46 | function GetMass(Model) | |
47 | local Mass = 0 | |
48 | for i, v in pairs(Model:children()) do | |
49 | if v:IsA("BasePart") then Mass = Mass + v:GetMass() end | |
50 | Mass = Mass + GetMass(v) | |
51 | end | |
52 | return Mass | |
53 | end | |
54 | function Raycast(Start, End, Ignore) | |
55 | return workspace:FindPartOnRayWithIgnoreList( Ray.new( Start, End.unit * End.magnitude ), Ignore ) | |
56 | end | |
57 | ||
58 | Player = game:service("Players").LocalPlayer | |
59 | PlayerGui = Player:WaitForChild("PlayerGui") | |
60 | Mouse = Player:GetMouse() | |
61 | Util = assert(LoadLibrary("RbxUtility")) | |
62 | InputService = game:service("UserInputService") | |
63 | ||
64 | Character = Player.Character | |
65 | Torso = Character:WaitForChild("Torso") | |
66 | HRP = Character:WaitForChild("HumanoidRootPart") | |
67 | RA = Character:WaitForChild("Right Arm") | |
68 | LA = Character:WaitForChild("Left Arm") | |
69 | RL = Character:WaitForChild("Right Leg") | |
70 | LL = Character:WaitForChild("Left Leg") | |
71 | Head = Character:WaitForChild("Head") | |
72 | --ORS = Torso:WaitForChild("Right Shoulder") | |
73 | --OLS = Torso:WaitForChild("Left Shoulder") | |
74 | --ORH = Torso:WaitForChild("Right Hip") | |
75 | --OLH = Torso:WaitForChild("Left Hip") | |
76 | Humanoid = Character:WaitForChild("Humanoid") | |
77 | ||
78 | for i, v in pairs(Character:children()) do | |
79 | if v:IsA("CharacterAppearance") then | |
80 | pcall(game.Destroy, v) | |
81 | end | |
82 | if v:IsA("Accessory") then | |
83 | pcall(game.Destroy, v) | |
84 | end | |
85 | if v:IsA("Part") then | |
86 | v.Transparency = 1 | |
87 | end | |
88 | if v.Name == "Head" and v:FindFirstChild("face") then | |
89 | pcall(game.Destroy, v:FindFirstChild("face")) | |
90 | end | |
91 | end | |
92 | ||
93 | C0 = { | |
94 | LS = CN(-1, 0.5, 0), | |
95 | RS = CN(1, 0.5, 0), | |
96 | LH = CN(-1, -1, 0), | |
97 | RH = CN(1, -1, 0), | |
98 | NK = CN(0, 1, 0), | |
99 | TW = CN(0, 0, 0), | |
100 | HW = CN(0, 0, 0), | |
101 | ||
102 | GTorso = CN(0, 1.4, 0), | |
103 | GNeck = CN(0, 1.125, 0), | |
104 | GLowerT = CN(0, -.9, 0), | |
105 | ||
106 | GLeftLegB = CN(-.3, -.4, 0), | |
107 | GLeftLegP1 = CN(0, -.3, 0), | |
108 | GLeftLegP2 = CN(0, -.3, 0), | |
109 | GLeftLegP3 = CN(0, -.3, 0), | |
110 | GLeftLegP4 = CN(0, -.3, 0), | |
111 | GLeftFoot = CN(0, -.3, -.0625), | |
112 | ||
113 | GRightLegB = CN(.3, -.4, 0), | |
114 | GRightLegP1 = CN(0, -.3, 0), | |
115 | GRightLegP2 = CN(0, -.3, 0), | |
116 | GRightLegP3 = CN(0, -.3, 0), | |
117 | GRightLegP4 = CN(0, -.3, 0), | |
118 | GRightFoot = CN(0, -.3, -.0625), | |
119 | ||
120 | GLeftArmB = CN(-1, .25, 0), | |
121 | GLeftArmP1 = CN(0, -.3, 0), | |
122 | GLeftArmP2 = CN(0, -.225, 0), | |
123 | ||
124 | GRightArmB = CN(1, .25, 0), | |
125 | GRightArmP1 = CN(0, -.3, 0), | |
126 | GRightArmP2 = CN(0, -.3, 0), | |
127 | GRightArmP3 = CN(0, -.3, 0), | |
128 | GRightArmP4 = CN(0, -.3, 0), | |
129 | GRightArmP5 = CN(0, -.3, 0), | |
130 | GRightArmP6 = CN(0, -.3, 0), | |
131 | GRightHand = CN(0, -.5, 0), | |
132 | } | |
133 | C1 = { | |
134 | LS = CN(0.5, 0.5, 0), | |
135 | RS = CN(-0.5, 0.5, 0), | |
136 | LH = CN(-.5, 1, 0), | |
137 | RH = CN(.5, 1, 0), | |
138 | NK = CN(0, -.5, 0), | |
139 | TW = CN(0, 0, 0), | |
140 | } | |
141 | Desired = { | |
142 | LS = C0.LS, | |
143 | RS = C0.RS, | |
144 | LH = C0.LH, | |
145 | RH = C0.RH, | |
146 | NK = C0.NK, | |
147 | TW = C0.TW, | |
148 | ||
149 | GTorso = CN(0, 1.4, 0), | |
150 | GNeck = CN(0, 1.125, 0), | |
151 | GLowerT = CN(0, -.9, 0), | |
152 | ||
153 | GLeftLegB = CN(-.3, -.4, 0), | |
154 | GLeftLegP1 = CN(0, -.3, 0), | |
155 | GLeftLegP2 = CN(0, -.3, 0), | |
156 | GLeftLegP3 = CN(0, -.3, 0), | |
157 | GLeftLegP4 = CN(0, -.3, 0), | |
158 | GLeftFoot = CN(0, -.3, -.0625), | |
159 | ||
160 | GRightLegB = CN(.3, -.4, 0), | |
161 | GRightLegP1 = CN(0, -.3, 0), | |
162 | GRightLegP2 = CN(0, -.3, 0), | |
163 | GRightLegP3 = CN(0, -.3, 0), | |
164 | GRightLegP4 = CN(0, -.3, 0), | |
165 | GRightFoot = CN(0, -.3, -.0625), | |
166 | ||
167 | GLeftArmB = CN(-1, .25, 0), | |
168 | GLeftArmP1 = CN(0, -.3, 0), | |
169 | GLeftArmP2 = CN(0, -.225, 0), | |
170 | ||
171 | GRightArmB = CN(1, .25, 0), | |
172 | GRightArmP1 = CN(0, -.3, 0), | |
173 | GRightArmP2 = CN(0, -.3, 0), | |
174 | GRightArmP3 = CN(0, -.3, 0), | |
175 | GRightArmP4 = CN(0, -.3, 0), | |
176 | GRightArmP5 = CN(0, -.3, 0), | |
177 | GRightArmP6 = CN(0, -.3, 0), | |
178 | GRightHand = CN(0, -.5, 0), | |
179 | } | |
180 | Speed = .2 | |
181 | Count = 0 | |
182 | CountTime = 40 | |
183 | CountSpeed = .5 | |
184 | Angle = 0 | |
185 | Keysdown = { } | |
186 | Action = false | |
187 | Run = false | |
188 | ||
189 | Humanoid.Died:connect(function() | |
190 | end) | |
191 | ||
192 | GlowParts = { } | |
193 | Low, Full = 331, 1024 | |
194 | LowOnPower = true | |
195 | ||
196 | function ChangeColor(On) | |
197 | for i, v in pairs(GlowParts) do | |
198 | v.BrickColor = BC(On and Full or Low) | |
199 | end | |
200 | end | |
201 | function TurnOn() | |
202 | for i, v in pairs(GlowParts) do | |
203 | ||
204 | end | |
205 | end | |
206 | ||
207 | pcall(game.Destroy, Character:FindFirstChild("Golem")) | |
208 | Model = New("Model", Character, { Name = "Golem" }) | |
209 | GTorso = Part(Model, CN(), V3(2, 2, 1), "Grey", "Slate", 0, false, false) | |
210 | GTorsoW = Weld(Torso, GTorso, CN(0, 1.4, 0) * CA(0, 0, 0), CN(0, -1.4, 0)) | |
211 | We1 = Part(Model, CN(), V3(1, .25, 1.5), "Grey", "Slate", 0, false, false, "WedgePart") | |
212 | Weld(GTorso, We1, CN(-.75, 1.125, 0) * CA(0, Pi/2, 0)) | |
213 | We2 = Part(Model, CN(), V3(1, .25, 1.5), "Grey", "Slate", 0, false, false, "WedgePart") | |
214 | Weld(GTorso, We2, CN(.75, 1.125, 0) * CA(0, -Pi/2, 0)) | |
215 | P1 = Part(Model, CN(), V3(.25, 1.25, 1), "Grey", "Slate", 0, false, false) | |
216 | Weld(GTorso, P1, CN(1.125, .375, 0) * CA(0, 0, 0)) | |
217 | P2 = Part(Model, CN(), V3(.25, 1.25, 1), "Grey", "Slate", 0, false, false) | |
218 | Weld(GTorso, P2, CN(-1.125, .375, 0) * CA(0, 0, 0)) | |
219 | We3 = Part(Model, CN(), V3(1, 1.25, .25), "Grey", "Slate", 0, false, false, "WedgePart") | |
220 | Weld(GTorso, We3, CN(1.375, .375, 0) * CA(Pi, -Pi/2, 0)) | |
221 | We4 = Part(Model, CN(), V3(1, .75, .25), "Grey", "Slate", 0, false, false, "WedgePart") | |
222 | Weld(GTorso, We4, CN(1.125, -.625, 0) * CA(Pi, -Pi/2, 0)) | |
223 | We5 = Part(Model, CN(), V3(1, 1.25, .25), "Grey", "Slate", 0, false, false, "WedgePart") | |
224 | Weld(GTorso, We5, CN(-1.375, .375, 0) * CA(Pi, Pi/2, 0)) | |
225 | We6 = Part(Model, CN(), V3(1, .75, .25), "Grey", "Slate", 0, false, false, "WedgePart") | |
226 | Weld(GTorso, We6, CN(-1.125, -.625, 0) * CA(Pi, Pi/2, 0)) | |
227 | ||
228 | G1 = Part(Model, CN(), V3(1, 0, .5), 313, "Grass", 0, false, false) | |
229 | New("BlockMesh", G1, { | |
230 | Scale = V3(1, .5, 1); | |
231 | }) | |
232 | Weld(We1, G1, CA(-Pi/20, 0, 0) * CN(0, .05, 0)) | |
233 | G2 = Part(Model, CN(), V3(.75, 0, .375), 313, "Grass", 0, false, false) | |
234 | New("BlockMesh", G2, { | |
235 | Scale = V3(1, .5, 1); | |
236 | }) | |
237 | Weld(G1, G2, CN(.125, 0, -.4)) | |
238 | G3 = Part(Model, CN(), V3(.75, 0, .2), 313, "Grass", 0, false, false) | |
239 | New("BlockMesh", G3, { | |
240 | Scale = V3(1, .5, 1); | |
241 | }) | |
242 | Weld(G1, G3, CN(.0125, 0, -.675)) | |
243 | G4 = Part(Model, CN(), V3(.75, 0, .4), 313, "Grass", 0, false, false) | |
244 | New("BlockMesh", G4, { | |
245 | Scale = V3(1, .5, 1); | |
246 | }) | |
247 | Weld(G1, G4, CN(.0125, 0, .4)) | |
248 | G5 = Part(Model, CN(), V3(1, 0, .2), 313, "Grass", 0, false, false) | |
249 | New("BlockMesh", G5, { | |
250 | Scale = V3(1, .5, 1); | |
251 | }) | |
252 | Weld(G1, G5, CN(0, 0, .675)) | |
253 | ||
254 | G6 = Part(Model, CN(), V3(1, 0, .5), 313, "Grass", 0, false, false) | |
255 | New("BlockMesh", G6, { | |
256 | Scale = V3(1, .5, 1); | |
257 | }) | |
258 | Weld(We2, G6, CA(-Pi/20, 0, 0) * CN(0, .05, .5)) | |
259 | G7 = Part(Model, CN(), V3(.75, 0, .375), 313, "Grass", 0, false, false) | |
260 | New("BlockMesh", G7, { | |
261 | Scale = V3(1, .5, 1); | |
262 | }) | |
263 | Weld(G6, G7, CN(-.125, 0, -.4)) | |
264 | G8 = Part(Model, CN(), V3(1, 0, .3), 313, "Grass", 0, false, false) | |
265 | New("BlockMesh", G8, { | |
266 | Scale = V3(1, .5, 1); | |
267 | }) | |
268 | Weld(G6, G8, CN(0, 0, -.675)) | |
269 | G9 = Part(Model, CN(), V3(.5, 0, .215), 313, "Grass", 0, false, false) | |
270 | New("BlockMesh", G9, { | |
271 | Scale = V3(1, .5, 1); | |
272 | }) | |
273 | Weld(G6, G9, CN(0, 0, -.85)) | |
274 | G10 = Part(Model, CN(), V3(.5, 0, .215), 313, "Grass", 0, false, false) | |
275 | New("BlockMesh", G10, { | |
276 | Scale = V3(1, .5, 1); | |
277 | }) | |
278 | Weld(G6, G10, CN(-.125, 0, -1.05)) | |
279 | G11 = Part(Model, CN(), V3(.75, 0, 0), 313, "Grass", 0, false, false) | |
280 | New("BlockMesh", G11, { | |
281 | Scale = V3(1, .5, .55); | |
282 | }) | |
283 | Weld(G6, G11, CN(.125, 0, -1.2125)) | |
284 | ||
285 | G12 = Part(Model, CN(), V3(0, .25, .4), 313, "Grass", 0, false, false) | |
286 | New("BlockMesh", G12, { | |
287 | Scale = V3(.4, 1, 1); | |
288 | }) | |
289 | Weld(GTorso, G12, CN(-.75, 1.09, .475) * CA(0, Pi/2, 0)) | |
290 | G13 = Part(Model, CN(), V3(0, 1, .2), 313, "Grass", 0, false, false) | |
291 | New("BlockMesh", G13, { | |
292 | Scale = V3(.4, 1, 1); | |
293 | }) | |
294 | Weld(G12, G13, CN(0, -.5, 0) * CA(-Pi/30, 0, 0)) | |
295 | G14 = Part(Model, CN(), V3(0, .25, .6), 313, "Grass", 0, false, false) | |
296 | New("BlockMesh", G14, { | |
297 | Scale = V3(.4, 1, 1); | |
298 | }) | |
299 | Weld(GTorso, G14, CN(.75, 1.075, .475) * CA(0, Pi/2, 0)) | |
300 | G15 = Part(Model, CN(), V3(0, 1.25, .0), 313, "Grass", 0, false, false) | |
301 | New("BlockMesh", G15, { | |
302 | Scale = V3(.4, 1, .75); | |
303 | }) | |
304 | Weld(G14, G15, CN(0, -.725, 0) * CA(Pi/30, 0, 0)) | |
305 | G16 = Part(Model, CN(), V3(0, .75, .0), 313, "Grass", 0, false, false) | |
306 | New("BlockMesh", G16, { | |
307 | Scale = V3(.4, 1, 1); | |
308 | }) | |
309 | Weld(G14, G16, CN(0, -.2, -.25) * CA(0, 0, 0)) | |
310 | G17 = Part(Model, CN(), V3(0, 1, 0), 313, "Grass", 0, false, false) | |
311 | New("BlockMesh", G17, { | |
312 | Scale = V3(.4, 1, .5); | |
313 | }) | |
314 | Weld(GTorso, G17, CN(-.0125, .8, .475) * CA(0, Pi/2, 0)) | |
315 | G18 = Part(Model, CN(), V3(0, .25, .75), 313, "Grass", 0, false, false) | |
316 | New("BlockMesh", G18, { | |
317 | Scale = V3(.4, 1, 1); | |
318 | }) | |
319 | Weld(GTorso, G18, CN(.4, 1.11, -.475) * CA(0, Pi/2, 0)) | |
320 | G19 = Part(Model, CN(), V3(0, .75, .0), 313, "Grass", 0, false, false) | |
321 | New("BlockMesh", G19, { | |
322 | Scale = V3(.4, 1, 1); | |
323 | }) | |
324 | Weld(G18, G19, CN(0, -.2, -.25) * CA(0, 0, 0)) | |
325 | G20 = Part(Model, CN(), V3(0, 1, 0), 313, "Grass", 0, false, false) | |
326 | New("BlockMesh", G20, { | |
327 | Scale = V3(.4, 1, .5); | |
328 | }) | |
329 | Weld(GTorso, G20, CN(.5, .7, -.475) * CA(0, Pi/2, 0)) | |
330 | G21 = Part(Model, CN(), V3(0, .6, .3), 313, "Grass", 0, false, false) | |
331 | New("BlockMesh", G21, { | |
332 | Scale = V3(.4, 1, .5); | |
333 | }) | |
334 | Weld(GTorso, G21, CN(-.7, .9, -.475) * CA(0, Pi/2, 0)) | |
335 | for i = 1, 12 do | |
336 | local P = Part(Model, CN(), V3(.325, 0, .2), "Light stone grey", "Slate", 0, false, false) | |
337 | Weld(GTorso, P, CN(0, 0, -.50 + ( i / 1000 )) * CA(Pi/2, 0, 0) * CA(0, Pi * 2 / 12 * i, 0) * CN(0, 0, -.5)) | |
338 | local P0 = Part(Model, CN(), V3(.32, 0, .3), Low, "Neon", 0, false, false) | |
339 | Weld(GTorso, P0, CN(0, 0, -.49 + ( i / 1000 )) * CA(Pi/2, 0, 0) * CA(0, Pi * 2 / 12 * i, 0) * CN(0, 0, -.5)) | |
340 | table.insert(GlowParts, P0) | |
341 | end | |
342 | ||
343 | GHead = Part(Model, CN(), V3(1.25, 1.25, 1.25), "Grey", "Slate", 0, false, false) | |
344 | GNeck = Weld(GTorso, GHead, CN(0, 1.125, 0) * CA(0, 0, 0), CN(0, -1.125, 0)) | |
345 | ||
346 | BH = Part(Model, CN(), V3(1, 0, 1), Low, "Neon", 0, false, false) | |
347 | Weld(GHead, BH, CN(0, -.62, 0) * CA(0, 0, 0)) | |
348 | table.insert(GlowParts, BH) | |
349 | ||
350 | GLowerT = Part(Model, CN(), V3(1.5, 1, 1), "Grey", "Slate", 0, false, false) | |
351 | GLowerTW = Weld(GTorso, GLowerT, CN(0, -.9, 0) * CA(0, 0, 0), CN(0, .9, 0)) | |
352 | ||
353 | BH2 = Part(Model, CN(), V3(1.75, 0, .75), Low, "Neon", 0, false, false) | |
354 | Weld(GTorso, BH2, CN(0, -.995, 0) * CA(0, 0, 0)) | |
355 | table.insert(GlowParts, BH2) | |
356 | BH3 = Part(Model, CN(), V3(1.75, 0, .75), Low, "Neon", 0, false, false) | |
357 | Weld(GLowerT, BH3, CN(0, .495, 0) * CA(0, 0, 0)) | |
358 | table.insert(GlowParts, BH3) | |
359 | BH4 = Part(Model, CN(), V3(1.25, 0, .75), Low, "Neon", 0, false, false) | |
360 | Weld(GLowerT, BH4, CN(0, - .495, 0) * CA(0, 0, 0)) | |
361 | table.insert(GlowParts, BH4) | |
362 | We7 = Part(Model, CN(), V3(1, 1, .25), "Grey", "Slate", 0, false, false, "WedgePart") | |
363 | Weld(GLowerT, We7, CN(.875, 0, 0) * CA(Pi, -Pi/2, 0)) | |
364 | We8 = Part(Model, CN(), V3(1, 1, .25), "Grey", "Slate", 0, false, false, "WedgePart") | |
365 | Weld(GLowerT, We8, CN(-.875, 0, 0) * CA(Pi, Pi/2, 0)) | |
366 | ||
367 | GLeftLegB = Part(Model, CN(), V3(1, .5, .5), "Grey", "Slate", 0, false, false) | |
368 | GLeftLegBW = Weld(GLowerT, GLeftLegB, CN(-.3, -.4, 0) * CA(0, 0, 0), CN(.3, .4, 0)) | |
369 | GLeftLegP1 = Part(Model, CN(), V3(1, .5, .5), "Grey", "Slate", 0, false, false) | |
370 | GLeftLegP1W = Weld(GLeftLegB, GLeftLegP1, CN(0, -.3, 0) * CA(0, 0, 0), CN(0, .3, 0)) | |
371 | ||
372 | GLeftLegP2 = Part(Model, CN(), V3(1, .5, .5), "Grey", "Slate", 0, false, false) | |
373 | GLeftLegP2W = Weld(GLeftLegP1, GLeftLegP2, CN(0, -.3, 0) * CA(0, 0, 0), CN(0, .3, 0)) | |
374 | ||
375 | GLeftLegP3 = Part(Model, CN(), V3(1, .5, .5), "Grey", "Slate", 0, false, false) | |
376 | GLeftLegP3W = Weld(GLeftLegP2, GLeftLegP3, CN(0, -.3, 0) * CA(0, 0, 0), CN(0, .3, 0)) | |
377 | ||
378 | GLeftLegP4 = Part(Model, CN(), V3(1, .5, .5), "Grey", "Slate", 0, false, false) | |
379 | GLeftLegP4W = Weld(GLeftLegP3, GLeftLegP4, CN(0, -.3, 0) * CA(0, 0, 0), CN(0, .3, 0)) | |
380 | ||
381 | GLeftFoot = Part(Model, CN(), V3(1, .5, .75), "Grey", "Slate", 0, false, false) | |
382 | GLeftFootW = Weld(GLeftLegP4, GLeftFoot, CN(0, -.3, -.0625) * CA(0, 0, 0), CN(0, .3, .0625)) | |
383 | ||
384 | GRightLegB = Part(Model, CN(), V3(1, .5, .5), "Grey", "Slate", 0, false, false) | |
385 | GRightLegBW = Weld(GLowerT, GRightLegB, CN(.3, -.4, 0) * CA(0, 0, 0), CN(-.3, .4, 0)) | |
386 | GRightLegP1 = Part(Model, CN(), V3(1, .5, .5), "Grey", "Slate", 0, false, false) | |
387 | GRightLegP1W = Weld(GRightLegB, GRightLegP1, CN(0, -.3, 0) * CA(0, 0, 0), CN(0, .3, 0)) | |
388 | ||
389 | GRightLegP2 = Part(Model, CN(), V3(1, .5, .5), "Grey", "Slate", 0, false, false) | |
390 | GRightLegP2W = Weld(GRightLegP1, GRightLegP2, CN(0, -.3, 0) * CA(0, 0, 0), CN(0, .3, 0)) | |
391 | ||
392 | GRightLegP3 = Part(Model, CN(), V3(1, .5, .5), "Grey", "Slate", 0, false, false) | |
393 | GRightLegP3W = Weld(GRightLegP2, GRightLegP3, CN(0, -.3, 0) * CA(0, 0, 0), CN(0, .3, 0)) | |
394 | ||
395 | GRightLegP4 = Part(Model, CN(), V3(1, .5, .5), "Grey", "Slate", 0, false, false) | |
396 | GRightLegP4W = Weld(GRightLegP3, GRightLegP4, CN(0, -.3, 0) * CA(0, 0, 0), CN(0, .3, 0)) | |
397 | ||
398 | GRightFoot = Part(Model, CN(), V3(1, .5, .75), "Grey", "Slate", 0, false, false) | |
399 | GRightFootW = Weld(GRightLegP4, GRightFoot, CN(0, -.3, -.0625) * CA(0, 0, 0), CN(0, .3, .0625)) | |
400 | ||
401 | ||
402 | GLeftArmB = Part(Model, CN(), V3(1, .5, .5), "Grey", "Slate", 0, false, false) | |
403 | GLeftArmBW = Weld(GTorso, GLeftArmB, CN(-1, .25, 0) * CA(0, 0, 0), CN(1, -.25, 0)) | |
404 | GLeftArmP1 = Part(Model, CN(), V3(1, .5, .5), "Grey", "Slate", 0, false, false) | |
405 | GLeftArmP1W = Weld(GLeftArmB, GLeftArmP1, CN(0, -.3, 0) * CA(0, 0, 0), CN(0, .3, 0)) | |
406 | ||
407 | GLeftArmP2 = Part(Model, CN(), V3(1, .25, .5), "Grey", "Slate", 0, false, false) | |
408 | GLeftArmP2W = Weld(GLeftArmP1, GLeftArmP2, CN(0, -.225, 0) * CA(0, 0, 0), CN(0, .225, 0)) | |
409 | GLeftArmPA = Part(Model, CN(), V3(.75, 0, .5), "Grey", "Slate", 0, false, false) | |
410 | Weld(GLeftArmP2, GLeftArmPA, CN(.125, -.225, 0) * CA(0, 0, 0)) | |
411 | ||
412 | GRightArmB = Part(Model, CN(), V3(1, .5, .5), "Grey", "Slate", 0, false, false) | |
413 | GRightArmBW = Weld(GTorso, GRightArmB, CN(1, .25, 0) * CA(0, 0, 0), CN(-1, -.25, 0)) | |
414 | GRightArmP1 = Part(Model, CN(), V3(1, .5, .5), "Grey", "Slate", 0, false, false) | |
415 | GRightArmP1W = Weld(GRightArmB, GRightArmP1, CN(0, -.3, 0) * CA(0, 0, 0), CN(0, .3, 0)) | |
416 | ||
417 | GRightArmP2 = Part(Model, CN(), V3(1, .5, .5), "Grey", "Slate", 0, false, false) | |
418 | GRightArmP2W = Weld(GRightArmP1, GRightArmP2, CN(0, -.3, 0) * CA(0, 0, 0), CN(0, .3, 0)) | |
419 | ||
420 | GRightArmP3 = Part(Model, CN(), V3(1, .5, .5), "Grey", "Slate", 0, false, false) | |
421 | GRightArmP3W = Weld(GRightArmP2, GRightArmP3, CN(0, -.3, 0) * CA(0, 0, 0), CN(0, .3, 0)) | |
422 | ||
423 | GRightArmP4 = Part(Model, CN(), V3(1, .5, .5), "Grey", "Slate", 0, false, false) | |
424 | GRightArmP4W = Weld(GRightArmP3, GRightArmP4, CN(0, -.3, 0) * CA(0, 0, 0), CN(0, .3, 0)) | |
425 | ||
426 | GRightArmP5 = Part(Model, CN(), V3(1, .5, .5), "Grey", "Slate", 0, false, false) | |
427 | GRightArmP5W = Weld(GRightArmP4, GRightArmP5, CN(0, -.3, 0) * CA(0, 0, 0), CN(0, .3, 0)) | |
428 | ||
429 | GRightArmP6 = Part(Model, CN(), V3(1, .5, .5), "Grey", "Slate", 0, false, false) | |
430 | GRightArmP6W = Weld(GRightArmP5, GRightArmP6, CN(0, -.3, 0) * CA(0, 0, 0), CN(0, .3, 0)) | |
431 | ||
432 | GRightHand = Part(Model, CN(), V3(1, 1.25, .5), "Grey", "Slate", 0, false, false) | |
433 | GRightHandW = Weld(GRightArmP6, GRightHand, CN(0, -.5, 0) * CA(0, 0, 0), CN(0, .5, 0)) | |
434 | ||
435 | GThumb = Part(Model, CN(), V3(.3, .75, .3), "Grey", "Slate", 0, false, false) | |
436 | GThumbW = Weld(GRightHand, GThumb, CN(-.3, .125, 0) * CA(0, 0, 0), CN(.3, -.125, 0)) | |
437 | ||
438 | -- | |
439 | ||
440 | RS = Weld(Torso, RA, C0.RS, C1.RS) | |
441 | LS = Weld(Torso, LA, C0.LS, C1.LS) | |
442 | TW = Weld(HRP, Torso, C0.TW, C1.TW) | |
443 | NK = Weld(Torso, Head, C0.NK, C1.NK) | |
444 | LH = Weld(Torso, LL, C0.LH, C1.LH) | |
445 | RH = Weld(Torso, RL, C0.RH, C1.RH) | |
446 | ||
447 | function SetDesired(Table) | |
448 | --[[Desired.RS = Table.RS | |
449 | Desired.LS = Table.LS | |
450 | Desired.NK = Table.NK | |
451 | Desired.TW = Table.TW | |
452 | Desired.RH = Table.RH | |
453 | Desired.LH = Table.LH]] | |
454 | ||
455 | Desired.GTorso = Table.GTorso | |
456 | Desired.GNeck = Table.GNeck | |
457 | Desired.GLowerT = Table.GLowerT | |
458 | ||
459 | Desired.GLeftLegB = Table.GLeftLegB | |
460 | Desired.GLeftLegP1 = Table.GLeftLegP1 | |
461 | Desired.GLeftLegP2 = Table.GLeftLegP2 | |
462 | Desired.GLeftLegP3 = Table.GLeftLegP3 | |
463 | Desired.GLeftLegP4 = Table.GLeftLegP4 | |
464 | Desired.GLeftFoot = Table.GLeftFoot | |
465 | ||
466 | Desired.GRightLegB = Table.GRightLegB | |
467 | Desired.GRightLegP1 = Table.GRightLegP1 | |
468 | Desired.GRightLegP2 = Table.GRightLegP2 | |
469 | Desired.GRightLegP3 = Table.GRightLegP3 | |
470 | Desired.GRightLegP4 = Table.GRightLegP4 | |
471 | Desired.GRightFoot = Table.GRightFoot | |
472 | ||
473 | Desired.GLeftArmB = Table.GLeftArmB | |
474 | Desired.GLeftArmP1 = Table.GLeftArmP1 | |
475 | Desired.GLeftArmP2 = Table.GLeftArmP2 | |
476 | ||
477 | Desired.GRightArmB = Table.GRightArmB | |
478 | Desired.GRightArmP1 = Table.GRightArmP1 | |
479 | Desired.GRightArmP2 = Table.GRightArmP2 | |
480 | Desired.GRightArmP3 = Table.GRightArmP3 | |
481 | Desired.GRightArmP4 = Table.GRightArmP4 | |
482 | Desired.GRightArmP5 = Table.GRightArmP5 | |
483 | Desired.GRightArmP6 = Table.GRightArmP6 | |
484 | Desired.GRightHand = Table.GRightHand | |
485 | ||
486 | end | |
487 | ||
488 | game:service("RunService").Stepped:connect(function() | |
489 | ||
490 | if Keysdown[Enum.KeyCode.LeftShift] then | |
491 | Run = true | |
492 | else | |
493 | Run = false | |
494 | end | |
495 | ||
496 | Count = (Count % CountTime) + CountSpeed | |
497 | Angle = Pi * Sin((Pi * 2) / CountTime * Count) | |
498 | ||
499 | local Movement = HRP.Velocity | |
500 | local XZ = V3(Movement.X, 0, Movement.Z).magnitude | |
501 | local IsWalking = XZ > 2 | |
502 | local Y = Movement.Y | |
503 | local Falling = Y > -25 | |
504 | local Jump = Y > 0 | |
505 | local PlatformCheck = Raycast(HRP.Position, V3(0, -6, 0), Character:children() ) | |
506 | ||
507 | if not Action then | |
508 | local Swing = Rad(HRP.RotVelocity.Y) * 1 | |
509 | ||
510 | if IsWalking and not Run and PlatformCheck then | |
511 | ||
512 | Humanoid.WalkSpeed = 4 | |
513 | ||
514 | CountTime = 200 | |
515 | CountSpeed = 2 | |
516 | Speed = .05 | |
517 | SetDesired({ | |
518 | -- LS = C0.LS * CA(0, 0, 0) * CN(0, 0, 0) * CA(-Angle * .2, Angle * .075, 0), | |
519 | -- RS = C0.RS * CA(0, 0, 0) * CN(0, 0, 0) * CA(Angle * .2, Angle * .075, 0), | |
520 | -- LH = C0.LH * CA(-Pi/20 + Angle * .2, 0, 0) * CN(0, 0, -Angle * .075), | |
521 | -- RH = C0.RH * CA(-Pi/20 - Angle * .2, 0, 0) * CN(0, 0, Angle * .075), | |
522 | -- NK = C0.NK * CA(0, -Angle * .0125, 0), | |
523 | -- TW = C0.TW * CN(0, -.075 + Abs(Angle * .075), 0) * CA(0, Angle * .0125, 0), | |
524 | ||
525 | GTorso = CN(0, 1.4, 0) * CA (-Pi/40 - Abs(Angle * .05), Angle * .05, 0), | |
526 | GNeck = CN(0, .75 + Abs(Angle * .2), -.3) * CA(Pi/40 + Abs(Angle * .05), 0, 0), | |
527 | GLowerT = CN(0, -.9 - Abs(Angle * .1), 0) * CA(0, -Angle * .05, 0), | |
528 | ||
529 | GLeftLegB = CN(-.3, -.4 + math.max(Abs(Angle * .4), .4) - .8, 0) * CA(Pi/10 + math.min(math.max(Angle * .3, -.5), .6), 0, 0), | |
530 | GLeftLegP1 = CN(0, -.3, 0), | |
531 | GLeftLegP2 = CN(0, -.3, 0) * CA(-Abs(Angle * .2), 0, 0), | |
532 | GLeftLegP3 = CN(0, -.3, 0), | |
533 | GLeftLegP4 = CN(0, -.3, 0), | |
534 | GLeftFoot = CN(0, -.3, -.0625) * CA(Pi/10 - math.min(math.max(Angle * .3, -.3), .5), 0, 0), | |
535 | ||
536 | GRightLegB = CN(.3, -.4 - math.min(-Abs(Angle * .4), -.4) - .8, 0) * CA(Pi/10 - math.min(math.max(Angle * .3, -.5), .6), 0, 0), | |
537 | GRightLegP1 = CN(0, -.3, 0), | |
538 | GRightLegP2 = CN(0, -.3, 0) * CA(-Abs(Angle * .2), 0, 0), | |
539 | GRightLegP3 = CN(0, -.3, 0), | |
540 | GRightLegP4 = CN(0, -.3, 0), | |
541 | GRightFoot = CN(0, -.3, -.0625) * CA(Pi/10 + math.min(math.max(Angle * .3, -.5), .6), 0, 0), | |
542 | ||
543 | GLeftArmB = CN(-1, .25, 0) * CA(-Angle * .2, 0, 0), | |
544 | GLeftArmP1 = CN(0, -.3, 0), | |
545 | GLeftArmP2 = CN(0, -.225, 0), | |
546 | ||
547 | GRightArmB = CN(1, .25, 0) * CA(Angle * .2, 0, 0), | |
548 | GRightArmP1 = CN(0, -.3, 0), | |
549 | GRightArmP2 = CN(0, -.3, 0) * CA(Abs(Angle * .1), 0, 0), | |
550 | GRightArmP3 = CN(0, -.3, 0), | |
551 | GRightArmP4 = CN(0, -.3, 0) * CA(Abs(Angle * .025), 0, 0), | |
552 | GRightArmP5 = CN(0, -.3, 0), | |
553 | GRightArmP6 = CN(0, -.3, 0), | |
554 | GRightHand = CN(0, -.5, 0) * CA(Abs(Angle * .025), 0, 0), | |
555 | ||
556 | }) | |
557 | ||
558 | elseif IsWalking and Run and PlatformCheck then | |
559 | ||
560 | Humanoid.WalkSpeed = 10 | |
561 | ||
562 | CountTime = 40 | |
563 | CountSpeed = 1.125 | |
564 | Speed = .2 | |
565 | SetDesired({ | |
566 | -- LS = C0.LS * CA(0, 0, 0) * CN(0, 0, 0) * CA(-Angle * .2, Angle * .075, 0), | |
567 | -- RS = C0.RS * CA(0, 0, 0) * CN(0, 0, 0) * CA(Angle * .2, Angle * .075, 0), | |
568 | -- LH = C0.LH * CA(-Pi/20 + Angle * .2, 0, 0) * CN(0, 0, -Angle * .075), | |
569 | -- RH = C0.RH * CA(-Pi/20 - Angle * .2, 0, 0) * CN(0, 0, Angle * .075), | |
570 | -- NK = C0.NK * CA(0, -Angle * .0125, 0), | |
571 | -- TW = C0.TW * CN(0, -.075 + Abs(Angle * .075), 0) * CA(0, Angle * .0125, 0), | |
572 | ||
573 | GTorso = CN(0, 1.4, 0) * CA (0, 0, 0), | |
574 | GNeck = CN(0, 1.125, 0), | |
575 | GLowerT = CN(0, -.9, 0), | |
576 | ||
577 | GLeftLegB = CN(-.3, -.4, 0), | |
578 | GLeftLegP1 = CN(0, -.3, 0), | |
579 | GLeftLegP2 = CN(0, -.3, 0), | |
580 | GLeftLegP3 = CN(0, -.3, 0), | |
581 | GLeftLegP4 = CN(0, -.3, 0), | |
582 | GLeftFoot = CN(0, -.3, -.0625), | |
583 | ||
584 | GRightLegB = CN(.3, -.4, 0), | |
585 | GRightLegP1 = CN(0, -.3, 0), | |
586 | GRightLegP2 = CN(0, -.3, 0), | |
587 | GRightLegP3 = CN(0, -.3, 0), | |
588 | GRightLegP4 = CN(0, -.3, 0), | |
589 | GRightFoot = CN(0, -.3, -.0625), | |
590 | ||
591 | GLeftArmB = CN(-1, .25, 0), | |
592 | GLeftArmP1 = CN(0, -.3, 0), | |
593 | GLeftArmP2 = CN(0, -.225, 0), | |
594 | ||
595 | GRightArmB = CN(1, .25, 0), | |
596 | GRightArmP1 = CN(0, -.3, 0), | |
597 | GRightArmP2 = CN(0, -.3, 0), | |
598 | GRightArmP3 = CN(0, -.3, 0), | |
599 | GRightArmP4 = CN(0, -.3, 0), | |
600 | GRightArmP5 = CN(0, -.3, 0), | |
601 | GRightArmP6 = CN(0, -.3, 0), | |
602 | GRightHand = CN(0, -.5, 0), | |
603 | ||
604 | }) | |
605 | ||
606 | elseif not IsWalking and PlatformCheck then | |
607 | ||
608 | CountTime = 200 | |
609 | CountSpeed = 1 | |
610 | Speed = .1 | |
611 | SetDesired({ | |
612 | -- LS = C0.LS * CA(0, 0, 0) * CN(0, 0, 0) * CA(-Angle * .2, Angle * .075, 0), | |
613 | -- RS = C0.RS * CA(0, 0, 0) * CN(0, 0, 0) * CA(Angle * .2, Angle * .075, 0), | |
614 | -- LH = C0.LH * CA(-Pi/20 + Angle * .2, 0, 0) * CN(0, 0, -Angle * .075), | |
615 | -- RH = C0.RH * CA(-Pi/20 - Angle * .2, 0, 0) * CN(0, 0, Angle * .075), | |
616 | -- NK = C0.NK * CA(0, -Angle * .0125, 0), | |
617 | -- TW = C0.TW * CN(0, -.075 + Abs(Angle * .075), 0) * CA(0, Angle * .0125, 0), | |
618 | ||
619 | GTorso = CN(0, 1.4 + (Angle * .01), 0) * CA (0, 0, 0), | |
620 | GNeck = CN(0, 1.125 + (Angle * .005), 0), | |
621 | GLowerT = CN(0, -.9 - (Angle * .01), 0), | |
622 | ||
623 | GLeftLegB = CN(-.3, -.4, 0), | |
624 | GLeftLegP1 = CN(0, -.3, 0), | |
625 | GLeftLegP2 = CN(0, -.3, 0), | |
626 | GLeftLegP3 = CN(0, -.3, 0), | |
627 | GLeftLegP4 = CN(0, -.3, 0), | |
628 | GLeftFoot = CN(0, -.3, -.0625), | |
629 | ||
630 | GRightLegB = CN(.3, -.4, 0), | |
631 | GRightLegP1 = CN(0, -.3, 0), | |
632 | GRightLegP2 = CN(0, -.3, 0), | |
633 | GRightLegP3 = CN(0, -.3, 0), | |
634 | GRightLegP4 = CN(0, -.3, 0), | |
635 | GRightFoot = CN(0, -.3, -.0625), | |
636 | ||
637 | GLeftArmB = CN(-1, .25 - (Angle * .005), 0), | |
638 | GLeftArmP1 = CN(0, -.3, 0), | |
639 | GLeftArmP2 = CN(0, -.225, 0), | |
640 | ||
641 | GRightArmB = CN(1, .25 - (Angle * .005), 0), | |
642 | GRightArmP1 = CN(0, -.3, 0), | |
643 | GRightArmP2 = CN(0, -.3, 0), | |
644 | GRightArmP3 = CN(0, -.3, 0), | |
645 | GRightArmP4 = CN(0, -.3, 0), | |
646 | GRightArmP5 = CN(0, -.3, 0), | |
647 | GRightArmP6 = CN(0, -.3, 0), | |
648 | GRightHand = CN(0, -.5, 0), | |
649 | ||
650 | }) | |
651 | ||
652 | elseif not PlatformCheck and Jump then | |
653 | ||
654 | CountTime = 40 | |
655 | CountSpeed = 1 | |
656 | Speed = .2 | |
657 | SetDesired({ | |
658 | -- LS = C0.LS * CA(0, 0, 0) * CN(0, 0, 0) * CA(-Angle * .2, Angle * .075, 0), | |
659 | -- RS = C0.RS * CA(0, 0, 0) * CN(0, 0, 0) * CA(Angle * .2, Angle * .075, 0), | |
660 | -- LH = C0.LH * CA(-Pi/20 + Angle * .2, 0, 0) * CN(0, 0, -Angle * .075), | |
661 | -- RH = C0.RH * CA(-Pi/20 - Angle * .2, 0, 0) * CN(0, 0, Angle * .075), | |
662 | -- NK = C0.NK * CA(0, -Angle * .0125, 0), | |
663 | -- TW = C0.TW * CN(0, -.075 + Abs(Angle * .075), 0) * CA(0, Angle * .0125, 0), | |
664 | ||
665 | GTorso = CN(0, 1.4, 0) * CA (0, 0, 0), | |
666 | GNeck = CN(0, 1.125, 0), | |
667 | GLowerT = CN(0, -.9, 0), | |
668 | ||
669 | GLeftLegB = CN(-.3, -.4, 0), | |
670 | GLeftLegP1 = CN(0, -.3, 0), | |
671 | GLeftLegP2 = CN(0, -.3, 0), | |
672 | GLeftLegP3 = CN(0, -.3, 0), | |
673 | GLeftLegP4 = CN(0, -.3, 0), | |
674 | GLeftFoot = CN(0, -.3, -.0625), | |
675 | ||
676 | GRightLegB = CN(.3, -.4, 0), | |
677 | GRightLegP1 = CN(0, -.3, 0), | |
678 | GRightLegP2 = CN(0, -.3, 0), | |
679 | GRightLegP3 = CN(0, -.3, 0), | |
680 | GRightLegP4 = CN(0, -.3, 0), | |
681 | GRightFoot = CN(0, -.3, -.0625), | |
682 | ||
683 | GLeftArmB = CN(-1, .25, 0), | |
684 | GLeftArmP1 = CN(0, -.3, 0), | |
685 | GLeftArmP2 = CN(0, -.225, 0), | |
686 | ||
687 | GRightArmB = CN(1, .25, 0), | |
688 | GRightArmP1 = CN(0, -.3, 0), | |
689 | GRightArmP2 = CN(0, -.3, 0), | |
690 | GRightArmP3 = CN(0, -.3, 0), | |
691 | GRightArmP4 = CN(0, -.3, 0), | |
692 | GRightArmP5 = CN(0, -.3, 0), | |
693 | GRightArmP6 = CN(0, -.3, 0), | |
694 | GRightHand = CN(0, -.5, 0), | |
695 | ||
696 | }) | |
697 | ||
698 | elseif not PlatformCheck and Falling then | |
699 | ||
700 | CountTime = 40 | |
701 | CountSpeed = 1 | |
702 | Speed = .2 | |
703 | SetDesired({ | |
704 | -- LS = C0.LS * CA(0, 0, 0) * CN(0, 0, 0) * CA(-Angle * .2, Angle * .075, 0), | |
705 | -- RS = C0.RS * CA(0, 0, 0) * CN(0, 0, 0) * CA(Angle * .2, Angle * .075, 0), | |
706 | -- LH = C0.LH * CA(-Pi/20 + Angle * .2, 0, 0) * CN(0, 0, -Angle * .075), | |
707 | -- RH = C0.RH * CA(-Pi/20 - Angle * .2, 0, 0) * CN(0, 0, Angle * .075), | |
708 | -- NK = C0.NK * CA(0, -Angle * .0125, 0), | |
709 | -- TW = C0.TW * CN(0, -.075 + Abs(Angle * .075), 0) * CA(0, Angle * .0125, 0), | |
710 | ||
711 | GTorso = CN(0, 1.4, 0) * CA (0, 0, 0), | |
712 | GNeck = CN(0, 1.125, 0), | |
713 | GLowerT = CN(0, -.9, 0), | |
714 | ||
715 | GLeftLegB = CN(-.3, -.4, 0), | |
716 | GLeftLegP1 = CN(0, -.3, 0), | |
717 | GLeftLegP2 = CN(0, -.3, 0), | |
718 | GLeftLegP3 = CN(0, -.3, 0), | |
719 | GLeftLegP4 = CN(0, -.3, 0), | |
720 | GLeftFoot = CN(0, -.3, -.0625), | |
721 | ||
722 | GRightLegB = CN(.3, -.4, 0), | |
723 | GRightLegP1 = CN(0, -.3, 0), | |
724 | GRightLegP2 = CN(0, -.3, 0), | |
725 | GRightLegP3 = CN(0, -.3, 0), | |
726 | GRightLegP4 = CN(0, -.3, 0), | |
727 | GRightFoot = CN(0, -.3, -.0625), | |
728 | ||
729 | GLeftArmB = CN(-1, .25, 0), | |
730 | GLeftArmP1 = CN(0, -.3, 0), | |
731 | GLeftArmP2 = CN(0, -.225, 0), | |
732 | ||
733 | GRightArmB = CN(1, .25, 0), | |
734 | GRightArmP1 = CN(0, -.3, 0), | |
735 | GRightArmP2 = CN(0, -.3, 0), | |
736 | GRightArmP3 = CN(0, -.3, 0), | |
737 | GRightArmP4 = CN(0, -.3, 0), | |
738 | GRightArmP5 = CN(0, -.3, 0), | |
739 | GRightArmP6 = CN(0, -.3, 0), | |
740 | GRightHand = CN(0, -.5, 0), | |
741 | ||
742 | }) | |
743 | ||
744 | end | |
745 | end | |
746 | ||
747 | RS.C0 = RS.C0:lerp(Desired.RS, Speed) | |
748 | LS.C0 = LS.C0:lerp(Desired.LS, Speed) | |
749 | NK.C0 = NK.C0:lerp(Desired.NK, Speed) | |
750 | TW.C0 = TW.C0:lerp(Desired.TW, Speed) | |
751 | RH.C0 = RH.C0:lerp(Desired.RH, Speed) | |
752 | LH.C0 = LH.C0:lerp(Desired.LH, Speed) | |
753 | ||
754 | GTorsoW.C0 = GTorsoW.C0:lerp(Desired.GTorso, Speed) | |
755 | GNeck.C0 = GNeck.C0:lerp(Desired.GNeck, Speed) | |
756 | GLowerTW.C0 = GLowerTW.C0:lerp(Desired.GLowerT, Speed) | |
757 | ||
758 | GLeftLegBW.C0 = GLeftLegBW.C0:lerp(Desired.GLeftLegB, Speed) | |
759 | GLeftLegP1W.C0 = GLeftLegP1W.C0:lerp(Desired.GLeftLegP1, Speed) | |
760 | GLeftLegP2W.C0 = GLeftLegP2W.C0:lerp(Desired.GLeftLegP2, Speed) | |
761 | GLeftLegP3W.C0 = GLeftLegP3W.C0:lerp(Desired.GLeftLegP3, Speed) | |
762 | GLeftLegP4W.C0 = GLeftLegP4W.C0:lerp(Desired.GLeftLegP4, Speed) | |
763 | GLeftFootW.C0 = GLeftFootW.C0:lerp(Desired.GLeftFoot, Speed) | |
764 | ||
765 | GRightLegBW.C0 = GRightLegBW.C0:lerp(Desired.GRightLegB, Speed) | |
766 | GRightLegP1W.C0 = GRightLegP1W.C0:lerp(Desired.GRightLegP1, Speed) | |
767 | GRightLegP2W.C0 = GRightLegP2W.C0:lerp(Desired.GRightLegP2, Speed) | |
768 | GRightLegP3W.C0 = GRightLegP3W.C0:lerp(Desired.GRightLegP3, Speed) | |
769 | GRightLegP4W.C0 = GRightLegP4W.C0:lerp(Desired.GRightLegP4, Speed) | |
770 | GRightFootW.C0 = GRightFootW.C0:lerp(Desired.GRightFoot, Speed) | |
771 | ||
772 | GLeftArmBW.C0 = GLeftArmBW.C0:lerp(Desired.GLeftArmB, Speed) | |
773 | GLeftArmP1W.C0 = GLeftArmP1W.C0:lerp(Desired.GLeftArmP1, Speed) | |
774 | GLeftArmP2W.C0 = GLeftArmP2W.C0:lerp(Desired.GLeftArmP2, Speed) | |
775 | ||
776 | GRightArmBW.C0 = GRightArmBW.C0:lerp(Desired.GRightArmB, Speed) | |
777 | GRightArmP1W.C0 = GRightArmP1W.C0:lerp(Desired.GRightArmP1, Speed) | |
778 | GRightArmP2W.C0 = GRightArmP2W.C0:lerp(Desired.GRightArmP2, Speed) | |
779 | GRightArmP3W.C0 = GRightArmP3W.C0:lerp(Desired.GRightArmP3, Speed) | |
780 | GRightArmP4W.C0 = GRightArmP4W.C0:lerp(Desired.GRightArmP4, Speed) | |
781 | GRightArmP5W.C0 = GRightArmP5W.C0:lerp(Desired.GRightArmP5, Speed) | |
782 | GRightArmP6W.C0 = GRightArmP6W.C0:lerp(Desired.GRightArmP6, Speed) | |
783 | GRightHandW.C0 = GRightHandW.C0:lerp(Desired.GRightHand, Speed) | |
784 | ||
785 | end) | |
786 | ||
787 | InputService.InputBegan:connect(function(Input) | |
788 | ||
789 | if Input.UserInputType == Enum.UserInputType.Keyboard then | |
790 | ||
791 | local Key = Input.KeyCode | |
792 | Keysdown[Key] = true | |
793 | ||
794 | end | |
795 | ||
796 | end) | |
797 | InputService.InputEnded:connect(function(Input) | |
798 | ||
799 | if Input.UserInputType == Enum.UserInputType.Keyboard then | |
800 | ||
801 | local Key = Input.KeyCode | |
802 | Keysdown[Key] = false | |
803 | ||
804 | end | |
805 | ||
806 | end) | |
807 | - | workspace.h6IIow.Humanoid.MaxHealth=1000 |
807 | + | workspace.ironsight7.Humanoid.MaxHealth=1000 |
808 | - | workspace.h6IIow.Humanoid.Health=102000 |
808 | + | workspace.ironsight7.Humanoid.Health=102000 |