View difference between Paste ID: SsHMLKzi and vFiehY9C
SHOW: | | - or go back to the newest paste.
1-
--A Sword + Ragdoll Death
1+
--https://github.com/Mokiros/roblox-FE-compatibility
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,Mouse,mouse,UserInputService,ContextActionService = owner
4
local RealPlayer = Player
5
do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end --A Sword + Ragdoll Death
6
--Credit To Rufus14 For The Original Script
7
--I just edit replaced the mesh and buffed the damage ^-^
8
--Feel free to leak it so more people can use it ^-^
9
mouse = game.Players.LocalPlayer:GetMouse()
10
using = false
11
hit = false
12
bat = Instance.new("Part", game.Players.LocalPlayer.Character)
13
bat.Size = Vector3.new(1, 1, 3)
14
bat.Rotation = Vector3.new(0, 0, 0)
15
bat.CanCollide = false
16
bat:BreakJoints()
17
--[[laughing = Instance.new("Sound", game.Players.LocalPlayer.Character.Head)
18
laughing.Volume = 6
19
laughing.SoundId = "rbxassetid://617500399"
20
ooh = Instance.new("Sound", game.Players.LocalPlayer.Character.Head)
21
ooh .Volume = 6
22
ooh .SoundId = "rbxasset://sounds/swoosh.wav"]]
23
baseballhit = Instance.new("Sound", bat)
24
baseballhit.Volume = 10
25
baseballhit.SoundId = "rbxassetid://93706376"
26
baseballhit1 = Instance.new("Sound", game.Players.LocalPlayer.Character.Head)
27
baseballhit1.Volume = 20
28
baseballhit1.SoundId = "rbxassetid://93706376"
29
swinging = Instance.new("Sound", bat)
30
swinging.Volume = 10
31
swinging.PlaybackSpeed = 1.2
32
swinging.SoundId = "rbxasset://sounds/swoosh.wav"
33
weld = Instance.new("Weld", bat)
34
weld.Part0 = game.Players.LocalPlayer.Character["Right Arm"]
35
weld.Part1 = bat
36
local batcritical = Instance.new("Sound", bat)
37
batcritical.SoundId = "rbxassetid://296102734"
38
batcritical.Volume = 5
39
weld.C0 = weld.C0 * CFrame.Angles(0,3.15,0) * CFrame.new(0,-0.95,1.9)
40
print(weld.C0)
41
mesh = Instance.new("SpecialMesh", bat)
42
mesh.MeshId = "http://www.roblox.com/asset/?id=11442510"
43
mesh.TextureId = "http://www.roblox.com/asset/?id=11442524"
44
mesh.Scale = Vector3.new(1.7, 1.7, 1.7)
45
local rhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
46
rhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
47
rhandweld.Part1 = game.Players.LocalPlayer.Character["Right Arm"]
48
rhandweld.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
49
rhandweld.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
50
local lhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
51
lhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
52
lhandweld.Part1 = game.Players.LocalPlayer.Character["Left Arm"]
53
lhandweld.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
54
lhandweld.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
55
function hit()
56
	if not using then
57
		using = true
58
		for i = 0,1 , 0.1 do
59
			wait()
60
			game.Players.LocalPlayer.Character.Torso.Neck.C0 = game.Players.LocalPlayer.Character.Torso.Neck.C0 * CFrame.new():lerp(CFrame.Angles(0,0,-0.35),i)
61
			game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.new():lerp(CFrame.Angles(0,0,0.35),i)
62
			rhandweld.C0 = rhandweld.C0 * CFrame.new():lerp(CFrame.Angles(0,0,0.3),i)
63
			lhandweld.C0 = lhandweld.C0 * CFrame.new():lerp(CFrame.Angles(-0.15,0,0),i)
64
		end
65
		for i = 1,2 do
66
			wait()
67
			game.Players.LocalPlayer.Character.Torso.Neck.C0 = game.Players.LocalPlayer.Character.Torso.Neck.C0 * CFrame.Angles(0,0,-0.1)
68
			game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,0.1)
69
			rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.1)
70
			lhandweld.C0 = lhandweld.C0 * CFrame.Angles(-0.05,0,0)
71
		end
72
		wait(0.2)
73
		swinging:Play()
74
		local se = Instance.new("Part", bat)
