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,game,owner = owner,game | |
3 | local RealPlayer = Player | |
4 | do | |
5 | print("FE Compatibility code by Mokiros") | |
6 | local rp = RealPlayer | |
7 | script.Parent = rp.Character | |
8 | ||
9 | --RemoteEvent for communicating | |
10 | local Event = Instance.new("RemoteEvent") | |
11 | Event.Name = "UserInput_Event" | |
12 | ||
13 | --Fake event to make stuff like Mouse.KeyDown work | |
14 | local function fakeEvent() | |
15 | local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end} | |
16 | t.connect = t.Connect | |
17 | return t | |
18 | end | |
19 | ||
20 | --Creating fake input objects with fake variables | |
21 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
22 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
23 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
24 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
25 | end} | |
26 | --Merged 2 functions into one by checking amount of arguments | |
27 | CAS.UnbindAction = CAS.BindAction | |
28 | ||
29 | --This function will trigger the events that have been :Connect()'ed | |
30 | local function te(self,ev,...) | |
31 | local t = m[ev] | |
32 | if t and t._fakeEvent then | |
33 | for _,f in pairs(t.Functions) do | |
34 | f(...) | |
35 | end | |
36 | end | |
37 | end | |
38 | m.TrigEvent = te | |
39 | UIS.TrigEvent = te | |
40 | ||
41 | Event.OnServerEvent:Connect(function(plr,io) | |
42 | if plr~=rp then return end | |
43 | m.Target = io.Target | |
44 | m.Hit = io.Hit | |
45 | if not io.isMouse then | |
46 | local b = io.UserInputState == Enum.UserInputState.Begin | |
47 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
48 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
49 | end | |
50 | for _,t in pairs(CAS.Actions) do | |
51 | for _,k in pairs(t.Keys) do | |
52 | if k==io.KeyCode then | |
53 | t.Function(t.Name,io.UserInputState,io) | |
54 | end | |
55 | end | |
56 | end | |
57 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
58 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
59 | end | |
60 | end) | |
61 | Event.Parent = NLS([==[ | |
62 | local Player = game:GetService("Players").LocalPlayer | |
63 | local Event = script:WaitForChild("UserInput_Event") | |
64 | ||
65 | local Mouse = Player:GetMouse() | |
66 | local UIS = game:GetService("UserInputService") | |
67 | local input = function(io,a) | |
68 | if a then return end | |
69 | --Since InputObject is a client-side instance, we create and pass table instead | |
70 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target}) | |
71 | end | |
72 | UIS.InputBegan:Connect(input) | |
73 | UIS.InputEnded:Connect(input) | |
74 | ||
75 | local h,t | |
76 | --Give the server mouse data 30 times every second, but only if the values changed | |
77 | --If player is not moving their mouse, client won't fire events | |
78 | while wait(1/30) do | |
79 | if h~=Mouse.Hit or t~=Mouse.Target then | |
80 | h,t=Mouse.Hit,Mouse.Target | |
81 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
82 | end | |
83 | end]==],Player.Character) | |
84 | ||
85 | ----Sandboxed game object that allows the usage of client-side methods and services | |
86 | --Real game object | |
87 | local _rg = game | |
88 | ||
89 | --Metatable for fake service | |
90 | local fsmt = { | |
91 | __index = function(self,k) | |
92 | local s = rawget(self,"_RealService") | |
93 | if s then return s[k] end | |
94 | end, | |
95 | __newindex = function(self,k,v) | |
96 | local s = rawget(self,"_RealService") | |
97 | if s then s[k]=v end | |
98 | end, | |
99 | __call = function(self,...) | |
100 | local s = rawget(self,"_RealService") | |
101 | if s then return s(...) end | |
102 | end | |
103 | } | |
104 | local function FakeService(t,RealService) | |
105 | t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService | |
106 | return setmetatable(t,fsmt) | |
107 | end | |
108 | ||
109 | --Fake game object | |
110 | local g = { | |
111 | GetService = function(self,s) | |
112 | return self[s] | |
113 | end, | |
114 | Players = FakeService({ | |
115 | LocalPlayer = FakeService({GetMouse=function(self)return m end},Player) | |
116 | },"Players"), | |
117 | UserInputService = FakeService(UIS,"UserInputService"), | |
118 | ContextActionService = FakeService(CAS,"ContextActionService"), | |
119 | } | |
120 | rawset(g.Players,"localPlayer",g.Players.LocalPlayer) | |
121 | g.service = g.GetService | |
122 | ||
123 | g.RunService = FakeService({ | |
124 | RenderStepped = _rg:GetService("RunService").Heartbeat, | |
125 | BindToRenderStep = function(self,name,_,fun) | |
126 | ||
127 | end, | |
128 | UnbindFromRenderStep = function(self,name) | |
129 | self._btrs[name]:Disconnect() | |
130 | end, | |
131 | },"RunService") | |
132 | ||
133 | setmetatable(g,{ | |
134 | __index=function(self,s) | |
135 | return _rg:GetService(s) or typeof(_rg[s])=="function" | |
136 | and function(_,...)return _rg[s](_rg,...)end or _rg[s] | |
137 | end, | |
138 | __newindex = fsmt.__newindex, | |
139 | __call = fsmt.__call | |
140 | }) | |
141 | --Changing owner to fake player object to support owner:GetMouse() | |
142 | game,owner = g,g.Players.LocalPlayer | |
143 | end | |
144 | ---------------------------------------------- | |
145 | -------------- | |
146 | --Psychopath-- | |
147 | -------------- | |
148 | --By -- | |
149 | --CKbackup- | |
150 | ----------- | |
151 | ||
152 | ------------- | |
153 | --Move List-- | |
154 | ------------- | |
155 | --Q - Target | |
156 | --AWC - Kill | |
157 | --ASC - End | |
158 | --DSC - Murder | |
159 | --WWC - Execute | |
160 | --ADQ - Appear (Target First) | |
161 | --ASQ - Expunge (Target First) | |
162 | --ADC - Reap (Target First) | |
163 | --SSC - Hunt (Target First) | |
164 | --WWSQ - Annihilation | |
165 | --SSADQ - Your World | |
166 | ------------- | |
167 | ||
168 | player = game.Players.LocalPlayer | |
169 | chara = player.Character | |
170 | debby = game.Debris | |
171 | Mouse = player:GetMouse() | |
172 | chara.Humanoid.WalkSpeed = 8 | |
173 | atkd = false | |
174 | targetted = nil | |
175 | ||
176 | --Outfit-- | |
177 | New = function(Object, Parent, Name, Data) | |
178 | local Object = Instance.new(Object) | |
179 | for Index, Value in pairs(Data or {}) do | |
180 | Object[Index] = Value | |
181 | end | |
182 | Object.Parent = Parent | |
183 | Object.Name = Name | |
184 | return Object | |
185 | end | |
186 | ||
187 | ShadowHead = New("Part",chara,"ShadowHead",{BrickColor = BrickColor.new("Really black"),Size = Vector3.new(1.20000005, 0.600000024, 1),CFrame = CFrame.new(68.5999985, 0.700013041, 9.89999962, 1, 0, 0, 0, 1, 0, 0, 0, 1),Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) | |
188 | Mesh = New("SpecialMesh",ShadowHead,"Mesh",{Scale = Vector3.new(1.25999999, 1.5, 1.25999999),}) | |
189 | Weld = New("ManualWeld",ShadowHead,"Weld",{Part0 = ShadowHead,Part1 = chara.Head,C1 = CFrame.new(0, 0.200000048, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),}) | |
190 | ||
191 | Knifu = New("Model",chara,"Knifu",{}) | |
192 | Handle = New("Part",Knifu,"Handle",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 0.600000024, 0.400000006),CFrame = CFrame.new(54.1000023, 0.6000067, 26.4000034, -1, 0, 0, 0, 0, 1, 0, 1, 0),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.105882, 0.164706, 0.207843),}) | |
193 | Mesh = New("CylinderMesh",Handle,"Mesh",{}) | |
194 | KWeld = New("ManualWeld",Handle,"Weld",{Part0 = Handle,Part1 = chara["Right Arm"],C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0),C1 = CFrame.new(0, -1.00000644, 0.100002289, 1, 0, 0, 0, 1, 0, 0, 0, 1),}) | |
195 | Hitbox = New("Part",Knifu,"Hitbox",{Transparency = 1,Transparency = 1,Size = Vector3.new(0.200000003, 1.4000001, 0.400000006),CFrame = CFrame.new(54.1000023, 0.6000067, 27.6000042, -1, 0, 0, 0, 0, 1, 0, 1, 0),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
196 | Weld = New("ManualWeld",Hitbox,"Weld",{Part0 = Hitbox,Part1 = Handle,C1 = CFrame.new(0, 1.20000052, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),}) | |
197 | Part = New("Part",Knifu,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 0.200000003, 0.400000006),CFrame = CFrame.new(54.1000023, 0.6000067, 26.2000046, -1, 0, 0, 0, 0, 1, 0, 1, 0),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.105882, 0.164706, 0.207843),}) | |
198 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(1.20000005, 0.949999988, 1.20000005),}) | |
199 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(0, -0.199999809, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),}) | |
200 | Part = New("Part",Knifu,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 0.200000003, 0.400000006),CFrame = CFrame.new(54.1000023, 0.6000067, 26.8000031, -1, 0, 0, 0, 0, 1, 0, 1, 0),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.105882, 0.164706, 0.207843),}) | |
201 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(1.5, 1.20000005, 1.5),}) | |
202 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(0, 0.400000334, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),}) | |
203 | Part = New("Part",Knifu,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 0.200000003, 0.400000006),CFrame = CFrame.new(54.1000023, 0.800005555, 26.8000031, -1, 0, 0, 0, 0, -1, 0, -1, 0),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.105882, 0.164706, 0.207843),}) | |
204 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(1, 1, 1.20000005),MeshType = Enum.MeshType.Wedge,}) | |
205 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, -1, 0, 0, 0, -1),C1 = CFrame.new(0, 0.400000095, 0.199998856, 1, 0, 0, 0, 1, 0, 0, 0, 1),}) | |
206 | Part = New("Part",Knifu,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 0.200000003, 0.400000036),CFrame = CFrame.new(54.1000023, 0.400004029, 26.8000031, 1, 0, 0, 0, 0, 1, 0, -1, 0),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.105882, 0.164706, 0.207843),}) | |
207 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(1, 1, 1.20000005),MeshType = Enum.MeshType.Wedge,}) | |
208 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, -1, 0, 0, 0, 1),C1 = CFrame.new(0, 0.400000095, -0.20000267, 1, 0, 0, 0, 1, 0, 0, 0, 1),}) | |
209 | Part = New("Part",Knifu,"Part",{Material = Enum.Material.SmoothPlastic,Reflectance = 0.20000000298023,Size = Vector3.new(0.200000003, 0.600000024, 0.200000003),CFrame = CFrame.new(54.1000023, 0.500006318, 27.2000046, -1, 0, 0, 0, 0, 1, 0, 1, 0),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
210 | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.400000006, 1, 1),}) | |
211 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(0, 0.800000429, -0.100000381, 1, 0, 0, 0, 1, 0, 0, 0, 1),}) | |
212 | BloodPart = New("Part",Knifu,"BloodPart",{BrickColor = BrickColor.new("Crimson"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 0.399999946, 0.400000036),CFrame = CFrame.new(54.1000023, 0.600008607, 28.1000042, -1, 0, 0, 0, 0, 1, 0, 1, 0),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.592157, 0, 0),}) | |
213 | Mesh = New("SpecialMesh",BloodPart,"Mesh",{Scale = Vector3.new(0.409999996, 1.00999999, 1.00999999),MeshType = Enum.MeshType.Wedge,}) | |
214 | Weld = New("ManualWeld",BloodPart,"Weld",{Part0 = BloodPart,Part1 = Handle,C1 = CFrame.new(0, 1.70000005, 1.90734863e-06, 1, 0, 0, 0, 1, 0, 0, 0, 1),}) | |
215 | Part = New("Part",Knifu,"Part",{Material = Enum.Material.SmoothPlastic,Reflectance = 0.20000000298023,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(54.1000023, 0.700007081, 27.8000031, -1, 0, 0, 0, 0, 1, 0, 1, 0),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
216 | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.400000006, 1, 1),}) | |
217 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(0, 1.40000057, 0.100000381, 1, 0, 0, 0, 1, 0, 0, 0, 1),}) | |
218 | Part = New("Part",Knifu,"Part",{Material = Enum.Material.SmoothPlastic,Reflectance = 0.20000000298023,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(54.1000023, 0.700008988, 27.0000038, 1, 0, 0, 0, 0, -1, 0, 1, 0),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
219 | Mesh = New("SpecialMesh",Part,"Mesh",{Offset = Vector3.new(0, -0.0500000007, -0.0500000007),Scale = Vector3.new(0.400000006, 0.5, 0.5),MeshType = Enum.MeshType.Wedge,}) | |
220 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 1, 0, 0, 0, -1),C1 = CFrame.new(0, 0.599999905, 0.100002289, 1, 0, 0, 0, 1, 0, 0, 0, 1),}) | |
221 | Part = New("Part",Knifu,"Part",{Material = Enum.Material.SmoothPlastic,Reflectance = 0.20000000298023,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(54.1000023, 0.700008988, 27.0000038, 1, 0, 0, 0, 0, -1, 0, 1, 0),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
222 | Mesh = New("SpecialMesh",Part,"Mesh",{Offset = Vector3.new(0, 0.0500000007, -0.0500000007),Scale = Vector3.new(0.400000006, 0.5, 0.5),MeshType = Enum.MeshType.Wedge,}) | |
223 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 1, 0, 0, 0, -1),C1 = CFrame.new(0, 0.599999905, 0.100002289, 1, 0, 0, 0, 1, 0, 0, 0, 1),}) | |
224 | Part = New("Part",Knifu,"Part",{Material = Enum.Material.SmoothPlastic,Reflectance = 0.20000000298023,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(54.1000023, 0.700008988, 27.2000027, 1, 0, 0, 0, 0, -1, 0, 1, 0),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
225 | Mesh = New("SpecialMesh",Part,"Mesh",{Offset = Vector3.new(0, -0.0500000007, -0.0500000007),Scale = Vector3.new(0.400000006, 0.5, 0.5),MeshType = Enum.MeshType.Wedge,}) | |
226 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 1, 0, 0, 0, -1),C1 = CFrame.new(0, 0.799999952, 0.100002289, 1, 0, 0, 0, 1, 0, 0, 0, 1),}) | |
227 | Part = New("Part",Knifu,"Part",{Material = Enum.Material.SmoothPlastic,Reflectance = 0.20000000298023,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(54.1000023, 0.700008988, 27.2000027, 1, 0, 0, 0, 0, -1, 0, 1, 0),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
228 | Mesh = New("SpecialMesh",Part,"Mesh",{Offset = Vector3.new(0, 0.0500000007, -0.0500000007),Scale = Vector3.new(0.400000006, 0.5, 0.5),MeshType = Enum.MeshType.Wedge,}) | |
229 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 1, 0, 0, 0, -1),C1 = CFrame.new(0, 0.799999952, 0.100002289, 1, 0, 0, 0, 1, 0, 0, 0, 1),}) | |
230 | Part = New("Part",Knifu,"Part",{Material = Enum.Material.SmoothPlastic,Reflectance = 0.20000000298023,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(54.1000023, 0.700008988, 27.4000034, 1, 0, 0, 0, 0, -1, 0, 1, 0),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
231 | Mesh = New("SpecialMesh",Part,"Mesh",{Offset = Vector3.new(0, 0.0500000007, -0.0500000007),Scale = Vector3.new(0.400000006, 0.5, 0.5),MeshType = Enum.MeshType.Wedge,}) | |
232 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 1, 0, 0, 0, -1),C1 = CFrame.new(0, 1, 0.100002289, 1, 0, 0, 0, 1, 0, 0, 0, 1),}) | |
233 | Part = New("Part",Knifu,"Part",{Material = Enum.Material.SmoothPlastic,Reflectance = 0.20000000298023,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(54.1000023, 0.700008988, 27.4000034, 1, 0, 0, 0, 0, -1, 0, 1, 0),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
234 | Mesh = New("SpecialMesh",Part,"Mesh",{Offset = Vector3.new(0, -0.0500000007, -0.0500000007),Scale = Vector3.new(0.400000006, 0.5, 0.5),MeshType = Enum.MeshType.Wedge,}) | |
235 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 1, 0, 0, 0, -1),C1 = CFrame.new(0, 1, 0.100002289, 1, 0, 0, 0, 1, 0, 0, 0, 1),}) | |
236 | Part = New("Part",Knifu,"Part",{Material = Enum.Material.SmoothPlastic,Reflectance = 0.20000000298023,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(54.1000023, 0.700008988, 27.6000042, 1, 0, 0, 0, 0, -1, 0, 1, 0),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
237 | Mesh = New("SpecialMesh",Part,"Mesh",{Offset = Vector3.new(0, -0.0500000007, -0.0500000007),Scale = Vector3.new(0.400000006, 0.5, 0.5),MeshType = Enum.MeshType.Wedge,}) | |
238 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 1, 0, 0, 0, -1),C1 = CFrame.new(0, 1.20000005, 0.100002289, 1, 0, 0, 0, 1, 0, 0, 0, 1),}) | |
239 | Part = New("Part",Knifu,"Part",{Material = Enum.Material.SmoothPlastic,Reflectance = 0.20000000298023,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(54.1000023, 0.700008988, 27.6000042, 1, 0, 0, 0, 0, -1, 0, 1, 0),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
240 | Mesh = New("SpecialMesh",Part,"Mesh",{Offset = Vector3.new(0, 0.0500000007, -0.0500000007),Scale = Vector3.new(0.400000006, 0.5, 0.5),MeshType = Enum.MeshType.Wedge,}) | |
241 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 1, 0, 0, 0, -1),C1 = CFrame.new(0, 1.20000005, 0.100002289, 1, 0, 0, 0, 1, 0, 0, 0, 1),}) | |
242 | Part = New("Part",Knifu,"Part",{Material = Enum.Material.SmoothPlastic,Reflectance = 0.20000000298023,Size = Vector3.new(0.200000003, 1, 0.200000003),CFrame = CFrame.new(54.1000023, 0.700007081, 27.4000034, -1, 0, 0, 0, 0, 1, 0, 1, 0),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
243 | Mesh = New("BlockMesh",Part,"Mesh",{Offset = Vector3.new(0, 0, -0.0500000007),Scale = Vector3.new(0.400000006, 1, 0.5),}) | |
244 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(0, 1.00000048, 0.100000381, 1, 0, 0, 0, 1, 0, 0, 0, 1),}) | |
245 | Part = New("Part",Knifu,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 0.200000003, 0.400000006),CFrame = CFrame.new(54.1000023, 0.6000067, 26.4000034, -1, 0, 0, 0, 0, 1, 0, 1, 0),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.105882, 0.164706, 0.207843),}) | |
246 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(1.20000005, 0.949999988, 1.20000005),}) | |
247 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(0, 2.38418579e-07, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),}) | |
248 | Part = New("Part",Knifu,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 0.200000003, 0.400000006),CFrame = CFrame.new(54.1000023, 0.6000067, 26.6000042, -1, 0, 0, 0, 0, 1, 0, 1, 0),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.105882, 0.164706, 0.207843),}) | |
249 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(1.20000005, 0.949999988, 1.20000005),}) | |
250 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(0, 0.200000286, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),}) | |
251 | Blood2Part = New("Part",Knifu,"Blood2Part",{BrickColor = BrickColor.new("Crimson"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 0.400000036, 0.200000003),CFrame = CFrame.new(54.1000023, 0.500006318, 27.7000046, -1, 0, 0, 0, 0, 1, 0, 1, 0),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.592157, 0, 0),}) | |
252 | Mesh = New("BlockMesh",Blood2Part,"Mesh",{Scale = Vector3.new(0.409999996, 1.00999999, 1.00999999),}) | |
253 | Weld = New("ManualWeld",Blood2Part,"Weld",{Part0 = Blood2Part,Part1 = Handle,C1 = CFrame.new(0, 1.30000043, -0.100000381, 1, 0, 0, 0, 1, 0, 0, 0, 1),}) | |
254 | Part = New("Part",Knifu,"Part",{BrickColor = BrickColor.new("Crimson"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 0.200000003, 0.200000033),CFrame = CFrame.new(54.1000023, 0.700008988, 27.8000031, -1, 0, 0, 0, 0, -1, 0, -1, 0),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.592157, 0, 0),}) | |
255 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(0.409999996, 1.00999999, 1.00999999),MeshType = Enum.MeshType.Wedge,}) | |
256 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, -1, 0, 0, 0, -1),C1 = CFrame.new(0, 1.4000001, 0.100002289, 1, 0, 0, 0, 1, 0, 0, 0, 1),}) | |
257 | Part = New("Part",Knifu,"Part",{BrickColor = BrickColor.new("Crimson"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 0.200000003, 0.200000033),CFrame = CFrame.new(54.1000023, 0.500008225, 27.4000034, -1, 0, 0, 0, 0, -1, 0, -1, 0),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.592157, 0, 0),}) | |
258 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(0.409999996, 1.00999999, 1.00999999),MeshType = Enum.MeshType.Wedge,}) | |
259 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, -1, 0, 0, 0, -1),C1 = CFrame.new(0, 1, -0.0999984741, 1, 0, 0, 0, 1, 0, 0, 0, 1),}) | |
260 | ||
261 | local p1mit = Instance.new("ParticleEmitter",Hitbox) | |
262 | p1mit.Texture = "rbxasset://textures/particles/fire_main.dds" | |
263 | p1mit.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,Color3.new(.6,0,0)),ColorSequenceKeypoint.new(1,Color3.new(.6,0,0))}) | |
264 | p1mit.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(1,0)}) | |
265 | p1mit.Lifetime = NumberRange.new(2) | |
266 | p1mit.Rate = 100 | |
267 | p1mit.Enabled = false | |
268 | p1mit.Acceleration = Vector3.new(0,-5,0) | |
269 | p1mit.Rotation = NumberRange.new(0,359) | |
270 | p1mit.Speed = NumberRange.new(0) | |
271 | local p2mit = Instance.new("ParticleEmitter",BloodPart) | |
272 | p2mit.Texture = "http://www.roblox.com/asset/?id=243132757" | |
273 | p2mit.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,Color3.new(.6,0,0)),ColorSequenceKeypoint.new(1,Color3.new(.6,0,0))}) | |
274 | p2mit.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,.1),NumberSequenceKeypoint.new(1,.1)}) | |
275 | p2mit.Lifetime = NumberRange.new(1) | |
276 | p2mit.Rate = 10 | |
277 | p2mit.Acceleration = Vector3.new(0,-10,0) | |
278 | p2mit.Speed = NumberRange.new(0) | |
279 | local p3mit = p2mit:Clone() | |
280 | p3mit.Parent = Blood2Part | |
281 | ||
282 | crosshair = Instance.new("BillboardGui",chara) | |
283 | crosshair.Size = UDim2.new(10,0,10,0) | |
284 | crosshair.Enabled = false | |
285 | imgl = Instance.new("ImageLabel",crosshair) | |
286 | imgl.Position = UDim2.new(0,0,0,0) | |
287 | imgl.Size = UDim2.new(1,0,1,0) | |
288 | imgl.Image = "rbxassetid://233522684" | |
289 | imgl.BackgroundTransparency = 1 | |
290 | imgl.ImageColor3 = Color3.new(.6,0,0) | |
291 | ||
292 | --Sounds-- | |
293 | function LoadSnd(id,loop,vol,pit) | |
294 | local snd = New("Sound",chara,"Sound",{SoundId = "rbxassetid://"..id,Looped = loop,Volume = vol,Pitch = pit}) | |
295 | return snd | |
296 | end | |
297 | Music = LoadSnd(150674644,true,1,1) | |
298 | SwingSnd = LoadSnd(12222208,false,1,.5) | |
299 | HitSnd = LoadSnd(429400881,false,1,1) | |
300 | ChatSnd = LoadSnd(565939471,false,1,.4) | |
301 | ThrowSnd = LoadSnd(743521497,false,1,1) | |
302 | TargetSnd = LoadSnd(743521450,false,1,1) | |
303 | TeleSnd = LoadSnd(743521656,false,1,1) | |
304 | ClawDashSnd = LoadSnd(62339698,false,1,.3) | |
305 | Music:Play() | |
306 | ||
307 | --Play Sound in Part-- | |
308 | function PlaySnd(snd,part) | |
309 | local sound = snd:Clone() | |
310 | sound.PlayOnRemove = true | |
311 | sound.Parent = part | |
312 | sound:Destroy() | |
313 | end | |
314 | ||
315 | --Target Select-- | |
316 | function TargetSelect(person) | |
317 | local dd=coroutine.wrap(function() | |
318 | if targetted ~= person then | |
319 | targetted = person | |
320 | for i = 0,30,10 do | |
321 | wait(.05) | |
322 | crosshair.Size = UDim2.new(40-i,0,40-i,0) | |
323 | end | |
324 | end | |
325 | end) | |
326 | dd() | |
327 | end | |
328 | ||
329 | --Damage Function-- | |
330 | function dealdmg(dude) | |
331 | if dude.Name ~= "CKbackup" then | |
332 | dude.Humanoid.PlatformStand = true | |
333 | local bgf = Instance.new("BodyGyro",dude.Head) | |
334 | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0) | |
335 | local val = Instance.new("BoolValue",dude) | |
336 | val.Name = "IsHit" | |
337 | for i = 1, 6 do | |
338 | local blo = Instance.new("Part",game.Workspace) | |
339 | blo.Size = Vector3.new(.6,.2,.6) | |
340 | blo.Material = "SmoothPlastic" | |
341 | blo.BrickColor = BrickColor.new("Crimson") | |
342 | blo.Position = dude.Head.Position | |
343 | blo.CFrame = dude.Head.CFrame | |
344 | debby:AddItem(blo,30) | |
345 | end | |
346 | local ds = coroutine.wrap(function() | |
347 | wait(1) | |
348 | dude.Humanoid.Health = 0 | |
349 | end) | |
350 | ds() | |
351 | end | |
352 | end | |
353 | ||
354 | --Explode Hitbox-- | |
355 | function ExHitbox(rad,pos,damage,env,toim) | |
356 | local E = Instance.new("Explosion") | |
357 | E.Position = pos | |
358 | E.Parent = game.Workspace | |
359 | E.BlastRadius = rad | |
360 | E.BlastPressure = 0 | |
361 | E.Visible = false | |
362 | E.Hit:connect(function(hit) | |
363 | if hit.Parent:FindFirstChild("Humanoid")~=nil and hit.Parent ~= chara and hit.Parent:FindFirstChild("IsHit")==nil then | |
364 | local ch = hit.Parent:GetChildren() | |
365 | for i = 1, #ch do | |
366 | if ch[i].ClassName == "Part" or ch[i].ClassName == "MeshPart" then | |
367 | local efff = p1mit:Clone() | |
368 | efff.Enabled = true | |
369 | efff.Parent = ch[i] | |
370 | end | |
371 | end | |
372 | hit.Parent:BreakJoints() | |
373 | dealdmg(hit.Parent,damage,env,toim) | |
374 | end | |
375 | end) | |
376 | end | |
377 | ||
378 | --Chat Function-- | |
379 | function chatfunc(text) | |
380 | local chat = coroutine.wrap(function() | |
381 | if chara:FindFirstChild("TalkingBillBoard")~= nil then | |
382 | chara:FindFirstChild("TalkingBillBoard"):destroy() | |
383 | end | |
384 | local naeeym2 = Instance.new("BillboardGui",chara) | |
385 | naeeym2.Size = UDim2.new(0,100,0,40) | |
386 | naeeym2.StudsOffset = Vector3.new(0,3,0) | |
387 | naeeym2.Adornee = chara.Head | |
388 | naeeym2.Name = "TalkingBillBoard" | |
389 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
390 | tecks2.BackgroundTransparency = 1 | |
391 | tecks2.BorderSizePixel = 0 | |
392 | tecks2.Text = "" | |
393 | tecks2.Font = "Fantasy" | |
394 | tecks2.FontSize = "Size24" | |
395 | tecks2.TextStrokeTransparency = 0 | |
396 | tecks2.TextColor3 = Color3.new(.6,0,0) | |
397 | tecks2.TextStrokeColor3 = Color3.new(0,0,0) | |
398 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
399 | local shk = coroutine.wrap(function() | |
400 | while tecks2 ~= nil do | |
401 | wait(.05) | |
402 | tecks2.Position = UDim2.new(0,math.random(-3,3),0,math.random(-3,3)) | |
403 | end | |
404 | end) | |
405 | shk() | |
406 | for i = 1,string.len(text),1 do | |
407 | tecks2.Text = string.sub(text,1,i) | |
408 | wait(0.01) | |
409 | end | |
410 | wait(1) | |
411 | for i = 1, 5 do | |
412 | wait(.01) | |
413 | tecks2.Position = tecks2.Position - UDim2.new(0,0,.05,0) | |
414 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.2 | |
415 | tecks2.TextTransparency = tecks2.TextTransparency + .2 | |
416 | end | |
417 | naeeym2:Destroy() | |
418 | end) | |
419 | chat() | |
420 | end | |
421 | ||
422 | function onChatted(msg) | |
423 | chatfunc(msg) | |
424 | end | |
425 | player.Chatted:connect(onChatted) | |
426 | ||
427 | --Blade Hit Effect-- | |
428 | function SlashEff(pos) | |
429 | local p = Instance.new("Part",game.Workspace) | |
430 | p.Size = Vector3.new(0,0,0) | |
431 | p.BrickColor = BrickColor.new("White") | |
432 | p.Material = "Neon" | |
433 | p.Anchored = true | |
434 | p.CanCollide = false | |
435 | p.CFrame = pos * CFrame.fromEulerAnglesXYZ(math.random(0,math.rad(359)),math.random(0,math.rad(359)),math.random(0,math.rad(359))) | |
436 | local pm = Instance.new("SpecialMesh",p) | |
437 | pm.MeshType = "Sphere" | |
438 | pm.Scale = Vector3.new(2.5,0,2.5) | |
439 | local disp = coroutine.wrap(function() | |
440 | for i = 1, 4 do | |
441 | wait(.01) | |
442 | p.Transparency = p.Transparency + .2 | |
443 | pm.Scale = pm.Scale + Vector3.new(0,30,0) | |
444 | end | |
445 | wait(.01) | |
446 | p:Destroy() | |
447 | end) | |
448 | disp() | |
449 | end | |
450 | ||
451 | --Super Pause-- | |
452 | function SuperPause() | |
453 | SuperSnd:Play() | |
454 | local p = Instance.new("Part",game.Workspace) | |
455 | p.Size = Vector3.new(0,0,0) | |
456 | p.BrickColor = BrickColor.new("White") | |
457 | p.Material = "Neon" | |
458 | p.Anchored = true | |
459 | p.CanCollide = false | |
460 | p.CFrame = chara.Torso.CFrame | |
461 | local pm = Instance.new("SpecialMesh",p) | |
462 | pm.MeshType = "Sphere" | |
463 | local disp = coroutine.wrap(function() | |
464 | for i = 1, 4 do | |
465 | wait(.01) | |
466 | p.Transparency = p.Transparency + .2 | |
467 | pm.Scale = pm.Scale + Vector3.new(20,20,20) | |
468 | end | |
469 | wait(.01) | |
470 | p:Destroy() | |
471 | end) | |
472 | disp() | |
473 | end | |
474 | ||
475 | --Blade Touch-- | |
476 | dela = .5 | |
477 | bladeactive = false | |
478 | stormvipactive = false | |
479 | executeactive = false | |
480 | function bladehit(hit) | |
481 | if bladeactive == true then | |
482 | if hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Parent ~= chara and hit.Parent:FindFirstChild("IsHit")==nil then | |
483 | p1mit.Enabled = true | |
484 | PlaySnd(HitSnd,hit.Parent.Head) | |
485 | dealdmg(hit.Parent) | |
486 | if stormvipactive == true then | |
487 | local bf = Instance.new("BodyVelocity",hit.Parent.Head) | |
488 | bf.P = 10000 | |
489 | bf.MaxForce = Vector3.new(bf.P,bf.P,bf.P) | |
490 | bf.Velocity = Vector3.new(0,100,0) | |
491 | debby:AddItem(bf,.2) | |
492 | end | |
493 | if executeactive == true then | |
494 | local we = Instance.new("Weld",Hitbox) | |
495 | we.Name = "HitWeld" | |
496 | we.Part0 = hit.Parent.Head | |
497 | we.Part1 = Hitbox | |
498 | we.C0 = we.C0 * CFrame.fromEulerAnglesXYZ(math.rad(180),0,0) | |
499 | end | |
500 | wait(.5) | |
501 | p1mit.Enabled = false | |
502 | end | |
503 | end | |
504 | end | |
505 | Hitbox.Touched:connect(bladehit) | |
506 | ||
507 | --Material Return-- | |
508 | gprop = {} | |
509 | function materialhit(hit) | |
510 | if hit.Parent ~= chara and hit.Parent.Parent ~= chara and hit.Name ~= "Trace" and hit.Parent:FindFirstChild("Humanoid") == nil then | |
511 | gprop = {hit.BrickColor,hit.Material} | |
512 | end | |
513 | end | |
514 | chara["Left Leg"].Touched:connect(materialhit) | |
515 | chara["Right Leg"].Touched:connect(materialhit) | |
516 | ||
517 | --Clerp Animations-- | |
518 | TC = chara.HumanoidRootPart.RootJoint | |
519 | HC = chara.Torso.Neck | |
520 | RAC = chara.Torso["Right Shoulder"] | |
521 | LAC = chara.Torso["Left Shoulder"] | |
522 | RLC = chara.Torso["Right Hip"] | |
523 | LLC = chara.Torso["Left Hip"] | |
524 | TCF = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0) | |
525 | HCF = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0) | |
526 | RACF = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0) | |
527 | LACF = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
528 | RLCF = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0) | |
529 | LLCF = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
530 | RWF = CFrame.new(-1.5, 0, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
531 | LWF = CFrame.new(1.5, 0, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
532 | RLWF = CFrame.new(-.5, 2, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
533 | LLWF = CFrame.new(.5, 2, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
534 | RW = Instance.new("Weld",HC.Parent) | |
535 | RW.Part1 = HC.Parent | |
536 | RW.Part0 = chara["Right Arm"] | |
537 | RW.C0 = RWF | |
538 | LW = Instance.new("Weld",HC.Parent) | |
539 | LW.Part1 = HC.Parent | |
540 | LW.Part0 = chara["Left Arm"] | |
541 | LW.C0 = LWF | |
542 | RLW = nil | |
543 | LLW = nil | |
544 | ||
545 | function Sheath(stype) | |
546 | KWeld:Destroy() | |
547 | if stype == 1 then --Sheathed | |
548 | KWeld = New("ManualWeld",Handle,"Weld",{Part0 = Handle,Part1 = chara["Right Arm"],C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0),C1 = CFrame.new(0, -1.00000644, 0.100002289, 1, 0, 0, 0, 1, 0, 0, 0, 1),}) | |
549 | elseif stype == 2 then --Unsheathed | |
550 | KWeld = New("ManualWeld",Handle,"Weld",{Part0 = Handle,Part1 = chara["Right Arm"],C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, -1.00000525, 4.17232513e-07, 0, 4.17232513e-07, 1.00000525),C1 = CFrame.new(0, -0.600002885, -0.0999984741, 1, 0, 0, 0, 1, 0, 0, 0, 1),}) | |
551 | end | |
552 | end | |
553 | ||
554 | function AddLegWelds() | |
555 | RLW = Instance.new("Weld",chara["Right Leg"]) | |
556 | RLW.Part1 = HC.Parent | |
557 | RLW.Part0 = chara["Right Leg"] | |
558 | RLW.C0 = RLWF | |
559 | LLW = Instance.new("Weld",chara["Left Leg"]) | |
560 | LLW.Part1 = HC.Parent | |
561 | LLW.Part0 = chara["Left Leg"] | |
562 | LLW.C0 = LLWF | |
563 | end | |
564 | ||
565 | function DestroyLegWelds() | |
566 | RLC = New("Motor6D",chara.Torso,"Right Hip",{Part0 = chara.Torso,Part1 = chara["Right Leg"],C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0),C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0),}) | |
567 | LLC = New("Motor6D",chara.Torso,"Left Hip",{Part0 = chara.Torso,Part1 = chara["Left Leg"],C0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),C1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),}) | |
568 | RLW:Destroy() | |
569 | LLW:Destroy() | |
570 | end | |
571 | ||
572 | function clerp(a,b,c) | |
573 | return a:lerp(b,c) | |
574 | end | |
575 | ||
576 | --TC.C0 = TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) | |
577 | --HC.C0 = HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-50)) | |
578 | --RW.C0 = (RWF + Vector3.new(1,2,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)) | |
579 | --LW.C0 = LWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(2)) | |
580 | ||
581 | TC.C0 = TCF | |
582 | HC.C0 = HCF | |
583 | RW.C0 = RWF | |
584 | LW.C0 = LWF | |
585 | ||
586 | --Idle Clerp-- | |
587 | ITCF = TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(10)) | |
588 | IHCF = HCF * CFrame.fromEulerAnglesXYZ(math.rad(10),0,math.rad(-10)) | |
589 | IRWF = RWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-2)) | |
590 | ILWF = LWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(2)) | |
591 | ||
592 | TC.C0 = ITCF | |
593 | HC.C0 = IHCF | |
594 | RW.C0 = IRWF | |
595 | LW.C0 = ILWF | |
596 | ||
597 | --Kill-- | |
598 | function KillThem() | |
599 | del = true | |
600 | atkd = true | |
601 | chara.Humanoid.WalkSpeed = 0 | |
602 | bladeactive = true | |
603 | SwingSnd:Play() | |
604 | Sheath(2) | |
605 | wait(.01) | |
606 | for i = 0,.75,.22 do | |
607 | wait(.01) | |
608 | TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i) | |
609 | HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(math.rad(10),0,math.rad(-90)),.4+i) | |
610 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i) | |
611 | end | |
612 | wait(1) | |
613 | Sheath(1) | |
614 | bladeactive = false | |
615 | for i = 0,.6,.2 do | |
616 | wait(.01) | |
617 | TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.6-i) | |
618 | HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(math.rad(10),0,math.rad(-90)),.6-i) | |
619 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i) | |
620 | end | |
621 | TC.C0 = ITCF | |
622 | HC.C0 = IHCF | |
623 | RW.C0 = IRWF | |
624 | LW.C0 = ILWF | |
625 | chara.Humanoid.WalkSpeed = 8 | |
626 | del = false | |
627 | end | |
628 | ||
629 | --End-- | |
630 | function EndThem() | |
631 | del = true | |
632 | atkd = true | |
633 | chara.Humanoid.WalkSpeed = 0 | |
634 | bladeactive = true | |
635 | SwingSnd:Play() | |
636 | wait(.01) | |
637 | for i = 0,.75,.25 do | |
638 | wait(.01) | |
639 | TC.C0 = clerp(ITCF,TCF,.4+i) | |
640 | HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(math.rad(10),0,0),.4+i) | |
641 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,0,-.4)) * CFrame.fromEulerAnglesXYZ(math.rad(-150),0,math.rad(-90)),.4+i) | |
642 | end | |
643 | wait(.5) | |
644 | bladeactive = false | |
645 | for i = 0,.6,.2 do | |
646 | wait(.01) | |
647 | TC.C0 = clerp(ITCF,TCF,.6-i) | |
648 | HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(math.rad(10),0,0),.6-i) | |
649 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,0,-.4)) * CFrame.fromEulerAnglesXYZ(math.rad(-150),0,math.rad(-90)),.6-i) | |
650 | end | |
651 | TC.C0 = ITCF | |
652 | HC.C0 = IHCF | |
653 | RW.C0 = IRWF | |
654 | LW.C0 = ILWF | |
655 | chara.Humanoid.WalkSpeed = 8 | |
656 | del = false | |
657 | end | |
658 | ||
659 | --Murder-- | |
660 | function MurderThem() | |
661 | del = true | |
662 | atkd = true | |
663 | chara.Humanoid.WalkSpeed = 0 | |
664 | for i = 0,.6,.2 do | |
665 | wait(.01) | |
666 | TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(math.rad(-25),0,math.rad(100)),.4+i) | |
667 | HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(100)),.4+i) | |
668 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(.7,1.4,-1.1)) * CFrame.fromEulerAnglesXYZ(0,math.rad(90),math.rad(-180)),.4+i) | |
669 | LW.C0 = clerp(ILWF,(LWF + Vector3.new(0,.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(30)),.4+i) | |
670 | end | |
671 | local bf = Instance.new("BodyVelocity",chara.Torso) | |
672 | bf.P = 10000 | |
673 | bf.MaxForce = Vector3.new(bf.P,bf.P,bf.P) | |
674 | bf.Velocity = Vector3.new(0,100,0) + chara.HumanoidRootPart.CFrame.lookVector*5 | |
675 | SwingSnd:Play() | |
676 | stormvipactive = true | |
677 | bladeactive = true | |
678 | wait(.2) | |
679 | stormvipactive = false | |
680 | bladeactive = false | |
681 | bf:Destroy() | |
682 | for i = 0,.6,.2 do | |
683 | wait(.01) | |
684 | TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(math.rad(-25),0,math.rad(100)),.6-i) | |
685 | HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(100)),.6-i) | |
686 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(.7,1.4,-1.1)) * CFrame.fromEulerAnglesXYZ(0,math.rad(90),math.rad(-180)),.6-i) | |
687 | LW.C0 = clerp(ILWF,(LWF + Vector3.new(0,.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(30)),.6-i) | |
688 | end | |
689 | TC.C0 = ITCF | |
690 | HC.C0 = IHCF | |
691 | RW.C0 = IRWF | |
692 | LW.C0 = ILWF | |
693 | chara.Humanoid.WalkSpeed = 8 | |
694 | del = false | |
695 | end | |
696 | ||
697 | --Execute-- | |
698 | function ExecuteThem() | |
699 | del = true | |
700 | atkd = true | |
701 | for i = 0,.6,.2 do | |
702 | wait(.01) | |
703 | TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(math.rad(180),0,0),.4+i) | |
704 | HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(math.rad(-45),0,0),.4+i) | |
705 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(180),0,0),.4+i) | |
706 | end | |
707 | TC.C0 = TCF * CFrame.fromEulerAnglesXYZ(math.rad(180),0,0) | |
708 | HC.C0 = HCF * CFrame.fromEulerAnglesXYZ(math.rad(-45),0,0) | |
709 | RW.C0 = (RWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(180),0,0) | |
710 | local bf = Instance.new("BodyVelocity",chara.Torso) | |
711 | bf.P = 10000 | |
712 | bf.MaxForce = Vector3.new(bf.P,bf.P,bf.P) | |
713 | bf.Velocity = Vector3.new(0,100,0) + chara.HumanoidRootPart.CFrame.lookVector*5 | |
714 | Sheath(2) | |
715 | SwingSnd:Play() | |
716 | executeactive = true | |
717 | bladeactive = true | |
718 | wait(.2) | |
719 | bf:Destroy() | |
720 | wait(.5) | |
721 | if Hitbox:FindFirstChild("HitWeld")~=nil then | |
722 | Hitbox:FindFirstChild("HitWeld"):Destroy() | |
723 | end | |
724 | Sheath(1) | |
725 | executeactive = false | |
726 | bladeactive = false | |
727 | for i = 0,.6,.2 do | |
728 | wait(.01) | |
729 | TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(math.rad(180),0,0),.6-i) | |
730 | HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(math.rad(-45),0,0),.6-i) | |
731 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(180),0,0),.6-i) | |
732 | end | |
733 | TC.C0 = ITCF | |
734 | HC.C0 = IHCF | |
735 | RW.C0 = IRWF | |
736 | LW.C0 = ILWF | |
737 | del = false | |
738 | end | |
739 | ||
740 | --Expunge-- | |
741 | function ExpungeThem() | |
742 | del = true | |
743 | atkd = true | |
744 | chara.Humanoid.WalkSpeed = 0 | |
745 | for i = 0,1,.5 do | |
746 | wait(.01) | |
747 | TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i) | |
748 | HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(math.rad(10),0,math.rad(-90)),.4+i) | |
749 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i) | |
750 | end | |
751 | ThrowSnd:Play() | |
752 | local knc = Knifu:GetChildren() | |
753 | for i = 1, #knc do | |
754 | knc[i].Transparency = 1 | |
755 | end | |
756 | wait(.2) | |
757 | KnifuHit = New("Model",game.Workspace,"KnifuHit",{}) | |
758 | debby:AddItem(KnifuHit,5) | |
759 | HWeldPart = New("Part",KnifuHit,"HWeldPart",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 0.600000024, 0.400000006),CFrame = CFrame.new(68.6099854, 1.50001717, 8.10717869, -1, 0, 0, 0, -0.500000536, 0.866025746, 0, 0.866025746, 0.500000536),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.105882, 0.164706, 0.207843),}) | |
760 | Mesh = New("CylinderMesh",HWeldPart,"Mesh",{}) | |
761 | Weld = New("ManualWeld",HWeldPart,"Weld",{Part0 = HWeldPart,Part1 = targetted.Head,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, -0.500000536, 0.866025746, 0, 0.866025746, 0.500000536),C1 = CFrame.new(0.00998687744, 1.00000417, -1.79282093, 1, 0, 0, 0, 1, 0, 0, 0, 1),}) | |
762 | HPart = New("Part",KnifuHit,"HPart",{BrickColor = BrickColor.new("Crimson"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 0.200000003, 0.200000033),CFrame = CFrame.new(68.6099854, 0.913415372, 8.92320538, -1, 0, 0, 0, 0.500000536, -0.866025746, 0, -0.866025746, -0.500000536),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.592157, 0, 0),}) | |
763 | Mesh = New("SpecialMesh",HPart,"Mesh",{Scale = Vector3.new(0.409999996, 1.00999999, 1.00999999),MeshType = Enum.MeshType.Wedge,}) | |
764 | Weld = New("ManualWeld",HPart,"Weld",{Part0 = HPart,Part1 = HWeldPart,C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, -1, 0, 0, 0, -1),C1 = CFrame.new(0, 1, -0.0999984741, 1, 0, 0, 0, 1, 0, 0, 0, 1),}) | |
765 | HPart = New("Part",KnifuHit,"HPart",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 0.200000003, 0.400000006),CFrame = CFrame.new(68.6099854, 1.60001719, 7.93397379, -1, 0, 0, 0, -0.500000536, 0.866025746, 0, 0.866025746, 0.500000536),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.105882, 0.164706, 0.207843),}) | |
766 | Mesh = New("SpecialMesh",HPart,"Mesh",{Scale = Vector3.new(1.20000005, 0.949999988, 1.20000005),}) | |
767 | Weld = New("ManualWeld",HPart,"Weld",{Part0 = HPart,Part1 = HWeldPart,C1 = CFrame.new(0, -0.199999809, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),}) | |
768 | HPart = New("Part",KnifuHit,"HPart",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 0.200000003, 0.400000006),CFrame = CFrame.new(68.6099854, 1.30001676, 8.45358944, -1, 0, 0, 0, -0.500000536, 0.866025746, 0, 0.866025746, 0.500000536),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.105882, 0.164706, 0.207843),}) | |
769 | Mesh = New("SpecialMesh",HPart,"Mesh",{Scale = Vector3.new(1.5, 1.20000005, 1.5),}) | |
770 | Weld = New("ManualWeld",HPart,"Weld",{Part0 = HPart,Part1 = HWeldPart,C1 = CFrame.new(0, 0.400000334, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),}) | |
771 | HPart = New("Part",KnifuHit,"HPart",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 0.200000003, 0.400000006),CFrame = CFrame.new(68.6099854, 1.47322106, 8.55358887, -1, 0, 0, 0, 0.500000536, -0.866025746, 0, -0.866025746, -0.500000536),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.105882, 0.164706, 0.207843),}) | |
772 | Mesh = New("SpecialMesh",HPart,"Mesh",{Scale = Vector3.new(1, 1, 1.20000005),MeshType = Enum.MeshType.Wedge,}) | |
773 | Weld = New("ManualWeld",HPart,"Weld",{Part0 = HPart,Part1 = HWeldPart,C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, -1, 0, 0, 0, -1),C1 = CFrame.new(0, 0.400000095, 0.199998856, 1, 0, 0, 0, 1, 0, 0, 0, 1),}) | |
774 | HPart = New("Part",KnifuHit,"HPart",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 0.200000003, 0.400000036),CFrame = CFrame.new(68.6099854, 1.12680948, 8.3535881, 1, 0, 0, 0, 0.500000536, 0.866025746, 0, -0.866025746, 0.500000536),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.105882, 0.164706, 0.207843),}) | |
775 | Mesh = New("SpecialMesh",HPart,"Mesh",{Scale = Vector3.new(1, 1, 1.20000005),MeshType = Enum.MeshType.Wedge,}) | |
776 | Weld = New("ManualWeld",HPart,"Weld",{Part0 = HPart,Part1 = HWeldPart,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, -1, 0, 0, 0, 1),C1 = CFrame.new(0, 0.400000095, -0.20000267, 1, 0, 0, 0, 1, 0, 0, 0, 1),}) | |
777 | HPart = New("Part",KnifuHit,"HPart",{Material = Enum.Material.SmoothPlastic,Reflectance = 0.20000000298023,Size = Vector3.new(0.200000003, 0.600000024, 0.200000003),CFrame = CFrame.new(68.6099854, 1.01341367, 8.74999905, -1, 0, 0, 0, -0.500000536, 0.866025746, 0, 0.866025746, 0.500000536),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
778 | Mesh = New("BlockMesh",HPart,"Mesh",{Scale = Vector3.new(0.400000006, 1, 1),}) | |
779 | Weld = New("ManualWeld",HPart,"Weld",{Part0 = HPart,Part1 = HWeldPart,C1 = CFrame.new(0, 0.800000429, -0.100000381, 1, 0, 0, 0, 1, 0, 0, 0, 1),}) | |
780 | HPart = New("Part",KnifuHit,"HPart",{BrickColor = BrickColor.new("Crimson"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 0.399999946, 0.400000036),CFrame = CFrame.new(68.6099854, 0.650017917, 9.5794239, -1, 0, 0, 0, -0.500000536, 0.866025746, 0, 0.866025746, 0.500000536),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.592157, 0, 0),}) | |
781 | Mesh = New("SpecialMesh",HPart,"Mesh",{Scale = Vector3.new(0.409999996, 1.00999999, 1.00999999),MeshType = Enum.MeshType.Wedge,}) | |
782 | Weld = New("ManualWeld",HPart,"Weld",{Part0 = HPart,Part1 = HWeldPart,C1 = CFrame.new(0, 1.70000005, 1.90734863e-06, 1, 0, 0, 0, 1, 0, 0, 0, 1),}) | |
783 | HPart = New("Part",KnifuHit,"HPart",{Material = Enum.Material.SmoothPlastic,Reflectance = 0.20000000298023,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(68.6099854, 0.886619031, 9.36961555, -1, 0, 0, 0, -0.500000536, 0.866025746, 0, 0.866025746, 0.500000536),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
784 | Mesh = New("BlockMesh",HPart,"Mesh",{Scale = Vector3.new(0.400000006, 1, 1),}) | |
785 | Weld = New("ManualWeld",HPart,"Weld",{Part0 = HPart,Part1 = HWeldPart,C1 = CFrame.new(0, 1.40000057, 0.100000381, 1, 0, 0, 0, 1, 0, 0, 0, 1),}) | |
786 | HPart = New("Part",KnifuHit,"HPart",{Material = Enum.Material.SmoothPlastic,Reflectance = 0.20000000298023,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(68.6099854, 1.28662145, 8.67679501, 1, 0, 0, 0, -0.500000536, -0.866025746, 0, 0.866025746, -0.500000536),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
787 | Mesh = New("SpecialMesh",HPart,"Mesh",{Offset = Vector3.new(0, -0.0500000007, -0.0500000007),Scale = Vector3.new(0.400000006, 0.5, 0.5),MeshType = Enum.MeshType.Wedge,}) | |
788 | Weld = New("ManualWeld",HPart,"Weld",{Part0 = HPart,Part1 = HWeldPart,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 1, 0, 0, 0, -1),C1 = CFrame.new(0, 0.599999905, 0.100002289, 1, 0, 0, 0, 1, 0, 0, 0, 1),}) | |
789 | HPart = New("Part",KnifuHit,"HPart",{Material = Enum.Material.SmoothPlastic,Reflectance = 0.20000000298023,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(68.6099854, 1.28662145, 8.67679501, 1, 0, 0, 0, -0.500000536, -0.866025746, 0, 0.866025746, -0.500000536),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
790 | Mesh = New("SpecialMesh",HPart,"Mesh",{Offset = Vector3.new(0, 0.0500000007, -0.0500000007),Scale = Vector3.new(0.400000006, 0.5, 0.5),MeshType = Enum.MeshType.Wedge,}) | |
791 | Weld = New("ManualWeld",HPart,"Weld",{Part0 = HPart,Part1 = HWeldPart,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 1, 0, 0, 0, -1),C1 = CFrame.new(0, 0.599999905, 0.100002289, 1, 0, 0, 0, 1, 0, 0, 0, 1),}) | |
792 | HPart = New("Part",KnifuHit,"HPart",{Material = Enum.Material.SmoothPlastic,Reflectance = 0.20000000298023,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(68.6099854, 1.18662131, 8.85000038, 1, 0, 0, 0, -0.500000536, -0.866025746, 0, 0.866025746, -0.500000536),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
793 | Mesh = New("SpecialMesh",HPart,"Mesh",{Offset = Vector3.new(0, -0.0500000007, -0.0500000007),Scale = Vector3.new(0.400000006, 0.5, 0.5),MeshType = Enum.MeshType.Wedge,}) | |
794 | Weld = New("ManualWeld",HPart,"Weld",{Part0 = HPart,Part1 = HWeldPart,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 1, 0, 0, 0, -1),C1 = CFrame.new(0, 0.799999952, 0.100002289, 1, 0, 0, 0, 1, 0, 0, 0, 1),}) | |
795 | HPart = New("Part",KnifuHit,"HPart",{Material = Enum.Material.SmoothPlastic,Reflectance = 0.20000000298023,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(68.6099854, 1.18662131, 8.85000038, 1, 0, 0, 0, -0.500000536, -0.866025746, 0, 0.866025746, -0.500000536),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
796 | Mesh = New("SpecialMesh",HPart,"Mesh",{Offset = Vector3.new(0, 0.0500000007, -0.0500000007),Scale = Vector3.new(0.400000006, 0.5, 0.5),MeshType = Enum.MeshType.Wedge,}) | |
797 | Weld = New("ManualWeld",HPart,"Weld",{Part0 = HPart,Part1 = HWeldPart,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 1, 0, 0, 0, -1),C1 = CFrame.new(0, 0.799999952, 0.100002289, 1, 0, 0, 0, 1, 0, 0, 0, 1),}) | |
798 | HPart = New("Part",KnifuHit,"HPart",{Material = Enum.Material.SmoothPlastic,Reflectance = 0.20000000298023,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(68.6099854, 1.08662117, 9.02320576, 1, 0, 0, 0, -0.500000536, -0.866025746, 0, 0.866025746, -0.500000536),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
799 | Mesh = New("SpecialMesh",HPart,"Mesh",{Offset = Vector3.new(0, 0.0500000007, -0.0500000007),Scale = Vector3.new(0.400000006, 0.5, 0.5),MeshType = Enum.MeshType.Wedge,}) | |
800 | Weld = New("ManualWeld",HPart,"Weld",{Part0 = HPart,Part1 = HWeldPart,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 1, 0, 0, 0, -1),C1 = CFrame.new(0, 1, 0.100002289, 1, 0, 0, 0, 1, 0, 0, 0, 1),}) | |
801 | HPart = New("Part",KnifuHit,"HPart",{Material = Enum.Material.SmoothPlastic,Reflectance = 0.20000000298023,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(68.6099854, 1.08662117, 9.02320576, 1, 0, 0, 0, -0.500000536, -0.866025746, 0, 0.866025746, -0.500000536),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
802 | Mesh = New("SpecialMesh",HPart,"Mesh",{Offset = Vector3.new(0, -0.0500000007, -0.0500000007),Scale = Vector3.new(0.400000006, 0.5, 0.5),MeshType = Enum.MeshType.Wedge,}) | |
803 | Weld = New("ManualWeld",HPart,"Weld",{Part0 = HPart,Part1 = HWeldPart,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 1, 0, 0, 0, -1),C1 = CFrame.new(0, 1, 0.100002289, 1, 0, 0, 0, 1, 0, 0, 0, 1),}) | |
804 | HPart = New("Part",KnifuHit,"HPart",{Material = Enum.Material.SmoothPlastic,Reflectance = 0.20000000298023,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(68.6099854, 0.986621022, 9.19641113, 1, 0, 0, 0, -0.500000536, -0.866025746, 0, 0.866025746, -0.500000536),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
805 | Mesh = New("SpecialMesh",HPart,"Mesh",{Offset = Vector3.new(0, -0.0500000007, -0.0500000007),Scale = Vector3.new(0.400000006, 0.5, 0.5),MeshType = Enum.MeshType.Wedge,}) | |
806 | Weld = New("ManualWeld",HPart,"Weld",{Part0 = HPart,Part1 = HWeldPart,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 1, 0, 0, 0, -1),C1 = CFrame.new(0, 1.20000005, 0.100002289, 1, 0, 0, 0, 1, 0, 0, 0, 1),}) | |
807 | HPart = New("Part",KnifuHit,"HPart",{Material = Enum.Material.SmoothPlastic,Reflectance = 0.20000000298023,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(68.6099854, 0.986621022, 9.19641113, 1, 0, 0, 0, -0.500000536, -0.866025746, 0, 0.866025746, -0.500000536),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
808 | Mesh = New("SpecialMesh",HPart,"Mesh",{Offset = Vector3.new(0, 0.0500000007, -0.0500000007),Scale = Vector3.new(0.400000006, 0.5, 0.5),MeshType = Enum.MeshType.Wedge,}) | |
809 | Weld = New("ManualWeld",HPart,"Weld",{Part0 = HPart,Part1 = HWeldPart,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 1, 0, 0, 0, -1),C1 = CFrame.new(0, 1.20000005, 0.100002289, 1, 0, 0, 0, 1, 0, 0, 0, 1),}) | |
810 | HPart = New("Part",KnifuHit,"HPart",{Material = Enum.Material.SmoothPlastic,Reflectance = 0.20000000298023,Size = Vector3.new(0.200000003, 1, 0.200000003),CFrame = CFrame.new(68.6099854, 1.08661926, 9.0232048, -1, 0, 0, 0, -0.500000536, 0.866025746, 0, 0.866025746, 0.500000536),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
811 | Mesh = New("BlockMesh",HPart,"Mesh",{Offset = Vector3.new(0, 0, -0.0500000007),Scale = Vector3.new(0.400000006, 1, 0.5),}) | |
812 | Weld = New("ManualWeld",HPart,"Weld",{Part0 = HPart,Part1 = HWeldPart,C1 = CFrame.new(0, 1.00000048, 0.100000381, 1, 0, 0, 0, 1, 0, 0, 0, 1),}) | |
813 | HPart = New("Part",KnifuHit,"HPart",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 0.200000003, 0.400000006),CFrame = CFrame.new(68.6099854, 1.50001705, 8.10717869, -1, 0, 0, 0, -0.500000536, 0.866025746, 0, 0.866025746, 0.500000536),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.105882, 0.164706, 0.207843),}) | |
814 | Mesh = New("SpecialMesh",HPart,"Mesh",{Scale = Vector3.new(1.20000005, 0.949999988, 1.20000005),}) | |
815 | Weld = New("ManualWeld",HPart,"Weld",{Part0 = HPart,Part1 = HWeldPart,C1 = CFrame.new(0, 2.38418579e-07, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),}) | |
816 | HPart = New("Part",KnifuHit,"HPart",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 0.200000003, 0.400000006),CFrame = CFrame.new(68.6099854, 1.4000169, 8.28038406, -1, 0, 0, 0, -0.500000536, 0.866025746, 0, 0.866025746, 0.500000536),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.105882, 0.164706, 0.207843),}) | |
817 | Mesh = New("SpecialMesh",HPart,"Mesh",{Scale = Vector3.new(1.20000005, 0.949999988, 1.20000005),}) | |
818 | Weld = New("ManualWeld",HPart,"Weld",{Part0 = HPart,Part1 = HWeldPart,C1 = CFrame.new(0, 0.200000286, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),}) | |
819 | HPart = New("Part",KnifuHit,"HPart",{BrickColor = BrickColor.new("Crimson"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 0.400000036, 0.200000003),CFrame = CFrame.new(68.6099854, 0.76341331, 9.18301201, -1, 0, 0, 0, -0.500000536, 0.866025746, 0, 0.866025746, 0.500000536),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.592157, 0, 0),}) | |
820 | Mesh = New("BlockMesh",HPart,"Mesh",{Scale = Vector3.new(0.409999996, 1.00999999, 1.00999999),}) | |
821 | Weld = New("ManualWeld",HPart,"Weld",{Part0 = HPart,Part1 = HWeldPart,C1 = CFrame.new(0, 1.30000043, -0.100000381, 1, 0, 0, 0, 1, 0, 0, 0, 1),}) | |
822 | HPart = New("Part",KnifuHit,"HPart",{BrickColor = BrickColor.new("Crimson"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 0.200000003, 0.200000033),CFrame = CFrame.new(68.6099854, 0.886620879, 9.36961555, -1, 0, 0, 0, 0.500000536, -0.866025746, 0, -0.866025746, -0.500000536),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.592157, 0, 0),}) | |
823 | Mesh = New("SpecialMesh",HPart,"Mesh",{Scale = Vector3.new(0.409999996, 1.00999999, 1.00999999),MeshType = Enum.MeshType.Wedge,}) | |
824 | Weld = New("ManualWeld",HPart,"Weld",{Part0 = HPart,Part1 = HWeldPart,C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, -1, 0, 0, 0, -1),C1 = CFrame.new(0, 1.4000001, 0.100002289, 1, 0, 0, 0, 1, 0, 0, 0, 1),}) | |
825 | dealdmg(targetted) | |
826 | PlaySnd(HitSnd,targetted.Head) | |
827 | wait(1) | |
828 | for i = 0,1,.1 do | |
829 | wait(.01) | |
830 | for i = 1, #knc do | |
831 | if knc[i] ~= Hitbox then | |
832 | knc[i].Transparency = 1-i | |
833 | end | |
834 | end | |
835 | end | |
836 | for i = 0,.6,.2 do | |
837 | wait(.01) | |
838 | TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.6-i) | |
839 | HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(math.rad(10),0,math.rad(-90)),.6-i) | |
840 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i) | |
841 | end | |
842 | TC.C0 = ITCF | |
843 | HC.C0 = IHCF | |
844 | RW.C0 = IRWF | |
845 | LW.C0 = ILWF | |
846 | chara.Humanoid.WalkSpeed = 8 | |
847 | del = false | |
848 | end | |
849 | ||
850 | --Reap-- | |
851 | function ReapThem() | |
852 | del = true | |
853 | atkd = true | |
854 | TeleSnd:Play() | |
855 | chara.Torso.CFrame = (targetted.Head.CFrame - Vector3.new(0,1.5,0)) - targetted.Head.CFrame.lookVector*2 | |
856 | local w = Instance.new("Weld",chara.Head) | |
857 | w.Part0 = chara.Head | |
858 | w.Part1 = targetted.Head | |
859 | w.C0 = CFrame.new(0,0,-2) | |
860 | targetted.Head.Anchored = true | |
861 | Sheath(2) | |
862 | for i = 0,.6,.3 do | |
863 | wait(.01) | |
864 | TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-45)),.4+i) | |
865 | HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(45)),.4+i) | |
866 | RW.C0 = clerp(IRWF,(RWF - Vector3.new(-.5,.5,-.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),math.rad(-70),0),.4+i) | |
867 | LW.C0 = clerp(ILWF,(LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-50),0,math.rad(90)),.4+i) | |
868 | end | |
869 | wait(1) | |
870 | SwingSnd:Play() | |
871 | for i = 0,.6,.3 do | |
872 | wait(.01) | |
873 | TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-45)),TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(45)),.4+i) | |
874 | HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(45)),HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-45)),.4+i) | |
875 | RW.C0 = clerp((RWF - Vector3.new(-.5,.5,-.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),math.rad(-70),0),(RWF + Vector3.new(.5,1.4,-.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-50),0,math.rad(-90)),.4+i) | |
876 | LW.C0 = clerp((LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-50),0,math.rad(90)),(LWF + Vector3.new(-.5,-.5,.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),math.rad(70),0),.4+i) | |
877 | end | |
878 | HitSnd:Play() | |
879 | dealdmg(targetted) | |
880 | wait(.5) | |
881 | targetted.Head.Anchored = false | |
882 | Sheath(1) | |
883 | w:Destroy() | |
884 | for i = 0,.6,.2 do | |
885 | wait(.01) | |
886 | TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(45)),IHCF,.4+i) | |
887 | HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-45)),ITCF,.4+i) | |
888 | RW.C0 = clerp((RWF + Vector3.new(.5,1.4,-.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-50),0,math.rad(-90)),IRWF,.4+i) | |
889 | LW.C0 = clerp((LWF + Vector3.new(-.5,-.5,.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),math.rad(70),0),ILWF,.4+i) | |
890 | end | |
891 | TC.C0 = ITCF | |
892 | HC.C0 = IHCF | |
893 | RW.C0 = IRWF | |
894 | LW.C0 = ILWF | |
895 | del = false | |
896 | end | |
897 | ||
898 | --Hunt-- | |
899 | function HuntThem() | |
900 | del = true | |
901 | atkd = true | |
902 | TeleSnd:Play() | |
903 | chara.Humanoid.PlatformStand = true | |
904 | chara.Torso.CFrame = ((targetted.Head.CFrame - Vector3.new(0,1.5,0)) + targetted.Head.CFrame.lookVector*2) * CFrame.fromEulerAnglesXYZ(math.rad(-45),0,0) | |
905 | targetted.Humanoid.PlatformStand = true | |
906 | local bgf = Instance.new("BodyGyro",targetted.Head) | |
907 | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0) | |
908 | local w = Instance.new("Weld",chara.Head) | |
909 | w.Part0 = chara.Head | |
910 | w.Part1 = targetted.Head | |
911 | w.C0 = CFrame.new(0,0,-3) * CFrame.fromEulerAnglesXYZ(math.rad(-45),math.rad(180),0) | |
912 | targetted.Head.CFrame = targetted.Head.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(90),0,0) | |
913 | Sheath(2) | |
914 | for i = 0,.6,.3 do | |
915 | wait(.01) | |
916 | TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-45)),.4+i) | |
917 | HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(45)),.4+i) | |
918 | RW.C0 = clerp(IRWF,(RWF - Vector3.new(-.5,.5,-.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),math.rad(-70),0),.4+i) | |
919 | LW.C0 = clerp(ILWF,(LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-50),0,math.rad(90)),.4+i) | |
920 | end | |
921 | wait(1) | |
922 | for i = 1, 5 do | |
923 | wait(.1) | |
924 | SwingSnd:Play() | |
925 | for i = 0,.6,.3 do | |
926 | wait(.01) | |
927 | TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-45)),TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(45)),.4+i) | |
928 | HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(45)),HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-45)),.4+i) | |
929 | RW.C0 = clerp((RWF - Vector3.new(-.5,.5,-.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),math.rad(-70),0),(RWF + Vector3.new(.5,1.4,-.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-50),0,math.rad(-90)),.4+i) | |
930 | LW.C0 = clerp((LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-50),0,math.rad(90)),(LWF + Vector3.new(-.5,-.5,.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),math.rad(70),0),.4+i) | |
931 | end | |
932 | HitSnd:Play() | |
933 | end | |
934 | dealdmg(targetted) | |
935 | wait(.5) | |
936 | chara.Humanoid.PlatformStand = false | |
937 | Sheath(1) | |
938 | w:Destroy() | |
939 | for i = 0,.6,.2 do | |
940 | wait(.01) | |
941 | TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(45)),IHCF,.4+i) | |
942 | HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-45)),ITCF,.4+i) | |
943 | RW.C0 = clerp((RWF + Vector3.new(.5,1.4,-.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-50),0,math.rad(-90)),IRWF,.4+i) | |
944 | LW.C0 = clerp((LWF + Vector3.new(-.5,-.5,.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),math.rad(70),0),ILWF,.4+i) | |
945 | end | |
946 | TC.C0 = ITCF | |
947 | HC.C0 = IHCF | |
948 | RW.C0 = IRWF | |
949 | LW.C0 = ILWF | |
950 | del = false | |
951 | end | |
952 | ||
953 | --Obliteration-- | |
954 | function Obliteration() | |
955 | del = true | |
956 | atkd = true | |
957 | chara.Humanoid.WalkSpeed = 0 | |
958 | end | |
959 | ||
960 | --Annihilation-- | |
961 | function Annihilation() | |
962 | del = true | |
963 | atkd = true | |
964 | chara.Humanoid.WalkSpeed = 0 | |
965 | for i = 1, 10 do | |
966 | wait(.1) | |
967 | HC.C0 = HCF * CFrame.fromEulerAnglesXYZ(math.rad(20),0,0) | |
968 | end | |
969 | AddLegWelds() | |
970 | TC.C0 = TCF * CFrame.fromEulerAnglesXYZ(math.rad(20),0,0) | |
971 | HC.C0 = HCF * CFrame.fromEulerAnglesXYZ(math.rad(20),0,0) | |
972 | RW.C0 = (RWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-50)) | |
973 | LW.C0 = (LWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(50)) | |
974 | LLW.C0 = LLWF | |
975 | RLW.C0 = RLWF + Vector3.new(0,-1,1) | |
976 | SwingSnd:Play() | |
977 | ClawDashSnd:Play() | |
978 | for i = 1, 5 do | |
979 | local trace = Instance.new("Part",game.Workspace) | |
980 | trace.CanCollide = false | |
981 | trace.Size = Vector3.new(1,1,1) | |
982 | trace.Transparency = 1 | |
983 | trace.BottomSurface = 0 | |
984 | trace.TopSurface = 0 | |
985 | trace.Anchored = true | |
986 | trace.CFrame = (chara.HumanoidRootPart.CFrame + chara.HumanoidRootPart.CFrame.lookVector * (5*i)) | |
987 | debby:AddItem(trace,1) | |
988 | ExHitbox(5,trace.Position,40,2,.1) | |
989 | end | |
990 | local trace = Instance.new("Part",game.Workspace) | |
991 | trace.BrickColor = BrickColor.new("Really red") | |
992 | trace.CanCollide = false | |
993 | trace.Size = Vector3.new(1,1,1) | |
994 | trace.BottomSurface = 0 | |
995 | trace.TopSurface = 0 | |
996 | trace.Anchored = true | |
997 | trace.CFrame = chara.HumanoidRootPart.CFrame + chara.HumanoidRootPart.CFrame.lookVector * 12.5 | |
998 | trace.Material = "Neon" | |
999 | local tracem = Instance.new("SpecialMesh",trace) | |
1000 | tracem.MeshType = "Sphere" | |
1001 | tracem.Scale = Vector3.new(1,1,50) | |
1002 | local disp = coroutine.wrap(function() | |
1003 | for i = 1, 9 do | |
1004 | wait(.01) | |
1005 | trace.Transparency = trace.Transparency + .1 | |
1006 | end | |
1007 | wait(.01) | |
1008 | trace:Destroy() | |
1009 | end) | |
1010 | disp() | |
1011 | chara.HumanoidRootPart.CFrame = chara.HumanoidRootPart.CFrame + chara.HumanoidRootPart.CFrame.lookVector * 35 | |
1012 | wait(1) | |
1013 | for i = 0,.6,.2 do | |
1014 | wait(.05) | |
1015 | TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(math.rad(20),0,0),.6-i) | |
1016 | HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(math.rad(20),0,0),.6-i) | |
1017 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-50)),.6-i) | |
1018 | LW.C0 = clerp(ILWF,(LWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(50)),.6-i) | |
1019 | LLW.C0 = LLWF | |
1020 | RLW.C0 = clerp(RLWF,RLWF + Vector3.new(0,-1,1),.6-i) | |
1021 | end | |
1022 | Sheath(1) | |
1023 | del = false | |
1024 | DestroyLegWelds() | |
1025 | chara.Humanoid.WalkSpeed = 8 | |
1026 | end | |
1027 | ||
1028 | --Stop Time-- | |
1029 | timestop = false | |
1030 | function StopTime() | |
1031 | del = true | |
1032 | atkd = true | |
1033 | chara.Humanoid.WalkSpeed = 0 | |
1034 | TeleSnd:Play() | |
1035 | timestop = true | |
1036 | Music:Stop() | |
1037 | for i = 1, 10 do | |
1038 | wait(.2) | |
1039 | HC.C0 = HCF * CFrame.fromEulerAnglesXYZ(math.rad(20),0,0) | |
1040 | end | |
1041 | chatfunc("My World.") | |
1042 | wait(1) | |
1043 | chatfunc("Time has stopped.") | |
1044 | chara.Humanoid.WalkSpeed = 8 | |
1045 | del = false | |
1046 | wait(10) | |
1047 | chatfunc("Let time flow once again.") | |
1048 | wait(2) | |
1049 | Music:Play() | |
1050 | timestop = false | |
1051 | if game.Lighting:FindFirstChild("TimeCorr")~=nil then | |
1052 | game.Lighting:FindFirstChild("TimeCorr"):Destroy() | |
1053 | end | |
1054 | local wd = game.Workspace:GetChildren() | |
1055 | for i = 1, #wd do | |
1056 | if wd[i].ClassName == "Model" and wd[i]:FindFirstChild("Humanoid")~=nil and wd[i] ~= chara then | |
1057 | local cd = wd[i]:GetChildren() | |
1058 | for i = 1, #cd do | |
1059 | if cd[i].ClassName == "Part" or cd[i].ClassName == "MeshPart" then | |
1060 | cd[i].Anchored = false | |
1061 | end | |
1062 | end | |
1063 | end | |
1064 | end | |
1065 | end | |
1066 | ||
1067 | --Teleport-- | |
1068 | function Teleport() | |
1069 | del = true | |
1070 | atkd = true | |
1071 | TeleSnd:Play() | |
1072 | chara.Torso.CFrame = (targetted.Head.CFrame - Vector3.new(0,1.5,0)) - targetted.Head.CFrame.lookVector*5 | |
1073 | del = false | |
1074 | end | |
1075 | ||
1076 | --Lock On-- | |
1077 | function LockOn() | |
1078 | if Mouse.Target.Parent ~= chara and Mouse.Target.Parent.Parent ~= chara and Mouse.Target.Parent:FindFirstChild("Humanoid") ~= nil then | |
1079 | TargetSelect(Mouse.Target.Parent) | |
1080 | TargetSnd:Play() | |
1081 | else end | |
1082 | end | |
1083 | ||
1084 | --Mouse Functions-- | |
1085 | orbpushactive = false | |
1086 | del = false | |
1087 | input = "" | |
1088 | letterd = 0 | |
1089 | ltoim = 0 | |
1090 | function onKeyDown(key) | |
1091 | if del == false then | |
1092 | if key == "q" then | |
1093 | if input == "as" and targetted ~= nil then | |
1094 | ExpungeThem() | |
1095 | elseif input == "ad" and targetted ~= nil then | |
1096 | Teleport() | |
1097 | elseif input == "wws" then | |
1098 | Annihilation() | |
1099 | elseif input == "ssad" and timestop == false then | |
1100 | StopTime() | |
1101 | else LockOn() end | |
1102 | input = "" | |
1103 | letterd = 0 | |
1104 | ltoim = 0 | |
1105 | elseif key == "z" then | |
1106 | input = "" | |
1107 | letterd = 0 | |
1108 | ltoim = 0 | |
1109 | elseif key == "x" then | |
1110 | input = "" | |
1111 | letterd = 0 | |
1112 | ltoim = 0 | |
1113 | elseif key == "c" then | |
1114 | if input == "aw" then | |
1115 | KillThem() | |
1116 | elseif input == "as" then | |
1117 | EndThem() | |
1118 | elseif input == "ad" and targetted ~= nil then | |
1119 | ReapThem() | |
1120 | elseif input == "ds" then | |
1121 | MurderThem() | |
1122 | elseif input == "ww" then | |
1123 | ExecuteThem() | |
1124 | elseif input == "ss" and targetted ~= nil then | |
1125 | HuntThem() | |
1126 | else end | |
1127 | input = "" | |
1128 | letterd = 0 | |
1129 | ltoim = 0 | |
1130 | elseif (key == "w" or key == "a" or key == "s" or key == "d") then | |
1131 | input=input..key | |
1132 | print(input) | |
1133 | letterd = letterd + 1 | |
1134 | ltoim = ltoim + 10 | |
1135 | if letterd > 5 then | |
1136 | input = "" | |
1137 | letterd = 0 | |
1138 | ltoim = 0 | |
1139 | end | |
1140 | elseif key == "m" then | |
1141 | if Music.IsPlaying == true then | |
1142 | Music:Stop() | |
1143 | elseif Music.IsPlaying == false then | |
1144 | Music:Play() | |
1145 | end | |
1146 | end | |
1147 | end | |
1148 | end | |
1149 | combo = 0 | |
1150 | ||
1151 | --Mouse Activation-- | |
1152 | if Mouse then | |
1153 | Mouse.KeyDown:connect(onKeyDown) | |
1154 | end | |
1155 | ||
1156 | --Loop Function-- | |
1157 | walking = false | |
1158 | toim = 0 | |
1159 | while true do | |
1160 | wait() | |
1161 | toim = toim + .1 | |
1162 | ltoim = ltoim - 1 | |
1163 | if ltoim < 1 then | |
1164 | input = "" | |
1165 | end | |
1166 | chara.Humanoid.MaxHealth = math.huge | |
1167 | chara.Humanoid.Health = math.huge | |
1168 | if atkd == true then | |
1169 | TC.C0 = TCF | |
1170 | HC.C0 = HCF | |
1171 | RW.C0 = RWF | |
1172 | LW.C0 = LWF | |
1173 | atkd = false | |
1174 | end | |
1175 | torvel = (chara.HumanoidRootPart.Velocity*Vector3.new(1,0,1)).magnitude | |
1176 | if torvel < 1 and walking == true and del == false and atkd == false then | |
1177 | for i = 0,1,.5 do | |
1178 | wait(.001) | |
1179 | if del == false then | |
1180 | TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(math.rad(5),0,0),ITCF,i) | |
1181 | HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(5),0,0),IHCF,i) | |
1182 | RW.C0 = IRWF | |
1183 | LW.C0 = ILWF | |
1184 | end | |
1185 | end | |
1186 | walking = false | |
1187 | elseif torvel > 1 and walking == false and del == false and atkd == false then | |
1188 | for i = 0,1,.5 do | |
1189 | wait(.001) | |
1190 | if del == false then | |
1191 | TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(math.rad(5),0,0),i) | |
1192 | HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(math.rad(5),0,0),i) | |
1193 | RW.C0 = IRWF | |
1194 | LW.C0 = ILWF | |
1195 | end | |
1196 | end | |
1197 | walking = true | |
1198 | else | |
1199 | end | |
1200 | imgl.Rotation = imgl.Rotation + 3 | |
1201 | game.Lighting.TimeOfDay = "00:00:00" | |
1202 | --Time Stop-- | |
1203 | if timestop == true then | |
1204 | if game.Lighting:FindFirstChild("TimeCorr")==nil then | |
1205 | local tcr = Instance.new("ColorCorrectionEffect",game.Lighting) | |
1206 | tcr.Saturation = -1 | |
1207 | tcr.Name = "TimeCorr" | |
1208 | end | |
1209 | local wd = game.Workspace:GetChildren() | |
1210 | for i = 1, #wd do | |
1211 | if wd[i].ClassName == "Model" and wd[i]:FindFirstChild("Humanoid")~=nil and wd[i] ~= chara then | |
1212 | local cd = wd[i]:GetChildren() | |
1213 | for i = 1, #cd do | |
1214 | if cd[i].ClassName == "Part" or cd[i].ClassName == "MeshPart" then | |
1215 | cd[i].Anchored = true | |
1216 | end | |
1217 | end | |
1218 | end | |
1219 | end | |
1220 | end | |
1221 | ------------- | |
1222 | if targetted ~= nil then | |
1223 | crosshair.Adornee = targetted:FindFirstChild("Torso") or targetted:FindFirstChild("UpperTorso") | |
1224 | crosshair.Enabled = true | |
1225 | elseif targetted == nil then | |
1226 | crosshair.Adornee = nil | |
1227 | crosshair.Enabled = false | |
1228 | end | |
1229 | local chs = chara:GetChildren() | |
1230 | for i = 1, #chs do | |
1231 | if chs[i].ClassName == "Part" then | |
1232 | chs[i].Anchored = false | |
1233 | end | |
1234 | end | |
1235 | local knch = Knifu:GetChildren() | |
1236 | for i = 1, #knch do | |
1237 | knch[i].Anchored = false | |
1238 | end | |
1239 | end |