View difference between Paste ID: ged3B7rD and ApFTrDT3
SHOW: | | - or go back to the newest paste.
1
print("vlad20020 made this")
2
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
3
local Player,game,owner = owner,game
4
local RealPlayer = Player
5
do
6
    print("FE Compatibility code by Mokiros")
7
    script.Parent = Player.Character
8
 
9
    --RemoteEvent for communicating
10
    local Event = Instance.new("RemoteEvent")
11
    Event.Name = "UserInput_Event"
12
 
13
    --Fake event to make stuff like Mouse.KeyDown work
14
    local function fakeEvent()
15
        local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
16
        t.connect = t.Connect
17
        return t
18
    end
19
 
20
    --Creating fake input objects with fake variables
21
    local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
22
    local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
23
    local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
24
        CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
25
    end}
26
    --Merged 2 functions into one by checking amount of arguments
27
    CAS.UnbindAction = CAS.BindAction
28
 
29
    --This function will trigger the events that have been :Connect()'ed
30
    local function te(self,ev,...)
31
        local t = m[ev]
32
        if t and t._fakeEvent and t.Function then
33
            t.Function(...)
34
        end
35
    end
36
    m.TrigEvent = te
37
    UIS.TrigEvent = te
38
 
39
    Event.OnServerEvent:Connect(function(plr,io)
40
        if plr~=Player then return end
41
        m.Target = io.Target
42
        m.Hit = io.Hit
43
        if not io.isMouse then
44
            local b = io.UserInputState == Enum.UserInputState.Begin
45
            if io.UserInputType == Enum.UserInputType.MouseButton1 then
46
                return m:TrigEvent(b and "Button1Down" or "Button1Up")
47
            end
48
            for _,t in pairs(CAS.Actions) do
49
                for _,k in pairs(t.Keys) do
50
                    if k==io.KeyCode then
51
                        t.Function(t.Name,io.UserInputState,io)
52
                    end
53
                end
54
            end
55
            m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
56
            UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
57
        end
58
    end)
59
    Event.Parent = NLS([==[
60
    local Player = game:GetService("Players").LocalPlayer
61
    local Event = script:WaitForChild("UserInput_Event")
62
 
63
    local Mouse = Player:GetMouse()
64
    local UIS = game:GetService("UserInputService")
65
    local input = function(io,a)
66
        if a then return end
67
        --Since InputObject is a client-side instance, we create and pass table instead
68
        Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
69
    end
70
    UIS.InputBegan:Connect(input)
71
    UIS.InputEnded:Connect(input)
72
 
73
    local h,t
74
    --Give the server mouse data 30 times every second, but only if the values changed
75
    --If player is not moving their mouse, client won't fire events
76
    while wait(1/30) do
77
        if h~=Mouse.Hit or t~=Mouse.Target then
78
            h,t=Mouse.Hit,Mouse.Target
79
            Event:FireServer({isMouse=true,Target=t,Hit=h})
80
        end
81
    end]==],Player.Character)
82
    local _rg = game
83
    local function FakeService(t,RealService)
84
        t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
85
        return setmetatable(t,{
86
            __index = function(self,k)
87
                local s = rawget(self,"_RealService")
88
                if s then return s[k] end
89
            end,
90
            __newindex = function(self,k,v)
91
                local s = rawget(self,"_RealService")
92
                if s then s[k]=v end
93
            end,
94
        })
95
    end
96
    local g = FakeService({
97
        GetService = function(self,s)
98
            return self[s]
99
        end,
100
        Players = FakeService({
101
            LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
102
        },"Players"),
103
        UserInputService = FakeService(UIS,"UserInputService"),
104
        ContextActionService = FakeService(CAS,"ContextActionService"),
105
        RunService = FakeService({RenderStepped=game:GetService("RunService").Heartbeat},"RunService")
106
    },game)
107
    rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
108
    getmetatable(g).__index=function(self,s)
109
        return _rg:GetService(s) or typeof(_rg[s])=="function"
110
        and function(_,...)return _rg[s](_rg,...)end or _rg[s]
111
    end
112
    game = g
113
    owner = g.Players.LocalPlayer