75
		se.Size = Vector3.new(1, 1, 3)
76
		se:BreakJoints()
77
		se.Transparency = 1
78
		se.CanCollide = false
79
		local dmgweld = Instance.new("Weld", se)
80
		dmgweld.Part0 = bat
81
		dmgweld.Part1 = se
82
		dmgweld.C0 = dmgweld.C0 * CFrame.new(0,0,1)
83
		local function dmg(part)
84
			local hum = part.Parent:findFirstChild("Humanoid")
85
			if hum ~= nil then
86
			local bloodhit = Instance.new("Texture", bat)
87
			bloodhit.Texture = "rbxassetid://176678070"
88
				se:destroy()
89
				baseballhit:Play()
90
				baseballhit1:Play()
91
				hum.Health = hum.Health - math.random(55,80)
92
				hum.PlatformStand = true
93
				local tor = part.Parent:findFirstChild("Torso")
94
				local dmgmat = math.random(1,4)
95
				if dmgmat == 3 then
96
				batcritical:Play()
97
				hum.Health = hum.Health - math.random(243,499)
98
				end
99
				if tor then
100
					tor.RotVelocity = game.Players.LocalPlayer.Character.Torso.CFrame.rightVector * 34
101
					tor.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.rightVector * 34
102
				end
103
				wait(2)
104
				hum.PlatformStand = false
105
				hit = false
106
			end
107
		end
108
		se.Touched:connect(dmg)
109
		for i = 0,1 , 0.2 do
110
			wait()
111
			game.Players.LocalPlayer.Character.Torso.Neck.C0 = game.Players.LocalPlayer.Character.Torso.Neck.C0 * CFrame.new():lerp(CFrame.Angles(0,0,0.7),i)
112
			game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.new():lerp(CFrame.Angles(0,0,-0.70),i)
113
			rhandweld.C0 = rhandweld.C0 * CFrame.new():lerp(CFrame.Angles(0,0,-0.6),i)
114
			lhandweld.C0 = lhandweld.C0 * CFrame.new():lerp(CFrame.Angles(0.30,0,0),i)
115
		end
116
		for i = 1,2 do
117
			wait()
118
			game.Players.LocalPlayer.Character.Torso.Neck.C0 = game.Players.LocalPlayer.Character.Torso.Neck.C0 * CFrame.Angles(0,0,-0.1)
119
			game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.3)
120
			rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,-0.4)
121
		end
122
		for i = 1,2 do
123
			wait()
124
			game.Players.LocalPlayer.Character.Torso.Neck.C0 = game.Players.LocalPlayer.Character.Torso.Neck.C0 * CFrame.Angles(0,0,-0.05)
125
			game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.05)
126
			rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,-0.2)
127
		end
128
		wait(0.2)
129
		for i = 1,2 do
130
			wait()
131
			game.Players.LocalPlayer.Character.Torso.Neck.C0 = game.Players.LocalPlayer.Character.Torso.Neck.C0 * CFrame.Angles(0,0,0.05)
132
			game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.05)
133
			rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.2)
134
		end
135
		for i = 1,2 do
136
			wait()
137
			game.Players.LocalPlayer.Character.Torso.Neck.C0 = game.Players.LocalPlayer.Character.Torso.Neck.C0 * CFrame.Angles(0,0,0.06)
138
			game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,0.2)
139
			rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.2)
140
		end
141
		se:destroy()
142
		for i = 1,2 do
143
			wait()
144
			game.Players.LocalPlayer.Character.Torso.Neck.C0 = game.Players.LocalPlayer.Character.Torso.Neck.C0 * CFrame.Angles(0,0,0.1)
145
			game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,0.1)
146
			rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.1)
147
		end
148
		for i = 1,2 do
149
			wait()
150
			game.Players.LocalPlayer.Character.Torso.Neck.C0 = game.Players.LocalPlayer.Character.Torso.Neck.C0 * CFrame.Angles(0,0,-0.05)
151
			game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,0.1)
152
			rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.1)
153
		end
154
		game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
155
		game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
156
		lhandweld.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
157
		lhandweld.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
158
		rhandweld.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
159
		rhandweld.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
160
		using = false
161
	end
162
end
163
function combo(key)
164
	key = key:lower()
165
	if key == "q" then
166
		if not using then
167
			using = true
168
			swinging:Play()
