SHOW:
|
|
- or go back to the newest paste.
1 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
2 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
3 | local RealPlayer = Player | |
4 | do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end | |
5 | --[[ | |
6 | Created by Theamazingnater | |
7 | Finally! I learned how to switch between animations depending on what bool is activated! | |
8 | Hope you enjoy the new Ultimate Guest script. | |
9 | --]] | |
10 | char = game.Players.LocalPlayer.Character | |
11 | cananimate = true | |
12 | wait(1) | |
13 | for i,v in pairs(char:GetChildren()) do | |
14 | if v.ClassName == "Shirt" or v.ClassName == "Pants" or v.ClassName == "CharacterMesh" then | |
15 | v:Destroy() | |
16 | end | |
17 | end | |
18 | print([[ | |
19 | Thanks for using my Ultimate Guest script. | |
20 | This is a newer verison, and I have been waiting to make this. | |
21 | AND I FINALLY LEARNED HOW TO SWITCH BETWEEN ANIMATIONS! | |
22 | :D | |
23 | - Theamazingnater | |
24 | Edit by ExplosiveDaniel | |
25 | User is: ]] .. char.Name) | |
26 | kills = 0 | |
27 | local Shirt = Instance.new("Shirt",char) | |
28 | Shirt.ShirtTemplate = "rbxassetid://1065446848" | |
29 | local Pants = Instance.new("Pants",char) | |
30 | Pants.PantsTemplate = "rbxassetid://1111439935" | |
31 | -- Bodycolors! | |
32 | local bdycolors = char:findFirstChild("Body Colors") | |
33 | bdycolors.TorsoColor3 = Color3.new(1,1,1) | |
34 | bdycolors.LeftArmColor3 = Color3.new(1,1,1) | |
35 | bdycolors.RightArmColor3 = Color3.new(1,1,1) | |
36 | bdycolors.HeadColor3 = Color3.new(1,1,1) | |
37 | bdycolors.LeftLegColor3 = Color3.new(1,1,1) | |
38 | bdycolors.RightLegColor3 = Color3.new(1,1,1) | |
39 | -- Sounds | |
40 | local music = Instance.new("Sound",char) | |
41 | music.SoundId = "rbxassetid://155772047" | |
42 | music.Volume = 4 | |
43 | music.Looped = true | |
44 | music:Play() | |
45 | -- Hats | |
46 | for i,v in pairs(char:GetChildren()) do | |
47 | if v.ClassName == "Accessory" or v.ClassName == "Hat" then | |
48 | v:Destroy() | |
49 | end | |
50 | end | |
51 | local Classicred = Instance.new("Part",char.Head) | |
52 | Classicred.Name = "Robloxclassicred" | |
53 | local Classicredmesh = Instance.new("FileMesh",Classicred) | |
54 | Classicredmesh.MeshId = "http://www.roblox.com/asset/?id=0" | |
55 | Classicredmesh.TextureId = "http://www.roblox.com/asset/?id=0" | |
56 | Classicredmesh.Scale = Vector3.new(1.05, 1.05, 1.05) | |
57 | local Classicredweld = Instance.new("Weld",Classicred) | |
58 | Classicredweld.Part0 = Classicred | |
59 | Classicredweld.Part1 = char.Head | |
60 | Classicredweld.C0 = CFrame.new(0.00257301331, -0.508233547, 0.112071037, 0.998388648, 0, -0.0567459799, 0, 1, 0, 0.0567459799, 0, 0.998388648) | |
61 | Classicred.CanCollide = false | |
62 | local rhandclone = game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Clone() | |
63 | game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Remove() | |
64 | local rhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso) | |
65 | rhandweld.Part0 = game.Players.LocalPlayer.Character.Torso | |
66 | rhandweld.Part1 = game.Players.LocalPlayer.Character["Right Arm"] | |
67 | rhandweld.C0 = CFrame.new(1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1) | |
68 | local lhandclone = game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Clone() | |
69 | game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Remove() | |
70 | local lhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso) | |
71 | lhandweld.Part0 = game.Players.LocalPlayer.Character.Torso | |
72 | lhandweld.Part1 = game.Players.LocalPlayer.Character["Left Arm"] | |
73 | lhandweld.C0 = CFrame.new(-1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1) | |
74 | local llegweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso) | |
75 | llegweld.Part0 = game.Players.LocalPlayer.Character.Torso | |
76 | llegweld.Part1 = game.Players.LocalPlayer.Character["Left Leg"] | |
77 | llegweld.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) * CFrame.new(0,-1,0) | |
78 | local rlegclone = game.Players.LocalPlayer.Character.Torso["Right Hip"]:Clone() | |
79 | game.Players.LocalPlayer.Character.Torso["Right Hip"]:Remove() | |
80 | local rlegweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso) | |
81 | rlegweld.Part0 = game.Players.LocalPlayer.Character.Torso | |
82 | rlegweld.Part1 = game.Players.LocalPlayer.Character["Right Leg"] | |
83 | rlegweld.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) * CFrame.new(0,-1,0) | |
84 | local rootjointclone = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:Clone() | |
85 | game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:Remove() | |
86 | local humanoidrootpart = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso) | |
87 | humanoidrootpart.Part0 = game.Players.LocalPlayer.Character.HumanoidRootPart | |
88 | humanoidrootpart.Part1 = game.Players.LocalPlayer.Character.Torso | |
89 | local heed = game.Players.LocalPlayer.Character.Torso["Neck"]:Clone() | |
90 | local headweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso) | |
91 | headweld.Part0 = game.Players.LocalPlayer.Character.Torso | |
92 | headweld.Part1 = game.Players.LocalPlayer.Character.Head | |
93 | headweld.C0 = headweld.C0 * CFrame.new(0,1.5,0) | |
94 | wait() | |
95 | function swait(num) | |
96 | if num == 0 or num == nil then | |
97 | game:service("RunService").Stepped:wait(0) | |
98 | else | |
99 | for i = 0, num do | |
100 | game:service("RunService").Stepped:wait(0) | |
101 | end | |
102 | end | |
103 | end | |
104 | function swait(num) | |
105 | if num==0 or num==nil then | |
106 | game:service'RunService'.Stepped:wait(0) | |
107 | else | |
108 | for i=0,num do | |
109 | game:service'RunService'.Stepped:wait(0) | |
110 | end | |
111 | end | |
112 | end | |
113 | ||
114 | function chatfunc(text) | |
115 | local chat = coroutine.wrap(function() | |
116 | if char:FindFirstChild("TalkingBillBoard")~= nil then | |
117 | char:FindFirstChild("TalkingBillBoard"):destroy() | |
118 | end | |
119 | local naeeym2 = Instance.new("BillboardGui",char) | |
120 | naeeym2.Size = UDim2.new(0,100,0,40) | |
121 | naeeym2.StudsOffset = Vector3.new(0,3,0) | |
122 | naeeym2.Adornee = char.Head | |
123 | naeeym2.Name = "TalkingBillBoard" | |
124 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
125 | tecks2.BackgroundTransparency = 1 | |
126 | tecks2.BorderSizePixel = 0 | |
127 | tecks2.Text = "" | |
128 | tecks2.Font = "Fantasy" | |
129 | tecks2.TextSize = 30 | |
130 | tecks2.TextStrokeTransparency = 0 | |
131 | tecks2.TextColor3 = Color3.new(.6,0,0) | |
132 | tecks2.TextStrokeColor3 = Color3.new(0,0,0) | |
133 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
134 | local tecks3 = Instance.new("TextLabel",naeeym2) | |
135 | tecks3.BackgroundTransparency = 1 | |
136 | tecks3.BorderSizePixel = 0 | |
137 | tecks3.Text = "" | |
138 | tecks3.Font = "Fantasy" | |
139 | tecks3.TextSize = 30 | |
140 | tecks3.TextStrokeTransparency = 0 | |
141 | tecks3.TextColor3 = Color3.new(1,1,1) | |
142 | tecks3.TextStrokeColor3 = Color3.new(0,0,0) | |
143 | tecks3.Size = UDim2.new(1,0,0.5,0) | |
144 | for i = 1,string.len(text),1 do | |
145 | tecks2.Text = string.sub(text,1,i) | |
146 | tecks3.Text = string.sub(text,1,i) | |
147 | wait(0.01) | |
148 | end | |
149 | wait(2) | |
150 | for i = 1, 50 do | |
151 | swait() | |
152 | tecks2.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5)) | |
153 | tecks2.Rotation = tecks2.Rotation - .8 | |
154 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
155 | tecks2.TextTransparency = tecks2.TextTransparency + .04 | |
156 | tecks3.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5)) | |
157 | tecks3.Rotation = tecks2.Rotation + .8 | |
158 | tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
159 | tecks3.TextTransparency = tecks2.TextTransparency + .04 | |
160 | end | |
161 | naeeym2:Destroy() | |
162 | end) | |
163 | chat() | |
164 | end | |
165 | function onChatted(msg) | |
166 | chatfunc(msg) | |
167 | end | |
168 | local txtfag = Instance.new("BillboardGui", game.Players.LocalPlayer.Character.Head) | |
169 | txtfag.Adornee = suckadick | |
170 | txtfag.Name = "kys nigga" | |
171 | txtfag.Size = UDim2.new(2, 0, 1.2, 0) | |
172 | txtfag.StudsOffset = Vector3.new(-5, 3, 0) | |
173 | local textfag = Instance.new("TextLabel", txtfag) | |
174 | textfag.Size = UDim2.new(6, 0, 1, 0) | |
175 | textfag.FontSize = "Size8" | |
176 | textfag.TextScaled = true | |
177 | textfag.TextTransparency = 0 | |
178 | textfag.BackgroundTransparency = 1 | |
179 | textfag.TextTransparency = 0 | |
180 | textfag.TextStrokeTransparency = 0 | |
181 | textfag.Font = "SourceSans" | |
182 | textfag.TextStrokeColor3 = Color3.new(0, 1, 0) | |
183 | v = Instance.new("Part") | |
184 | v.Name = "ColorBrick" | |
185 | v.Parent = part | |
186 | v.FormFactor = "Symmetric" | |
187 | v.Anchored = true | |
188 | v.CanCollide = false | |
189 | v.BottomSurface = "Smooth" | |
190 | v.TopSurface = "Smooth" | |
191 | v.Size = Vector3.new(10, 5, 3) | |
192 | v.Transparency = 0.7 | |
193 | v.BrickColor = game.Players.LocalPlayer.Character.Torso.BrickColor | |
194 | v.Transparency = 1 | |
195 | textfag.TextColor3 = BrickColor.new("Institutional white").Color | |
196 | textfag.TextStrokeColor3 = BrickColor.new("Institutional white").Color | |
197 | v.Shape = "Block" | |
198 | textfag.Text = "Sad Sans" | |
199 | coroutine.resume(coroutine.create(function() | |
200 | while textfag ~= nil do | |
201 | swait() | |
202 | textfag.Position = UDim2.new(math.random(-.2,.2),math.random(-3,3),.05,math.random(-3,3)) | |
203 | textfag.Rotation = math.random(-3,3) | |
204 | end | |
205 | end)) | |
206 | human = humanoidrootpart | |
207 | neck = headweld | |
208 | lhand = lhandweld | |
209 | rhand = rhandweld | |
210 | rleg = rlegweld | |
211 | lleg = llegweld | |
212 | char.Head.face.Texture = "http://www.roblox.com/asset/?id=773027221" | |
213 | transformation = false | |
214 | local kills2 = Instance.new("ScreenGui",game.Players.LocalPlayer.PlayerGui) -- This will make a ScreenGui, which shows how much kills ya got. | |
215 | local text = Instance.new("TextLabel",kills2) | |
216 | text.Text = "Kills: " .. kills -- Changes the text to "Kills: 0" since the value is 0. | |
217 | text.Position = UDim2.new(0.728, 0,0.793, 0) -- This position failed, don't know why. | |
218 | text.Size = UDim2.new(0.271, 0,0.207, 0) | |
219 | text.TextColor3 = textfag.TextColor3 | |
220 | text.TextScaled = true | |
221 | text.BackgroundTransparency = 1 | |
222 | local number = Instance.new("NumberValue",char) -- Creates a NumberValue, which is the Kills value. | |
223 | number.Name = "Kills" | |
224 | number.Value = kills -- Changes the value to 0. | |
225 | coroutine.wrap(function() -- Changes value. | |
226 | while true do | |
227 | wait(0.01) | |
228 | number.Value = kills | |
229 | text.Text = "Kills: " .. number.Value -- Allows text to change. | |
230 | end | |
231 | end)() | |
232 | function Transform(key) | |
233 | if key == "e" and not transformation then | |
234 | transformation = true | |
235 | cananimate = false | |
236 | for i = 0,1 , 0.03 do | |
237 | 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) | |
238 | lleg.C0 = lleg.C0:lerp(CFrame.new(-0.5, -1.9999913, 0, 1, 0, 0, 0, 0.999995589, 0, 0, 0, 1),i) | |
239 | 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) | |
240 | rleg.C0 = rleg.C0:lerp(CFrame.new(0.5, -1.9999913, 0, 1, 0, 0, 0, 0.999995589, 0, 0, 0, 1),i) | |
241 | neck.C0 = neck.C0:lerp(CFrame.new(0, 1.4999938, 0, 1, 0, 0, 0, 0.999995708, 0, 0, 0, 1),i) | |
242 | human.C0 = human.C0:lerp(CFrame.new(0, 0, 0, 1, 0, 0, 0, 0.999995708, 0, 0, 0, 1),i) | |
243 | game:GetService("RunService").RenderStepped:wait() | |
244 | end | |
245 | wait(1) | |
246 | char.Humanoid.WalkSpeed = 0 | |
247 | chatfunc("...") | |
248 | wait(2) | |
249 | chatfunc("Chara should die.") | |
250 | wait(2) | |
251 | ||
252 | local Part = Instance.new("Part", char) | |
253 | Part.Anchored = true | |
254 | Part.CanCollide = false | |
255 | Part.Position = char.Torso.Position | |
256 | Part.Size = Vector3.new(1,1,1) | |
257 | Part.Material = "Neon" | |
258 | local Mesh = Instance.new("SpecialMesh", Part) | |
259 | Mesh.MeshType = "Sphere" | |
260 | ||
261 | for i = 1,10 do | |
262 | game:GetService("RunService").RenderStepped:wait() | |
263 | for i = 1,30 do | |
264 | game:GetService("RunService").RenderStepped:wait(0.00000001) | |
265 | Part.Size = Part.Size + Vector3.new(2, 2, 2) | |
266 | Part.Color = Part.Color:lerp(Color3.fromRGB(255, 255, 255), 0.1) | |
267 | end | |
268 | ||
269 | for i = 1,30 do | |
270 | game:GetService("RunService").RenderStepped:wait(0.00000001) | |
271 | Part.Size = Part.Size - Vector3.new(2, 2, 2) | |
272 | Part.Color = Part.Color:lerp(Color3.fromRGB(0, 0, 0), 0.1) | |
273 | end | |
274 | end | |
275 | Mesh.MeshType = "Cylinder" | |
276 | Part.Position = char.Torso.Position | |
277 | Part.Orientation = Vector3.new(0,0,90) | |
278 | music.SoundId = "http://www.roblox.com/asset/?id=400786493" | |
279 | music:Play() | |
280 | for i = 1,200 do | |
281 | game:GetService("RunService").RenderStepped:wait(0.00000001) | |
282 | Mesh.Scale = Mesh.Scale + Vector3.new(10, 0.1, 0.1) | |
283 | Part.Transparency = Part.Transparency + 0.005 | |
284 | Part.Color = Part.Color:lerp(Color3.fromRGB(255, 255, 0), 0.1) | |
285 | end | |
286 | Part:Destroy() | |
287 | textfag.Text = "Ultimate SANES" | |
288 | cananimate = true | |
289 | char.Humanoid.WalkSpeed = 16 | |
290 | chatfunc("Get READY CHARA!") | |
291 | char.Head.face.Texture = "http://www.roblox.com/asset/?id=897323189" | |
292 | function onTouched(brick) | |
293 | local humn = brick.Parent:FindFirstChildOfClass("Humanoid") | |
294 | if humn then | |
295 | kills = kills + 1 | |
296 | for i,v in pairs(humn.Parent:GetChildren()) do | |
297 | if v.ClassName == "Part" then | |
298 | v.Anchored = true | |
299 | v.Transparency = 0.5 | |
300 | v.Color = BrickColor.new("Really black").Color | |
301 | v.CanCollide = false | |
302 | humn:Destroy() | |
303 | end | |
304 | end | |
305 | end | |
306 | end | |
307 | char.Torso.Touched:connect(onTouched) | |
308 | end | |
309 | end | |
310 | ||
311 | game.Players.LocalPlayer:GetMouse().KeyDown:connect(Transform) | |
312 | while true do | |
313 | wait(0.01) | |
314 | for i,v in pairs(char:GetChildren()) do | |
315 | if v.ClassName == "Accessory" or v.ClassName == "Hat" then | |
316 | v:Destroy() | |
317 | end | |
318 | end | |
319 | if cananimate and not transformation then | |
320 | --Walking animation | |
321 | 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 | |
322 | for i = 0.1,0.3 , 0.008 do | |
323 | 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 | |
324 | human.C0 = human.C0:lerp(CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),i) | |
325 | 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) | |
326 | 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) | |
327 | 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) | |
328 | 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) | |
329 | 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) | |
330 | game:GetService("RunService").Stepped:wait() | |
331 | end | |
332 | end | |
333 | for i = 0.1,0.3 , 0.008 do | |
334 | 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 | |
335 | human.C0 = human.C0:lerp(CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),i) | |
336 | 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) | |
337 | 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) | |
338 | 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) | |
339 | 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) | |
340 | 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) | |
341 | game:GetService("RunService").Stepped:wait() | |
342 | end | |
343 | end | |
344 | -- Idle animation | |
345 | 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 | |
346 | for i = 0,1 , 0.03 do | |
347 | 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 | |
348 | 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) | |
349 | 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) | |
350 | 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) | |
351 | 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) | |
352 | 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) | |
353 | human.C0 = human.C0:lerp(CFrame.new(0, 1.98613644, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1):inverse(),i) | |
354 | game:GetService("RunService").RenderStepped:wait() | |
355 | end | |
356 | end | |
357 | end | |
358 | end | |
359 | wait() | |
360 | if cananimate and transformation then | |
361 | --Walking animation | |
362 | 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 | |
363 | for i = 0.1,0.3 , 0.008 do | |
364 | 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 | |
365 | neck.C0 = neck.C0:lerp(CFrame.new(0, 1.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),i) | |
366 | human.C0 = human.C0:lerp(CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),i) | |
367 | 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) | |
368 | 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) | |
369 | 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) | |
370 | 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) | |
371 | game:GetService("RunService").Stepped:wait() | |
372 | end | |
373 | end | |
374 | for i = 0.1,0.3 , 0.008 do | |
375 | 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 | |
376 | neck.C0 = neck.C0:lerp(CFrame.new(0, 1.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),i) | |
377 | human.C0 = human.C0:lerp(CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),i) | |
378 | 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) | |
379 | 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) | |
380 | 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) | |
381 | 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) | |
382 | game:GetService("RunService").Stepped:wait() | |
383 | end | |
384 | end | |
385 | -- Idle animation | |
386 | 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 | |
387 | for i = 0,1 , 0.03 do | |
388 | 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 | |
389 | 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) | |
390 | 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) | |
391 | 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) | |
392 | 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) | |
393 | 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) | |
394 | 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) | |
395 | game:GetService("RunService").RenderStepped:wait() | |
396 | end | |
397 | end | |
398 | end | |
399 | end | |
400 | wait() | |
401 | end |