114
end
115
--//Ragdoll Knife By vlad20020~//--
116
local plr = game:GetService("Players").LocalPlayer
117
local plrg = plr.PlayerGui
118
local mouse = plr:GetMouse()
119
local char = plr.Character
120
local h = char.Head
121
local t = char.Torso
122
local ra = char["Right Arm"]
123
local la = char["Left Arm"]
124
local rl = char["Right Leg"]
125
local ll = char["Left Leg"]
126
local rs = t["Right Shoulder"]
127
local ls = t["Left Shoulder"]
128
local rh = t["Right Hip"]
129
local lh = t["Left Hip"]
130
local nec = t.Neck
131
local rut = char.HumanoidRootPart
132
local rutj = rut.RootJoint
133
local hum = char:FindFirstChildOfClass("Humanoid") 
134
local attacc = true
135
local attacc1 = true
136
local using = false
137
local rad = math.rad
138
local huge = math.huge
139
local scr = Instance.new("ScreenGui",plrg)
140
local tex = Instance.new("TextLabel",scr) tex.BackgroundTransparency = 1 tex.Size = UDim2.new(.1,0,.1,0) tex.Position = UDim2.new(.45,0,.9,0) tex.TextTransparency = .8 tex.TextColor3 = Color3.new(1,1,1) tex.TextStrokeColor3 = Color3.fromRGB(255,100,0) tex.TextStrokeTransparency = .9 tex.TextScaled = true tex.Text = "vlad20020 MADE THIS"
141
--//ArmJointParts~//--
142
local tpr = Instance.new("Part",t) tpr.Size = Vector3.new(.1,.1,.1) tpr.CanCollide = false tpr.Transparency = 1
143
local tpl = Instance.new("Part",t) tpl.Size = Vector3.new(.1,.1,.1) tpl.CanCollide = false tpl.Transparency = 1
144
local tprw = Instance.new("Weld",t) tprw.Part0 = t tprw.Part1 = tpr tprw.C0 = CFrame.new(1,.5,0)
145
local tplw = Instance.new("Weld",t) tplw.Part0 = t tplw.Part1 = tpl tplw.C0 = CFrame.new(-1,.5,0)
146
--
147
local rapr = Instance.new("Part",ra) rapr.Size = Vector3.new(.1,.1,.1) rapr.CanCollide = false rapr.Transparency = 1 --Right Arm
148
local lapl = Instance.new("Part",la) lapl.Size = Vector3.new(.1,.1,.1) lapl.CanCollide = false lapl.Transparency = 1 --Left Arm
149
local raprw = Instance.new("Weld",ra) raprw.Part0 = ra raprw.Part1 = rapr raprw.C0 = CFrame.new(-.5,.5,0)
150
local laplw = Instance.new("Weld",la) laplw.Part0 = la laplw.Part1 = lapl laplw.C0 = CFrame.new(.5,.5,0)
151
--/JointsWelds~//--
152
local rsw = Instance.new("Weld",ra) rsw.Part0 = tpr rsw.Part1 = nil --Right Shoulder
153
local lsw = Instance.new("Weld",la) lsw.Part0 = tpl lsw.Part1 = nil --Left Shoulder
154
155
--//KnifeModel~//--
156
local kn = Instance.new("Part",ra) kn.Size = Vector3.new(.1,.1,.1) kn.CanCollide = false kn.Name = "Knife"
157
local km = Instance.new("FileMesh",kn) km.MeshId = "http://www.roblox.com/asset/?id=10604848" km.TextureId = "http://www.roblox.com/asset/?id=10605252" km.Offset = Vector3.new(0.5,0.5,0.5)
158
local kw = Instance.new("Weld",kn) kw.Part0 = ra kw.Part1 = kn kw.C0 = CFrame.new(0,-1,0) * CFrame.Angles(rad(-90),rad(0),rad(0)) kw.Name = "KnifeWeld"
159
local hb = Instance.new("Part",kn) hb.Size = Vector3.new(.2,2,.7) hb.CanCollide = false hb.Transparency = 1
160
local hw = Instance.new("Weld",hb) hw.Part0 = kn hw.Part1 = hb hw.C0 = CFrame.new(0,1.3,0)
161
local at1 = Instance.new("Attachment",hb) at1.Position = Vector3.new(0,.65,0) local at2 = Instance.new("Attachment",hb) at2.Position = Vector3.new(0,-.65,0)
162
local trail = Instance.new("Trail",hb) trail.Attachment0 = at1 trail.Attachment1 = at2 trail.Enabled = false trail.Lifetime = .1 trail.Transparency = NumberSequence.new(.7)
163
local hb1 = Instance.new("Part",kn) hb1.Size = Vector3.new(.2,2,.7) hb1.CanCollide = false hb1.Transparency = 1
164
local hw1 = Instance.new("Weld",hb) hw1.Part0 = kn hw1.Part1 = hb1 hw1.C0 = CFrame.new(0,1.3,0)
165
--//NeedfulFunctions~//--
166
local bin = Instance.new("RemoteFunction",script)
167
bin.OnServerInvoke = function(plr,sound1)
168
	local nec = plr.Character.Torso.Neck
169
	local mus = plr.Character:FindFirstChild(sound1)
170
	coroutine.resume(coroutine.create(function()
171
	while true do
172
		nec.C0 = CFrame.new(0,1,0) * CFrame.Angles(rad(-90),rad(0),rad(-180)) * CFrame.Angles(rad(-mus.PlaybackLoudness/40),rad(0),rad(0))
173
		swait()
174
	end
175
	end))
176
end
177
178
ArtificialHB = Instance.new("BindableEvent", script)
179
ArtificialHB.Name = "Heartbeat"
180
script:WaitForChild("Heartbeat")
181
frame = 1 / 60
182
tf = 0
183
allowframeloss = false
184
tossremainder = false
185
lastframe = tick()
186
script.Heartbeat:Fire()
187
game:GetService("RunService").Heartbeat:connect(function(s, p)
188
    tf = tf + s
189
    if tf >= frame then
190
        if allowframeloss then
191
            script.Heartbeat:Fire()
192
            lastframe = tick()
193
        else
194
            for i = 1, math.floor(tf / frame) do
195
                script.Heartbeat:Fire()
196
            end
197
            lastframe = tick()
198
        end
199
        if tossremainder then
200
            tf = 0
201
        else
202
            tf = tf - frame * math.floor(tf / frame)
203
        end
204
    end
205
end)
206
function swait(num)
207
    if num == 0 or num == nil then
208
        ArtificialHB.Event:wait()
209
    else
210
        for i = 0, num do
211
            ArtificialHB.Event:wait()
212
        end
213
    end
214
end
215
function sound(parent,id,vol,pit)
216
    local sound = Instance.new("Sound",parent)
217
    sound.Volume = vol
218
    sound.SoundId = "rbxassetid://"..id
