SHOW:
|
|
- or go back to the newest paste.
1 | Instance.new("HopperBin",game.Players.LocalPlayer.Backpack).Name = "Earth-shattering kamehameha" | |
2 | script.Parent = game.Players.LocalPlayer.Backpack:findFirstChild"Earth-shattering kamehameha" | |
3 | local char = script.Parent.Parent.Parent.Character | |
4 | local humanoid = char.Humanoid | |
5 | local Head = char.Head | |
6 | local Torso = char.Torso | |
7 | local LeftArm = char["Left Arm"] | |
8 | local RightArm = char["Right Arm"] | |
9 | local LeftLeg = char["Left Leg"] | |
10 | local RightLeg = char["Right Leg"] | |
11 | local RightHip = Torso["Right Hip"] | |
12 | local LeftHip = Torso["Left Hip"] | |
13 | local Neck = Torso.Neck | |
14 | local RightShoulder = Torso["Right Shoulder"] | |
15 | local LeftShoulder = Torso["Left Shoulder"] | |
16 | local NeckC0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
17 | local NeckC1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
18 | local LeftShoulderC0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
19 | local LeftShoulderC1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
20 | local RightShoulderC0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
21 | local RightShoulderC1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
22 | local LeftHipC0 = CFrame.new(-1, -1, 0, 0, 0, -1,0,1, 0, 1, 0, 0) | |
23 | local LeftHipC1 = CFrame.new(-0.5,1,0,0,0,-1,0,1,0,1, 0, 0) | |
24 | local RightHipC0 = CFrame.new(1,-1,0,0,0,1,0,1,0,-1,0,0) | |
25 | local RightHipC1 = CFrame.new(0.5,1,0,0,0,1,0,1,0,-1,0,0) | |
26 | local taco = false | |
27 | local taco2 = true | |
28 | local time = game.Lighting.TimeOfDay | |
29 | local h = tonumber(string.sub(time,1,2)) | |
30 | local m = tonumber(string.sub(time,4,5))+1 | |
31 | local s = tonumber(string.sub(time,7,8)) | |
32 | local function frame() | |
33 | TiltX = 0 | |
34 | TiltY = 0 | |
35 | TiltZ = 0 | |
36 | RightShoulder.C0 = RightShoulderC0 * CFrame.Angles(TiltX, TiltY, TiltZ) | |
37 | LeftShoulder.C0 = LeftShoulderC0 * CFrame.Angles(TiltX, TiltY, -TiltZ) | |
38 | TiltX = -1.65 | |
39 | TiltY = 0 | |
40 | TiltZ = 0 | |
41 | MoveX = 0 | |
42 | MoveY = -0.31 | |
43 | MoveZ = -0.4 | |
44 | RightShoulder.C0 = RightShoulder.C0 * CFrame.Angles(TiltX, TiltY, TiltZ) * CFrame.new(MoveX,MoveY,MoveZ) | |
45 | LeftShoulder.C0 = LeftShoulder.C0 * CFrame.Angles(TiltX, TiltY, TiltZ) * CFrame.new(MoveX,MoveY,MoveZ) | |
46 | TiltX = -0.12 | |
47 | TiltY = -0.01 | |
48 | TiltZ = -0.1 | |
49 | MoveX = 0 | |
50 | MoveY = 0.2 | |
51 | MoveZ = 0 | |
52 | RightHip.C0 = RightHipC0 * CFrame.Angles(TiltX, TiltY, TiltZ) * CFrame.new(MoveX,MoveY,MoveZ) | |
53 | LeftHip.C0 = LeftHipC0 * CFrame.Angles(TiltX, TiltY, TiltZ) * CFrame.new(MoveX,MoveY,MoveZ) | |
54 | end | |
55 | function switch(bool) | |
56 | for i,v in pairs(char:GetChildren())do | |
57 | if v == Torso or v == Head or v == LeftArm or v == RightArm or v == LeftLeg or v == RightLeg then | |
58 | v.Anchored = bool | |
59 | end end end | |
60 | local function frame2() | |
61 | TiltX = 0 | |
62 | TiltY = 0 | |
63 | TiltZ = 1.57 | |
64 | RightShoulder.C0 = RightShoulderC0 * CFrame.Angles(TiltX, TiltY, TiltZ) | |
65 | LeftShoulder.C0 = LeftShoulderC0 * CFrame.Angles(TiltX, TiltY, -TiltZ) | |
66 | TiltX = 0.6 | |
67 | TiltY = 0 | |
68 | TiltZ = 0 | |
69 | MoveX = 0 | |
70 | MoveY = 0 | |
71 | MoveZ = -0.3 | |
72 | RightShoulder.C0 = RightShoulder.C0 * CFrame.Angles(TiltX, TiltY, TiltZ) * CFrame.new(MoveX, MoveY, MoveZ) | |
73 | LeftShoulder.C0 = LeftShoulder.C0 * CFrame.Angles(TiltX, TiltY, TiltZ) * CFrame.new(MoveX, MoveY, MoveZ) | |
74 | TiltX = -0.05 | |
75 | TiltY = 0 | |
76 | TiltZ = 0 | |
77 | MoveX = 0 | |
78 | MoveY = 0.1 | |
79 | MoveZ = 0 | |
80 | RightHip.C0 = RightHipC0 * CFrame.Angles(TiltX, TiltY, TiltZ) * CFrame.new(MoveX, MoveY, MoveZ) | |
81 | LeftHip.C0 = LeftHipC0 * CFrame.Angles(TiltX, TiltY, TiltZ) * CFrame.new(MoveX, MoveY, MoveZ) | |
82 | end | |
83 | local function RefreshWelds() | |
84 | Neck.C0 = NeckC0 | |
85 | Neck.C1 = NeckC1 | |
86 | RightShoulder.C0 = RightShoulderC0 | |
87 | RightShoulder.C1 = RightShoulderC1 | |
88 | LeftShoulder.C0 = LeftShoulderC0 | |
89 | LeftShoulder.C1 = LeftShoulderC1 | |
90 | RightHip.C0 = RightHipC0 | |
91 | RightHip.C1 = RightHipC1 | |
92 | LeftHip.C0 = LeftHipC0 | |
93 | LeftHip.C1 = LeftHipC1 | |
94 | end | |
95 | local function Button1Down(mouse) | |
96 | if taco then return end | |
97 | taco = true | |
98 | humanoid.PlatformStand = true | |
99 | local staystill = Instance.new("BodyPosition",Torso) | |
100 | staystill.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
101 | staystill.position = Torso.Position | |
102 | frame() | |
103 | local energy = Instance.new("Part",char) | |
104 | energy.Size = Vector3.new(0.1,0.1,0.1) | |
105 | energy.CanCollide = false | |
106 | energy.Anchored = true | |
107 | energy.Locked = true | |
108 | energy.Shape = "Ball" | |
109 | energy.TopSurface = "Smooth" | |
110 | energy.BottomSurface = "Smooth" | |
111 | energy.Color = Color3.new(0/0,0/0,0/0) | |
112 | energy.CFrame = RightArm.CFrame * CFrame.new(-0.1,-0.7,-0.6) | |
113 | local energy2 = Instance.new("Part",char) | |
114 | energy2.Size = Vector3.new(0.1,0.1,0.1) | |
115 | energy2.CanCollide = false | |
116 | energy2.Anchored = true | |
117 | energy2.Locked = true | |
118 | energy2.Shape = "Ball" | |
119 | energy2.TopSurface = "Smooth" | |
120 | energy2.BottomSurface = "Smooth" | |
121 | energy2.Color = Color3.new(0.0,0.0,0.0) | |
122 | energy2.CFrame = LeftArm.CFrame * CFrame.new(0,-0.7,-0.6) | |
123 | local f1 = Instance.new("Fire",energy) | |
124 | f1.Color = energy.Color | |
125 | f1.SecondaryColor = Color3.new(0,0,0) | |
126 | f1.Heat = 0 | |
127 | local f2 = Instance.new("Fire",energy2) | |
128 | f2.Color = energy2.Color | |
129 | f2.SecondaryColor = Color3.new(1,1,1) | |
130 | f2.Heat = 0 | |
131 | local f1 = Instance.new("Fire",energy) | |
132 | f1.Color = energy.Color | |
133 | f1.SecondaryColor = Color3.new(0,0,0) | |
134 | f1.Heat = 0 | |
135 | local f2 = Instance.new("Fire",energy2) | |
136 | f2.Color = energy2.Color | |
137 | f2.SecondaryColor = Color3.new(1,1,1) | |
138 | f2.Heat = 0 | |
139 | local f1 = Instance.new("Fire",energy) | |
140 | f1.Color = energy.Color | |
141 | f1.SecondaryColor = Color3.new(0,0,0) | |
142 | f1.Heat = 0 | |
143 | local f2 = Instance.new("Fire",energy2) | |
144 | f2.Color = energy2.Color | |
145 | f2.SecondaryColor = Color3.new(1,1,1) | |
146 | f2.Heat = 0 | |
147 | --[[ ]] | |
148 | ||
149 | ||
150 | ||
151 | ||
152 | ||
153 | switch(true) | |
154 | wait(0.5) | |
155 | repeat m = m * 2 if m >= 60 then m = 1 h = h + 1 end game.Lighting.TimeOfDay = ""..h..":"..m..":"..s.."" wait(0) until game.Lighting.TimeOfDay >= "18:00:00" | |
156 | for i = 1,10 do | |
157 | energy.CFrame = RightArm.CFrame * CFrame.new(-0.1,-0.7,-0.6) | |
158 | energy2.CFrame = LeftArm.CFrame * CFrame.new(0,-0.7,-0.6) | |
159 | energy.Size = energy.Size + Vector3.new(0.5,0.5,0.5) | |
160 | energy2.Size = energy2.Size + Vector3.new(0.5,0.5,0.5) | |
161 | energy.Reflectance = energy.Reflectance + 0.1 | |
162 | energy2.Reflectance = energy2.Reflectance + 0.1 | |
163 | wait() | |
164 | energy.CFrame = RightArm.CFrame * CFrame.new(-0.1,-0.7,-0.6) | |
165 | energy2.CFrame = LeftArm.CFrame * CFrame.new(0,-0.7,-0.6) | |
166 | end | |
167 | game:GetService("Chat"):Chat(Head,"Dark Power Wave",0) | |
168 | wait(0.6) | |
169 | switch(false) | |
170 | frame2() | |
171 | wait() | |
172 | switch(true) | |
173 | for i = 1,10 do | |
174 | wait() | |
175 | energy.CFrame = energy.CFrame * CFrame.new(0,0.25,-0.25) | |
176 | energy2.CFrame = energy2.CFrame * CFrame.new(0,0.25,-0.25) | |
177 | end | |
178 | for i = 1,20 do | |
179 | energy.Size = energy.Size * Vector3.new(0.5,0.5,0.5) | |
180 | energy2.Size = energy2.Size * Vector3.new(0.5,0.5,0.5) | |
181 | energy.Reflectance = energy.Reflectance - 0.1 | |
182 | energy2.Reflectance = energy2.Reflectance - 0.1 | |
183 | wait() | |
184 | energy.CFrame = Torso.CFrame * CFrame.new(0,0.2,-4.5) | |
185 | energy2.CFrame = Torso.CFrame * CFrame.new(0,0.2,-4.5) | |
186 | end | |
187 | energy:Destroy() | |
188 | energy2:Destroy() | |
189 | wait(0.6) | |
190 | game:GetService("Chat"):Chat(Head,"Enitiated",0) | |
191 | local blast = Instance.new("Part",char) | |
192 | blast.Size = Vector3.new(8,8,8) | |
193 | blast.Shape = "Ball" | |
194 | blast.TopSurface = "Smooth" | |
195 | blast.BottomSurface = "Smooth" | |
196 | blast.Anchored = true | |
197 | blast.Locked = true | |
198 | blast.CanCollide = false | |
199 | blast.Color = Color3.new(0/0,0/0,0/0) | |
200 | blast.Transparency = 0 | |
201 | blast.CFrame = Torso.CFrame * CFrame.new(0,0.2,-6.5) | |
202 | wait(0.6) | |
203 | game:GetService("Chat"):Chat(Head,"Now Die...",1) | |
204 | local xf = Instance.new("Fire",blast) | |
205 | xf.Size = 25 | |
206 | xf.Color = blast.Color | |
207 | xf.SecondaryColor = Color3.new(0.0,0.0,0.0) | |
208 | xf.Heat = 0 | |
209 | local xf = Instance.new("Fire",blast) | |
210 | xf.Size = 25 | |
211 | xf.Color = blast.Color | |
212 | xf.SecondaryColor = Color3.new(0.0,0.0,0.0) | |
213 | xf.Heat = 0 | |
214 | for i = 1,20 do | |
215 | blast.Transparency = blast.Transparency + 0.05 | |
216 | blast.Reflectance = blast.Reflectance + 0.01 | |
217 | wait(0.1) | |
218 | if blast.Transparency >= 1 then | |
219 | blast.Transparency = blast.Transparency - 0.1 | |
220 | end end | |
221 | blast.Transparency = 0.1 | |
222 | wait(0.5) | |
223 | game:GetService("Chat"):Chat(Head,".............",2) | |
224 | coroutine.resume(coroutine.create(function() | |
225 | for i = 1,5 do wait(0) | |
226 | local p = Instance.new("Part",blast) | |
227 | p.Size = Vector3.new(0,0,0) | |
228 | p.Anchored = true | |
229 | p.CanCollide = false | |
230 | p.Locked = true | |
231 | p.BrickColor = BrickColor.new("Really black") | |
232 | p.TopSurface = "Smooth" | |
233 | p.Reflectance = 0.3 | |
234 | p.Transparency = 0.4 | |
235 | p.BottomSurface = "Smooth" | |
236 | p.CFrame = blast.CFrame * CFrame.new(0,0,0) | |
237 | local m1 = Instance.new("SpecialMesh",p) | |
238 | m1.Scale = p.Size | |
239 | m1.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
240 | local p2 = Instance.new("Part",blast) | |
241 | p2.CFrame = blast.CFrame * CFrame.new(0,0,0) | |
242 | p2.Size = Vector3.new(0,0,0) | |
243 | p2.Anchored = true | |
244 | p2.CanCollide = false | |
245 | p2.Locked = true | |
246 | p2.BrickColor = BrickColor.new("Really black") | |
247 | p2.TopSurface = "Smooth" | |
248 | p2.Reflectance = 0.3 | |
249 | p2.Transparency = 0.4 | |
250 | p2.BottomSurface = "Smooth" | |
251 | local m2 = Instance.new("SpecialMesh",p2) | |
252 | m2.Scale = p2.Size | |
253 | m2.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
254 | local p3 = Instance.new("Part",blast) | |
255 | p3.Size = Vector3.new(0,0,0) | |
256 | p3.Anchored = true | |
257 | p3.CanCollide = false | |
258 | p3.Locked = true | |
259 | p3.Color = blast.Color | |
260 | p3.TopSurface = "Smooth" | |
261 | p3.Reflectance = 0.3 | |
262 | p3.Transparency = 0.4 | |
263 | p3.BottomSurface = "Smooth" | |
264 | p3.CFrame = blast.CFrame * CFrame.new(0,0,0) | |
265 | local m3 = Instance.new("SpecialMesh",p3) | |
266 | m3.Scale = p.Size | |
267 | m3.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
268 | coroutine.resume(coroutine.create(function() | |
269 | for i = 1,20 do wait(0) | |
270 | m1.Scale = m1.Scale + Vector3.new(5,5,5) | |
271 | p.CFrame = p.CFrame * CFrame.new(0,0,-5) | |
272 | end | |
273 | p:Destroy() | |
274 | end)) | |
275 | coroutine.resume(coroutine.create(function() | |
276 | for i = 1,20 do wait(0) | |
277 | m2.Scale = m2.Scale + Vector3.new(5,5,5) | |
278 | p2.CFrame = p2.CFrame * CFrame.new(0,0,-5) | |
279 | end | |
280 | p2:Destroy() | |
281 | end)) | |
282 | coroutine.resume(coroutine.create(function() | |
283 | for i = 1,20 do wait(0) | |
284 | m3.Scale = m3.Scale + Vector3.new(5,5,5) | |
285 | p3.CFrame = p3.CFrame * CFrame.new(0,0,-5) | |
286 | end | |
287 | p3:Destroy() | |
288 | end))end end)) | |
289 | local p = Instance.new("Part",blast) | |
290 | p.Size = blast.Size | |
291 | p.CanCollide = true | |
292 | p.Anchored = true | |
293 | p.Locked = true | |
294 | p.Color = blast.Color | |
295 | p.Reflectance = blast.Reflectance | |
296 | p.Transparency = blast.Transparency | |
297 | p.TopSurface = "Smooth" | |
298 | p.BottomSurface = "Smooth" | |
299 | p.CFrame = blast.CFrame * CFrame.fromEulerAnglesXYZ(1.57, 0, 0) | |
300 | p.Touched:connect(function(hit) | |
301 | if not taco2 then return end | |
302 | taco2 = false | |
303 | if hit.Parent:findFirstChild("Humanoid")then | |
304 | for i,v in pairs(hit.Parent:GetChildren())do | |
305 | if v:IsA"Hat" then | |
306 | v:Destroy() | |
307 | elseif v:IsA"Part" then | |
308 | v.Velocity = v.Position * Vector3.new(50,3,0) | |
309 | v.RotVelocity = v.Position - v.Velocity | |
310 | v.Parent:BreakJoints() | |
311 | end end end | |
312 | wait(8) | |
313 | taco2 = true | |
314 | end) | |
315 | local mesh = Instance.new("CylinderMesh",p) | |
316 | mesh.Scale = Vector3.new(1,0,1) | |
317 | for i = 1,150 do | |
318 | mesh.Scale = mesh.Scale + Vector3.new(-0.16,1.19,-0.16) | |
319 | p.CFrame = p.CFrame * CFrame.new(0,-5,0) | |
320 | wait(0) | |
321 | mesh.Scale = mesh.Scale + Vector3.new(0.1599,0,0.1599) | |
322 | end | |
323 | blast:Destroy() | |
324 | game.Lighting.TimeOfDay = 12 | |
325 | switch(false) | |
326 | RefreshWelds() | |
327 | humanoid.PlatformStand = false | |
328 | staystill:Destroy() | |
329 | wait(8) | |
330 | taco = false | |
331 | end | |
332 | script.Parent.Selected:connect(function(mouse)mouse.Button1Down:connect(function(mouse)Button1Down(mouse)end)end) | |
333 | ||
334 | local function QuaternionFromCFrame(cf) | |
335 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
336 | local trace = m00 + m11 + m22 | |
337 | if trace > 0 then | |
338 | local s = math.sqrt(1 + trace) | |
339 | local recip = 0.5/s | |
340 | return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 | |
341 | else | |
342 | local i = 0 | |
343 | if m11 > m00 then | |
344 | i = 1 | |
345 | end | |
346 | if m22 > (i == 0 and m00 or m11) then | |
347 | i = 2 | |
348 | end | |
349 | if i == 0 then | |
350 | local s = math.sqrt(m00-m11-m22+1) | |
351 | local recip = 0.5/s | |
352 | return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip | |
353 | elseif i == 1 then | |
354 | local s = math.sqrt(m11-m22-m00+1) | |
355 | local recip = 0.5/s | |
356 | return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip | |
357 | elseif i == 2 then | |
358 | local s = math.sqrt(m22-m00-m11+1) | |
359 | local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip | |
360 | end | |
361 | end | |
362 | end | |
363 | local function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
364 | local xs, ys, zs = x + x, y + y, z + z | |
365 | local wx, wy, wz = w*xs, w*ys, w*zs | |
366 | local xx = x*xs | |
367 | local xy = x*ys | |
368 | local xz = x*zs | |
369 | local yy = y*ys | |
370 | local yz = y*zs | |
371 | local zz = z*zs | |
372 | return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy)) | |
373 | end | |
374 | local function QuaternionSlerp(a, b, t) | |
375 | local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] | |
376 | local startInterp, finishInterp; | |
377 | if cosTheta >= 0.0001 then | |
378 | if (1 - cosTheta) > 0.0001 then | |
379 | local theta = math.acos(cosTheta) | |
380 | local invSinTheta = 1/math.sin(theta) | |
381 | startInterp = math.sin((1-t)*theta)*invSinTheta | |
382 | finishInterp = math.sin(t*theta)*invSinTheta | |
383 | else | |
384 | startInterp = 1-t | |
385 | finishInterp = t | |
386 | end | |
387 | else | |
388 | if (1+cosTheta) > 0.0001 then | |
389 | local theta = math.acos(-cosTheta) | |
390 | local invSinTheta = 1/math.sin(theta) | |
391 | startInterp = math.sin((t-1)*theta)*invSinTheta | |
392 | finishInterp = math.sin(t*theta)*invSinTheta | |
393 | else | |
394 | startInterp = t-1 | |
395 | finishInterp = t | |
396 | end | |
397 | end | |
398 | return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp | |
399 | end | |
400 | function clerp(a,b,t) | |
401 | local qa = {QuaternionFromCFrame(a)} | |
402 | local qb = {QuaternionFromCFrame(b)} | |
403 | local ax, ay, az = a.x, a.y, a.z | |
404 | local bx, by, bz = b.x, b.y, b.z | |
405 | local _t = 1-t | |
406 | return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) | |
407 | end | |
408 | ||
409 | do --the animating | |
410 | plr = game:service'Players'.LocalPlayer | |
411 | char = plr.Character | |
412 | mouse = plr:GetMouse() | |
413 | humanoid = char:findFirstChild("Humanoid") | |
414 | torso = char:findFirstChild("Torso") | |
415 | head = char.Head | |
416 | ra = char:findFirstChild("Right Arm") | |
417 | la = char:findFirstChild("Left Arm") | |
418 | rl = char:findFirstChild("Right Leg") | |
419 | ll = char:findFirstChild("Left Leg") | |
420 | rs = torso:findFirstChild("Right Shoulder") | |
421 | ls = torso:findFirstChild("Left Shoulder") | |
422 | rh = torso:findFirstChild("Right Hip") | |
423 | lh = torso:findFirstChild("Left Hip") | |
424 | neck = torso:findFirstChild("Neck") | |
425 | rj = char:findFirstChild("HumanoidRootPart"):findFirstChild("RootJoint") | |
426 | anim = char:findFirstChild("Animate") | |
427 | rootpart = char:findFirstChild("HumanoidRootPart") | |
428 | camera = workspace.CurrentCamera | |
429 | if anim then | |
430 | anim:Destroy() | |
431 | end | |
432 | ||
433 | ||
434 | local rm = Instance.new("Motor", torso) | |
435 | rm.C0 = CFrame.new(1.5, 0.5, 0) | |
436 | rm.C1 = CFrame.new(0, 0.5, 0) | |
437 | rm.Part0 = torso | |
438 | rm.Part1 = ra | |
439 | local lm = Instance.new("Motor", torso) | |
440 | lm.C0 = CFrame.new(-1.5, 0.5, 0) | |
441 | lm.C1 = CFrame.new(0, 0.5, 0) | |
442 | lm.Part0 = torso | |
443 | lm.Part1 = la | |
444 | ||
445 | local rlegm = Instance.new("Motor", torso) | |
446 | rlegm.C0 = CFrame.new(0.5, -1, 0) | |
447 | rlegm.C1 = CFrame.new(0, 1, 0) | |
448 | rlegm.Part0 = torso | |
449 | rlegm.Part1 = rl | |
450 | local llegm = Instance.new("Motor", torso) | |
451 | llegm.C0 = CFrame.new(-0.5, -1, 0) | |
452 | llegm.C1 = CFrame.new(0, 1, 0) | |
453 | llegm.Part0 = torso | |
454 | llegm.Part1 = ll | |
455 | ||
456 | neck.C0 = CFrame.new(0, 1, 0) | |
457 | neck.C1 = CFrame.new(0, -0.5, 0) | |
458 | ||
459 | ||
460 | rj.C0 = CFrame.new() | |
461 | rj.C1 = CFrame.new() | |
462 | ||
463 | ||
464 | local sound = Instance.new("Sound", head) | |
465 | sound.SoundId = "http://www.roblox.com/asset/?id=130797915" | |
466 | sound.Volume = 0.8 | |
467 | sound.Looped = true | |
468 | ||
469 | for i,v in pairs(char:children()) do | |
470 | if v:IsA("Hat") then | |
471 | v:Destroy() | |
472 | end | |
473 | end | |
474 | ||
475 | ||
476 | --look of the fox here | |
477 | ||
478 | game:service'InsertService':LoadAsset(74225426):children()[1].Parent = char | |
479 | Instance.new("PointLight", torso).Range = 10 | |
480 | ||
481 | game:service'InsertService':LoadAsset(1309911):children()[1].Parent = char | |
482 | Instance.new("PointLight", torso).Range = 10 | |
483 | ||
484 | game:service'InsertService':LoadAsset(19380685):children()[1].Parent = char | |
485 | Instance.new("PointLight", torso).Range = 10 | |
486 | ||
487 | if char:findFirstChild("Shirt") then | |
488 | char:findFirstChild("Shirt"):Destroy() | |
489 | end | |
490 | if char:findFirstChild("Pants") then | |
491 | char:findFirstChild("Pants"):Destroy() | |
492 | end | |
493 | if char:findFirstChild("Shirt Graphic") then | |
494 | char:findFirstChild("Shirt Graphic"):Destroy() | |
495 | end | |
496 | if char:findFirstChild("T-Shirt") then | |
497 | char:findFirstChild("T-Shirt"):Destroy() | |
498 | end | |
499 | ||
500 | print'Smokedelsin(Aka wable3) Made. BRUH BRUH' | |
501 | ||
502 | ||
503 | local speed = 0.3 | |
504 | local angle = 0 | |
505 | local sitting = false | |
506 | local humanwalk = false | |
507 | local anglespeed = 1 | |
508 | rsc0 = rm.C0 | |
509 | lsc0 = lm.C0 | |
510 | llc0 = llegm.C0 | |
511 | rlc0 = rlegm.C0 | |
512 | neckc0 = neck.C0 | |
513 | ||
514 | local controllerService = game:GetService("ControllerService") | |
515 | local controller = controllerService:GetChildren()[1] | |
516 | ||
517 | controller.Parent = nil | |
518 | ||
519 | Instance.new("HumanoidController", game:service'ControllerService') | |
520 | Instance.new("SkateboardController", game:service'ControllerService') | |
521 | Instance.new("VehicleController", game:service'ControllerService') | |
522 | local controller = controllerService:GetChildren()[1] | |
523 | mouse.KeyDown:connect(function(k) | |
524 | if k == "q" then | |
525 | humanwalk = not humanwalk | |
526 | end | |
527 | if k == "z" then | |
528 | if not sound.IsPlaying then | |
529 | sound:stop() | |
530 | sound.SoundId = "http://www.roblox.com/asset/?id=229675673" | |
531 | wait() | |
532 | sound:play() | |
533 | end | |
534 | end | |
535 | if k == "x" then | |
536 | if not sound.IsPlaying then | |
537 | sound:stop() | |
538 | sound.SoundId = "http://www.roblox.com/asset/?id=179849734" | |
539 | wait() | |
540 | sound:play() | |
541 | end | |
542 | end | |
543 | if k == "c" then | |
544 | if not sound.IsPlaying then | |
545 | sound:stop() | |
546 | sound.SoundId = "http://www.roblox.com/asset/?id=142283906" | |
547 | wait() | |
548 | sound:play() | |
549 | end | |
550 | end | |
551 | if string.byte(k) == 48 then | |
552 | humanoid.WalkSpeed = 34 | |
553 | end | |
554 | ||
555 | end) | |
556 | mouse.KeyUp:connect(function(k) | |
557 | ||
558 | if string.byte(k) == 48 then | |
559 | humanoid.WalkSpeed = 16 | |
560 | end | |
561 | ||
562 | end) | |
563 | ||
564 | ||
565 | ||
566 | while wait() do | |
567 | angle = (angle % 100) + anglespeed/10 | |
568 | mvmnt = math.pi * math.sin(math.pi*2/100*(angle*10)) | |
569 | local rscf = rsc0 | |
570 | local lscf = lsc0 | |
571 | local rlcf = rlc0 | |
572 | local llcf = llc0 | |
573 | local rjcf = CFrame.new() | |
574 | local ncf = neckc0 | |
575 | local rayz = Ray.new(rootpart.Position, Vector3.new(0, -6, 0)) | |
576 | local hitz, enz = workspace:findPartOnRay(rayz, char) | |
577 | if not hitz then | |
578 | if sound.IsPlaying then | |
579 | sound:stop() | |
580 | end | |
581 | ||
582 | if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude > 2 then | |
583 | ||
584 | ncf = neckc0 * CFrame.Angles(math.pi/5, 0, 0) | |
585 | rjcf = CFrame.new() * CFrame.Angles(-math.pi/5, math.sin(angle)*0.05, 0) | |
586 | rscf = rsc0 * CFrame.Angles(math.pi/1.7+math.sin(angle)*0.1, 0, 0) | |
587 | lscf = lsc0 * CFrame.Angles(math.pi/1.7+math.sin(-angle)*0.1, 0, 0) | |
588 | rlcf = rlc0 * CFrame.Angles(-math.pi/10+math.sin(-angle)*0.3, 0, 0) | |
589 | llcf = llc0 * CFrame.Angles(-math.pi/10+math.sin(angle)*0.3, 0, 0) | |
590 | ||
591 | else | |
592 | ||
593 | ncf = neckc0 * CFrame.Angles(math.pi/14, 0, 0) | |
594 | rjcf = CFrame.new() * CFrame.Angles(-math.pi/18, math.sin(angle)*0.05, 0) | |
595 | rscf = rsc0 * CFrame.Angles(-math.pi/10+math.sin(angle)*0.2, 0, 0) | |
596 | lscf = lsc0 * CFrame.Angles(-math.pi/10+math.sin(-angle)*0.2, 0, 0) | |
597 | rlcf = rlc0 * CFrame.new(0, 0.7, -0.5) CFrame.Angles(-math.pi/14, 0, 0) | |
598 | llcf = llc0 * CFrame.Angles(-math.pi/20, 0, 0) | |
599 | ||
600 | end | |
601 | elseif humanoid.Sit then | |
602 | if sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=142283906" then | |
603 | anglespeed = 6 | |
604 | ncf = neckc0 * CFrame.Angles(math.pi/5-math.abs(math.sin(angle))*0.3, 0, 0) | |
605 | rjcf = CFrame.new(0, -0.8, 0) * CFrame.Angles(-math.pi/5, 0, 0) | |
606 | rscf = rsc0 * CFrame.new(-.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, -math.rad(15)) | |
607 | lscf = lsc0 * CFrame.new(.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, math.rad(15)) | |
608 | rlcf = rlc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, math.rad(20)) | |
609 | llcf = llc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, -math.rad(20)) | |
610 | elseif sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=179849734" then | |
611 | anglespeed = 4 | |
612 | ncf = neckc0 * CFrame.Angles(math.pi/5-math.abs(math.sin(angle))*0.3, 0, 0) | |
613 | rjcf = CFrame.new(0, -0.8, 0) * CFrame.Angles(-math.pi/5, 0, 0) | |
614 | rscf = rsc0 * CFrame.new(-.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, -math.rad(15)) | |
615 | lscf = lsc0 * CFrame.new(.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, math.rad(15)) | |
616 | rlcf = rlc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, math.rad(20)) | |
617 | llcf = llc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, -math.rad(20)) | |
618 | elseif sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=229675673" then | |
619 | anglespeed = 11 | |
620 | ncf = neckc0 * CFrame.Angles(math.pi/5, 0, math.sin(angle)*0.08) | |
621 | rjcf = CFrame.new(0, -0.8, 0) * CFrame.Angles(-math.pi/5, math.sin(angle)*0.01, 0) | |
622 | rscf = rsc0 * CFrame.new(-.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, -math.rad(15)) | |
623 | lscf = lsc0 * CFrame.new(.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, math.rad(15)) | |
624 | rlcf = rlc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, math.rad(20)) | |
625 | llcf = llc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, -math.rad(20)) | |
626 | else | |
627 | anglespeed = 1/2 | |
628 | ncf = neckc0 * CFrame.Angles(math.pi/5, 0, math.sin(angle)*0.08) | |
629 | rjcf = CFrame.new(0, -0.8, 0) * CFrame.Angles(-math.pi/5, math.sin(angle)*0.01, 0) | |
630 | rscf = rsc0 * CFrame.new(-.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, -math.rad(15)) | |
631 | lscf = lsc0 * CFrame.new(.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, math.rad(15)) | |
632 | rlcf = rlc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, math.rad(20)) | |
633 | llcf = llc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, -math.rad(20)) | |
634 | end | |
635 | elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude < 2 then | |
636 | if sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=142283906" then | |
637 | anglespeed = 4 | |
638 | ncf = neckc0 * CFrame.Angles(math.pi/10-math.abs(math.sin(angle))*0.3, 0, 0) | |
639 | rjcf = CFrame.new(0, 0, 0) * CFrame.Angles(-math.pi/20, math.sin(angle)*0.001, 0) | |
640 | rscf = rsc0 * CFrame.Angles(math.pi/2+math.abs(math.sin(angle)*1), 0, 0) | |
641 | lscf = lsc0 * CFrame.Angles(math.pi/2+math.abs(math.sin(angle)*1), 0, 0) | |
642 | rlcf = rlc0 * CFrame.Angles(math.pi/20, math.sin(angle)*0.08, math.rad(2.5)) | |
643 | llcf = llc0 * CFrame.Angles(math.pi/20, -math.sin(angle)*0.08, -math.rad(2.5)) | |
644 | elseif sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=179849734" then | |
645 | anglespeed = 2 | |
646 | ncf = neckc0 * CFrame.Angles(math.pi/10-math.abs(math.sin(angle))*0.3, 0, 0) | |
647 | rjcf = CFrame.new(0, 0, 0) * CFrame.Angles(-math.pi/20, math.sin(angle)*0.001, 0) | |
648 | rscf = rsc0 * CFrame.Angles(math.pi/2+math.abs(math.sin(angle)*1), 0, 0) | |
649 | lscf = lsc0 * CFrame.Angles(math.pi/2+math.abs(math.sin(angle)*1), 0, 0) | |
650 | rlcf = rlc0 * CFrame.Angles(math.pi/20, math.sin(angle)*0.08, math.rad(2.5)) | |
651 | llcf = llc0 * CFrame.Angles(math.pi/20, -math.sin(angle)*0.08, -math.rad(2.5)) | |
652 | elseif sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=229675673" then | |
653 | anglespeed = 9 | |
654 | ncf = neckc0 * CFrame.Angles(math.sin(angle)*0.07, math.rad(30), 0) | |
655 | rjcf = CFrame.new(0, 0, 0) * CFrame.Angles(0, math.sin(angle)*0.001, 0) | |
656 | rscf = rsc0 * CFrame.Angles(math.sin(angle)*0.05, 0, 0) | |
657 | lscf = lsc0 * CFrame.Angles(math.sin(-angle)*0.05, 0, 0) | |
658 | rlcf = rlc0 * CFrame.new(0, -0.1 + math.abs(mvmnt)*0.1, -0.1) * CFrame.Angles(0, math.rad(5), math.rad(5)) | |
659 | llcf = llc0 * CFrame.Angles(0, math.rad(2.5), math.rad(1)) | |
660 | else | |
661 | if humanwalk then | |
662 | anglespeed = 1/4 | |
663 | ncf = neckc0 * CFrame.Angles(-math.sin(angle)*0.07, 0, 0) | |
664 | rjcf = CFrame.new(0, 0, 0) * CFrame.Angles(0, math.sin(angle)*0.001, 0) | |
665 | rscf = rsc0 * CFrame.Angles(math.sin(angle)*0.1, 0, 0) | |
666 | lscf = lsc0 * CFrame.Angles(math.sin(-angle)*0.1, 0, 0) | |
667 | rlcf = rlc0 * CFrame.Angles(0, math.sin(angle)*0.08, math.rad(2.5)) | |
668 | llcf = llc0 * CFrame.Angles(0, -math.sin(angle)*0.08, -math.rad(2.5)) | |
669 | else | |
670 | anglespeed = 1/2 | |
671 | ncf = neckc0 * CFrame.Angles(math.pi/5, 0, math.sin(angle)*0.08) | |
672 | rjcf = CFrame.new(0, -2, 0) * CFrame.Angles(-math.pi/5, math.sin(angle)*0.01, 0) | |
673 | rscf = rsc0 * CFrame.new(-.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, -math.rad(15)) | |
674 | lscf = lsc0 * CFrame.new(.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, math.rad(15)) | |
675 | rlcf = rlc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, math.rad(20)) | |
676 | llcf = llc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, -math.rad(20)) | |
677 | end | |
678 | end | |
679 | elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude < 20 then | |
680 | if sound.IsPlaying then | |
681 | sound:stop() | |
682 | end | |
683 | if humanwalk then | |
684 | anglespeed = 4 | |
685 | ncf = neckc0 * CFrame.Angles(math.pi/24, mvmnt*.02, 0) | |
686 | rjcf = CFrame.new(0, math.abs(mvmnt)*0.05, 0) * CFrame.Angles(-math.pi/24, -mvmnt*.02, 0) | |
687 | rscf = rsc0 * CFrame.Angles(math.sin(angle)*1.25, 0, -math.abs(mvmnt)*0.02) | |
688 | lscf = lsc0 * CFrame.Angles(math.sin(-angle)*1.25, 0, math.abs(mvmnt)*0.02) | |
689 | rlcf = rlc0 * CFrame.Angles(math.sin(-angle)*1, 0, math.rad(.5)) | |
690 | llcf = llc0 * CFrame.Angles(math.sin(angle)*1, 0, -math.rad(.5)) | |
691 | else | |
692 | anglespeed = 4 | |
693 | ncf = neckc0 * CFrame.new(0, 0, .2) * CFrame.Angles(math.pi/1.9, 0, 0) | |
694 | rjcf = CFrame.new(0, -1.5+math.abs(mvmnt)*0.05, 0) * CFrame.Angles(-math.pi/1.9, math.sin(mvmnt/2)*0.05, 0) | |
695 | rscf = rsc0 * CFrame.new(-.45, 0.2, -.4+math.abs(mvmnt)*0.125) * CFrame.Angles(math.pi/2+math.sin(angle)*0.7, 0, math.rad(5)) | |
696 | lscf = lsc0 * CFrame.new(.45, 0.2, .1-math.abs(mvmnt)*0.125) * CFrame.Angles(math.pi/2+math.sin(-angle)*0.7, 0, -math.rad(5)) | |
697 | rlcf = rlc0 * CFrame.new(0, 0, -.3+math.abs(mvmnt)*0.125) * CFrame.Angles(math.pi/2.5+math.sin(-angle)*0.6, 0, math.abs(mvmnt)*0.025) | |
698 | llcf = llc0 * CFrame.new(0, 0, .3-math.abs(mvmnt)*0.125) * CFrame.Angles(math.pi/2.5+math.sin(angle)*.6, 0, -math.abs(mvmnt)*0.025) | |
699 | end | |
700 | elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 20 then | |
701 | if sound.IsPlaying then | |
702 | sound:stop() | |
703 | end | |
704 | if humanwalk then | |
705 | anglespeed = 5 | |
706 | ncf = neckc0 * CFrame.Angles(math.pi/20, math.sin(angle)*.04, 0) | |
707 | rjcf = CFrame.new(0, -.4 + math.abs(mvmnt)*0.25, 0) * CFrame.Angles(-math.pi/20, -math.sin(angle)*.08, 0) | |
708 | rscf = rsc0 * CFrame.new(0, 0, -.3+math.abs(mvmnt)*0.125) * CFrame.Angles(math.pi/18+math.sin(angle)*1.5, 0, -math.abs(mvmnt)*0.02) | |
709 | lscf = lsc0 * CFrame.new(0, 0, .3-math.abs(mvmnt)*0.125) * CFrame.Angles(math.pi/18+math.sin(-angle)*1.5, 0, math.abs(mvmnt)*0.02) | |
710 | rlcf = rlc0 * CFrame.new(0, 0, -.6+math.abs(mvmnt)*0.125) * CFrame.Angles(-math.pi/18+math.sin(-angle)*1.3, 0, math.rad(.5)) | |
711 | llcf = llc0 * CFrame.new(0, 0, -math.abs(mvmnt)*0.125) * CFrame.Angles(-math.pi/18+math.sin(angle)*1.3, 0, -math.rad(.5)) | |
712 | else | |
713 | anglespeed = 5.5 | |
714 | ncf = neckc0 * CFrame.new(0, 0, .2) * CFrame.Angles(math.pi/1.9+math.sin(mvmnt/2)*0.05, 0, 0) | |
715 | rjcf = CFrame.new(0, -1.3+math.abs(mvmnt)*0.05, 0) * CFrame.Angles(-math.pi/1.9+math.abs(mvmnt/2)*0.1, 0, 0) | |
716 | rscf = rsc0 * CFrame.new(-1, 0.2, -.5) * CFrame.Angles(math.pi/2+math.sin(angle)*1.8, 0, math.rad(5)) | |
717 | lscf = lsc0 * CFrame.new(1, 0.2, -.5) * CFrame.Angles(math.pi/2+math.sin(angle)*1.8, 0, -math.rad(5)) | |
718 | rlcf = rlc0 * CFrame.new(0, .3-math.abs(mvmnt)*0.125, -.3+math.abs(mvmnt)*0.125) * CFrame.Angles(math.pi/2.5+math.sin(-angle)*1.4, 0, math.abs(mvmnt)*0.025) | |
719 | llcf = llc0 * CFrame.new(0, .3-math.abs(mvmnt)*0.125, .3-math.abs(mvmnt)*0.125) * CFrame.Angles(math.pi/2.5+math.sin(-angle)*1.4, 0, -math.abs(mvmnt)*0.025) | |
720 | end | |
721 | end | |
722 | ||
723 | rm.C0 = clerp(rm.C0,rscf,speed) | |
724 | lm.C0 = clerp(lm.C0,lscf,speed) | |
725 | rj.C0 = clerp(rj.C0,rjcf,speed) | |
726 | neck.C0 = clerp(neck.C0,ncf,speed) | |
727 | rlegm.C0 = clerp(rlegm.C0,rlcf,speed) | |
728 | llegm.C0 = clerp(llegm.C0,llcf,speed) | |
729 | end | |
730 | ||
731 | ||
732 | end | |
733 | ||
734 | s = game.Workspace | |
735 | ||
736 | Player = game.Players.LocalPlayer | |
737 | c = Player.Character | |
738 | mouse = Player:GetMouse() | |
739 | ||
740 | s2 = Instance.new("Sound", c.Head) | |
741 | s2.Name = "Bleu" | |
742 | s2.Volume = 1 | |
743 | ||
744 | c.Humanoid.MaxHealth = math.huge | |
745 | c.Humanoid.Health = math.huge | |
746 | ||
747 | game:GetService("Chat"):Chat(c, "This thing was created by smokedelsin bruh bruh!!!!") | |
748 | ||
749 | for i,v in pairs(c:GetChildren()) do | |
750 | if v:IsA("Shirt") or v:IsA("Pants") or v:IsA("Hat") then | |
751 | v:remove() | |
752 | wait() | |
753 | end | |
754 | end | |
755 | ||
756 | c.Humanoid.DisplayDistanceType = "None" | |
757 | c.Humanoid.NameOcclusion = "OccludeAll" | |
758 | c.Head.Transparency = .1 | |
759 | c.Torso.Transparency = .1 | |
760 | c["Right Arm"].Transparency = .1 | |
761 | c["Left Arm"].Transparency = .1 | |
762 | c["Right Leg"].Transparency = .1 | |
763 | c["Left Leg"].Transparency = .1 | |
764 | c.Head.BrickColor = BrickColor.new("Really black") | |
765 | c.Torso.BrickColor = BrickColor.new("Industrial white") | |
766 | c["Right Arm"].BrickColor = BrickColor.new("Really black") | |
767 | c["Left Arm"].BrickColor = BrickColor.new("Industrial white") | |
768 | c["Right Leg"].BrickColor = BrickColor.new("Really black") | |
769 | c["Left Leg"].BrickColor = BrickColor.new("Industrial white") | |
770 | c.Head.face.Texture = "rbxassetid://0" |