SHOW:
|
|
- or go back to the newest paste.
1 | --Nyan Cat Gifted by TheRedAngel, Regular Script! | |
2 | ||
3 | Rainbow = {"Bright red", "Neon orange", "Bright yellow", "Lime green", "Deep blue", "Bright violet"} | |
4 | - | me = game.Players.StefanukSwAg |
4 | + | me = game.Players.Webor8 |
5 | function Part(P, Anch, Coll, Tran, Ref, Col, Size, Name) | |
6 | local p = Instance.new("Part") | |
7 | p.TopSurface = 0 | |
8 | p.BottomSurface = 0 | |
9 | p.Transparency = Tran | |
10 | p.Reflectance = Ref | |
11 | p.CanCollide = Coll | |
12 | p.Anchored = Anch | |
13 | p.BrickColor = BrickColor.new(Col) | |
14 | p.formFactor = "Custom" | |
15 | p.Size = Size | |
16 | if Name then p.Name = Name end | |
17 | p.Parent = P | |
18 | p.Locked = true | |
19 | p:BreakJoints() | |
20 | return p | |
21 | end | |
22 | V3 = Vector3.new | |
23 | CN = CFrame.new | |
24 | CA = CFrame.Angles | |
25 | MR = math.rad | |
26 | MRA = math.random | |
27 | function Weld(P0, P1, CF1, CF2, Name) | |
28 | local w = Instance.new("Motor6D") | |
29 | w.Part0 = P0 | |
30 | w.Part1 = P1 | |
31 | w.C0 = CF1 | |
32 | w.C1 = CF2 | |
33 | if Name then w.Name = Name end | |
34 | w.Parent = P0 | |
35 | return w | |
36 | end | |
37 | function MakeNyan(Player, S) | |
38 | local Naim = "Nyan "..Player.Name:sub(1,5) | |
39 | if S >= 5 then Naim = "Giant Nyan "..Player.Name:sub(1,5) end | |
40 | local Model = Instance.new("Model") | |
41 | Model.Name = Naim | |
42 | local Torso = Part(Model, false, false, 0, 0, "Brick yellow", V3(0.5*S, 1.5*S, 2*S), "Torso") | |
43 | local Head = Part(Model, false, false, 0, 0, "Dark grey", V3(0.6*S, 0.8*S, 1.2*S), "Head") | |
44 | Instance.new("BlockMesh",Head) | |
45 | local Neck = Weld(Torso, Head, CN(0, -0.35*S, -0.9*S), CN(), "Neck") | |
46 | local Tart = Part(Model, false, false, 0, 0, "Pink", V3(0.5*S+0.05, 1.2*S, 1.7*S), "Torso") | |
47 | Instance.new("BlockMesh",Tart) | |
48 | Weld(Torso, Tart, CN(), CN()) | |
49 | local RFL = Part(Model, false, false, 0, 0, "Dark grey", V3(0.4*S, 0.6*S, 0.4*S), "Right Arm") | |
50 | Instance.new("SpecialMesh",RFL).MeshType = "Sphere" | |
51 | local LFL = Part(Model, false, false, 0, 0, "Dark grey", V3(0.4*S, 0.6*S, 0.4*S), "Left Arm") | |
52 | Instance.new("SpecialMesh",LFL).MeshType = "Sphere" | |
53 | local RBL = Part(Model, false, false, 0, 0, "Dark grey", V3(0.4*S, 0.6*S, 0.4*S), "Right Leg") | |
54 | Instance.new("SpecialMesh",RBL).MeshType = "Sphere" | |
55 | local LBL = Part(Model, false, false, 0, 0, "Dark grey", V3(0.4*S, 0.6*S, 0.4*S), "Left Leg") | |
56 | Instance.new("SpecialMesh",LBL).MeshType = "Sphere" | |
57 | local RSH = Weld(Torso, RFL, CN(), CN(-0.1*S, 0.8*S, 0.8*S), "Right Shoulder") | |
58 | local LSH = Weld(Torso, LFL, CN(), CN(0.1*S, 0.8*S, 0.6*S), "Left Shoulder") | |
59 | local RH = Weld(Torso, RBL, CN(), CN(-0.1*S, 0.8*S, -0.8*S), "Right Hip") | |
60 | local LH = Weld(Torso, LBL, CN(), CN(0.1*S, 0.8*S, -1*S), "Left Hip") | |
61 | local Mouth = Part(Model, false, false, 0, 0, "Really black", V3(0.6*S+0.05, 0.2*S, 0.6*S)) | |
62 | Weld(Head, Mouth, CN(0, -0.25*S, -0.1), CN()) | |
63 | Instance.new("BlockMesh",Mouth).Scale = V3(1, 0.6, 0.8) | |
64 | for i = -0.25, 0.25, 0.25 do | |
65 | local Mouth2 = Part(Model, false, false, 0, 0, "Really black", V3(0.6*S+0.05, 0.3*S, 0.2*S)) | |
66 | Weld(Mouth, Mouth2, CN(0, 0.1*S, i*S), CN()) | |
67 | Instance.new("BlockMesh",Mouth2).Scale = V3(1, 0.6, 0.6) | |
68 | end | |
69 | local Nose = Part(Model, false, false, 0, 0, "Really black", V3(0.6*S+0.05, 0.2*S, 0.2*S)) | |
70 | Weld(Head, Nose, CN(0, 0.05*S, -0.1*S), CN()) | |
71 | Instance.new("BlockMesh",Nose).Scale = V3(1, 0.6, 0.6) | |
72 | for i = -0.3, 0.31, 0.6 do | |
73 | local Eye = Part(Model, false, false, 0, 0, "Really black", V3(0.6*S+0.05, 0.3*S, 0.3*S)) | |
74 | Weld(Head, Eye, CN(0, 0.15*S, (i-0.1)*S), CN()) | |
75 | local Eye2 = Part(Model, false, false, 0, 0, "Institutional white", V3(0.6*S+0.1, 0.2*S, 0.2*S)) | |
76 | Weld(Eye, Eye2, CN(0, 0.04*S, 0.04*S), CN()) | |
77 | Instance.new("BlockMesh",Eye).Scale = V3(1, 0.6, 0.6) | |
78 | Instance.new("BlockMesh",Eye2).Scale = V3(1, 0.4, 0.4) | |
79 | end | |
80 | for i = -0.4, 0.5, 0.9 do | |
81 | local Cheek = Part(Model, false, false, 0, 0, "Medium red", V3(0.6*S+0.05, 0.2*S, 0.2*S)) | |
82 | Instance.new("BlockMesh",Cheek).Scale = V3(1, 0.8, 0.8) | |
83 | Weld(Head, Cheek, CN(0, -0.05*S, (i-0.1)*S), CN()) | |
84 | end | |
85 | for i = -80, -140, -20 do | |
86 | local tail = Part(Model, false, false, 0, 0, "Dark grey", V3(0.4*S, 0.25*S, 0.3*S)) | |
87 | Weld(Torso, tail, CN(0, 0.2*S, 1.15*S) * CA(MR(i), 0, 0), CN(0, 0, 0.5*S)) | |
88 | Instance.new("BlockMesh",tail) | |
89 | end | |
90 | for i = 0, 180, 180 do | |
91 | local ear = Part(Model, false, false, 0, 0, "Dark grey", V3(0.6*S, 0.4*S, 0.5*S)) | |
92 | Instance.new("SpecialMesh",ear).MeshType = "Wedge" | |
93 | Weld(Head, ear, CN(0, 0.45*S, 0) * CA(0, MR(i), 0), CN(0, 0, -0.32*S) * CA(MR(15), 0, 0)) | |
94 | end | |
95 | local Hum = Instance.new("Humanoid") | |
96 | Hum.Name = "Humanoid" | |
97 | Hum.MaxHealth = 100 | |
98 | Hum.Health = 100 | |
99 | Hum.WalkSpeed = 11+(5*S) | |
100 | Hum.Parent = Model | |
101 | Model.Parent = workspace | |
102 | Model:MakeJoints() | |
103 | Model:MoveTo(V3(0, 2*S, 0)) | |
104 | Player.Character = Model | |
105 | local lastP = (Torso.CFrame * CN(0, 0, 0.9*S)).p | |
106 | local function runn() | |
107 | for i = 0.5, 1, 0.5 do | |
108 | RSH.C0 = CN(0, -(0.2*S)*i, 0) | |
109 | LSH.C0 = CN(0, -(0.2*S)*i, 0) | |
110 | RH.C0 = CN(0, -(0.2*S)*i, 0) | |
111 | LH.C0 = CN(0, -(0.2*S)*i, 0) | |
112 | wait() | |
113 | end | |
114 | for i = 0.5, 1, 0.5 do | |
115 | RSH.C0 = CN(0, -(0.2*S), (0.2*S)*i) | |
116 | LSH.C0 = CN(0, -(0.2*S), (0.2*S)*i) | |
117 | RH.C0 = CN(0, -(0.2*S), (0.2*S)*i) | |
118 | LH.C0 = CN(0, -(0.2*S), (0.2*S)*i) | |
119 | wait() | |
120 | end | |
121 | for i = 0.5, 1, 0.5 do | |
122 | RSH.C0 = CN(0, -(0.2*S)+(0.2*S)*i, (0.2*S)) | |
123 | LSH.C0 = CN(0, -(0.2*S)+(0.2*S)*i, (0.2*S)) | |
124 | RH.C0 = CN(0, -(0.2*S)+(0.2*S)*i, (0.2*S)) | |
125 | LH.C0 = CN(0, -(0.2*S)+(0.2*S)*i, (0.2*S)) | |
126 | wait() | |
127 | end | |
128 | for i = 0.5, 1, 0.5 do | |
129 | RSH.C0 = CN(0, 0, (0.2*S)-(0.2*S)*i) | |
130 | LSH.C0 = CN(0, 0, (0.2*S)-(0.2*S)*i) | |
131 | RH.C0 = CN(0, 0, (0.2*S)-(0.2*S)*i) | |
132 | LH.C0 = CN(0, 0, (0.2*S)-(0.2*S)*i) | |
133 | wait() | |
134 | end | |
135 | end | |
136 | local poss = "Standing" | |
137 | coroutine.resume(coroutine.create(function() | |
138 | while Player.Character == Model do | |
139 | wait(0.1) | |
140 | if poss == "Running" then | |
141 | runn() | |
142 | end | |
143 | end | |
144 | end)) | |
145 | coroutine.resume(coroutine.create(function() | |
146 | while Player.Character == Model do | |
147 | wait(0.1) | |
148 | local speed = Torso.Velocity.magnitude | |
149 | local posnow = (Torso.CFrame * CN(0, 0, 0.9*S)).p | |
150 | coroutine.resume(coroutine.create(function() | |
151 | if speed > 2 then | |
152 | poss = "Running" | |
153 | local ps = {} | |
154 | for i,v in pairs(Rainbow) do | |
155 | local a = (#Rainbow-i) | |
156 | a = ((a-(a/2))/2.5)*S | |
157 | local pp = Part(Model, true, false, 0, 0, v, V3(0.2, 0.2, 0.2), "Rainbow") | |
158 | local dist = (posnow - lastP).magnitude | |
159 | Instance.new("BlockMesh",pp).Scale = V3(1, ((1.4*S)/#Rainbow)*5, dist*5) | |
160 | pp.CFrame = CN(lastP, posnow) * CN(0, a, -dist/2) | |
161 | table.insert(ps, pp) | |
162 | end | |
163 | coroutine.resume(coroutine.create(function() | |
164 | wait(10) | |
165 | for i = 0, 1, 0.2 do | |
166 | wait() | |
167 | for _,v in pairs(ps) do | |
168 | v.Transparency = i | |
169 | end | |
170 | end | |
171 | for _,v in pairs(ps) do | |
172 | v:remove() | |
173 | end | |
174 | end)) | |
175 | else poss = "Standing" end | |
176 | end)) | |
177 | lastP = posnow | |
178 | end | |
179 | end)) | |
180 | end | |
181 | --for i,v in pairs(game.Players:GetPlayers()) do | |
182 | -- MakeNyan(v, MRA(10,120)/10) | |
183 | --end | |
184 | MakeNyan(me, 1) |