219
    sound.Pitch = pit
220
    sound:Play()
221
    coroutine.resume(coroutine.create(function()
222
   
223
    repeat
224
        swait()
225
    until sound.Playing == false
226
    sound:Destroy()
227
    end))
228
    end
229
function ragdoll(who)
230
	pcall(function()
231
	local ded = who
232
	local h1 = ded.Head
233
	local t1 = ded:FindFirstChild("Torso") or ded:FindFirstChild("UpperTorso")
234
	if t1.Name == "UpperTorso" then
235
		sound(char,"949916584",10,1)
236
		local boom = Instance.new("Explosion",workspace) boom.Position = t1.Position boom.BlastRadius = 0
237
		ded.Parent = nil
238
	end
239
	local ff = ded:FindFirstChildOfClass("ForceField")
240
	if ff ~= nil then
241
		ff:Destroy()
242
	end
243
	local ra1 = ded["Right Arm"]
244
	local la1 = ded["Left Arm"]
245
	local rl1 = ded["Right Leg"]
246
	local ll1 = ded["Left Leg"]
247
	local hum1 = ded:FindFirstChildOfClass("Humanoid")
248
	local acc = ded:FindFirstChild("xdded")
249
	if acc == nil then 
250
	local ac = Instance.new("Glue",ded) ac.Name = "xdded"
251
	local rut1 = ded:FindFirstChild("HumanoidRootPart")
252
	hum1.PlatformStand = true
253
	if rut1 ~= nil then
254
		rut1.Parent = nil
255
	end
256
	pcall(function()
257
	h1.Size = Vector3.new(1,1,1)
258
	for i,v in pairs(who:GetChildren()) do
259
		if v:IsA("Accessory") or v:IsA("Hat") then
260
			local gl = Instance.new("WeldConstraint",v.Handle)
261
			gl.Part0 = h1 gl.Part1 = v.Handle
262
		end
263
	end
264
	for i,v in pairs(who:GetChildren()) do
265
		if v:IsA("Script") or v:IsA("LocalScript") then
266
			if v.Name == "Health" then
267
				v.Parent = nil
268
			end
269
		end
270
	end
271
	for i,v in pairs(who:GetChildren()) do
272
		if v:IsA("BasePart") then
273
			v.Anchored = false
274
		end
275
		if v:IsA("Accessory") or v:IsA("Hat") then
276
			v.Handle.Anchored = false
277
		end
278
	end
279
	end)
280
	hum1.MaxHealth = 100
281
	hum1.Health = math.random(10,50)
282
	t1:BreakJoints()
283
	ra1:BreakJoints()
284
	la1:BreakJoints()
285
	rl1:BreakJoints()
286
	ll1:BreakJoints()
287
	--//Joints~//--
288
	--Neck--
289
	local nec = Instance.new("Attachment",h1) nec.Position = Vector3.new(0,-.5,0)
290
	local tnec = Instance.new("Attachment",t1) tnec.Position = Vector3.new(0,1,0)
291
	--Right Arm--
292
	local rsh =  Instance.new("Attachment",ra1) rsh.Position = Vector3.new(0,.5,0)
293
	local trsh =  Instance.new("Attachment",t1) trsh.Position = Vector3.new(1.5,.5,0)
294
	--Left Arm--
295
	local lsh =  Instance.new("Attachment",la1) lsh.Position = Vector3.new(0,.5,0)
296
	local tlsh =  Instance.new("Attachment",t1) tlsh.Position = Vector3.new(-1.5,.5,0)
297
	--Right Leg--
298
	local rhh =  Instance.new("Attachment",rl1) rhh.Position = Vector3.new(0,1,0)
299
	local trhh =  Instance.new("Attachment",t1) trhh.Position = Vector3.new(.5,-1,0)
300
	--Left Leg--
301
	local lhh =  Instance.new("Attachment",ll1) lhh.Position = Vector3.new(0,1,0)
302
	local tlhh =  Instance.new("Attachment",t1) tlhh.Position = Vector3.new(-.5,-1,0)
303
	--Ball Constraints--
304
	local rsb = Instance.new("BallSocketConstraint",t1) rsb.Attachment0 = rsh rsb.Attachment1 = trsh
305
	local lsb = Instance.new("BallSocketConstraint",t1) lsb.Attachment0 = lsh lsb.Attachment1 = tlsh
306
	local rrsb = Instance.new("BallSocketConstraint",t1) rrsb.Attachment0 = rhh rrsb.Attachment1 = trhh
307
	local llsb = Instance.new("BallSocketConstraint",t1) llsb.Attachment0 = lhh llsb.Attachment1 = tlhh
308
	local nsb = Instance.new("BallSocketConstraint",t1) nsb.Attachment0 = nec nsb.Attachment1 = tnec
309
	--//End of Joints~//--
310
	--//Colliders~//--
311
	--Parts--
312
	local cra = Instance.new("Part",t1) cra.Name = "yo" cra.Size = Vector3.new(1.5,1,1) cra.TopSurface = "Smooth" cra.BottomSurface = "Smooth" cra.Transparency = 1
313
	local cla = Instance.new("Part",t1) cla.Name = "yo" cla.Size = Vector3.new(1.5,1,1) cla.TopSurface = "Smooth" cla.BottomSurface = "Smooth" cla.Transparency = 1
314
	local crl = Instance.new("Part",t1) crl.Name = "yo" crl.Size = Vector3.new(1.5,1,1) crl.TopSurface = "Smooth" crl.BottomSurface = "Smooth" crl.Transparency = 1
315
	local cll = Instance.new("Part",t1) cll.Name = "yo" cll.Size = Vector3.new(1.5,1,1) cll.TopSurface = "Smooth" cll.BottomSurface = "Smooth" cll.Transparency = 1
316
	local ch = Instance.new("Part",t1) ch.Name = "yo" ch.Size = Vector3.new(1,.75,1) ch.TopSurface = "Smooth" ch.BottomSurface = "Smooth" ch.Transparency = 1
317
	--Welds--
318
	local wra = Instance.new("Weld",cra) wra.Part0 = ra1 wra.Part1 = cra wra.C0 = CFrame.new(0,-.25,0) * CFrame.Angles(rad(0),rad(0),rad(90))
319
	local wla = Instance.new("Weld",cla) wla.Part0 = la1 wla.Part1 = cla wla.C0 = CFrame.new(0,-.25,0) * CFrame.Angles(rad(0),rad(0),rad(90))
320
	local wrl = Instance.new("Weld",crl) wrl.Part0 = rl1 wrl.Part1 = crl wrl.C0 = CFrame.new(0,-.25,0) * CFrame.Angles(rad(0),rad(0),rad(90))
321
	local wll = Instance.new("Weld",cll) wll.Part0 = ll1 wll.Part1 = cll wll.C0 = CFrame.new(0,-.25,0) * CFrame.Angles(rad(0),rad(0),rad(90))
322
	local wh = Instance.new("Weld",ch) wh.Part0 = h1 wh.Part1 = ch
323
	--//End of Colliders~//--
324
	
325
	local pl = game:GetService("Players"):GetPlayerFromCharacter(who)
326
		coroutine.resume(coroutine.create(function()
327
			wait(5)
328
			if pl ~= nil then
329
			pl:LoadCharacter()
330
			end
331
		end))
332
	end
333
	end)