169
			for i = 1,2 do
170
				wait()
171
				lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0,0,-0.05)
172
				rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.05)
173
			end
174
			for i = 1,3 do
175
				wait()
176
				lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0,0,-0.47)
177
				rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.47)
178
			end
179
			for i = 1,2 do
180
				wait()
181
				lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0,0,-0.05)
182
				rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.05)
183
			end
184
			wait(0.4)
185
			swinging:Play()
186
			for i = 1,2 do
187
				wait()
188
				weld.C0 = weld.C0 * CFrame.Angles(0.13,0,0.05) * CFrame.new(0,-0.27,0.1)
189
				lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0.05,0,0)
190
				rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0.05,0,00)
191
			end
192
			for i = 1,3 do
193
				wait()
194
				weld.C0 = weld.C0 * CFrame.Angles(0.33,0,0.1) * CFrame.new(0,-0.66,0.3)
195
				lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0.2,0,0)
196
				rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0.2,0,0)
197
			end
198
			for i = 1,2 do
199
				wait()
200
				weld.C0 = weld.C0 * CFrame.Angles(0.13,0,0.05) * CFrame.new(0,-0.27,0.1)
201
				lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0.05,0,0)
202
				rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0.05,0,00)
203
			end
204
			wait(0.5)
205
			for i = 1,2 do
206
				wait()
207
				game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.05)
208
			end
209
			for i = 1,2 do
210
				wait()
211
				game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.1)
212
			end
213
			for i = 1,2 do
214
				wait()
215
				game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.2)
216
			end
217
			for i = 1,2 do
218
				wait()
219
				game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.4)
220
			end
221
			swinging:Play()
222
			for i = 1,2 do
223
				wait()
224
				game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.8)
225
			end
226
			local se = Instance.new("Part", bat)
227
			se.Size = Vector3.new(1, 1, 3)
228
			se:BreakJoints()
229
			se.Transparency = 1
230
			se.CanCollide = false
231
			local dmgweld = Instance.new("Weld", se)
232
			dmgweld.Part0 = bat
233
			dmgweld.Part1 = se
234
			dmgweld.C0 = dmgweld.C0 * CFrame.new(0,0,1)
235
			local function dmg(part)
236
				if not hit then
237
					hit = true
238
					local hum = part.Parent:findFirstChild("Humanoid")
239
					if hum ~= nil then
240
					baseballhit:Play()
241
					--baseballhit1:Play()
242
					hum.Health = hum.Health - math.random(20,40)
243
					hum.PlatformStand = true
244
					local tor = part.Parent:findFirstChild("Torso")
245
					if tor then
246
						local vel = Instance.new("BodyVelocity", tor)
247
						vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
248
						vel.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.rightVector * 35
249
						wait(0.1)
250
						vel:destroy()
251
						hit = false
252
					end
253
					wait(0.2)
254
					hit = false
255
					wait(1.5)
256
					hum.PlatformStand = false
257
				end
258
				end
259
			end
260
			se.Touched:connect(dmg)
261
			for i = 1,20 do
262
				swinging:Play()
263
				for i = 1,10 do
264
					wait()
265
					game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.9)
266
				end
267
			end
268
			game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
269
			game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
270
			for i = 1,2 do
271
				wait()
272
				lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0,0,0.05)
273
				rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,-0.05)
274
			end
275
			for i = 1,3 do
276
				wait()
277
				lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0,0,0.47)
278
				rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,-0.47)
279
			end
280
			for i = 1,2 do
281
				wait()
282
				lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0,0,0.05)
283
				rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,-0.05)
284
			end
285
			wait(0.4)
286
			swinging:Play()
287
			for i = 1,2 do
288
				wait()
289
				lhandweld.C0 = lhandweld.C0 * CFrame.Angles(-0.05,0,0)
290
				rhandweld.C0 = rhandweld.C0 * CFrame.Angles(-0.05,0,00)
291
			end
292
			for i = 1,3 do
293
				wait()
294
				lhandweld.C0 = lhandweld.C0 * CFrame.Angles(-0.2,0,0)
295
				rhandweld.C0 = rhandweld.C0 * CFrame.Angles(-0.2,0,0)
296
			end
297
			for i = 1,2 do
298
				wait()
299
				lhandweld.C0 = lhandweld.C0 * CFrame.Angles(-0.05,0,0)
