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