334
end
335
function ragdoll1(who)
336
	pcall(function()
337
	local ded = who
338
	local h1 = ded.Head
339
	local t1 = ded:FindFirstChild("Torso") or ded:FindFirstChild("UpperTorso")
340
	if t1.Name == "UpperTorso" then
341
		sound(char,"949916584",10,1)
342
		local boom = Instance.new("Explosion",workspace) boom.Position = t1.Position boom.BlastRadius = 0
343
		ded.Parent = nil
344
	end
345
	local ff = ded:FindFirstChildOfClass("ForceField")
346
	if ff ~= nil then
347
		ff:Destroy()
348
	end
349
	local ra1 = ded["Right Arm"]
350
	local la1 = ded["Left Arm"]
351
	local rl1 = ded["Right Leg"]
352
	local ll1 = ded["Left Leg"]
353
	local hum1 = ded:FindFirstChildOfClass("Humanoid")
354
	local acc = ded:FindFirstChild("xdded")
355
	if acc == nil then 
356
	local ac = Instance.new("Glue",ded) ac.Name = "xddedxd"
357
	local rut1 = ded:FindFirstChild("HumanoidRootPart")
358
	hum1.PlatformStand = true
359
	if rut1 ~= nil then
360
		rut1.Parent = nil
361
	end
362
	pcall(function()
363
	h1.Size = Vector3.new(1,1,1)
364
	for i,v in pairs(who:GetChildren()) do
365
		if v:IsA("Accessory") or v:IsA("Hat") then
366
			local gl = Instance.new("WeldConstraint",v.Handle)
367
			gl.Part0 = h1 gl.Part1 = v.Handle
368
		end
369
	end
370
	for i,v in pairs(who:GetChildren()) do
371
		if v:IsA("Script") or v:IsA("LocalScript") then
372
			if v.Name == "Health" then
373
				v.Parent = nil
374
			end
375
		end
376
	end
377
	for i,v in pairs(who:GetChildren()) do
378
		if v:IsA("BasePart") then
379
			v.Anchored = false
380
		end
381
		if v:IsA("Accessory") or v:IsA("Hat") then
382
			v.Handle.Anchored = false
383
		end
384
	end
385
	end)
386
	t1:BreakJoints()
387
	ra1:BreakJoints()
388
	la1:BreakJoints()
389
	rl1:BreakJoints()
390
	ll1:BreakJoints()
391
	--//Joints~//--
392
	--Neck--
393
	local nec = Instance.new("Attachment",h1) nec.Position = Vector3.new(0,-.5,0)
394
	local tnec = Instance.new("Attachment",t1) tnec.Position = Vector3.new(0,1,0)
395
	--Right Arm--
396
	local rsh =  Instance.new("Attachment",ra1) rsh.Position = Vector3.new(0,.5,0)
397
	local trsh =  Instance.new("Attachment",t1) trsh.Position = Vector3.new(1.5,.5,0)
398
	--Left Arm--
399
	local lsh =  Instance.new("Attachment",la1) lsh.Position = Vector3.new(0,.5,0)
400
	local tlsh =  Instance.new("Attachment",t1) tlsh.Position = Vector3.new(-1.5,.5,0)
401
	--Right Leg--
402
	local rhh =  Instance.new("Attachment",rl1) rhh.Position = Vector3.new(0,1,0)
403
	local trhh =  Instance.new("Attachment",t1) trhh.Position = Vector3.new(.5,-1,0)
404
	--Left Leg--
405
	local lhh =  Instance.new("Attachment",ll1) lhh.Position = Vector3.new(0,1,0)
406
	local tlhh =  Instance.new("Attachment",t1) tlhh.Position = Vector3.new(-.5,-1,0)
407
	--Ball Constraints--
408
	local rsb = Instance.new("BallSocketConstraint",t1) rsb.Attachment0 = rsh rsb.Attachment1 = trsh
409
	local lsb = Instance.new("BallSocketConstraint",t1) lsb.Attachment0 = lsh lsb.Attachment1 = tlsh
410
	local rrsb = Instance.new("BallSocketConstraint",t1) rrsb.Attachment0 = rhh rrsb.Attachment1 = trhh
411
	local llsb = Instance.new("BallSocketConstraint",t1) llsb.Attachment0 = lhh llsb.Attachment1 = tlhh
412
	local nsb = Instance.new("BallSocketConstraint",t1) nsb.Attachment0 = nec nsb.Attachment1 = tnec
413
	--//End of Joints~//--
414
	--//Colliders~//--
415
	--Parts--
416
	local cra = Instance.new("Part",t1) cra.Name = "yo" cra.Size = Vector3.new(1.5,1,1) cra.TopSurface = "Smooth" cra.BottomSurface = "Smooth" cra.Transparency = 1
417
	local cla = Instance.new("Part",t1) cla.Name = "yo" cla.Size = Vector3.new(1.5,1,1) cla.TopSurface = "Smooth" cla.BottomSurface = "Smooth" cla.Transparency = 1
418
	local crl = Instance.new("Part",t1) crl.Name = "yo" crl.Size = Vector3.new(1.5,1,1) crl.TopSurface = "Smooth" crl.BottomSurface = "Smooth" crl.Transparency = 1
419
	local cll = Instance.new("Part",t1) cll.Name = "yo" cll.Size = Vector3.new(1.5,1,1) cll.TopSurface = "Smooth" cll.BottomSurface = "Smooth" cll.Transparency = 1
420
	local ch = Instance.new("Part",t1) ch.Name = "yo" ch.Size = Vector3.new(1,.75,1) ch.TopSurface = "Smooth" ch.BottomSurface = "Smooth" ch.Transparency = 1
421
	--Welds--
422
	local wra = Instance.new("Weld",cra) wra.Part0 = ra1 wra.Part1 = cra wra.C0 = CFrame.new(0,-.25,0) * CFrame.Angles(rad(0),rad(0),rad(90))
423
	local wla = Instance.new("Weld",cla) wla.Part0 = la1 wla.Part1 = cla wla.C0 = CFrame.new(0,-.25,0) * CFrame.Angles(rad(0),rad(0),rad(90))
424
	local wrl = Instance.new("Weld",crl) wrl.Part0 = rl1 wrl.Part1 = crl wrl.C0 = CFrame.new(0,-.25,0) * CFrame.Angles(rad(0),rad(0),rad(90))
425
	local wll = Instance.new("Weld",cll) wll.Part0 = ll1 wll.Part1 = cll wll.C0 = CFrame.new(0,-.25,0) * CFrame.Angles(rad(0),rad(0),rad(90))
426
	local wh = Instance.new("Weld",ch) wh.Part0 = h1 wh.Part1 = ch
427
	--//End of Colliders~//--
428
	who.Archivable = true
429
	local eag = who:Clone()
430
	eag.Parent = workspace
431
	eag:FindFirstChildOfClass("Humanoid").PlatformStand = true
432
	eag:FindFirstChildOfClass("Humanoid").MaxHealth = 100
433
	eag:FindFirstChildOfClass("Humanoid").Health = .1
434
	if who == char then
435
		eag["Right Arm"].Knife.Anchored = false
436
		eag["Right Arm"].Knife.CanCollide = true
437
		local kw1 = Instance.new("WeldConstraint",eag["Right Arm"].Knife) kw1.Part0 = eag.Torso kw1.Part1 = eag["Right Arm"].Knife
438
	end
439
	for i,v in pairs(eag:GetChildren()) do
440
		if v:IsA("Script") or v:IsA("LocalScript") then
441
			v:Destroy()
442
		end
443
	end
444
	for i,v in pairs(who:GetChildren()) do
445
		if v.Name == "Head" then
446
			v:Destroy()
447
		end
448
		if v:IsA("BasePart") then
449
			v:Destroy()
450
		end
451
		if v:IsA("Accessory") or v:IsA("Hat") then
452
			v:Destroy()
453
		end
454
	end
455
	end
456
	end)
