View difference between Paste ID: j2QaU3mA and bNtLbA11
SHOW: | | - or go back to the newest paste.
1
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
2
local Player,Mouse,mouse,UserInputService,ContextActionService = owner
3
local RealPlayer = Player
4
do print("FE Compatibility code by Mokiros");InternalData = {}InternalData.RealOwner = owner;InternalData.RealObjs = {};InternalData.SoundLoudness = {};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()}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;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 t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end,__call=function(self,...)local t=rawget(self,"_RealService")if t then return t(...)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 self[t]end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;x.RunService=v({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")setmetatable(x,{__index=function(self,t)return r:GetService(t)or typeof(r[t])=="function"and function(m,...)return r[t](r,...)end or r[t]end,__newindex=s.__newindex,__call=s.__call})game,owner=x,x.Players.LocalPlayer
5
	script.Parent = InternalData.RealOwner.Character
6
	local Event = Instance.new("RemoteEvent");Event.Name = "UserInput";InternalData.Event = Event
7
	local function createObject (connections, index)
8
    	local proxy = newproxy (true);local meta = getmetatable (proxy);
9
    	local runbind = function (self, i, ...) connections[i]:Fire (...); end;
10
		while (#connections > 0) do connections[table.remove(connections, 1)] = Instance.new ('BindableEvent');end;
11
    	meta.__index = function (self, i)
12
        	if (i == 'TriggerEvent') then return runbind end;
13
        	return connections[i] and connections[i].Event or index[i];
14
    	end;
15
    	meta.__newindex = index;meta.__metatable = false;return proxy
16
	end;
17
	local Mouse = createObject({"KeyUp","KeyDown","Button1Down","Button1Up"},{["Target"] = nil;["Hit"] = CFrame.new()})
18
	local UserInputService = createObject({"InputBegan","InputEnded"},{})
19
	local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
20
		self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
21
	end};ContextActionService.UnBindAction = ContextActionService.BindAction
22
	Event.OnServerEvent:Connect(function(FiredBy,Input)
23
		if FiredBy ~= InternalData.RealOwner then return end
24
		if Input.MouseEvent then
25
			Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
26
		elseif Input.Sound then
27
			if InternalData.SoundLoudness[Input.Sound] then InternalData.SoundLoudness[Input.Sound] = Input.Loudness end
28
		else
29
			local Begin = Input.UserInputState == Enum.UserInputState.Begin
30
			if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TriggerEvent(Begin and "Button1Down" or "Button1Up") end
31
			for _,Action in pairs(ContextActionService.Actions) do
32
				for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
33
			end
34
			Mouse:TriggerEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower());UserInputService:TriggerEvent(Begin and "InputBegan" or "InputEnded",Input,false)
35
		end
36
	end)
37
	InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
38
	Event.Parent = NLS([[
39
		local Player = owner;
40
		local Sounds = {};
41
		local Event = script:WaitForChild("UserInput");
42
		local UserInputService = game:GetService("UserInputService");
43
		local Mouse = Player:GetMouse();
44
		local Input = function(Input,gameProcessedEvent)
45
			if gameProcessedEvent then return end
46
			Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
47
		end
48
		Event.OnClientEvent:connect(function(Args)
49
			if Args[1] == "NewSound" then table.insert(Sounds,Args[2]) end
50
		end)
51
		UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
52
		local Hit,Target
53
		while wait(1/30) do
54
			for x,Sound in pairs(Sounds) do
55
				if Sound.Parent then Event:FireServer({["Sound"]=Sound,["Loudness"]=Sound.PlaybackLoudness}) end
56
			end
57
			if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
58
				Hit = Mouse.Hit;Target = Mouse.Target;
59
				Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
60
			end
61
		end
62
	]],InternalData.RealOwner.Character)
63
end
64
InternalData.NewOwner = setmetatable({},{
65
	__index = function (self,Index)
66
			local Type = type(InternalData.RealOwner[Index])
67
			if Type == "function" then
68
				if Index:lower() == "getmouse" or Index:lower() == "mouse" then
69
				return function (self)return InternalData["Mouse"] end
70
				end
71
			return function (self,...)return InternalData.RealOwner[Index](InternalData.RealOwner,...) end
72
		elseif Index == "FakePlayer" then
73
			return true
74
		end
75
		return InternalData.RealOwner[Index]
76
	end;
77
	__tostring = function(self) return tostring(InternalData.RealOwner) end
78
})
79
--LoadLibrary("RbxUtility").Create
80
InternalData.LoadLibrary = LoadLibrary;LoadLibrary = function(Library)
81
	if Library == "RbxUtility" then
82
		return setmetatable({},{
83
			__tostring = function() return "RbxUtility" end;
84
			__index = function(self, Index)
85
				if Index:lower() == "create" then
86
					return function(Type)
87
						return function(Data)
88
							Data = Data or {}
89
							local Inst = Instance.new(Type)
90
							for x,y in pairs(Data) do
91
								if InternalData.RealObjs[y] then y = InternalData.RealObjs[y] end
92
								if y == owner then y = InternalData.RealOwner end
93
								Inst[x] = y
94
							end
95
							return Inst
96
						end
97
					end
98
				end
99
				return InternalData.LoadLibrary(Library)[Index]
100
			end
101
		})
102
	end
103
	return InternalData.LoadLibrary(Library)
104
end
105
InternalData.RealInstance = Instance;Instance = setmetatable({},{
106
	__index = function (self,Index)
107
		if Index:lower() == 'new' then
108
			return function (Type, Parent)
109
				if Parent == owner then Parent = InternalData.RealOwner end
110
				if InternalData.RealObjs[Parent] then Parent = InternalData.RealObjs[Parent] end
111
				local Real = InternalData.RealInstance.new(Type,Parent)
112
				if not Type then return end
113
				if Type == "BillboardGui" then
114
					local ToReturn = setmetatable({},{
115
						__index = function (self,Index)
116
							if type(Real[Index]) == "function" then
117
								if Index:lower() == "clone" then
118
									return function (self)
119
										local Real = Real:Clone()
120
										local ToReturn = setmetatable({RealObject = Real},{
121
											__index = function (self,Index)
122
												if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end
123
												return Real[Index]
124
											end;
125
											__newindex = function (self,Index,Value)
126
												if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
127
												if Value == owner then Value = InternalData.RealOwner end
128
												Real[Index] = Value
129
											end;
130
											__tostring = function(self) return tostring(Real) end;
131
										})
132
										InternalData.RealObjs[ToReturn] = Real;return ToReturn;
133
									end
134
								end
135
								return function (self,...) return Real[Index](Real,...)end
136
							end
137
							return Real[Index]
138
						end;
139
						__newindex = function (self,Index,Value)
140
							if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
141
							if Value == owner then Value = InternalData.RealOwner end
142
							Real[Index] = Value
143
						end;
144
						__tostring = function(self) return tostring(Real) end;
145
					})
146
					InternalData.RealObjs[ToReturn] = Real;return ToReturn;
147
				elseif Type:lower() == "sound" then
148
					Real.Parent = owner.Character;
149
					local ToReturn = setmetatable({RealObject = Real},{
150
						__index = function (self,Index)
151
							if Index:lower() == "playbackloudness" then
152
								return InternalData.SoundLoudness[Real] or 0
153
							elseif type(Real[Index]) == "function" then
154
								if Index:lower() == "clone" then
155
									return function (self)
156
										local Real = Real:Clone()
157
										local ToReturn = setmetatable({},{
158
											__index = function (self,Index)
159
												if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end
160
												return Real[Index]
161
											end;
162
											__newindex = function (self,Index,Value)
163
												if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
164
												if Value == owner then Value = InternalData.RealOwner end
165
												Real[Index] = Value
166
											end;
167
											__tostring = function(self) return tostring(Real) end;
168
										})
169
										InternalData.RealObjs[ToReturn] = Real;return ToReturn;
170
									end
171
								end
172
								return function (self,...) return Real[Index](Real,...)end
173
							end
174
							return Real[Index]
175
						end;
176
						__newindex = function (self,Index,Value)
177
							if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
178
							if Value == owner then Value = InternalData.RealOwner end
179
							Real[Index] = Value
180
						end;
181
						__tostring = function(self) return tostring(Real) end;
182
					})
183
					InternalData.RealObjs[ToReturn] = Real;InternalData.SoundLoudness[Real] = 0;repeat wait() until InternalData.Event.Parent InternalData.Event:FireClient(InternalData.RealOwner,{"NewSound",Real}) return ToReturn;
184
				else
185
					local ToReturn = setmetatable({RealObject = Real},{
186
						__index = function (self,Index)
187
							if type(Real[Index]) == "function" then
188
								if Index:lower() == "clone" then
189
									return function (self)
190
										local Real = Real:Clone()
191
										local ToReturn = setmetatable({},{
192
											__index = function (self,Index)
193
												if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end
194
												return Real[Index]
195
											end;
196
											__newindex = function (self,Index,Value)
197
												if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
198
												if Value == owner then Value = InternalData.RealOwner end
199
												Real[Index] = Value
200
											end;
201
											__tostring = function(self) return tostring(Real) end;
202
										})
203
										InternalData.RealObjs[ToReturn] = Real;return ToReturn;
204
									end
205
								end
206
								return function (self,...) return Real[Index](Real,...)end
207
							end
208
							return Real[Index]
209
						end;
210
						__newindex = function (self,Index,Value)
211
							if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
212
							if Value == owner then Value = InternalData.RealOwner end
213
							Real[Index] = Value
214
						end;
215
						__tostring = function(self) return tostring(Real) end;
216
					})
217
					InternalData.RealObjs[ToReturn] = Real;return ToReturn;
218
				end
219
			end
220
		end
221
		return InternalData.RealInstance[Index]
222
	end;
223
	__tostring = function(self) return tostring(InternalData.RealInstance) end;
224
});
225
InternalData.RealGame = game;game = setmetatable({},{
226
	__index = function (self,Index)
227
		if InternalData.RealGame[Index] then
228
			local Type = type(InternalData.RealGame[Index])
229
			if Type == "function" then
230
				if Index:lower() == "getservice" or Index:lower() == "service" then
231
					return function (self,Service)
232
						local FakeServices = {
233
							["players"] = function()
234
								return setmetatable({},{
235
									__index = function (self2,Index2)
236
										local RealService = InternalData.RealGame:GetService(Service)
237
										local Type2 = type(RealService[Index2])
238
										if Type2 == "function" then
239
											return function (self,...) return RealService[Index2](RealService,...)end
240
										else
241
											if Index2:lower() == "localplayer" then return InternalData.NewOwner end
242
											return RealService[Index2]
243
										end
244
									end;
245
									__tostring = function(self) return tostring(InternalData.RealGame:GetService(Service)) end
246
								})
247
							end;
248
							["contextactionservice"] = function() return InternalData["ContextActionService"] end;
249
							["userinputservice"] = function() return InternalData["UserInputService"] end;
250
							["debris"] = function()
251
								return setmetatable({},{
252
									__index = function(self2,Index2)
253
										local RealService = InternalData.RealGame:GetService(Service)
254
										local Type2 = type(RealService[Index2])
255
										if Type2 == "function" then
256
											if Index2:lower() == "additem" then
257
												return function (self,Item,Time)
258
													if InternalData.RealObjs[Item] then Item = InternalData.RealObjs[Item] end
259
													return RealService:AddItem(Item,Time)
260
												end
261
											end
262
											return function (self,...) return RealService[Index2](RealService,...) end
263
										end
264
										return RealService[Index2]
265
									end;
266
									__tostring = function(self) return tostring(InternalData.RealGame:GetService("Debris")) end
267
								})
268
							end;
269
							["runservice"] = function()
270
								return setmetatable({},{
271
									__index = function(self2,Index2)
272
										local RealService = InternalData.RealGame:GetService(Service)
273
										local Type2 = type(RealService[Index2])
274
										if Type2 == "function" then
275
											return function (self,...) return RealService[Index2](RealService,...) end
276
										else
277
											local RunServices = {
278
												["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return InternalData.RealGame:GetService("RunService").Stepped:Connect(Function) end end;
279
												["renderstepped"] = function() return RealService["Stepped"] end
280
											}
281
											if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
282
											return RealService[Index2]
283
										end
284
									end;
285
									__tostring = function(self) return tostring(InternalData.RealGame:GetService("RunService")) end
286
								})
287
							end
288
						}
289
						if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
290
						return InternalData.RealGame:GetService(Service)
291
					end
292
				end
293
				return function (self,...) return InternalData.RealGame[Index](InternalData.RealGame,...) end
294
			else
295
				if game:GetService(Index) then return game:GetService(Index) end
296
				return InternalData.RealGame[Index]
297
			end
298
		end
299
		return nil
300
	end;
301
	__tostring = function(self) return tostring(InternalData.game) end
302
});Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete!")
303
304
local player = game:GetService("Players").LocalPlayer
305
local char = player.Character
306
local mouse = player:GetMouse()
307
local knife = true
308
local phone = false
309
local rs = char.Torso["Right Shoulder"]
310
local activated = false
311
local Revolver = false
312
local readyts = true
313
local dmg = false
314
local hum = char.Humanoid
315
local chara = false
316
local LS = char.Torso["Left Shoulder"]
317
local RH = char.Torso["Right Hip"]
318
local LH = char.Torso["Left Hip"]
319
local RJ = char.HumanoidRootPart.RootJoint
320
local spinSpecial = false
321
local slash = false
322
--------------------------------------------------------[[Settings]]
323
char.Humanoid.MaxHealth = 200
324
char.Humanoid.Health = 200
325
--------------------------------------------------------[[Tools,Sounds]]
326
local Knife = Instance.new("Part",char)
327
Knife.Size = Vector3.new(0.2,3,0.8)
328
Knife.CanCollide = false
329
mesh = Instance.new("SpecialMesh")
330
mesh.Parent = Knife
331
mesh.MeshId = "http://www.roblox.com/asset/?id=121944778"
332
mesh.TextureId = "http://www.roblox.com/asset/?id=358682478"
333
weld = Instance.new("Weld")
334
weld.Parent = char
335
weld.Part0 = char["Right Arm"]
336
weld.Part1 = Knife
337
weld.C0 = CFrame.new(0,-1,-1) * CFrame.Angles(-1.57,0,0)
338
local realKnife = Instance.new("Part",char)
339
realKnife.Size = Vector3.new(0.2,3,0.8)
340
realKnife.CanCollide = false
341
meshaa = Instance.new("SpecialMesh")
342
meshaa.Parent = realKnife
343
meshaa.MeshId = "http://www.roblox.com/asset/?id=121944778"
344
meshaa.TextureId = "http://www.roblox.com/asset/?id=362719969"
345
realKnife.Transparency = 1
346
weldsa = Instance.new("Weld")
347
weldsa.Parent = char
348
weldsa.Part0 = char["Right Arm"]
349
weldsa.Part1 = realKnife
350
weldsa.C0 = CFrame.new(0,-1,-1) * CFrame.Angles(-1.57,0,0)
351
local SlashSound = Instance.new("Sound", Knife)
352
SlashSound.SoundId = "rbxassetid://394934205"
353
local DamageSound = Instance.new("Sound",Knife)
354
DamageSound.SoundId = "rbxassetid://388826051"
355
local Pp = Instance.new("Part",char)
356
		Pp.Size = Vector3.new(0.6,1.1,0.2)
357
		Pp.CanCollide = false
358
		Pp.Transparency = 1
359
		meshphon = Instance.new("SpecialMesh",Pp)
360
		meshphon.MeshId = "http://www.roblox.com/asset/?id=268471347"
361
		meshphon.TextureId = "http://www.roblox.com/asset/?id=270166778"
362
		meshphon.Scale = Vector3.new(1.8,1.8,1)
363
		weld2 = Instance.new("Weld")
364
		weld2.Parent = char
365
		weld2.Part0 = char["Right Arm"]
366
		weld2.Part1 = Pp
367
		weld2.C0 = CFrame.new(0,-0.6,-1) * CFrame.Angles(2,0,3.14)
368
local revol = Instance.new("Part",char)
369
revol.Size = Vector3.new(0.2,1.83,1.03)
370
revol.CanCollide = false
371
revol.Transparency = 1
372
local shotSound = Instance.new("Sound",revol)
373
shotSound.SoundId = "rbxassetid://145080998"
374
shotSound.PlaybackSpeed = 3
375
meshrevol = Instance.new("SpecialMesh",revol)
376
meshrevol.MeshId = "http://www.roblox.com/asset/?id=79401392"
377
meshrevol.TextureId = "rbxassetid://97889459"
378
meshrevol.Scale = Vector3.new(1.6,1.6,1.6)
379
meshrevol.VertexColor = Vector3.new(1,0.9,0)
380
weld3 = Instance.new("Weld")
381
weld3.Parent = char
382
weld3.Part0 = char["Right Arm"]
383
weld3.Part1 = revol
384
weld3.C0 = CFrame.new(0,-1.4,-0.3) * CFrame.Angles(3.14,0,0)
385
music = Instance.new("Sound")
386
music.Parent = char
387
music.SoundId = "rbxassetid://399570826"
388
music.Volume = 2
389
music.PlaybackSpeed = 1.15
390
music.Looped = true
391
laugh = Instance.new("Sound")
392
laugh.Parent = char
393
laugh.SoundId = "rbxassetid://319332735"
394
laugh.Volume = 4
395
--------------------------------------------------------[[Gui]]
396
local menu = Instance.new("ScreenGui")
397
menu.Parent = player.PlayerGui
398
local Frame = Instance.new("ImageLabel", menu)
399
Frame.Image = "rbxassetid://48656662"
400
Frame.Size = UDim2.new(0,200,0,300)
401
Frame.BackgroundTransparency = 1
402
Frame.Position = UDim2.new(0,10,0,200)
403
Frame.Visible = false
404
local button = Instance.new("TextButton", Frame)
405
button.Size = UDim2.new(1,-10,0,30)
406
button.Position = UDim2.new(0,10,0,10)
407
button.BackgroundTransparency = 1
408
button.Text = "Revolver(Yellow Soul)"
409
button.BorderSizePixel = 0
410
button.TextColor3 = Color3.new(255,255,255)
411
button.TextStrokeTransparency = 0
412
button.Font = "SciFi"
413
button.TextScaled = true
414
--------------------------------------------------------[[Gui Scripts]]
415
button.MouseButton1Click:connect(function()
416
	if Revolver == true then
417
		Revolver = false
418
		button.TextColor3 = Color3.new(255,255,255)
419
	elseif Revolver == false then
420
		Revolver = true
421
		button.TextColor3 = Color3.new(255,255,0)
422
	end
423
end)
424
--------------------------------------------------------[[Animations]]
425
slash = Instance.new("Animation",workspace)
426
slash.AnimationId = "http://www.roblox.com/asset/?id=186934753"
427
shoot = Instance.new("Animation",workspace)
428
shoot.AnimationId = "http://www.roblox.com/Asset?ID=95383980"
429
--------------------------------------------------------[[Damage Functions]]
430
function DamageObject(hit)
431
	local char=hit.Parent
432
	if char and char~=player.Character and char.Name~="Arms_Model" and hit.Name~="Handle" and dmg == false then
433
		local h=char:FindFirstChild("Humanoid")
434
		if h and h.Health > 0 then
435
			DamageSound:Play()
436
			h:TakeDamage(35)
437
			if h.Health == 0 then
438
			end
439
			dmg = true
440
			wait(1.5)
441
		end
442
	end
443
end
444
function shot(hit)
445
	local char=hit.Parent
446
	if char and char~=player.Character and char.Name~="Arms_Model" and hit.Name~="Handle" then
447
		local h=char:FindFirstChild("Humanoid")
448
		if h and h.Health > 0 then
449
			h:TakeDamage(10)
450
			if h.Health == 0 then
451
			end
452
		end
453
	end
454
end
455
function CharaDmg(hit)
456
	local char=hit.Parent
457
	if char and char~=player.Character and char.Name~="Arms_Model" and hit.Name~="Handle" and dmg == false then
458
		local h=char:FindFirstChild("Humanoid")
459
		if h and h.Health > 0 then
460
			DamageSound:Play()
461
			h:TakeDamage(105)
462
			if h.Health == 0 then
463
			end
464
			dmg = true
465
			wait(1.5)
466
		end
467
	end
468
end
469
--------------------------------------------------------[[Normal Actions]]
470
mouse.KeyDown:connect(function(key)
471
	Key = key:lower()
472
	if Key == "z" and knife == true and phone == false and chara == false then -- Normal Slash
473
		knife = false
474
		dmg = false
475
		local slashstart = char.Humanoid:LoadAnimation(slash)
476
		Knife.Touched:connect(DamageObject)
477
		slashstart:Play()
478
		SlashSound:Play()
479
		wait(0.76)
480
		knife = true
481
	elseif Key == "c" and knife == true and phone == false and chara == false then -- Phone
482
		knife = false
483
		phone = true
484
		Knife.Transparency = 1
485
		for i = 1,5 do
486
			rs.C0 = rs.C0 * CFrame.Angles(0,0,0.157)
487
			wait()
488
		end
489
		Frame.Visible = true
490
		Pp.Transparency = 0
491
		local menu = Instance.new("ScreenGui")
492
		menu.Parent = player.PlayerGui
493
		local button = Instance.new("TextButton", menu)
494
	elseif Key == "c" and knife == false and phone == true and Revolver == false and chara == false then -- phone Gui
495
		knife = true
496
		phone = false
497
		for i = 1,5 do
498
			rs.C0 = rs.C0 * CFrame.Angles(0,0,-0.157)
499
			wait()
500
		end
501
		Frame.Visible = false
502
		Knife.Transparency = 0
503
		Pp.Transparency = 1
504
	elseif Key == "c" and Revolver == true and phone == true and chara == false then
505
		phone = false
506
		revol.Transparency = 0
507
		Pp.Transparency = 1
508
		Frame.Visible = false
509
		for i = 1,5 do
510
			rs.C0 = rs.C0 * CFrame.Angles(0,0,-0.157)
511
			wait()
512
		end
513
	elseif Key == "c" and Revolver == true and phone == false and chara == false then
514
		phone = true
515
		Frame.Visible = true
516
		revol.Transparency = 1
517
		Pp.Transparency = 0
518
		for i = 1,5 do
519
			rs.C0 = rs.C0 * CFrame.Angles(0,0,0.157)
520
			wait()
521
		end
522
	elseif Key == "z" and Revolver == true then -- Revolver Script
523
		local shootstart = char.Humanoid:LoadAnimation(shoot)
524
		if (not readyts) then return end
525
	readyts = false
526
	targ = mouse.Target
527
	if (targ == nil) then 
528
		readyts = true
529
		return 
530
	end
531
	hum = targ.Parent:findFirstChild("Humanoid")
532
	Hit = mouse.hit
533
	shootstart:Play()
534
	shotSound:Play()
535
	local P = Instance.new("Part",char) 
536
	P.Name = "BulletTrail" 
537
	local Place0 = revol.CFrame 
538
	P.formFactor = 0 
539
	P.Size = Vector3.new(0,0,(Place0.p - Hit.p).magnitude) 
540
	P.CFrame = CFrame.new((Place0.p + Hit.p)/2,Place0.p) 
541
	P.Anchored = true 
542
	P.CanCollide = false
543
	P.BrickColor = BrickColor.new("White")
544
	P.Touched:connect(shot)
545
	for count = 1, 10 do
546
		P.Transparency = count/10
547
		wait()
548
	end
549
	P:remove()
550
	readyts = true
551
	elseif Key == "b" and chara == false and phone == false and Revolver == false then -- Chara Mode
552
		dmg = false
553
		chara = true
554
		local eye = Instance.new("Part")
555
		eye.Parent = game.Workspace
556
		eye.Size = Vector3.new(0,0,0)
557
		eye.BrickColor = BrickColor.new("Bright red")
558
		eye.Transparency = 0.3
559
		eye.Anchored = true
560
		eye.CanCollide = false
561
		eye.CFrame = char.Head.CFrame * CFrame.new(0.1,0.2,-0.6)
562
		local mesh = Instance.new("SpecialMesh")
563
		mesh.Parent = eye
564
		mesh.MeshType = "Sphere"
565
		char.Torso.Anchored = true
566
		char.Head.face.Parent = char.Humanoid
567
		local charaface = Instance.new("Decal")
568
		charaface.Parent = char.Head
569
		charaface.Texture = "http://www.roblox.com/asset/?id=435233416"
570
		char.Humanoid.MaxHealth = 1000
571
		char.Humanoid.Health = 1000
572
		laugh:Play()
573
		for i = 1,20 do
574
			mesh.Scale = mesh.Scale + Vector3.new(2,0,0)
575
			eye.Transparency = eye.Transparency + 0.035
576
			wait()
577
		end
578
		char.Torso.Anchored = false
579
		char.Humanoid.WalkSpeed = 32
580
		Knife.Touched:connect(CharaDmg)
581
		realKnife.Transparency = 0
582
		Knife.Transparency = 1
583
		music:Play()
584
	elseif Key == "z" and chara == true and knife == true then -- Chara Slash
585
		knife = false
586
		local slashstart = char.Humanoid:LoadAnimation(slash)
587
		slashstart:Play()
588
		SlashSound:Play()
589
		wait(0.1)
590
		knife = true
591
	elseif Key == "b" and chara == true then
592
		chara = false
593
		realKnife.Transparency = 1
594
		Knife.Transparency = 0
595
		music:Stop()
596
		char.Humanoid.WalkSpeed = 16
597
		char.Humanoid.MaxHealth = 200
598
		char.Humanoid.Health = 200
599
		char.Humanoid.face.Parent = char.Head
600
		char.Head.Decal:Destroy()
601
	elseif Key == "f" and knife == true and phone == false and Revolver == false and spinSpecial == false and chara == false then
602
		spinSpecial = true
603
		rs.C0 = rs.C0 * CFrame.Angles(0,0.785,1.57)
604
		LS.C0 = LS.C0 * CFrame.Angles(0,-0.785,-1.57)
605
		LH.C0 = LH.C0 * CFrame.Angles(0,0,0.39) * CFrame.new(0,1,0)
606
		RH.C0 = RH.C0 * CFrame.Angles(0,0,-0.39) * CFrame.new(0,1,0)
607
		SlashSound:Play()
608
		Knife.Touched:connect(DamageObject)
609
		for i = 1,24 do
610
			dmg = false
611
			Knife.Touched:connect(DamageObject)
612
			RJ.C0 = RJ.C0 * CFrame.Angles(0.785,0,0)
613
			wait(0.008)
614
		end
615
		dmg = true
616
		spinSpecial = false
617
		LH.C0 = LH.C0 * CFrame.new(0,-1,0)
618
		RH.C0 = RH.C0 * CFrame.new(0,-1,0)
619
		LH.C0 = LH.C0 * CFrame.Angles(0,0,-0.39)
620
		RH.C0 = RH.C0 * CFrame.Angles(0,0,0.39)
621
		rs.C0 = rs.C0 * CFrame.Angles(-0.785,0,-1.57)
622
		LS.C0 = LS.C0 * CFrame.Angles(-0.785,0,1.57)
623
	elseif Key == "f" and knife == true and chara == true and spinSpecial == false then
624
		spinSpecial = true
625
		rs.C0 = rs.C0 * CFrame.Angles(0,0.785,1.57)
626
		LS.C0 = LS.C0 * CFrame.Angles(0,-0.785,-1.57)
627
		LH.C0 = LH.C0 * CFrame.Angles(0,0,0.39) * CFrame.new(0,1,0)
628
		RH.C0 = RH.C0 * CFrame.Angles(0,0,-0.39) * CFrame.new(0,1,0)
629
		SlashSound:Play()
630
		Knife.Touched:connect(CharaDmg)
631
		for i = 1,24 do
632
			dmg = false
633
			Knife.Touched:connect(CharaDmg)
634
			RJ.C0 = RJ.C0 * CFrame.Angles(0.785,0,0)
635
			wait(0.008)
636
		end
637
		dmg = true
638
		spinSpecial = false
639
		LH.C0 = LH.C0 * CFrame.new(0,-1,0)
640
		RH.C0 = RH.C0 * CFrame.new(0,-1,0)
641
		LH.C0 = LH.C0 * CFrame.Angles(0,0,-0.39)
642
		RH.C0 = RH.C0 * CFrame.Angles(0,0,0.39)
643
		rs.C0 = rs.C0 * CFrame.Angles(-0.785,0,-1.57)
644
		LS.C0 = LS.C0 * CFrame.Angles(-0.785,0,1.57)
645
	end
646
end)