SHOW:
|
|
- or go back to the newest paste.
1 | --[[ | |
2 | Created by Guest 666! | |
3 | Finally! You are next!!! | |
4 | Finally! I learned how to switch between animations depending on what bool is activated! | |
5 | Hope you enjoy the new Ultimate Guest script. | |
6 | --]] | |
7 | char = game.Players.LocalPlayer.Character | |
8 | cananimate = true | |
9 | wait(1) | |
10 | for i,v in pairs(char:GetChildren()) do | |
11 | if v.ClassName == "Shirt" or v.ClassName == "Pants" or v.ClassName == "CharacterMesh" then | |
12 | v:Destroy() | |
13 | end | |
14 | end | |
15 | print([[ | |
16 | - | Thanks for using my Ultimate Guest script. |
16 | + | made by themissinglink101 credits to jonathanlloyd1 for teaching me how to edit and finding the templates and assets |
17 | - | This is a newer verison, and I have been waiting to make this. |
17 | + | - themissinglink101 |
18 | - | AND I FINALLY LEARNED HOW TO SWITCH BETWEEN ANIMATIONS! |
18 | + | |
19 | - | :D |
19 | + | |
20 | - | - Theamazingnater |
20 | + | |
21 | Shirt.ShirtTemplate = "rbxassetid://149630470" | |
22 | local Pants = Instance.new("Pants",char) | |
23 | Pants.PantsTemplate = "rbxassetid://305920904" | |
24 | - | Shirt.ShirtTemplate = "rbxassetid://57282083" |
24 | + | local skin = Instance.new("Skin") |
25 | skin.Parent = game.Players.LocalPlayer.Character.Torso | |
26 | - | local bdycolors = char:findFirstChild("Body Colors") |
26 | + | skin.SkinColor = BrickColor.new("bright yellow") |
27 | - | bdycolors.TorsoColor3 = Color3.new(1,1,1) |
27 | + | |
28 | - | bdycolors.LeftArmColor3 = Color3.new(1,1,1) |
28 | + | |
29 | - | bdycolors.RightArmColor3 = Color3.new(1,1,1) |
29 | + | |
30 | - | bdycolors.HeadColor3 = Color3.new(1,1,1) |
30 | + | |
31 | - | bdycolors.LeftLegColor3 = Color3.new(0,0,0) |
31 | + | |
32 | - | bdycolors.RightLegColor3 = Color3.new(0,0,0) |
32 | + | |
33 | music.Looped = true | |
34 | music:Play() | |
35 | -- Hats | |
36 | for i,v in pairs(char:GetChildren()) do | |
37 | if v.ClassName == "Accessory" or v.ClassName == "Hat" then | |
38 | v:Destroy() | |
39 | end | |
40 | end | |
41 | local Classicred = Instance.new("Part",char.Head) | |
42 | Classicred.Name = "" | |
43 | local Classicredmesh = Instance.new("FileMesh",Classicred) | |
44 | Classicredmesh.MeshId = "" | |
45 | Classicredmesh.TextureId = "" | |
46 | - | Classicred.Name = "Robloxclassicred" |
46 | + | |
47 | local Classicredweld = Instance.new("Weld",Classicred) | |
48 | - | Classicredmesh.MeshId = "http://www.roblox.com/asset/?id=46834172" |
48 | + | |
49 | - | Classicredmesh.TextureId = "http://www.roblox.com/asset/?id=47991609" |
49 | + | |
50 | Classicredweld.C0 = CFrame.new(0.00257301331, -0.508233547, 0.112071037, 0.998388648, 0, -0.0567459799, 0, 1, 0, 0.0567459799, 0, 0.998388648) | |
51 | Classicred.CanCollide = false | |
52 | local rhandclone = game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Clone() | |
53 | game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Remove() | |
54 | local rhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso) | |
55 | rhandweld.Part0 = game.Players.LocalPlayer.Character.Torso | |
56 | rhandweld.Part1 = game.Players.LocalPlayer.Character["Right Arm"] | |
57 | rhandweld.C0 = CFrame.new(1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1) | |
58 | local lhandclone = game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Clone() | |
59 | game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Remove() | |
60 | local lhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso) | |
61 | lhandweld.Part0 = game.Players.LocalPlayer.Character.Torso | |
62 | lhandweld.Part1 = game.Players.LocalPlayer.Character["Left Arm"] | |
63 | lhandweld.C0 = CFrame.new(-1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1) | |
64 | local llegweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso) | |
65 | llegweld.Part0 = game.Players.LocalPlayer.Character.Torso | |
66 | llegweld.Part1 = game.Players.LocalPlayer.Character["Left Leg"] | |
67 | llegweld.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) * CFrame.new(0,-1,0) | |
68 | local rlegclone = game.Players.LocalPlayer.Character.Torso["Right Hip"]:Clone() | |
69 | game.Players.LocalPlayer.Character.Torso["Right Hip"]:Remove() | |
70 | local rlegweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso) | |
71 | rlegweld.Part0 = game.Players.LocalPlayer.Character.Torso | |
72 | rlegweld.Part1 = game.Players.LocalPlayer.Character["Right Leg"] | |
73 | rlegweld.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) * CFrame.new(0,-1,0) | |
74 | local rootjointclone = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:Clone() | |
75 | game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:Remove() | |
76 | local humanoidrootpart = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso) | |
77 | humanoidrootpart.Part0 = game.Players.LocalPlayer.Character.HumanoidRootPart | |
78 | humanoidrootpart.Part1 = game.Players.LocalPlayer.Character.Torso | |
79 | local heed = game.Players.LocalPlayer.Character.Torso["Neck"]:Clone() | |
80 | local headweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso) | |
81 | headweld.Part0 = game.Players.LocalPlayer.Character.Torso | |
82 | headweld.Part1 = game.Players.LocalPlayer.Character.Head | |
83 | headweld.C0 = headweld.C0 * CFrame.new(0,1.5,0) | |
84 | wait() | |
85 | function swait(num) | |
86 | if num == 0 or num == nil then | |
87 | game:service("RunService").Stepped:wait(0) | |
88 | else | |
89 | for i = 0, num do | |
90 | game:service("RunService").Stepped:wait(0) | |
91 | end | |
92 | end | |
93 | end | |
94 | function swait(num) | |
95 | if num==0 or num==nil then | |
96 | game:service'RunService'.Stepped:wait(0) | |
97 | else | |
98 | for i=0,num do | |
99 | game:service'RunService'.Stepped:wait(0) | |
100 | end | |
101 | end | |
102 | end | |
103 | ||
104 | function chatfunc(text) | |
105 | local chat = coroutine.wrap(function() | |
106 | if char:FindFirstChild("TalkingBillBoard")~= nil then | |
107 | char:FindFirstChild("TalkingBillBoard"):destroy() | |
108 | end | |
109 | local naeeym2 = Instance.new("BillboardGui",char) | |
110 | naeeym2.Size = UDim2.new(0,100,0,40) | |
111 | naeeym2.StudsOffset = Vector3.new(0,3,0) | |
112 | naeeym2.Adornee = char.Head | |
113 | naeeym2.Name = "TalkingBillBoard" | |
114 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
115 | tecks2.BackgroundTransparency = 1 | |
116 | tecks2.BorderSizePixel = 0 | |
117 | tecks2.Text = "" | |
118 | tecks2.Font = "Fantasy" | |
119 | tecks2.TextSize = 30 | |
120 | tecks2.TextStrokeTransparency = 0 | |
121 | tecks2.TextColor3 = Color3.new(.6,0,0) | |
122 | tecks2.TextStrokeColor3 = Color3.new(0,0,0) | |
123 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
124 | local tecks3 = Instance.new("TextLabel",naeeym2) | |
125 | tecks3.BackgroundTransparency = 1 | |
126 | tecks3.BorderSizePixel = 0 | |
127 | tecks3.Text = "" | |
128 | tecks3.Font = "Fantasy" | |
129 | tecks3.TextSize = 30 | |
130 | tecks3.TextStrokeTransparency = 0 | |
131 | tecks3.TextColor3 = Color3.new(1,1,1) | |
132 | tecks3.TextStrokeColor3 = Color3.new(0,0,0) | |
133 | tecks3.Size = UDim2.new(1,0,0.5,0) | |
134 | for i = 1,string.len(text),1 do | |
135 | tecks2.Text = string.sub(text,1,i) | |
136 | tecks3.Text = string.sub(text,1,i) | |
137 | wait(0.01) | |
138 | end | |
139 | wait(2) | |
140 | for i = 1, 50 do | |
141 | swait() | |
142 | tecks2.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5)) | |
143 | tecks2.Rotation = tecks2.Rotation - .8 | |
144 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
145 | tecks2.TextTransparency = tecks2.TextTransparency + .04 | |
146 | tecks3.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5)) | |
147 | tecks3.Rotation = tecks2.Rotation + .8 | |
148 | tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
149 | tecks3.TextTransparency = tecks2.TextTransparency + .04 | |
150 | end | |
151 | naeeym2:Destroy() | |
152 | end) | |
153 | chat() | |
154 | end | |
155 | function onChatted(msg) | |
156 | chatfunc(msg) | |
157 | end | |
158 | local txtfag = Instance.new("BillboardGui", game.Players.LocalPlayer.Character.Head) | |
159 | txtfag.Adornee = suckadick | |
160 | txtfag.Name = "kys nigga" | |
161 | txtfag.Size = UDim2.new(2, 0, 1.2, 0) | |
162 | txtfag.StudsOffset = Vector3.new(-5, 3, 0) | |
163 | local textfag = Instance.new("TextLabel", txtfag) | |
164 | textfag.Size = UDim2.new(6, 0, 1, 0) | |
165 | textfag.FontSize = "Size8" | |
166 | textfag.TextScaled = true | |
167 | textfag.TextTransparency = 0 | |
168 | textfag.BackgroundTransparency = 1 | |
169 | textfag.TextTransparency = 0 | |
170 | textfag.TextStrokeTransparency = 0 | |
171 | textfag.Font = "SourceSans" | |
172 | textfag.TextStrokeColor3 = Color3.new(0, 1, 0) | |
173 | v = Instance.new("Part") | |
174 | v.Name = "ColorBrick" | |
175 | v.Parent = part | |
176 | v.FormFactor = "Symmetric" | |
177 | v.Anchored = true | |
178 | v.CanCollide = false | |
179 | v.BottomSurface = "Smooth" | |
180 | v.TopSurface = "Smooth" | |
181 | v.Size = Vector3.new(10, 5, 3) | |
182 | v.Transparency = 0.7 | |
183 | v.BrickColor = game.Players.LocalPlayer.Character.Torso.BrickColor | |
184 | v.Transparency = 1 | |
185 | textfag.TextColor3 = BrickColor.new("Bright yellow").Color | |
186 | textfag.TextStrokeColor3 = BrickColor.new("Bright yellow").Color | |
187 | v.Shape = "Block" | |
188 | textfag.Text = "Sad Noob" | |
189 | - | textfag.TextColor3 = BrickColor.new("Institutional white").Color |
189 | + | |
190 | - | textfag.TextStrokeColor3 = BrickColor.new("Institutional white").Color |
190 | + | |
191 | swait() | |
192 | - | textfag.Text = "Sad Guest" |
192 | + | |
193 | textfag.Rotation = math.random(-3,3) | |
194 | end | |
195 | end)) | |
196 | human = humanoidrootpart | |
197 | neck = headweld | |
198 | lhand = lhandweld | |
199 | rhand = rhandweld | |
200 | rleg = rlegweld | |
201 | lleg = llegweld | |
202 | char.Head.face.Texture = "http://www.roblox.com/asset/?id=1430746354" | |
203 | transformation = false | |
204 | local kills2 = Instance.new("ScreenGui",game.Players.LocalPlayer.PlayerGui) -- This will make a ScreenGui, which shows how much kills ya got. | |
205 | local text = Instance.new("TextLabel",kills2) | |
206 | text.Text = "Kills: " .. kills -- Changes the text to "Kills: 0" since the value is 0. | |
207 | text.Position = UDim2.new(0.728, 0,0.793, 0) -- This position failed, don't know why. | |
208 | text.Size = UDim2.new(0.271, 0,0.207, 0) | |
209 | text.TextColor3 = textfag.TextColor3 | |
210 | text.TextScaled = true | |
211 | text.BackgroundTransparency = 1 | |
212 | local number = Instance.new("NumberValue",char) -- Creates a NumberValue, which is the Kills value. | |
213 | number.Name = "Kills" | |
214 | number.Value = kills -- Changes the value to 0. | |
215 | coroutine.wrap(function() -- Changes value. | |
216 | while true do | |
217 | wait(0.01) | |
218 | number.Value = kills | |
219 | text.Text = "Kills: " .. number.Value -- Allows text to change. | |
220 | end | |
221 | end)() | |
222 | function Transform(key) | |
223 | if key == "e" and not transformation then | |
224 | transformation = true | |
225 | cananimate = false | |
226 | for i = 0,1 , 0.03 do | |
227 | lhand.C0 = lhand.C0:lerp(CFrame.new(-1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1),i) | |
228 | lleg.C0 = lleg.C0:lerp(CFrame.new(-0.5, -1.9999913, 0, 1, 0, 0, 0, 0.999995589, 0, 0, 0, 1),i) | |
229 | rhand.C0 = rhand.C0:lerp(CFrame.new(1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1),i) | |
230 | rleg.C0 = rleg.C0:lerp(CFrame.new(0.5, -1.9999913, 0, 1, 0, 0, 0, 0.999995589, 0, 0, 0, 1),i) | |
231 | neck.C0 = neck.C0:lerp(CFrame.new(0, 1.4999938, 0, 1, 0, 0, 0, 0.999995708, 0, 0, 0, 1),i) | |
232 | human.C0 = human.C0:lerp(CFrame.new(0, 0, 0, 1, 0, 0, 0, 0.999995708, 0, 0, 0, 1),i) | |
233 | game:GetService("RunService").RenderStepped:wait() | |
234 | end | |
235 | wait(1) | |
236 | char.Humanoid.WalkSpeed = 0 | |
237 | chatfunc("...") | |
238 | wait(2) | |
239 | chatfunc("guests must die") | |
240 | wait(2) | |
241 | ||
242 | local Part = Instance.new("Part", char) | |
243 | - | chatfunc("ROBLOX must die.") |
243 | + | |
244 | Part.CanCollide = false | |
245 | Part.Position = char.Torso.Position | |
246 | Part.Size = Vector3.new(1,1,1) | |
247 | Part.Material = "Neon" | |
248 | local Mesh = Instance.new("SpecialMesh", Part) | |
249 | Mesh.MeshType = "Sphere" | |
250 | ||
251 | for i = 1,10 do | |
252 | game:GetService("RunService").RenderStepped:wait() | |
253 | for i = 1,30 do | |
254 | game:GetService("RunService").RenderStepped:wait(0.00000001) | |
255 | Part.Size = Part.Size + Vector3.new(2, 2, 2) | |
256 | Part.Color = Part.Color:lerp(Color3.fromRGB(255, 255, 255), 0.1) | |
257 | end | |
258 | ||
259 | for i = 1,30 do | |
260 | game:GetService("RunService").RenderStepped:wait(0.00000001) | |
261 | Part.Size = Part.Size - Vector3.new(2, 2, 2) | |
262 | Part.Color = Part.Color:lerp(Color3.fromRGB(0, 0, 0), 0.1) | |
263 | end | |
264 | end | |
265 | Mesh.MeshType = "Cylinder" | |
266 | Part.Position = char.Torso.Position | |
267 | Part.Orientation = Vector3.new(0,0,90) | |
268 | music.SoundId = "http://www.roblox.com/asset/?id=276873987" | |
269 | music:Play() | |
270 | for i = 1,200 do | |
271 | game:GetService("RunService").RenderStepped:wait(0.00000001) | |
272 | - | music.SoundId = "http://www.roblox.com/asset/?id=397952612" |
272 | + | |
273 | Part.Transparency = Part.Transparency + 0.005 | |
274 | Part.Color = Part.Color:lerp(Color3.fromRGB(255, 255, 0), 0.1) | |
275 | end | |
276 | Part:Destroy() | |
277 | textfag.Text = "Ultimate Noob v2" | |
278 | cananimate = true | |
279 | char.Humanoid.WalkSpeed = 16 | |
280 | chatfunc("Get READY!") | |
281 | - | textfag.Text = "Ultimate Guest v2" |
281 | + | char.Head.face.Texture = "http://www.roblox.com/asset/?id=49493144" |
282 | function onTouched(brick) | |
283 | local humn = brick.Parent:FindFirstChildOfClass("Humanoid") | |
284 | if humn then | |
285 | - | char.Head.face.Texture = "http://www.roblox.com/asset/?id=14020216" |
285 | + | |
286 | for i,v in pairs(humn.Parent:GetChildren()) do | |
287 | if v.ClassName == "Part" then | |
288 | v.Anchored = true | |
289 | v.Transparency = 0.5 | |
290 | v.Color = BrickColor.new("Really black").Color | |
291 | v.CanCollide = false | |
292 | humn:Destroy() | |
293 | end | |
294 | end | |
295 | end | |
296 | end | |
297 | char.Torso.Touched:connect(onTouched) | |
298 | end | |
299 | end | |
300 | ||
301 | game.Players.LocalPlayer:GetMouse().KeyDown:connect(Transform) | |
302 | while true do | |
303 | wait(0.01) | |
304 | for i,v in pairs(char:GetChildren()) do | |
305 | if v.ClassName == "Accessory" or v.ClassName == "Hat" then | |
306 | v:Destroy() | |
307 | end | |
308 | end | |
309 | if cananimate and not transformation then | |
310 | --Walking animation | |
311 | if game.Players.LocalPlayer.Character.Torso.Velocity.x < -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.x > 0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z < -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z > 0.5 and cananimate then | |
312 | for i = 0.1,0.3 , 0.008 do | |
313 | if cananimate and not transformation and game.Players.LocalPlayer.Character.Torso.Velocity.x < -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.x > 0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z < -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z > 0.5 and cananimate and not transformation then | |
314 | human.C0 = human.C0:lerp(CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),i) | |
315 | neck.C0 = neck.C0:lerp(CFrame.new(0, 1.44722462, -0.175569534, 1, 0, 0, 0, 0.957668662, 0.28787294, 0, -0.28787291, 0.957668662),i) | |
316 | lhand.C0 = lhand.C0:lerp(CFrame.new(-1.5, 0.168842316, -0.374614239, 1, 0, 0, 0, 0.662306964, -0.74923259, 0, 0.74923259, 0.662307084),i) | |
317 | rhand.C0 = rhand.C0:lerp(CFrame.new(1.5, 0.12597847, 0.331827164, 1, 0, 0, 0, 0.748035073, 0.663659215, 0, -0.663659275, 0.748035014),i) | |
318 | rleg.C0 = rleg.C0:lerp(CFrame.new(0.5, -1.67391682, -0.738807678, 0.99999994, 0, 0, 0, 0.673916757, -0.738807261, 0, 0.738807321, 0.673916817),i) | |
319 | lleg.C0 = lleg.C0:lerp(CFrame.new(-0.5, -1.67705727, 0.735931396, 1, 0, 0, 0, 0.677056909, 0.735930681, 0, -0.735930741, 0.677056968),i) | |
320 | game:GetService("RunService").Stepped:wait() | |
321 | end | |
322 | end | |
323 | for i = 0.1,0.3 , 0.008 do | |
324 | if cananimate and not transformation and game.Players.LocalPlayer.Character.Torso.Velocity.x < -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.x > 0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z < -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z > 0.5 and cananimate and not transformation then | |
325 | human.C0 = human.C0:lerp(CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),i) | |
326 | neck.C0 = neck.C0:lerp(CFrame.new(0, 1.44722462, -0.175569534, 1, 0, 0, 0, 0.957668662, 0.28787294, 0, -0.28787291, 0.957668662),i) | |
327 | rleg.C0 = rleg.C0:lerp(CFrame.new(0.5, -1.69855976, 0.715551376, 1, 0, 0, 0, 0.698559642, 0.715551734, 0, -0.715551794, 0.698559701),i) | |
328 | lleg.C0 = lleg.C0:lerp(CFrame.new(-0.5, -1.80723953, -0.590223312, 1, 0, 0, 0, 0.807239354, -0.590224087, 0, 0.590224147, 0.807239413),i) | |
329 | lhand.C0 = lhand.C0:lerp(CFrame.new(-1.5, 0.216003418, 0.411518574, 1, 0, 0, 0, 0.567983389, 0.823040009, 0, -0.823040009, 0.567983389),i) | |
330 | rhand.C0 = rhand.C0:lerp(CFrame.new(1.5, 0.215018272, -0.41083622, 1, 0, 0, 0, 0.569954693, -0.821676135, 0, 0.821676135, 0.569954753),i) | |
331 | game:GetService("RunService").Stepped:wait() | |
332 | end | |
333 | end | |
334 | -- Idle animation | |
335 | elseif game.Players.LocalPlayer.Character.Torso.Velocity.x > -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.x < 0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z > -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z < 0.5 then | |
336 | for i = 0,1 , 0.03 do | |
337 | if cananimate and not transformation and game.Players.LocalPlayer.Character.Torso.Velocity.x > -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.x < 0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z > -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z < 0.5 and cananimate and not transformation then | |
338 | neck.C0 = neck.C0:lerp(CFrame.new(0, 1.44722462, -0.175569534, 1, 0, 0, 0, 0.957668662, 0.28787294, 0, -0.28787291, 0.957668662),i) | |
339 | lhand.C0 = lhand.C0:lerp(CFrame.new(-0.999992371, 0.403417587, -0.400690079, 0.978886008, -0.198669523, -0.0480909608, -0.0489091128, 0.000789985002, -0.99880302, 0.198469713, 0.98006618, -0.00894344598),i) | |
340 | rhand.C0 = rhand.C0:lerp(CFrame.new(0.999992371, 0.401778936, -0.300704002, 0.995004237, 0.0998337567, 2.21675634e-07, -8.0173304e-05, 0.000801276532, -0.999999762, -0.0998337343, 0.995003879, 0.000805277436),i) | |
341 | lleg.C0 = lleg.C0:lerp(CFrame.new(-0.500003815, -0.302405119, -1.00209045, 0.998795688, 1.07394217e-05, 0.0490646139, 0.0144870952, 0.955350697, -0.295119137, -0.0468770824, 0.295474499, 0.954199851),i) | |
342 | rleg.C0 = rleg.C0:lerp(CFrame.new(0.499988556, -0.299546719, -1.00121117, 0.999991715, 1.10380352e-05, -3.05008143e-06, -1.13286078e-05, 0.955351293, -0.295472056, -2.51282472e-07, 0.295474589, 0.955343246),i) | |
343 | human.C0 = human.C0:lerp(CFrame.new(0, 1.98613644, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1):inverse(),i) | |
344 | game:GetService("RunService").RenderStepped:wait() | |
345 | end | |
346 | end | |
347 | end | |
348 | end | |
349 | wait() | |
350 | if cananimate and transformation then | |
351 | --Walking animation | |
352 | if game.Players.LocalPlayer.Character.Torso.Velocity.x < -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.x > 0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z < -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z > 0.5 and cananimate and transformation then | |
353 | for i = 0.1,0.3 , 0.008 do | |
354 | if cananimate and transformation and game.Players.LocalPlayer.Character.Torso.Velocity.x < -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.x > 0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z < -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z > 0.5 and cananimate and transformation then | |
355 | neck.C0 = neck.C0:lerp(CFrame.new(0, 1.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),i) | |
356 | human.C0 = human.C0:lerp(CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),i) | |
357 | lhand.C0 = lhand.C0:lerp(CFrame.new(-1.5, 0.168842316, -0.374614239, 1, 0, 0, 0, 0.662306964, -0.74923259, 0, 0.74923259, 0.662307084),i) | |
358 | rhand.C0 = rhand.C0:lerp(CFrame.new(1.5, 0.12597847, 0.331827164, 1, 0, 0, 0, 0.748035073, 0.663659215, 0, -0.663659275, 0.748035014),i) | |
359 | rleg.C0 = rleg.C0:lerp(CFrame.new(0.5, -1.67391682, -0.738807678, 0.99999994, 0, 0, 0, 0.673916757, -0.738807261, 0, 0.738807321, 0.673916817),i) | |
360 | lleg.C0 = lleg.C0:lerp(CFrame.new(-0.5, -1.67705727, 0.735931396, 1, 0, 0, 0, 0.677056909, 0.735930681, 0, -0.735930741, 0.677056968),i) | |
361 | game:GetService("RunService").Stepped:wait() | |
362 | end | |
363 | end | |
364 | for i = 0.1,0.3 , 0.008 do | |
365 | if cananimate and transformation and game.Players.LocalPlayer.Character.Torso.Velocity.x < -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.x > 0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z < -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z > 0.5 and cananimate and transformation then | |
366 | neck.C0 = neck.C0:lerp(CFrame.new(0, 1.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),i) | |
367 | human.C0 = human.C0:lerp(CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),i) | |
368 | rleg.C0 = rleg.C0:lerp(CFrame.new(0.5, -1.69855976, 0.715551376, 1, 0, 0, 0, 0.698559642, 0.715551734, 0, -0.715551794, 0.698559701),i) | |
369 | lleg.C0 = lleg.C0:lerp(CFrame.new(-0.5, -1.80723953, -0.590223312, 1, 0, 0, 0, 0.807239354, -0.590224087, 0, 0.590224147, 0.807239413),i) | |
370 | lhand.C0 = lhand.C0:lerp(CFrame.new(-1.5, 0.216003418, 0.411518574, 1, 0, 0, 0, 0.567983389, 0.823040009, 0, -0.823040009, 0.567983389),i) | |
371 | rhand.C0 = rhand.C0:lerp(CFrame.new(1.5, 0.215018272, -0.41083622, 1, 0, 0, 0, 0.569954693, -0.821676135, 0, 0.821676135, 0.569954753),i) | |
372 | game:GetService("RunService").Stepped:wait() | |
373 | end | |
374 | end | |
375 | -- Idle animation | |
376 | elseif game.Players.LocalPlayer.Character.Torso.Velocity.x > -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.x < 0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z > -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z < 0.5 then | |
377 | for i = 0,1 , 0.03 do | |
378 | if cananimate and transformation and game.Players.LocalPlayer.Character.Torso.Velocity.x > -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.x < 0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z > -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z < 0.5 and cananimate and transformation then | |
379 | headweld.C0 = headweld.C0:lerp(CFrame.new(0, 1.49999976, 0, 0.939692736, 2.65673535e-22, -0.342019886, -1.42512683e-22, 1, 3.85227261e-22, 0.342019916, -3.13253081e-22, 0.939692736),i) | |
380 | humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 0.866025388, -3.86706633e-22, -0.500000238, 2.65673535e-22, 1, -3.13253081e-22, 0.500000238, 1.38448295e-22, 0.866025388):inverse(),i) | |
381 | rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -2, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1),i) | |
382 | llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.790345192, -1.96068549, 0, 0.984807849, 0.173647985, -5.23747954e-22, -0.173647985, 0.984807849, 3.13253081e-22, 5.70186845e-22, -2.1754633e-22, 1),i) | |
383 | lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.65210819, 0.0268206596, 0, 0.984807849, 0.173647985, -5.23747954e-22, -0.173647985, 0.984807849, 3.13253081e-22, 5.70186845e-22, -2.1754633e-22, 1),i) | |
384 | rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.59805298, 0.00370526314, -0.166603565, 0.984807849, -0.173648134, -3.13053391e-07, 0.171009988, 0.969846368, -0.173648238, 0.0301539954, 0.171010062, 0.984807789),i) | |
385 | game:GetService("RunService").RenderStepped:wait() | |
386 | end | |
387 | end | |
388 | end | |
389 | end | |
390 | wait() | |
391 | end |