457
end
458
function hitbox(hit)
459
	pcall(function()
460
	local ea = hit.Parent:FindFirstChildOfClass("Humanoid")
461
	if ea ~= nil and attacc == false and ea.Parent:FindFirstChild("xdded") == nil and ea.Parent:FindFirstChild("xddedxd") == nil  then
462
			attacc = true
463
			sound(hit,"135925117",3,1)
464
			ragdoll(ea.Parent)
465
	elseif ea ~= nil and not attacc and hit.Parent:IsA("Accessory") then
466
		attacc = true
467
		sound(hit,"135925117",3,1)
468
		ragdoll(ea.Parent)
469
	elseif not attacc and not ea then 
470
		attacc = true
471
		sound(hit,"135925117",3,1)
472
	end
473
	end)
474
end
475
	
476
function hitbox1(hit)
477
pcall(function()
478
local ea = hit.Parent:FindFirstChildOfClass("Humanoid")
479
	if ea ~= nil and attacc1 == false and ea.Parent:FindFirstChild("xdded") ~= nil then
480
		attacc1 = true
481
		ea.Parent:FindFirstChild("xdded"):Destroy()
482
		sound(hit,"135925117",3,1)
483
		for i,v in pairs(ea.Parent.Torso:GetChildren()) do
484
			if v.Name == "yo" then
485
				v:Destroy()
486
			end
487
		end
488
		ragdoll1(ea.Parent)
489
	end
490
attacc1 = true
491
end)
492
end
493
hb.Touched:connect(hitbox)
494
hb1.Touched:connect(hitbox1)
495
496
function look(to)
497
	rut.CFrame = CFrame.new(rut.CFrame.p,Vector3.new(to.x,rut.CFrame.y,to.z))
498
end
499
function fknife(to)
500
	local ay = false
501
	local knf = Instance.new("Part",workspace) knf.Size = Vector3.new(.3,.3,.6) knf.CanCollide = true knf.Name = "Knife" knf.CFrame = ra.CFrame * CFrame.new(0,-4.5,0) * CFrame.Angles(rad(math.random(-180,180)),rad(0),rad(0))
502
	local kmf = Instance.new("FileMesh",knf) kmf.MeshId = "http://www.roblox.com/asset/?id=10604848" kmf.TextureId = "http://www.roblox.com/asset/?id=10605252" kmf.Offset = Vector3.new(0,-1,0)
503
	local direc = Instance.new("BodyGyro",knf) direc.MaxTorque = Vector3.new(huge,huge,huge) direc.CFrame = CFrame.new(knf.Position,mouse.Hit.p)
504
    local vel = Instance.new("BodyVelocity",knf) vel.MaxForce = Vector3.new(huge,huge,huge) vel.Velocity = direc.CFrame.lookVector * 200
505
	knf.Touched:connect(function(hit)
506
		if hit ~= nil and not ay then
507
			local oofe = hit.Parent:FindFirstChildOfClass("Humanoid")
508
			if oofe ~= nil and oofe.Parent:FindFirstChild("xdded") == nil and oofe.Parent:FindFirstChild("xddedxd") == nil then
509
				knf:Destroy()
510
					ragdoll(oofe.Parent)
511
				sound(workspace,"201858024",4,1)
512
			if oofe ~= nil and oofe.Parent:FindFirstChild("xdded") ~= nil then
513
				ragdoll1(oofe.Parent)
514
				sound(workspace,"201858024",4,1)
515
			end
516
			end
517
			ay = true
518
			local we = Instance.new("WeldConstraint",knf) we.Part0 = knf we.Part1 = hit
519
		end
520
	end)
521
	coroutine.resume(coroutine.create(function()
522
		swait(3)
523
		direc:Destroy() vel:Destroy()
524
		wait(10)
525
		if knf ~= nil then
526
		for i = 1,10 do
527
			knf.Transparency = knf.Transparency +.1
528
			swait(2)
529
			if knf.Transparency >.999 then
530
				knf:Destroy()
531
			end
532
		end
533
		end
534
	end))
535
end
536
--//Attacks~//--
537
function swing()
538
	using = true
539
		rsw.Part1 = rapr
540
		lsw.Part1 = lapl
541
		trail.Enabled = true
542
		for i = 0,.7,.06 do
543
			rutj.C0 = rutj.C0:lerp(CFrame.Angles(rad(-90),rad(0),rad(200)),i)
544
			rsw.C0 = rsw.C0:lerp(CFrame.new(0,-.5,-.5) * CFrame.Angles(rad(0),rad(160),rad(90)),i)
545
			lsw.C0 = lsw.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(0),rad(10),rad(-20)),i)
546
			kw.C0 = kw.C0:lerp(CFrame.new(0,-1,0) * CFrame.Angles(rad(-150),rad(0),rad(0)),i)
547
			swait()
548
		end
549
		attacc = false
550
		swait(2)
551
		for i = 0,.8,.08 do
552
			rutj.C0 = rutj.C0:lerp(CFrame.Angles(rad(-90),rad(0),rad(160)),i)
553
			rsw.C0 = rsw.C0:lerp(CFrame.new(.3,-.5,-.8) * CFrame.Angles(rad(0),rad(60),rad(90)),i)
554
			lsw.C0 = lsw.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(0),rad(25),rad(-30)),i)
555
			kw.C0 = kw.C0:lerp(CFrame.new(0,-1,0) * CFrame.Angles(rad(-100),rad(0),rad(0)),i)
556
			swait()
557
		end
558
		attacc = true
559
		for i = 0,.5,.05 do
560
			rutj.C0 = rutj.C0:lerp(CFrame.Angles(rad(-90),rad(0),rad(180)),i)
561
			rsw.C0 = rsw.C0:lerp(CFrame.new(0,0,0),i)
562
			lsw.C0 = lsw.C0:lerp(CFrame.new(0,0,0),i)
563
			kw.C0 = kw.C0:lerp(CFrame.new(0,-1,0) * CFrame.Angles(rad(-90),rad(0),rad(0)),i)
564
			swait()
565
		end
566
		trail.Enabled = false
567
		rsw.Part1 = nil
568
		lsw.Part1 = nil
569
		using = false
