View difference between Paste ID: m710LvA0 and cC5fBQd0
SHOW: | | - or go back to the newest paste.
1
wait()
2
-- by Theamazingnater
3
plr = game.Players.LocalPlayer
4
chara = plr.Character
5
mouse = plr:GetMouse()
6
Create = Instance.new
7
Huge = math.huge
8
9
local music = Create("Sound",chara.HumanoidRootPart)
10-
music.SoundId = "rbxassetid://1043259261"
10+
music.SoundId = "rbxassetid://318502757"
11
music.Volume = 1
12
music.Looped = true
13
music:Play()
14
local shadowhead = Create("Part",chara.Head)
15
shadowhead.BrickColor = BrickColor.new("Really black")
16
shadowhead.Size = Vector3.new(1.2, 0.6, 1)
17
shadowhead.CanCollide = false
18
local shadowheadmesh = Create("SpecialMesh",shadowhead)
19
shadowheadmesh.MeshType = "Head"
20
shadowheadmesh.Scale = Vector3.new(1.26, 1.5, 1.26)
21
local weld2 = Create("Weld",shadowhead)
22
weld2.Part0 = shadowhead
23
weld2.Part1 = chara.Head
24
weld2.C1 = CFrame.new(0, 0.200000048, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
25
26
27
-- Chat
28
 
29
function swait(num)
30
if num==0 or num==nil then
31
game:service'RunService'.Stepped:wait(0)
32
else
33
for i=0,num do
34
game:service'RunService'.Stepped:wait(0)
35
end
36
end
37
end
38
 
39
function chatfunc(text)
40
local chat = coroutine.wrap(function()
41
if chara:FindFirstChild("TalkingBillBoard")~= nil then
42
chara:FindFirstChild("TalkingBillBoard"):destroy()
43
end
44
local naeeym2 = Instance.new("BillboardGui",chara)
45
naeeym2.Size = UDim2.new(0,100,0,40)
46
naeeym2.StudsOffset = Vector3.new(0,3,0)
47
naeeym2.Adornee = chara.Head
48
naeeym2.Name = "TalkingBillBoard"
49
local tecks2 = Instance.new("TextLabel",naeeym2)
50
tecks2.BackgroundTransparency = 1
51
tecks2.BorderSizePixel = 0
52
tecks2.Text = ""
53
tecks2.Font = "Fantasy"
54
tecks2.TextSize = 30
55
tecks2.TextStrokeTransparency = 0
56
tecks2.TextColor3 = Color3.new(.6,0,0)
57
tecks2.TextStrokeColor3 = Color3.new(0,0,0)
58
tecks2.Size = UDim2.new(1,0,0.5,0)
59
local tecks3 = Instance.new("TextLabel",naeeym2)
60
tecks3.BackgroundTransparency = 1
61
tecks3.BorderSizePixel = 0
62
tecks3.Text = ""
63
tecks3.Font = "Fantasy"
64
tecks3.TextSize = 30
65
tecks3.TextStrokeTransparency = 0
66
tecks3.TextColor3 = Color3.new(0,0,0)
67
tecks3.TextStrokeColor3 = Color3.new(1,1,1)
68
tecks3.Size = UDim2.new(1,0,0.5,0)
69
for i = 1,string.len(text),1 do
70
tecks2.Text = string.sub(text,1,i)
71
tecks3.Text = string.sub(text,1,i)
72
wait(0.01)
73
end
74
wait(2)
75
for i = 1, 50 do
76
swait()
77
tecks2.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
78
tecks2.Rotation = tecks2.Rotation - .8
79
tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
80
tecks2.TextTransparency = tecks2.TextTransparency + .04
81
tecks3.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
82
tecks3.Rotation = tecks2.Rotation + .8
83
tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
84
tecks3.TextTransparency = tecks2.TextTransparency + .04
85
end
86
naeeym2:Destroy()
87
end)
88
chat()
89
end
90
function onChatted(msg)
91
chatfunc(msg)
92
end
93
plr.Chatted:connect(onChatted)
94
chatfunc("Come to me... =)")
95
local sound = Create("Sound",chara.Torso)
96
sound.SoundId = "rbxassetid://357417055"
97
sound.Volume = 4 
98
local hit = Create("Sound",chara.Torso)
99
hit.SoundId = "rbxassetid://623904185"
100
hit.Volume = 4
101
CV="Really red"
102
   
103
local txt = Instance.new("BillboardGui", chara)
104
txt.Adornee = chara.Head
105
txt.Name = "_status"
106
txt.Size = UDim2.new(2, 0, 1.2, 0)
107
txt.StudsOffset = Vector3.new(-9, 11, 0)
108
local text = Instance.new("TextLabel", txt)
109
text.Size = UDim2.new(10, 0, 7, 0)
110
text.FontSize = "Size24"
111
text.TextScaled = true
112
text.TextTransparency = 0
113
text.BackgroundTransparency = 1
114
text.TextTransparency = 0
115
text.TextStrokeTransparency = 0
116
text.Font = "Arcade"
117
text.TextStrokeColor3 = Color3.new(255,0,0)
118
 
119
v=Instance.new("Part")
120
v.Name = "ColorBrick"
121
v.Parent=chara
122
v.FormFactor="Symmetric"
123
v.Anchored=true
124
v.CanCollide=false
125
v.BottomSurface="Smooth"
126
v.TopSurface="Smooth"
127
v.Size=Vector3.new(10,5,3)
128
v.Transparency=1
129
v.CFrame=chara.Torso.CFrame
130
v.BrickColor=BrickColor.new(CV)
131
v.Transparency=1
132
text.TextColor3 = Color3.new(0,0,0)
133
v.Shape="Block"
134
text.Text = plr.Name .. " Level: ???"
135
v:Destroy()
136
local knife = Create("Part",chara["Right Arm"])
137
knife.Name = "knifu"
138
knife.CanCollide = false
139
local knifemesh = Create("FileMesh",knife)
140
knifemesh.MeshId = "http://www.roblox.com/asset/?id=121944778"
141
knifemesh.TextureId = "http://www.roblox.com/asset/?id=121944805"
142
local knifeweld = Create("Weld",knife)
143
knifeweld.Part0 = knife
144
knifeweld.Part1 = chara["Right Arm"]
145
knifeweld.C0 = CFrame.new(0, -0.800003052, 0.999999046, 1, 0, 0, 0, 0, -1, 0, 0.999999523, 0)
146
local hitbox = Create("Part",knife)
147
hitbox.Size = Vector3.new(0.2, 1.89, 0.57)
148
hitbox.Transparency = 1
149
hitbox.CanCollide = false
150
hitbox.Name = "TrailPart"
151
local hitboxwe = Create("Weld",hitbox)
152
hitboxwe.Part0 = hitbox
153
hitboxwe.Part1 = knife
154
hitboxwe.C0 = CFrame.new(0.00499999523, -0.529999495, -0.0149999857, 1, 0, 0, 0, 1, 0, 0, 0, 0.99999809)
155
local TrailAtt = Create("Attachment",hitbox)
156
TrailAtt.Position = Vector3.new(0.02, 0.79, -0.285)
157
local TrailAtt2 = Create("Attachment",hitbox)
158
TrailAtt2.Position = Vector3.new(0.01, -0.54, -0.285)
159
local trail = Create("Trail",hitbox)
160
trail.Enabled = false
161
trail.Color = ColorSequence.new(Color3.new(.6,0,0))
162
trail.Attachment0 = TrailAtt
163
trail.Attachment1 = TrailAtt2
164
trail.Lifetime = 0.1
165
local sound = Create("Sound",chara.Torso)
166
sound.SoundId = "rbxassetid://357417055"
167
sound.Volume = 4
168
local hit = Create("Sound",chara.Torso)
169
hit.SoundId = "rbxassetid://623904185"
170
hit.Volume = 4
171
-- Animations
172
anim = Create("Animation",chara)
173
anim.AnimationId = "rbxassetid://186934658"
174
anim.Name = "Slash"
175
ranim = chara.Humanoid:LoadAnimation(anim)
176
177
178
function Slash()
179
    sound:Play()
180
    ranim:Play()
181
    local hitbox = Create("Part",knife)
182
    hitbox.Name = "HurtBox"
183
    hitbox.Transparency = 1
184
    hitbox.CanCollide = false
185
    hitbox.Size = Vector3.new(0.4, 1.02, 0.53)
186
    local weld = Create("Weld",hitbox)
187
    weld.Part0 = hitbox
188
    weld.Part1 = knife
189
    weld.C0 = CFrame.new(0, -0.970016479, 0.0149999857, 1, 0, 0, 0, 1, 0, 0, 0, 0.999997616)
190
    trail.Enabled = true
191
    function Hit(brick)
192
    local human = brick.Parent:FindFirstChildOfClass("Humanoid")
193
    if human then
194
        for i,v in pairs(human.Parent:GetChildren()) do
195
            if v.ClassName == "ShirtGraphic" then
196
                v:Destroy()
197
            end
198
        end
199
        hit:Play()
200
        human:Destroy()
201
        end
202
    end
203
    hitbox.Touched:connect(Hit)
204
    wait(0.6)
205
    trail.Enabled = false
206
    hitbox:Destroy()
207
end
208
mouse.Button1Down:connect(Slash)
209
210
function Sprint(key)
211
	if key == "e" then
212
        chara.Humanoid.WalkSpeed = 40
213
		chara["Right Leg"].Transparency = 0.1
214
        chara["Right Arm"].Transparency = 0.1
215
        chara["Left Leg"].Transparency = 0.1
216
        chara["Left Arm"].Transparency = 0.1
217
        chara.Head.Transparency = 0.1 
218
        chara.Torso.Transparency = 0.1
219
        wait(0.01)
220
        chara["Right Leg"].Transparency = 0.2
221
        chara["Right Arm"].Transparency = 0.2
222
        chara["Left Leg"].Transparency = 0.2
223
        chara["Left Arm"].Transparency = 0.2
224
        chara.Head.Transparency = 0.2 
225
        chara.Torso.Transparency = 0.2
226
        wait(0.01)
227
        chara["Right Leg"].Transparency = 0.3
228
        chara["Right Arm"].Transparency = 0.3
229
        chara["Left Leg"].Transparency = 0.3
230
        chara["Left Arm"].Transparency = 0.3
231
        chara.Head.Transparency = 0.3 
232
        chara.Torso.Transparency = 0.3
233
        wait(0.01)
234
        chara["Right Leg"].Transparency = 0.4
235
        chara["Right Arm"].Transparency = 0.4
236
        chara["Left Leg"].Transparency = 0.4
237
        chara["Left Arm"].Transparency = 0.4
238
        chara.Head.Transparency = 0.4 
239
        chara.Torso.Transparency = 0.4
240
        wait(0.01)
241
        chara["Right Leg"].Transparency = 0.5
242
        chara["Right Arm"].Transparency = 0.5
243
        chara["Left Leg"].Transparency = 0.5
244
        chara["Left Arm"].Transparency = 0.5
245
        chara.Head.Transparency = 0.5 
246
        chara.Torso.Transparency = 0.5
247
        wait(0.01)
248
        chara["Right Leg"].Transparency = 0.6
249
        chara["Right Arm"].Transparency = 0.6
250
        chara["Left Leg"].Transparency = 0.6
251
        chara["Left Arm"].Transparency = 0.6
252
        chara.Head.Transparency = 0.6 
253
        chara.Torso.Transparency = 0.6
254
        wait(0.01)
255
        chara["Right Leg"].Transparency = 0.7
256
        chara["Right Arm"].Transparency = 0.7
257
        chara["Left Leg"].Transparency = 0.7
258
        chara["Left Arm"].Transparency = 0.7
259
        chara.Head.Transparency = 0.7 
260
        chara.Torso.Transparency = 0.7
261
        wait(0.01)
262
        chara["Right Leg"].Transparency = 0.8
263
        chara["Right Arm"].Transparency = 0.8
264
        chara["Left Leg"].Transparency = 0.8
265
        chara["Left Arm"].Transparency = 0.8
266
        chara.Head.Transparency = 0.8 
267
        chara.Torso.Transparency = 0.8
268
        wait(0.01)
269
        chara["Right Leg"].Transparency = 0.9
270
        chara["Right Arm"].Transparency = 0.9
271
        chara["Left Leg"].Transparency = 0.9
272
        chara["Left Arm"].Transparency = 0.9
273
        chara.Head.Transparency = 0.9 
274
        chara.Torso.Transparency = 0.9
275
        wait(0.01)
276
        chara["Right Leg"].Transparency = 1
277
        chara["Right Arm"].Transparency = 1
278
        chara["Left Leg"].Transparency = 1
279
        chara["Left Arm"].Transparency = 1
280
        chara.Head.Transparency = 1 
281
        chara.Torso.Transparency = 1
282
	end
283
end
284
285
286
function StopSprinting(key)
287
	if key == "r" then
288
		chara.Humanoid.WalkSpeed = 16
289
		chara["Right Leg"].Transparency = 1
290
        chara["Right Arm"].Transparency = 1
291
        chara["Left Leg"].Transparency = 1
292
        chara["Left Arm"].Transparency = 1
293
        chara.Head.Transparency = 1 
294
        chara.Torso.Transparency = 1
295
        wait(0.01)
296
        chara["Right Leg"].Transparency = 0.9
297
        chara["Right Arm"].Transparency = 0.9 
298
        chara["Left Leg"].Transparency = 0.9
299
        chara["Left Arm"].Transparency = 0.9
300
        chara.Head.Transparency = 0.9
301
        chara.Torso.Transparency = 0.9
302
        wait(0.01)
303
        chara["Right Leg"].Transparency = 0.8
304
        chara["Right Arm"].Transparency = 0.8
305
        chara["Left Leg"].Transparency = 0.8
306
        chara["Left Arm"].Transparency = 0.8
307
        chara.Head.Transparency = 0.8
308
        chara.Torso.Transparency = 0.8
309
        wait(0.01)
310
        chara["Right Leg"].Transparency = 0.7
311
        chara["Right Arm"].Transparency = 0.7
312
        chara["Left Leg"].Transparency = 0.7
313
        chara["Left Arm"].Transparency = 0.7
314
        chara.Head.Transparency = 0.7 
315
        chara.Torso.Transparency = 0.7
316
        wait(0.01)
317
         chara["Right Leg"].Transparency = 0.6
318
        chara["Right Arm"].Transparency = 0.6
319
        chara["Left Leg"].Transparency = 0.6
320
        chara["Left Arm"].Transparency = 0.6
321
        chara.Head.Transparency = 0.6 
322
        chara.Torso.Transparency = 0.6
323
        wait(0.01)
324
         chara["Right Leg"].Transparency = 0.5
325
        chara["Right Arm"].Transparency = 0.5
326
        chara["Left Leg"].Transparency = 0.5
327
        chara["Left Arm"].Transparency = 0.5
328
        chara.Head.Transparency = 0.5
329
        chara.Torso.Transparency = 0.5
330
        wait(0.01)
331
         chara["Right Leg"].Transparency = 0.4
332
        chara["Right Arm"].Transparency = 0.4
333
        chara["Left Leg"].Transparency = 0.4
334
        chara["Left Arm"].Transparency = 0.4
335
        chara.Head.Transparency = 0.4 
336
        chara.Torso.Transparency = 0.4
337
        wait(0.01)
338
         chara["Right Leg"].Transparency = 0.3
339
        chara["Right Arm"].Transparency = 0.3
340
        chara["Left Leg"].Transparency = 0.3
341
        chara["Left Arm"].Transparency = 0.3
342
        chara.Head.Transparency = 0.3
343
        chara.Torso.Transparency = 0.3
344
        wait(0.01)
345
         chara["Right Leg"].Transparency = 0.2
346
        chara["Right Arm"].Transparency = 0.2
347
        chara["Left Leg"].Transparency = 0.2
348
        chara["Left Arm"].Transparency = 0.2
349
        chara.Head.Transparency = 0.2
350
        chara.Torso.Transparency = 0.2
351
        wait(0.01)
352
         chara["Right Leg"].Transparency = 0.1
353
        chara["Right Arm"].Transparency = 0.1
354
        chara["Left Leg"].Transparency = 0.1
355
        chara["Left Arm"].Transparency = 0.1
356
        chara.Head.Transparency = 0.1 
357
        chara.Torso.Transparency = 0.1
358
        wait(0.01)
359
         chara["Right Leg"].Transparency = 0
360
        chara["Right Arm"].Transparency = 0
361
        chara["Left Leg"].Transparency = 0
362
        chara["Left Arm"].Transparency = 0
363
        chara.Head.Transparency = 0
364
        chara.Torso.Transparency = 0
365
	end
366
end
367
368
mouse.KeyDown:connect(Sprint)
369
mouse.KeyDown:connect(StopSprinting)