300
				rhandweld.C0 = rhandweld.C0 * CFrame.Angles(-0.05,0,00)
301
			end
302
			for i = 1,2 do
303
				wait()
304
				weld.C0 = weld.C0 * CFrame.Angles(-0.13,0,-0.05) * CFrame.new(0,0.27,-0.1)
305
			end
306
			for i = 1,3 do
307
				wait()
308
				weld.C0 = weld.C0 * CFrame.Angles(-0.33,0,-0.1) * CFrame.new(0,0.66,-0.3)
309
			end
310
			for i = 1,2 do
311
				wait()
312
				weld.C0 = weld.C0 * CFrame.Angles(-0.13,0,-0.05) * CFrame.new(0,0.27,-0.1)
313
			end
314
			weld.C0 = CFrame.new(-0.0159739517, -0.949999988, -1.89993286, -0.999964654, 0, -0.00840734318, 0, 1, 0, 0.00840734318, 0, -0.999964654)
315
			game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
316
			game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
317
			lhandweld.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
318
			lhandweld.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
319
			rhandweld.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
320
			rhandweld.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
321
			using = false
322
			se:destroy()
323
		end
324
	end
325
end
326
--[[function laugh(key)
327
	key = key:lower()
328
	if key == "h" then
329
		local lahmath = math.random(1,2)
330
		if lahmath == 1 then
331
			laughing:Play()
332
		end
333
		if lahmath == 2 then
334
			ooh:Play()
335
		end
336
	end
337
end]]
338
function boom(key)
339
	key = key:lower()
340
	if key == "f" then
341
		if not using then
342
			using = true
343
			swinging:Play()
344
			game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 8
345
			game.Players.LocalPlayer.Character.Humanoid.JumpPower = 0
346
			for i = 1,2 do
347
				wait()
348
				lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0,0,-0.05)
349
				rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.05)
350
			end
351
			for i = 1,3 do
352
				wait()
353
				lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0,0,-0.47)
354
				rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.47)
355
			end
356
			for i = 1,2 do
357
				wait()
358
				lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0,0,-0.05)
359
				rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.05)
360
			end
361
			wait(0.4)
362
			swinging:Play()
363
			for i = 1,2 do
364
				wait()
365
				weld.C0 = weld.C0 * CFrame.Angles(0.13,0,0.05) * CFrame.new(0,-0.27,0.1)
366
				lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0.05,0,0)
367
				rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0.05,0,00)
368
			end
369
			for i = 1,3 do
370
				wait()
371
				weld.C0 = weld.C0 * CFrame.Angles(0.33,0,0.1) * CFrame.new(0,-0.66,0.3)
372
				lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0.2,0,0)
373
				rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0.2,0,0)
374
			end
375
			for i = 1,2 do
376
				wait()
377
				weld.C0 = weld.C0 * CFrame.Angles(0.13,0,0.05) * CFrame.new(0,-0.27,0.1)
378
				lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0.05,0,0)
379
				rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0.05,0,00)
380
			end
381
			wait(2)
382
			for i = 1,2 do
383
				wait()
384
				game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.05)
385
			end
386
			swinging:Play()
387
			for i = 1,2 do
388
				wait()
389
				game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.1)
390
			end
391
			local se = Instance.new("Part", bat)
392
			se.Size = Vector3.new(1, 1, 3)
393
			se:BreakJoints()
394
			se.Transparency = 1
395
			se.CanCollide = false
396
			local dmgweld = Instance.new("Weld", se)
397
			dmgweld.Part0 = bat
398
			dmgweld.Part1 = se
399
			dmgweld.C0 = dmgweld.C0 * CFrame.new(0,0,1)
400
			local function dmg(part)
401
				if not hit then
402
					hit = true
403
					se:destroy()
404
					local hum = part.Parent:findFirstChild("Humanoid")
405
					if hum ~= nil then
406
					batcritical:Play()
407
					baseballhit1:Play()
408
					hum.Health = hum.Health - math.random(70,86)
409
					hum.PlatformStand = true
410
					local tor = part.Parent:findFirstChild("Torso")
411
					if tor then
412
						hum.Jump = true
413
						local vel1 = Instance.new("BodyVelocity", tor)
414
						vel1.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
415
						vel1.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector * 130
416
						wait(0.1)
417
						vel1:destroy()
