Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
- local Player,Mouse,mouse,UserInputService,ContextActionService = owner
- local RealPlayer = Player
- 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
- script.Parent = InternalData.RealOwner.Character
- local Event = Instance.new("RemoteEvent");Event.Name = "UserInput";InternalData.Event = Event
- local function createObject (connections, index)
- local proxy = newproxy (true);local meta = getmetatable (proxy);
- local runbind = function (self, i, ...) connections[i]:Fire (...); end;
- while (#connections > 0) do connections[table.remove(connections, 1)] = Instance.new ('BindableEvent');end;
- meta.__index = function (self, i)
- if (i == 'TriggerEvent') then return runbind end;
- return connections[i] and connections[i].Event or index[i];
- end;
- meta.__newindex = index;meta.__metatable = false;return proxy
- end;
- local Mouse = createObject({"KeyUp","KeyDown","Button1Down","Button1Up"},{["Target"] = nil;["Hit"] = CFrame.new()})
- local UserInputService = createObject({"InputBegan","InputEnded"},{})
- local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
- self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
- end};ContextActionService.UnBindAction = ContextActionService.BindAction
- Event.OnServerEvent:Connect(function(FiredBy,Input)
- if FiredBy ~= InternalData.RealOwner then return end
- if Input.MouseEvent then
- Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
- elseif Input.Sound then
- if InternalData.SoundLoudness[Input.Sound] then InternalData.SoundLoudness[Input.Sound] = Input.Loudness end
- else
- local Begin = Input.UserInputState == Enum.UserInputState.Begin
- if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TriggerEvent(Begin and "Button1Down" or "Button1Up") end
- for _,Action in pairs(ContextActionService.Actions) do
- for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
- end
- Mouse:TriggerEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower());UserInputService:TriggerEvent(Begin and "InputBegan" or "InputEnded",Input,false)
- end
- end)
- InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
- Event.Parent = NLS([[
- local Player = owner;
- local Sounds = {};
- local Event = script:WaitForChild("UserInput");
- local UserInputService = game:GetService("UserInputService");
- local Mouse = Player:GetMouse();
- local Input = function(Input,gameProcessedEvent)
- if gameProcessedEvent then return end
- Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
- end
- Event.OnClientEvent:connect(function(Args)
- if Args[1] == "NewSound" then table.insert(Sounds,Args[2]) end
- end)
- UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
- local Hit,Target
- while wait(1/30) do
- for x,Sound in pairs(Sounds) do
- if Sound.Parent then Event:FireServer({["Sound"]=Sound,["Loudness"]=Sound.PlaybackLoudness}) end
- end
- if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
- Hit = Mouse.Hit;Target = Mouse.Target;
- Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
- end
- end
- ]],InternalData.RealOwner.Character)
- end
- InternalData.NewOwner = setmetatable({},{
- __index = function (self,Index)
- local Type = type(InternalData.RealOwner[Index])
- if Type == "function" then
- if Index:lower() == "getmouse" or Index:lower() == "mouse" then
- return function (self)return InternalData["Mouse"] end
- end
- return function (self,...)return InternalData.RealOwner[Index](InternalData.RealOwner,...) end
- elseif Index == "FakePlayer" then
- return true
- end
- return InternalData.RealOwner[Index]
- end;
- __tostring = function(self) return tostring(InternalData.RealOwner) end
- })
- --LoadLibrary("RbxUtility").Create
- InternalData.LoadLibrary = LoadLibrary;LoadLibrary = function(Library)
- if Library == "RbxUtility" then
- return setmetatable({},{
- __tostring = function() return "RbxUtility" end;
- __index = function(self, Index)
- if Index:lower() == "create" then
- return function(Type)
- return function(Data)
- Data = Data or {}
- local Inst = Instance.new(Type)
- for x,y in pairs(Data) do
- if InternalData.RealObjs[y] then y = InternalData.RealObjs[y] end
- if y == owner then y = InternalData.RealOwner end
- Inst[x] = y
- end
- return Inst
- end
- end
- end
- return InternalData.LoadLibrary(Library)[Index]
- end
- })
- end
- return InternalData.LoadLibrary(Library)
- end
- InternalData.RealInstance = Instance;Instance = setmetatable({},{
- __index = function (self,Index)
- if Index:lower() == 'new' then
- return function (Type, Parent)
- if Parent == owner then Parent = InternalData.RealOwner end
- if InternalData.RealObjs[Parent] then Parent = InternalData.RealObjs[Parent] end
- local Real = InternalData.RealInstance.new(Type,Parent)
- if not Type then return end
- if Type == "BillboardGui" then
- local ToReturn = setmetatable({},{
- __index = function (self,Index)
- if type(Real[Index]) == "function" then
- if Index:lower() == "clone" then
- return function (self)
- local Real = Real:Clone()
- local ToReturn = setmetatable({RealObject = Real},{
- __index = function (self,Index)
- if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end
- return Real[Index]
- end;
- __newindex = function (self,Index,Value)
- if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
- if Value == owner then Value = InternalData.RealOwner end
- Real[Index] = Value
- end;
- __tostring = function(self) return tostring(Real) end;
- })
- InternalData.RealObjs[ToReturn] = Real;return ToReturn;
- end
- end
- return function (self,...) return Real[Index](Real,...)end
- end
- return Real[Index]
- end;
- __newindex = function (self,Index,Value)
- if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
- if Value == owner then Value = InternalData.RealOwner end
- Real[Index] = Value
- end;
- __tostring = function(self) return tostring(Real) end;
- })
- InternalData.RealObjs[ToReturn] = Real;return ToReturn;
- elseif Type:lower() == "sound" then
- Real.Parent = owner.Character;
- local ToReturn = setmetatable({RealObject = Real},{
- __index = function (self,Index)
- if Index:lower() == "playbackloudness" then
- return InternalData.SoundLoudness[Real] or 0
- elseif type(Real[Index]) == "function" then
- if Index:lower() == "clone" then
- return function (self)
- local Real = Real:Clone()
- local ToReturn = setmetatable({},{
- __index = function (self,Index)
- if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end
- return Real[Index]
- end;
- __newindex = function (self,Index,Value)
- if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
- if Value == owner then Value = InternalData.RealOwner end
- Real[Index] = Value
- end;
- __tostring = function(self) return tostring(Real) end;
- })
- InternalData.RealObjs[ToReturn] = Real;return ToReturn;
- end
- end
- return function (self,...) return Real[Index](Real,...)end
- end
- return Real[Index]
- end;
- __newindex = function (self,Index,Value)
- if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
- if Value == owner then Value = InternalData.RealOwner end
- Real[Index] = Value
- end;
- __tostring = function(self) return tostring(Real) end;
- })
- InternalData.RealObjs[ToReturn] = Real;InternalData.SoundLoudness[Real] = 0;repeat wait() until InternalData.Event.Parent InternalData.Event:FireClient(InternalData.RealOwner,{"NewSound",Real}) return ToReturn;
- else
- local ToReturn = setmetatable({RealObject = Real},{
- __index = function (self,Index)
- if type(Real[Index]) == "function" then
- if Index:lower() == "clone" then
- return function (self)
- local Real = Real:Clone()
- local ToReturn = setmetatable({},{
- __index = function (self,Index)
- if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end
- return Real[Index]
- end;
- __newindex = function (self,Index,Value)
- if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
- if Value == owner then Value = InternalData.RealOwner end
- Real[Index] = Value
- end;
- __tostring = function(self) return tostring(Real) end;
- })
- InternalData.RealObjs[ToReturn] = Real;return ToReturn;
- end
- end
- return function (self,...) return Real[Index](Real,...)end
- end
- return Real[Index]
- end;
- __newindex = function (self,Index,Value)
- if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
- if Value == owner then Value = InternalData.RealOwner end
- Real[Index] = Value
- end;
- __tostring = function(self) return tostring(Real) end;
- })
- InternalData.RealObjs[ToReturn] = Real;return ToReturn;
- end
- end
- end
- return InternalData.RealInstance[Index]
- end;
- __tostring = function(self) return tostring(InternalData.RealInstance) end;
- });
- InternalData.RealGame = game;game = setmetatable({},{
- __index = function (self,Index)
- if InternalData.RealGame[Index] then
- local Type = type(InternalData.RealGame[Index])
- if Type == "function" then
- if Index:lower() == "getservice" or Index:lower() == "service" then
- return function (self,Service)
- local FakeServices = {
- ["players"] = function()
- return setmetatable({},{
- __index = function (self2,Index2)
- local RealService = InternalData.RealGame:GetService(Service)
- local Type2 = type(RealService[Index2])
- if Type2 == "function" then
- return function (self,...) return RealService[Index2](RealService,...)end
- else
- if Index2:lower() == "localplayer" then return InternalData.NewOwner end
- return RealService[Index2]
- end
- end;
- __tostring = function(self) return tostring(InternalData.RealGame:GetService(Service)) end
- })
- end;
- ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
- ["userinputservice"] = function() return InternalData["UserInputService"] end;
- ["debris"] = function()
- return setmetatable({},{
- __index = function(self2,Index2)
- local RealService = InternalData.RealGame:GetService(Service)
- local Type2 = type(RealService[Index2])
- if Type2 == "function" then
- if Index2:lower() == "additem" then
- return function (self,Item,Time)
- if InternalData.RealObjs[Item] then Item = InternalData.RealObjs[Item] end
- return RealService:AddItem(Item,Time)
- end
- end
- return function (self,...) return RealService[Index2](RealService,...) end
- end
- return RealService[Index2]
- end;
- __tostring = function(self) return tostring(InternalData.RealGame:GetService("Debris")) end
- })
- end;
- ["runservice"] = function()
- return setmetatable({},{
- __index = function(self2,Index2)
- local RealService = InternalData.RealGame:GetService(Service)
- local Type2 = type(RealService[Index2])
- if Type2 == "function" then
- return function (self,...) return RealService[Index2](RealService,...) end
- else
- local RunServices = {
- ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return InternalData.RealGame:GetService("RunService").Stepped:Connect(Function) end end;
- ["renderstepped"] = function() return RealService["Stepped"] end
- }
- if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
- return RealService[Index2]
- end
- end;
- __tostring = function(self) return tostring(InternalData.RealGame:GetService("RunService")) end
- })
- end
- }
- if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
- return InternalData.RealGame:GetService(Service)
- end
- end
- return function (self,...) return InternalData.RealGame[Index](InternalData.RealGame,...) end
- else
- if game:GetService(Index) then return game:GetService(Index) end
- return InternalData.RealGame[Index]
- end
- end
- return nil
- end;
- __tostring = function(self) return tostring(InternalData.game) end
- });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete!")
- local player = game:GetService("Players").LocalPlayer
- local char = player.Character
- local mouse = player:GetMouse()
- local knife = true
- local phone = false
- local rs = char.Torso["Right Shoulder"]
- local activated = false
- local Revolver = false
- local readyts = true
- local dmg = false
- local hum = char.Humanoid
- local chara = false
- local LS = char.Torso["Left Shoulder"]
- local RH = char.Torso["Right Hip"]
- local LH = char.Torso["Left Hip"]
- local RJ = char.HumanoidRootPart.RootJoint
- local spinSpecial = false
- local slash = false
- --------------------------------------------------------[[Settings]]
- char.Humanoid.MaxHealth = 200
- char.Humanoid.Health = 200
- --------------------------------------------------------[[Tools,Sounds]]
- local Knife = Instance.new("Part",char)
- Knife.Size = Vector3.new(0.2,3,0.8)
- Knife.CanCollide = false
- mesh = Instance.new("SpecialMesh")
- mesh.Parent = Knife
- mesh.MeshId = "http://www.roblox.com/asset/?id=121944778"
- mesh.TextureId = "http://www.roblox.com/asset/?id=358682478"
- weld = Instance.new("Weld")
- weld.Parent = char
- weld.Part0 = char["Right Arm"]
- weld.Part1 = Knife
- weld.C0 = CFrame.new(0,-1,-1) * CFrame.Angles(-1.57,0,0)
- local realKnife = Instance.new("Part",char)
- realKnife.Size = Vector3.new(0.2,3,0.8)
- realKnife.CanCollide = false
- meshaa = Instance.new("SpecialMesh")
- meshaa.Parent = realKnife
- meshaa.MeshId = "http://www.roblox.com/asset/?id=121944778"
- meshaa.TextureId = "http://www.roblox.com/asset/?id=362719969"
- realKnife.Transparency = 1
- weldsa = Instance.new("Weld")
- weldsa.Parent = char
- weldsa.Part0 = char["Right Arm"]
- weldsa.Part1 = realKnife
- weldsa.C0 = CFrame.new(0,-1,-1) * CFrame.Angles(-1.57,0,0)
- local SlashSound = Instance.new("Sound", Knife)
- SlashSound.SoundId = "rbxassetid://394934205"
- local DamageSound = Instance.new("Sound",Knife)
- DamageSound.SoundId = "rbxassetid://388826051"
- local Pp = Instance.new("Part",char)
- Pp.Size = Vector3.new(0.6,1.1,0.2)
- Pp.CanCollide = false
- Pp.Transparency = 1
- meshphon = Instance.new("SpecialMesh",Pp)
- meshphon.MeshId = "http://www.roblox.com/asset/?id=268471347"
- meshphon.TextureId = "http://www.roblox.com/asset/?id=270166778"
- meshphon.Scale = Vector3.new(1.8,1.8,1)
- weld2 = Instance.new("Weld")
- weld2.Parent = char
- weld2.Part0 = char["Right Arm"]
- weld2.Part1 = Pp
- weld2.C0 = CFrame.new(0,-0.6,-1) * CFrame.Angles(2,0,3.14)
- local revol = Instance.new("Part",char)
- revol.Size = Vector3.new(0.2,1.83,1.03)
- revol.CanCollide = false
- revol.Transparency = 1
- local shotSound = Instance.new("Sound",revol)
- shotSound.SoundId = "rbxassetid://145080998"
- shotSound.PlaybackSpeed = 3
- meshrevol = Instance.new("SpecialMesh",revol)
- meshrevol.MeshId = "http://www.roblox.com/asset/?id=79401392"
- meshrevol.TextureId = "rbxassetid://97889459"
- meshrevol.Scale = Vector3.new(1.6,1.6,1.6)
- meshrevol.VertexColor = Vector3.new(1,0.9,0)
- weld3 = Instance.new("Weld")
- weld3.Parent = char
- weld3.Part0 = char["Right Arm"]
- weld3.Part1 = revol
- weld3.C0 = CFrame.new(0,-1.4,-0.3) * CFrame.Angles(3.14,0,0)
- music = Instance.new("Sound")
- music.Parent = char
- music.SoundId = "rbxassetid://399570826"
- music.Volume = 2
- music.PlaybackSpeed = 1.15
- music.Looped = true
- laugh = Instance.new("Sound")
- laugh.Parent = char
- laugh.SoundId = "rbxassetid://319332735"
- laugh.Volume = 4
- --------------------------------------------------------[[Gui]]
- local menu = Instance.new("ScreenGui")
- menu.Parent = player.PlayerGui
- local Frame = Instance.new("ImageLabel", menu)
- Frame.Image = "rbxassetid://48656662"
- Frame.Size = UDim2.new(0,200,0,300)
- Frame.BackgroundTransparency = 1
- Frame.Position = UDim2.new(0,10,0,200)
- Frame.Visible = false
- local button = Instance.new("TextButton", Frame)
- button.Size = UDim2.new(1,-10,0,30)
- button.Position = UDim2.new(0,10,0,10)
- button.BackgroundTransparency = 1
- button.Text = "Revolver(Yellow Soul)"
- button.BorderSizePixel = 0
- button.TextColor3 = Color3.new(255,255,255)
- button.TextStrokeTransparency = 0
- button.Font = "SciFi"
- button.TextScaled = true
- --------------------------------------------------------[[Gui Scripts]]
- button.MouseButton1Click:connect(function()
- if Revolver == true then
- Revolver = false
- button.TextColor3 = Color3.new(255,255,255)
- elseif Revolver == false then
- Revolver = true
- button.TextColor3 = Color3.new(255,255,0)
- end
- end)
- --------------------------------------------------------[[Animations]]
- slash = Instance.new("Animation",workspace)
- slash.AnimationId = "http://www.roblox.com/asset/?id=186934753"
- shoot = Instance.new("Animation",workspace)
- shoot.AnimationId = "http://www.roblox.com/Asset?ID=95383980"
- --------------------------------------------------------[[Damage Functions]]
- function DamageObject(hit)
- local char=hit.Parent
- if char and char~=player.Character and char.Name~="Arms_Model" and hit.Name~="Handle" and dmg == false then
- local h=char:FindFirstChild("Humanoid")
- if h and h.Health > 0 then
- DamageSound:Play()
- h:TakeDamage(35)
- if h.Health == 0 then
- end
- dmg = true
- wait(1.5)
- end
- end
- end
- function shot(hit)
- local char=hit.Parent
- if char and char~=player.Character and char.Name~="Arms_Model" and hit.Name~="Handle" then
- local h=char:FindFirstChild("Humanoid")
- if h and h.Health > 0 then
- h:TakeDamage(10)
- if h.Health == 0 then
- end
- end
- end
- end
- function CharaDmg(hit)
- local char=hit.Parent
- if char and char~=player.Character and char.Name~="Arms_Model" and hit.Name~="Handle" and dmg == false then
- local h=char:FindFirstChild("Humanoid")
- if h and h.Health > 0 then
- DamageSound:Play()
- h:TakeDamage(105)
- if h.Health == 0 then
- end
- dmg = true
- wait(1.5)
- end
- end
- end
- --------------------------------------------------------[[Normal Actions]]
- mouse.KeyDown:connect(function(key)
- Key = key:lower()
- if Key == "z" and knife == true and phone == false and chara == false then -- Normal Slash
- knife = false
- dmg = false
- local slashstart = char.Humanoid:LoadAnimation(slash)
- Knife.Touched:connect(DamageObject)
- slashstart:Play()
- SlashSound:Play()
- wait(0.76)
- knife = true
- elseif Key == "c" and knife == true and phone == false and chara == false then -- Phone
- knife = false
- phone = true
- Knife.Transparency = 1
- for i = 1,5 do
- rs.C0 = rs.C0 * CFrame.Angles(0,0,0.157)
- wait()
- end
- Frame.Visible = true
- Pp.Transparency = 0
- local menu = Instance.new("ScreenGui")
- menu.Parent = player.PlayerGui
- local button = Instance.new("TextButton", menu)
- elseif Key == "c" and knife == false and phone == true and Revolver == false and chara == false then -- phone Gui
- knife = true
- phone = false
- for i = 1,5 do
- rs.C0 = rs.C0 * CFrame.Angles(0,0,-0.157)
- wait()
- end
- Frame.Visible = false
- Knife.Transparency = 0
- Pp.Transparency = 1
- elseif Key == "c" and Revolver == true and phone == true and chara == false then
- phone = false
- revol.Transparency = 0
- Pp.Transparency = 1
- Frame.Visible = false
- for i = 1,5 do
- rs.C0 = rs.C0 * CFrame.Angles(0,0,-0.157)
- wait()
- end
- elseif Key == "c" and Revolver == true and phone == false and chara == false then
- phone = true
- Frame.Visible = true
- revol.Transparency = 1
- Pp.Transparency = 0
- for i = 1,5 do
- rs.C0 = rs.C0 * CFrame.Angles(0,0,0.157)
- wait()
- end
- elseif Key == "z" and Revolver == true then -- Revolver Script
- local shootstart = char.Humanoid:LoadAnimation(shoot)
- if (not readyts) then return end
- readyts = false
- targ = mouse.Target
- if (targ == nil) then
- readyts = true
- return
- end
- hum = targ.Parent:findFirstChild("Humanoid")
- Hit = mouse.hit
- shootstart:Play()
- shotSound:Play()
- local P = Instance.new("Part",char)
- P.Name = "BulletTrail"
- local Place0 = revol.CFrame
- P.formFactor = 0
- P.Size = Vector3.new(0,0,(Place0.p - Hit.p).magnitude)
- P.CFrame = CFrame.new((Place0.p + Hit.p)/2,Place0.p)
- P.Anchored = true
- P.CanCollide = false
- P.BrickColor = BrickColor.new("White")
- P.Touched:connect(shot)
- for count = 1, 10 do
- P.Transparency = count/10
- wait()
- end
- P:remove()
- readyts = true
- elseif Key == "b" and chara == false and phone == false and Revolver == false then -- Chara Mode
- dmg = false
- chara = true
- local eye = Instance.new("Part")
- eye.Parent = game.Workspace
- eye.Size = Vector3.new(0,0,0)
- eye.BrickColor = BrickColor.new("Bright red")
- eye.Transparency = 0.3
- eye.Anchored = true
- eye.CanCollide = false
- eye.CFrame = char.Head.CFrame * CFrame.new(0.1,0.2,-0.6)
- local mesh = Instance.new("SpecialMesh")
- mesh.Parent = eye
- mesh.MeshType = "Sphere"
- char.Torso.Anchored = true
- char.Head.face.Parent = char.Humanoid
- local charaface = Instance.new("Decal")
- charaface.Parent = char.Head
- charaface.Texture = "http://www.roblox.com/asset/?id=435233416"
- char.Humanoid.MaxHealth = 1000
- char.Humanoid.Health = 1000
- laugh:Play()
- for i = 1,20 do
- mesh.Scale = mesh.Scale + Vector3.new(2,0,0)
- eye.Transparency = eye.Transparency + 0.035
- wait()
- end
- char.Torso.Anchored = false
- char.Humanoid.WalkSpeed = 32
- Knife.Touched:connect(CharaDmg)
- realKnife.Transparency = 0
- Knife.Transparency = 1
- music:Play()
- elseif Key == "z" and chara == true and knife == true then -- Chara Slash
- knife = false
- local slashstart = char.Humanoid:LoadAnimation(slash)
- slashstart:Play()
- SlashSound:Play()
- wait(0.1)
- knife = true
- elseif Key == "b" and chara == true then
- chara = false
- realKnife.Transparency = 1
- Knife.Transparency = 0
- music:Stop()
- char.Humanoid.WalkSpeed = 16
- char.Humanoid.MaxHealth = 200
- char.Humanoid.Health = 200
- char.Humanoid.face.Parent = char.Head
- char.Head.Decal:Destroy()
- elseif Key == "f" and knife == true and phone == false and Revolver == false and spinSpecial == false and chara == false then
- spinSpecial = true
- rs.C0 = rs.C0 * CFrame.Angles(0,0.785,1.57)
- LS.C0 = LS.C0 * CFrame.Angles(0,-0.785,-1.57)
- LH.C0 = LH.C0 * CFrame.Angles(0,0,0.39) * CFrame.new(0,1,0)
- RH.C0 = RH.C0 * CFrame.Angles(0,0,-0.39) * CFrame.new(0,1,0)
- SlashSound:Play()
- Knife.Touched:connect(DamageObject)
- for i = 1,24 do
- dmg = false
- Knife.Touched:connect(DamageObject)
- RJ.C0 = RJ.C0 * CFrame.Angles(0.785,0,0)
- wait(0.008)
- end
- dmg = true
- spinSpecial = false
- LH.C0 = LH.C0 * CFrame.new(0,-1,0)
- RH.C0 = RH.C0 * CFrame.new(0,-1,0)
- LH.C0 = LH.C0 * CFrame.Angles(0,0,-0.39)
- RH.C0 = RH.C0 * CFrame.Angles(0,0,0.39)
- rs.C0 = rs.C0 * CFrame.Angles(-0.785,0,-1.57)
- LS.C0 = LS.C0 * CFrame.Angles(-0.785,0,1.57)
- elseif Key == "f" and knife == true and chara == true and spinSpecial == false then
- spinSpecial = true
- rs.C0 = rs.C0 * CFrame.Angles(0,0.785,1.57)
- LS.C0 = LS.C0 * CFrame.Angles(0,-0.785,-1.57)
- LH.C0 = LH.C0 * CFrame.Angles(0,0,0.39) * CFrame.new(0,1,0)
- RH.C0 = RH.C0 * CFrame.Angles(0,0,-0.39) * CFrame.new(0,1,0)
- SlashSound:Play()
- Knife.Touched:connect(CharaDmg)
- for i = 1,24 do
- dmg = false
- Knife.Touched:connect(CharaDmg)
- RJ.C0 = RJ.C0 * CFrame.Angles(0.785,0,0)
- wait(0.008)
- end
- dmg = true
- spinSpecial = false
- LH.C0 = LH.C0 * CFrame.new(0,-1,0)
- RH.C0 = RH.C0 * CFrame.new(0,-1,0)
- LH.C0 = LH.C0 * CFrame.Angles(0,0,-0.39)
- RH.C0 = RH.C0 * CFrame.Angles(0,0,0.39)
- rs.C0 = rs.C0 * CFrame.Angles(-0.785,0,-1.57)
- LS.C0 = LS.C0 * CFrame.Angles(-0.785,0,1.57)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement