View difference between Paste ID: km5VJnS6 and yF0hX2Ag
SHOW: | | - or go back to the newest paste.
1-
local plr = game:GetService("Players").LocalPlayer
1+
local plr = game:GetService("Players").lafur2
2
local char = plr.Character
3
local hum = char:FindFirstChildOfClass("Humanoid")
4-
local mou = plr:GetMouse()
4+
5
local head = char:FindFirstChild("Head")
6
local face = head:FindFirstChildOfClass("Decal")
7
local neck = tor:FindFirstChild("Neck")
8
local larm = char:FindFirstChild("Left Arm") or char:FindFirstChild("LeftUpperArm")
9
local rarm = char:FindFirstChild("Right Arm") or char:FindFirstChild("RightUpperArm")
10
local rleg = char:FindFirstChild("Right Leg") or char:FindFirstChild("RightUpperLeg")
11
local lleg = char:FindFirstChild("Left Leg") or char:FindFirstChild("LeftUpperLeg")
12
local ls = tor:FindFirstChild("Left Shoulder")
13
local rs = tor:FindFirstChild("Right Shoulder")
14
local punching = false
15
local attack = false
16
local out = false
17
18
19
20
char.Archivable = true
21
local Schar = char:Clone()
22
local Slarm = Schar:FindFirstChild("Left Arm")
23
local Srarm = Schar:FindFirstChild("Right Arm")
24
Schar.Parent = char
25
Schar:MoveTo(tor.Position + Vector3.new(0, -5, 0))
26
Schar.Name = char.Name.."'s (crappy) Stand"
27
local Shum = Schar:FindFirstChildOfClass("Humanoid")
28
local Stor = Schar:FindFirstChild("Torso") or Schar:FindFirstChild("UpperTorso")
29
Stor.Anchored = true
30
local Shead = Schar:FindFirstChild("Head")
31
local Sface = Shead:FindFirstChildOfClass("Decal")
32
Sface:Destroy()
33
local Sls = Stor:FindFirstChild("Left Shoulder")
34
local Srs = Stor:FindFirstChild("Right Shoulder")
35
local Slleg = Schar:FindFirstChild("Left Leg")
36
local Srleg = Schar:FindFirstChild("Right Leg")
37
local Slsstart = Sls.C1
38
local Srsstart = Srs.C1
39
local Slsstart2 = Sls.C1 * CFrame.Angles(0, 0, math.rad(90))
40
local Srsstart2 = Srs.C1 * CFrame.Angles(0, 0, math.rad(-90))
41
local finish = tor.CFrame * CFrame.new(0, 1.5, 3)
42
local finish2 = tor.CFrame * CFrame.new(0, 2, 3)
43
local Slsfinish = Sls.C1 * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, math.rad(0))
44
local Slsfinish2 = Sls.C1 * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, math.rad(0))
45
local Srsfinish = Srs.C1 * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, math.rad(0))
46
local Srsfinish2 = Srs.C1 * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, math.rad(0))
47
Shead.CanCollide = false
48
Stor.CanCollide = false
49
Slarm.CanCollide = false
50
Srarm.CanCollide = false
51
char.Archivable = false
52
for i,v in pairs(Schar:GetChildren()) do
53
	if v:IsA("Part") then
54
		v.Transparency = 0.5
55
		v.Material = "Neon"
56
		v.CanCollide = false
57
	end
58
	if v:IsA("Accessory") then
59
		v.Handle.Anchored = false
60
	end
61
end
62
63
64
function down(key)
65
	if key == "e" then
66
		punching = true	
67
		wait()
68
		Sls.C1 = Slsstart2
69
		Srs.C1 = Srsstart2
70
		local aSlsstart = Sls.C1
71
		local aSrsstart = Srs.C1
72
		while punching == true do
73
			local hit1 = Slarm:GetConnectedParts()
74
				if hit1.Parent and hit1.Parent.Name ~= char.Name and hit1.Parent:FindFirstChildOfClass("Humanoid") then
75
					local owhum = hit1.Parent:FindFirstChild("Humanoid")
76
					owhum.Health = owhum.Health - 10
77
				end
78
			local hit2 = Slarm:GetConnectedParts()
79
				if hit2.Parent and hit2.Parent.Name ~= char.Name and hit2.Parent:FindFirstChildOfClass("Humanoid") then
80
					local owhum2 = hit2.Parent:FindFirstChild("Humanoid")
81
					owhum2.Health = owhum2.Health - 10
82
				end
83
			wait()
84
			attack = true
85
			finish2 = tor.CFrame * CFrame.new(0, 0.5, -4)
86
			finish = tor.CFrame * CFrame.new(0, 0.5, -4)
87
			Sls.C1 = aSlsstart * CFrame.new(1, 0, 0)
88
			Srs.C1 = aSrsstart
89
			wait()
90
			Sls.C1 = aSlsstart
91
			Srs.C1 = aSrsstart * CFrame.new(-1, 0, 0)
92
			wait()
93
		end
94
	wait()
95
	end
96
end
97
98
function up(key)
99
	if key == "e" then
100
		punching = false
101
		wait()
102
		while punching == false do
103
			wait()
104
			attack = false
105
			Sls.C1 = Slsstart
106
			Srs.C1 = Srsstart
107
			Slsfinish = Slsstart
108
			Slsfinish2 = Slsstart
109
			Srsfinish = Srsstart
110
			Srsfinish2 = Srsstart
111
			finish2 = tor.CFrame * CFrame.new(0, 2.5, 3)
112
			finish = tor.CFrame * CFrame.new(0, 2.5, 3)
113
		end
114
		wait()
115
	end
116
end
117
118
mou.KeyDown:connect(down)
119
mou.KeyUp:connect(up)
120
121
	wait()
122-
while true do
122+