418
						hit = false
419
					end
420
					wait(0.2)
421
					hit = false
422
					wait(1.5)
423
					hum.PlatformStand = false
424
				end
425
				end
426
			end
427
			se.Touched:connect(dmg)
428
			for i = 1,2 do
429
				wait()
430
				game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.2)
431
			end
432
			for i = 1,2 do
433
				wait()
434
				game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.4)
435
			end
436
			for i = 1,2 do
437
				wait()
438
				game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.8)
439
			end
440
			for i = 1,2 do
441
				wait()
442
				game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.9)
443
			end
444
			for i = 1,2 do
445
				wait()
446
				game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-1.1)
447
			end
448
			for i = 1,2 do
449
				wait()
450
				game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-1.1)
451
			end
452
			game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-1.1)
453
			for i = 1,2 do
454
				wait()
455
				game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.8)
456
			end
457
			for i = 1,2 do
458
				wait()
459
				game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.6)
460
			end
461
			for i = 1,2 do
462
				wait()
463
				game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.3)
464
			end
465
			for i = 1,2 do
466
				wait()
467
				game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.1)
468
			end
469
			for i = 1,2 do
470
				wait()
471
				game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.05)
472
			end
473
			wait(0.5)
474
			for i = 1,2 do
475
				wait()
476
				game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,0.05)
477
			end
478
			for i = 1,2 do
479
				wait()
480
				game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,0.1)
481
			end
482
			for i = 1,2 do
483
				wait()
484
				game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,0.2)
485
			end
486
			for i = 1,2 do
487
				wait()
488
				game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,0.2)
489
			end
490
			for i = 1,2 do
491
				wait()
492
				game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,0.05)
493
			end
494
			game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16
495
			game.Players.LocalPlayer.Character.Humanoid.JumpPower = 50
496
			game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
497
			game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
498
			for i = 1,2 do
499
				wait()
500
				lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0,0,0.05)
501
				rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,-0.05)
502
			end
503
			for i = 1,3 do
504
				wait()
505
				lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0,0,0.47)
506
				rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,-0.47)
507
			end
508
			for i = 1,2 do
509
				wait()
510
				lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0,0,0.05)
511
				rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,-0.05)
512
			end
513
			wait(0.4)
514
			swinging:Play()
515
			for i = 1,2 do
516
				wait()
517
				lhandweld.C0 = lhandweld.C0 * CFrame.Angles(-0.05,0,0)
518
				rhandweld.C0 = rhandweld.C0 * CFrame.Angles(-0.05,0,00)
519
			end
520
			for i = 1,3 do
521
				wait()
522
				lhandweld.C0 = lhandweld.C0 * CFrame.Angles(-0.2,0,0)
523
				rhandweld.C0 = rhandweld.C0 * CFrame.Angles(-0.2,0,0)
524
			end
525
			for i = 1,2 do
526
				wait()
527
				lhandweld.C0 = lhandweld.C0 * CFrame.Angles(-0.05,0,0)
528
				rhandweld.C0 = rhandweld.C0 * CFrame.Angles(-0.05,0,00)
529
			end
530
			for i = 1,2 do
531
				wait()
532
				weld.C0 = weld.C0 * CFrame.Angles(-0.13,0,-0.05) * CFrame.new(0,0.27,-0.1)
533
			end
534
			for i = 1,3 do
535
				wait()
536
				weld.C0 = weld.C0 * CFrame.Angles(-0.33,0,-0.1) * CFrame.new(0,0.66,-0.3)
537
			end
538
			for i = 1,2 do
539
				wait()
540
				weld.C0 = weld.C0 * CFrame.Angles(-0.13,0,-0.05) * CFrame.new(0,0.27,-0.1)
541
			end
542
			weld.C0 = CFrame.new(-0.0159739517, -0.949999988, -1.89993286, -0.999964654, 0, -0.00840734318, 0, 1, 0, 0.00840734318, 0, -0.999964654)
543
			game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
544
			game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
545
			lhandweld.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
546
			lhandweld.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
547
			rhandweld.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
548
			rhandweld.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
549
			se:destroy()
550
			using = false
551
		end
552
	end