570
end
571
function a()
572
	pcall(function()
573
	local ray = Ray.new(t.Position,(mouse.Hit.p - t.Position).unit * 5)
574
	local part,pos = workspace:FindPartOnRay(ray,char,false,true)
575
	if part ~= nil then
576
		local skid = part.Parent:FindFirstChildOfClass("Humanoid")
577
		if skid ~= nil and skid.Parent:FindFirstChild("xdded") == nil and skid.Parent:FindFirstChild("xddedxd") == nil then
578
			using = true
579
			local to = skid.Parent:FindFirstChild("Torso") or skid.Parent:FindFirstChild("UpperTorso")
580
			to.Anchored = true
581
			for i = 0,.5,.02 do
582
				rut.CFrame = rut.CFrame:lerp(to.CFrame * CFrame.new(0,0,2),i)
583
				swait()
584
			end
585
			rsw.Part1 = rapr
586
			trail.Enabled = true
587
			t.Anchored = true
588
			for i = 0,.3,.03 do
589
				rsw.C0 = rsw.C0:lerp(CFrame.new(0,.35,0) * CFrame.Angles(rad(-10),rad(0),rad(-10)),i)
590
				swait()
591
			end
592
			for i = 0,.3,.03 do
593
				rutj.C0 = rutj.C0:lerp(CFrame.Angles(rad(-90),rad(0),rad(200)),i)
594
				rsw.C0 = rsw.C0:lerp(CFrame.new(0,.25,-.3) * CFrame.Angles(rad(60),rad(0),rad(-20)),i)
595
				kw.C0 = kw.C0:lerp(CFrame.new(0,-1,0) * CFrame.Angles(rad(-120),rad(0),rad(0)),i)
596
				swait()
597
			end
598
			sound(char,"201858024",3,1)
599
			wait(.5)
600
			t.Anchored = false
601
			ragdoll1(skid.Parent)
602
			skid.Health = 0
603
			for i = 0,1,.01 do
604
			rutj.C0 = rutj.C0:lerp(CFrame.Angles(rad(-90),rad(0),rad(180)),i)
605
			rsw.C0 = rsw.C0:lerp(CFrame.new(0,0,0),i)
606
			kw.C0 = kw.C0:lerp(CFrame.new(0,-1,0) * CFrame.Angles(rad(-90),rad(0),rad(0)),i)
607
			swait()
608
			end
609
			trail.Enabled = false
610
			rsw.Part1 = nil
611
			using = false
612
		end
613
	end
614
	end)
615
end
616
function suiAHH()
617
	using = true
618
	rsw.Part1 = rapr
619
	lsw.Part1 = lapl
620
	hum.WalkSpeed = 0
621
	hum.JumpPower = 0
622
	t.Anchored = true
623
	trail.Enabled = true
624
	for i = 0,.5,.03 do
625
		rsw.C0 = rsw.C0:lerp(CFrame.new(.3,.5,-.5) * CFrame.Angles(rad(-20),rad(-80),rad(-60)) * CFrame.Angles(rad(50),rad(0),rad(0)),i)
626
		lsw.C0 = lsw.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(0),rad(0),rad(10)),i)
627
		kw.C0 = kw.C0:lerp(CFrame.new(0,-1,0) * CFrame.Angles(rad(90),rad(0),rad(0)),i)
628
		swait()
629
	end
630
	swait(17)
631
	for i = 0,.5,.03 do
632
		rsw.C0 = rsw.C0:lerp(CFrame.new(.5,.5,-.7) * CFrame.Angles(rad(-90),rad(-90),rad(80)) * CFrame.Angles(rad(0),rad(-10),rad(90)) * CFrame.Angles(rad(-60),rad(0),rad(0)),i)
633
		lsw.C0 = lsw.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(0),rad(0),rad(25)),i)
634
		kw.C0 = kw.C0:lerp(CFrame.new(0,-1,0) * CFrame.Angles(rad(90),rad(0),rad(0)),i)
635
		swait()
636
	end
637
	trail.Enabled = false
638
	sound(char,"201858024",3,1)
639
	kw:Destroy() kn.Anchored = true
640
	swait(20)
641
	for i = 0,.7,.01 do
642
		rutj.C0 = rutj.C0:lerp(CFrame.Angles(rad(-90),rad(0),rad(180)),i)
643
		rsw.C0 = rsw.C0:lerp(CFrame.new(0,0,0),i)
644
		lsw.C0 = lsw.C0:lerp(CFrame.new(0,0,0),i)
645
		swait()
646
	end
647
	rsw.Part1 = nil lsw.Part1 = nil
648
	swait(25)
649
	t.Anchored = false
650
	ragdoll1(char)
651
end
652
function finish()
653
	using = true
654
	rsw.Part1 = rapr
655
	lsw.Part1 = lapl
656
	trail.Enabled = true
657
	for i = 0,.5,.03 do
658
		rutj.C0 = rutj.C0:lerp(CFrame.new(0,-1,0) * CFrame.Angles(rad(-120),rad(0),rad(180)),i)
659
		rh.C0 = rh.C0:lerp(CFrame.new(1,.3,-.7) * CFrame.Angles(rad(20),rad(90),rad(0)),i)
660
		lh.C0 = lh.C0:lerp(CFrame.new(-1,-1,-1.3) * CFrame.Angles(rad(-60),rad(-90),rad(0)),i)
661
		rsw.C0 = rsw.C0:lerp(CFrame.new(-.2,.8,0) * CFrame.Angles(rad(160),rad(0),rad(-40)),i)
662
		lsw.C0 = lsw.C0:lerp(CFrame.new(.2,.8,0) * CFrame.Angles(rad(160),rad(0),rad(40)),i)
663
		kw.C0 = kw.C0:lerp(CFrame.new(0,-1,0) * CFrame.Angles(rad(90),rad(180),rad(0)),i)
664
		swait()
665
	end
666
	swait(5)
667
	attacc1 = false
