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