553
end
554
mouse.KeyDown:connect(boom)
555
mouse.KeyDown:connect(combo)
556
mouse.KeyDown:connect(laugh)
557
mouse.Button1Down:connect(hit)
558
--[[
559
	local vel = Instance.new("BodyVelocity", game.Players.LocalPlayer.Character.Torso)
560
vel.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector * -5
561
vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
562
--]]
563
--By Rufus14 (FINALLY I KNOW HOW TO MAKE A RAGDOLL :D)
564
--die plz
565
mouse = game.Players.LocalPlayer:GetMouse()
566
function ragdoll()
567
game.Players.LocalPlayer.Character.Archivable = true
568
clone = game.Players.LocalPlayer.Character:Clone()
569
clone.Parent = workspace
570
for i,v in pairs(clone:GetChildren()) do
571
	if v.ClassName == "Script" or v.ClassName == "LocalScript" then
572
		v:destroy()
573
	end
574
	for i,p in pairs(v:GetChildren()) do
575
	if p.ClassName == "Weld" or p.ClassName == "Motor6D" or p.ClassName == "BodyVelocity" then
576
		p:destroy()
577
	end
578
end
579
end
580
for i,t in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
581
	if t.ClassName == "Accessory" or t.ClassName == "ForceField" then
582
		t:destroy()
583
	end
584
end
585
vel = Instance.new("BodyVelocity", clone.Torso)
586
vel.Velocity = clone.Torso.CFrame.lookVector * -5
587
vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
588
clone.Head.face.Texture = "http://www.roblox.com/asset/?id=161061608"
589
using = false
590
hit = Instance.new("Sound", clone.Torso)
591
hit.SoundId = "rbxassetid://260430060"
592
hit.Volume = 5
593
hit1 = Instance.new("Sound", clone.Torso)
594
hit1.SoundId = "rbxassetid://138087186"
595
hit1.Volume = 5
596
hit2 = Instance.new("Sound", clone.Torso)
597
hit2.SoundId = "rbxassetid://131237241"
598
hit2.Volume = 5
599
hit3 = Instance.new("Sound", clone.Torso)
600
hit3.SoundId = "rbxassetid://278062209"
601
hit3.Volume = 5
602
hit3.TimePosition = 0.33
603
ded = Instance.new("Sound", clone.Torso)
604
ded.SoundId = "rbxassetid://163154423"
605
ded.Volume = 5
606
local leftarm = clone:findFirstChild("Left Arm")
607
local rightrm = clone:findFirstChild("Right Arm")
608
local leftleg = clone:findFirstChild("Left Leg")
609
local rightleg = clone:findFirstChild("Right Leg")
610
local head = clone:findFirstChild("Head")
611
local welding = Instance.new("Weld", clone.Torso)
612
welding.Part0 = clone.Torso
613
welding.Part1 = head
614
welding.C0 = welding.C0 * CFrame.new(0,1.5,0)
615
for i, g in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
616
	if g.ClassName == "Part" then
617
		g:destroy()
618
	end
619
end
620
for i, h in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
621
	if h.ClassName == "Accesory" then
622
		h:destroy()
623
	end