668
	for i = 0,.5,.07 do
669
		rutj.C0 = rutj.C0:lerp(CFrame.new(0,-1,0) * CFrame.Angles(rad(-150),rad(0),rad(180)),i)
670
		rh.C0 = rh.C0:lerp(CFrame.new(1,.8,-.5) * CFrame.Angles(rad(50),rad(90),rad(0)),i)
671
		lh.C0 = lh.C0:lerp(CFrame.new(-1,-.6,-1.3) * CFrame.Angles(rad(-30),rad(-90),rad(0)),i)
672
		rsw.C0 = rsw.C0:lerp(CFrame.new(-.2,.4,-.5) * CFrame.Angles(rad(130),rad(0),rad(-30)),i)
673
		lsw.C0 = lsw.C0:lerp(CFrame.new(.4,.4,-.5) * CFrame.Angles(rad(130),rad(0),rad(30)),i)
674
		kw.C0 = kw.C0:lerp(CFrame.new(0,-1,0) * CFrame.Angles(rad(120),rad(180),rad(20)),i)
675
		swait()
676
	end
677
	swait(10)
678
		for i = 0,.5,.03 do
679
		rutj.C0 = rutj.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(-90),rad(0),rad(180)),i)
680
		rh.C0 = rh.C0:lerp(CFrame.new(1,-1,0) * CFrame.Angles(rad(0),rad(90),rad(0)),i)
681
		lh.C0 = lh.C0:lerp(CFrame.new(-1,-1,0) * CFrame.Angles(rad(0),rad(-90),rad(0)),i)
682
		rsw.C0 = rsw.C0:lerp(CFrame.new(0,0,0),i)
683
		lsw.C0 = lsw.C0:lerp(CFrame.new(0,0,0),i)
684
		kw.C0 = kw.C0:lerp(CFrame.new(0,-1,0) * CFrame.Angles(rad(-90),rad(0),rad(0)),i)
685
		swait()
686
		end
687
		trail.Enabled = false
688
	rsw.Part1 = nil
689
	lsw.Part1 = nil
690
	using = false
691
end
692
function throw()
693
	rsw.Part1 = rapr
694
	lsw.Part1 = lapl
695
	using = true
696
	trail.Enabled = true
697
	for i = 0,.5,.02 do
698
		rutj.C0 = rutj.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(-90),rad(0),rad(150)),i)
699
		rh.C0 = rh.C0:lerp(CFrame.new(1,-1,0) * CFrame.Angles(rad(0),rad(90),rad(0)),i)
700
		lh.C0 = lh.C0:lerp(CFrame.new(-1,-1,0) * CFrame.Angles(rad(0),rad(-90),rad(0)),i)
701
		rsw.C0 = rsw.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(-160),rad(0),rad(0)),i)
702
		lsw.C0 = lsw.C0:lerp(CFrame.new(.2,-.1,0) * CFrame.Angles(rad(40),rad(0),rad(40)),i)
703
		kw.C0 = kw.C0:lerp(CFrame.new(0,-3,0) * CFrame.Angles(rad(0),rad(0),rad(0)),i)
704
		swait()
705
	end
706
	for i = 0,.5,.05 do
707
		rutj.C0 = rutj.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(-90),rad(0),rad(180)),i)
708
		rh.C0 = rh.C0:lerp(CFrame.new(1,-1,0) * CFrame.Angles(rad(0),rad(90),rad(0)),i)
709
		lh.C0 = lh.C0:lerp(CFrame.new(-1,-1,0) * CFrame.Angles(rad(0),rad(-90),rad(0)),i)
710
		rsw.C0 = rsw.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(-260),rad(0),rad(0)),i)
711
		lsw.C0 = lsw.C0:lerp(CFrame.new(.2,-.1,0) * CFrame.Angles(rad(-10),rad(0),rad(-20)),i)
712
		kw.C0 = kw.C0:lerp(CFrame.new(0,-3,0) * CFrame.Angles(rad(0),rad(0),rad(0)),i)
713
		swait()
714
	end
715
	fknife(mouse.Hit.p)
716
	trail.Enabled = false
717
	kn.Transparency = 1
718
	for i = 0,.5,.01 do
719
		rutj.C0 = rutj.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(-90),rad(0),rad(180)),i)
720
		rh.C0 = rh.C0:lerp(CFrame.new(1,-1,0) * CFrame.Angles(rad(0),rad(90),rad(0)),i)
721
		lh.C0 = lh.C0:lerp(CFrame.new(-1,-1,0) * CFrame.Angles(rad(0),rad(-90),rad(0)),i)
722
		rsw.C0 = rsw.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(0),rad(0),rad(0)),i)
723
		lsw.C0 = lsw.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(0),rad(0),rad(0)),i)
724
		kw.C0 = kw.C0:lerp(CFrame.new(0,-1,0) * CFrame.Angles(rad(-90),rad(0),rad(0)),i)
725
		swait()
726
	end
727
	kn.Transparency = 0
728
	rsw.Part1 = nil
729
	lsw.Part1 = nil
730
	using = false
731
end
732
733
mouse.Button1Down:connect(function()
734
	if not using then
735
		swing()
736
	end
737
end)
738
mouse.KeyDown:connect(function(key)
739
	if key == "f" and not using then
740
		a()
741
	end
742
	if key == "r" and not using then
743
		suiAHH()
744
	end
745
	if key == "g" and not using then
746
		finish()
747
	end
748
	if key == "t" and not using then
749
		throw()
750
	end
751
end)