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