624
end
625
game.Workspace.CurrentCamera.CameraSubject = head
626
if leftleg ~= nil then
627
local glue = Instance.new("Glue", clone.Torso)
628
glue.Part0 = clone.Torso
629
glue.Part1 = leftleg
630
glue.Name = "Left leg"
631
local collider = Instance.new("Part", leftleg)
632
collider.Position = Vector3.new(0,999,0)
633
collider.Size = Vector3.new(1.7, 1, 1)
634
collider.Shape = "Cylinder"
635
local weld = Instance.new("Weld", collider)
636
weld.Part0 = leftleg
637
weld.Part1 = collider
638
weld.C0 = CFrame.Angles(0, 0, 80)
639
collider.TopSurface = "Smooth"
640
collider.BottomSurface = "Smooth"
641
collider.formFactor = "Symmetric"
642
glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
643
glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
644
collider.Transparency = 1
645
end
646
------------
647
if rightleg ~= nil then
648
local glue1 = Instance.new("Glue", clone.Torso)
649
glue1.Part0 = clone.Torso
650
glue1.Part1 = rightleg
651
glue1.Name = "Right leg"
652
local collider1 = Instance.new("Part", rightleg)
653
collider1.Position = Vector3.new(0,999,0)
654
collider1.Size = Vector3.new(1.7, 1, 1)
655
collider1.Shape = "Cylinder"
656
local weld1 = Instance.new("Weld", collider1)
657
weld1.Part0 = rightleg
658
weld1.Part1 = collider1
659
weld1.C0 = CFrame.Angles(0, 0, 80)
660
collider1.TopSurface = "Smooth"
661
collider1.BottomSurface = "Smooth"
662
collider1.formFactor = "Symmetric"
663
glue1.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
664
glue1.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
665
collider1.Transparency = 1
666
end
667
------------
668
if rightrm ~= nil then
669
local glue11 = Instance.new("Glue", clone.Torso)
670
glue11.Part0 = clone.Torso
671
glue11.Part1 = rightrm
672
glue11.Name = "Right shoulder"
673
local collider11 = Instance.new("Part", rightrm)
674
collider11.Position = Vector3.new(0,9999,0)
675
collider11.Size = Vector3.new(1.8,1,1)
676
collider11.Shape = "Cylinder"
677
local weld11 = Instance.new("Weld", collider11)
678
weld11.Part0 = rightrm
679
weld11.Part1 = collider11
680
weld11.C0 = CFrame.Angles(0, 0, 80)
681
collider11.TopSurface = "Smooth"
682
collider11.BottomSurface = "Smooth"
683
collider11.formFactor = "Symmetric"
684
glue11.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
685
glue11.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
686
collider11.Transparency = 1
687
end
688
------------
689
if leftarm ~= nil then
690
local glue111 = Instance.new("Glue", clone.Torso)
691
glue111.Part0 = clone.Torso
692
glue111.Part1 = leftarm
693
glue111.Name = "Left shoulder"
694
local collider111 = Instance.new("Part", leftarm)
695
collider111.Position = Vector3.new(0,9999,0)
696
collider111.Size = Vector3.new(1.8,1,1)
697
collider111.Shape = "Cylinder"
698
local weld111 = Instance.new("Weld", collider111)
699
weld111.Part0 = leftarm
700
weld111.Part1 = collider111
701
weld111.C0 = CFrame.Angles(0, 0, 80)
702
collider111.TopSurface = "Smooth"
703
collider111.BottomSurface = "Smooth"
704
collider111.formFactor = "Symmetric"
705
glue111.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
706
glue111.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
707
collider111.Transparency = 1
708
----------------
709
sensoring = Instance.new("Part", clone.Torso)
710
sensoring.Size = Vector3.new(1.2,1.1,0.8)
711
sensoring.CanCollide = false
712
sensoring.Position = clone.Torso.Position
713
local welder = Instance.new("Weld", sensoring)
714
welder.Part0 = clone.Torso
715
welder.Part1 = sensoring
716
welder.C0 = welder.C0 * CFrame.new(0,0,1.05)
717
sensoring.Transparency = 1
718
-----------------
719
sensoring1 = Instance.new("Part", clone.Torso)
720
sensoring1.Size = Vector3.new(1.2,1.1,0.8)
721
sensoring1.CanCollide = false
722
sensoring1.Position = clone.Torso.Position
723
local welder1 = Instance.new("Weld", sensoring)
724
welder1.Part0 = clone.Torso
725
welder1.Part1 = sensoring1
726
welder1.C0 = welder1.C0 * CFrame.new(0,0,-1.05)
727
sensoring1.Transparency = 1
728
end
729
clone.Name = game.Players.LocalPlayer.Character.Name.." (DEAD)"
730
ded:Play()
731
vel:destroy()
732
wait(0.5)
733
local function touch()
734
	if not using then
735
		using = true
736
		local Math = math.random(1,4)
737
		if Math == 1 then
738
			hit:Play()
739
		end
740
		if Math == 2 then
741
			hit1:Play()
742
		end
743
		if Math == 3 then
744
			hit2:Play()
745
		end
746
		if Math == 4 then
747
			hit3:Play()
748
		end
749
		wait(0.1)
750
		using = false
751
	end
752
end
753
sensoring.Touched:connect(touch)
754
sensoring1.Touched:connect(touch)
755
wait(4.47)
756
hit1.Volume = 0
757
hit2.Volume = 0
758
hit3.Volume = 0
759
hit.Volume = 0
760
		end
761
762
game.Players.LocalPlayer.Character.Humanoid.Died:connect(ragdoll)
763
764
--di ent