SHOW:
|
|
- or go back to the newest paste.
1 | - | --Negan by DMS |
1 | + | --https://github.com/Mokiros/roblox-FE-compatibility |
2 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
3 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
4 | local RealPlayer = Player | |
5 | do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end --Negan by DMS | |
6 | BeNegan = true | |
7 | --------------- | |
8 | o1 = Instance.new("Tool") | |
9 | o2 = Instance.new("Part") | |
10 | o3 = Instance.new("SpecialMesh") | |
11 | o4 = Instance.new("Decal") | |
12 | o5 = Instance.new("Part") | |
13 | o6 = Instance.new("SpecialMesh") | |
14 | o7 = Instance.new("Decal") | |
15 | o8 = Instance.new("Part") | |
16 | o9 = Instance.new("SpecialMesh") | |
17 | o10 = Instance.new("Sound") | |
18 | o11 = Instance.new("Sound") | |
19 | o12 = Instance.new("Part") | |
20 | o13 = Instance.new("SpecialMesh") | |
21 | o14 = Instance.new("Decal") | |
22 | o15 = Instance.new("Part") | |
23 | o16 = Instance.new("SpecialMesh") | |
24 | o17 = Instance.new("Decal") | |
25 | o18 = Instance.new("Part") | |
26 | o19 = Instance.new("SpecialMesh") | |
27 | o20 = Instance.new("Decal") | |
28 | o21 = Instance.new("Part") | |
29 | o22 = Instance.new("SpecialMesh") | |
30 | o23 = Instance.new("Decal") | |
31 | o24 = Instance.new("Part") | |
32 | o25 = Instance.new("SpecialMesh") | |
33 | o26 = Instance.new("Decal") | |
34 | o27 = Instance.new("Part") | |
35 | o28 = Instance.new("SpecialMesh") | |
36 | o29 = Instance.new("Decal") | |
37 | o30 = Instance.new("Part") | |
38 | o31 = Instance.new("SpecialMesh") | |
39 | o32 = Instance.new("Decal") | |
40 | o33 = Instance.new("Part") | |
41 | o34 = Instance.new("SpecialMesh") | |
42 | o35 = Instance.new("Decal") | |
43 | o36 = Instance.new("Part") | |
44 | o37 = Instance.new("SpecialMesh") | |
45 | o38 = Instance.new("Decal") | |
46 | o39 = Instance.new("Part") | |
47 | o40 = Instance.new("SpecialMesh") | |
48 | o41 = Instance.new("Decal") | |
49 | o42 = Instance.new("Part") | |
50 | o43 = Instance.new("SpecialMesh") | |
51 | o44 = Instance.new("Decal") | |
52 | o45 = Instance.new("Part") | |
53 | o46 = Instance.new("SpecialMesh") | |
54 | o47 = Instance.new("Decal") | |
55 | o48 = Instance.new("Part") | |
56 | o49 = Instance.new("SpecialMesh") | |
57 | o50 = Instance.new("Decal") | |
58 | o51 = Instance.new("Part") | |
59 | o52 = Instance.new("SpecialMesh") | |
60 | o53 = Instance.new("Decal") | |
61 | o54 = Instance.new("Part") | |
62 | o55 = Instance.new("SpecialMesh") | |
63 | o56 = Instance.new("Decal") | |
64 | o57 = Instance.new("Part") | |
65 | o58 = Instance.new("Animation") | |
66 | o59 = Instance.new("Animation") | |
67 | o60 = Instance.new("Animation") | |
68 | o1.Name = "Lucille" | |
69 | o1.GripForward = Vector3.new(-0, 0.999622107, -0.0274896082) | |
70 | o1.GripPos = Vector3.new(0, -0.0500000007, -1.60000002) | |
71 | o1.GripUp = Vector3.new(0, 0.0274896082, 0.999622107) | |
72 | o2.Parent = o1 | |
73 | o2.Position = Vector3.new(-38.5235214, 4.63086748, 13.4287758) | |
74 | o2.Rotation = Vector3.new(0, -3.11999989, -179.5) | |
75 | o2.Velocity = Vector3.new(1.64596518e-41, 0, 8.61798556e-43) | |
76 | o2.FormFactor = Enum.FormFactor.Custom | |
77 | o2.Size = Vector3.new(0.200000003, 0.200000003, 0.220000029) | |
78 | o2.CFrame = CFrame.new(-38.5235214, 4.63086748, 13.4287758, -0.998482704, 0.00879410654, -0.0543617606, -0.00880711712, -0.999961257, -2.5308691e-07, -0.0543596745, 0.000478517642, 0.998521447) | |
79 | o2.BottomSurface = Enum.SurfaceType.Smooth | |
80 | o2.TopSurface = Enum.SurfaceType.Smooth | |
81 | o3.Parent = o2 | |
82 | o3.MeshId = "http://www.roblox.com/asset/?id=190765674 " | |
83 | o3.Scale = Vector3.new(0.389999986, 0.389999986, 0.389999986) | |
84 | o3.TextureId = "http://www.roblox.com/asset/?id=190729868 " | |
85 | o3.MeshType = Enum.MeshType.FileMesh | |
86 | o4.Parent = o2 | |
87 | o4.Texture = "http://www.roblox.com/asset/?id=39468059" | |
88 | o4.Face = Enum.NormalId.Top | |
89 | o5.Parent = o1 | |
90 | o5.Position = Vector3.new(-38.5218353, 4.78086376, 13.3735209) | |
91 | o5.Rotation = Vector3.new(0.300000012, -33.1100006, 0.600000024) | |
92 | o5.Velocity = Vector3.new(1.64596518e-41, 0, 8.61798556e-43) | |
93 | o5.FormFactor = Enum.FormFactor.Custom | |
94 | o5.Size = Vector3.new(0.200000003, 0.200000003, 0.220000029) | |
95 | o5.CFrame = CFrame.new(-38.5218353, 4.78086376, 13.3735209, 0.837530375, -0.00879397336, -0.54632014, 0.00762708345, 0.999961257, -0.00440349802, 0.546337664, -0.000478766073, 0.837564945) | |
96 | o5.BottomSurface = Enum.SurfaceType.Smooth | |
97 | o5.TopSurface = Enum.SurfaceType.Smooth | |
98 | o6.Parent = o5 | |
99 | o6.MeshId = "http://www.roblox.com/asset/?id=190765674 " | |
100 | o6.Scale = Vector3.new(0.389999986, 0.389999986, 0.389999986) | |
101 | o6.TextureId = "http://www.roblox.com/asset/?id=190729868 " | |
102 | o6.MeshType = Enum.MeshType.FileMesh | |
103 | o7.Parent = o5 | |
104 | o7.Texture = "http://www.roblox.com/asset/?id=39468059" | |
105 | o7.Face = Enum.NormalId.Top | |
106 | o8.Name = "Handle" | |
107 | o8.Parent = o1 | |
108 | o8.BrickColor = BrickColor.new("Rust") | |
109 | o8.Position = Vector3.new(-38.5186577, 3.00083303, 13.4195843) | |
110 | o8.Rotation = Vector3.new(-90.0299988, -0.5, -93.1200027) | |
111 | o8.Velocity = Vector3.new(1.64596518e-41, 0, 8.61798556e-43) | |
112 | o8.FormFactor = Enum.FormFactor.Custom | |
113 | o8.Size = Vector3.new(0.200000003, 0.200000003, 4) | |
114 | o8.CFrame = CFrame.new(-38.5186577, 3.00083303, 13.4195843, -0.0543620177, 0.998482645, -0.00879397336, 0, 0.00880699698, 0.999961257, 0.998521328, 0.0543599129, -0.000478766073) | |
115 | o8.BottomSurface = Enum.SurfaceType.Smooth | |
116 | o8.TopSurface = Enum.SurfaceType.Smooth | |
117 | o8.Color = Color3.new(0.560784, 0.298039, 0.164706) | |
118 | o9.Parent = o8 | |
119 | o9.MeshId = "http://www.roblox.com/asset/?id=54983181 " | |
120 | o9.Scale = Vector3.new(2.5, 2.5, 2) | |
121 | o9.MeshType = Enum.MeshType.FileMesh | |
122 | o10.Name = "Hit" | |
123 | o10.Parent = o8 | |
124 | o10.SoundId = "rbxassetid://214755079" | |
125 | o10.Volume = 1 | |
126 | o11.Name = "SlashSound" | |
127 | o11.Parent = o8 | |
128 | o11.SoundId = "rbxassetid://101164100" | |
129 | o11.Volume = 1 | |
130 | o12.Parent = o1 | |
131 | o12.Position = Vector3.new(-38.5265617, 5.26084852, 13.3826046) | |
132 | o12.Rotation = Vector3.new(0, -3.11999989, 0.5) | |
133 | o12.Velocity = Vector3.new(1.64596518e-41, 0, 8.61798556e-43) | |
134 | o12.FormFactor = Enum.FormFactor.Custom | |
135 | o12.Size = Vector3.new(0.200000003, 0.200000003, 0.220000029) | |
136 | o12.CFrame = CFrame.new(-38.5265617, 5.26084852, 13.3826046, 0.998482764, -0.0087939715, -0.0543619692, 0.00880699791, 0.999961138, 6.98491931e-10, 0.0543598831, -0.000478766335, 0.998521864) | |
137 | o12.BottomSurface = Enum.SurfaceType.Smooth | |
138 | o12.TopSurface = Enum.SurfaceType.Smooth | |
139 | o13.Parent = o12 | |
140 | o13.MeshId = "http://www.roblox.com/asset/?id=190765674 " | |
141 | o13.Scale = Vector3.new(0.389999986, 0.389999986, 0.389999986) | |
142 | o13.TextureId = "http://www.roblox.com/asset/?id=190729868 " | |
143 | o13.MeshType = Enum.MeshType.FileMesh | |
144 | o14.Parent = o12 | |
145 | o14.Texture = "http://www.roblox.com/asset/?id=39468059" | |
146 | o14.Face = Enum.NormalId.Top | |
147 | o15.Parent = o1 | |
148 | o15.Position = Vector3.new(-38.5227661, 4.89086008, 13.3728275) | |
149 | o15.Rotation = Vector3.new(0, -3.11999989, -179.5) | |
150 | o15.Velocity = Vector3.new(1.64596518e-41, 0, 8.61798556e-43) | |
151 | o15.FormFactor = Enum.FormFactor.Custom | |
152 | o15.Size = Vector3.new(0.200000003, 0.200000003, 0.220000029) | |
153 | o15.CFrame = CFrame.new(-38.5227661, 4.89086008, 13.3728275, -0.998483181, 0.00879397616, -0.0543621033, -0.0088070007, -0.999961138, -9.38526341e-08, -0.0543600731, 0.00047867262, 0.998522282) | |
154 | o15.BottomSurface = Enum.SurfaceType.Smooth | |
155 | o15.TopSurface = Enum.SurfaceType.Smooth | |
156 | o16.Parent = o15 | |
157 | o16.MeshId = "http://www.roblox.com/asset/?id=190765674 " | |
158 | o16.Scale = Vector3.new(0.389999986, 0.389999986, 0.389999986) | |
159 | o16.TextureId = "http://www.roblox.com/asset/?id=190729868 " | |
160 | o16.MeshType = Enum.MeshType.FileMesh | |
161 | o17.Parent = o15 | |
162 | o17.Texture = "http://www.roblox.com/asset/?id=39468059" | |
163 | o17.Face = Enum.NormalId.Top | |
164 | o18.Parent = o1 | |
165 | o18.Position = Vector3.new(-38.5150299, 4.13089132, 13.3538427) | |
166 | o18.Rotation = Vector3.new(0, -3.11999989, 0.5) | |
167 | o18.Velocity = Vector3.new(1.64596518e-41, 0, 8.61798556e-43) | |
168 | o18.FormFactor = Enum.FormFactor.Custom | |
169 | o18.Size = Vector3.new(0.200000003, 0.200000003, 0.220000029) | |
170 | o18.CFrame = CFrame.new(-38.5150299, 4.13089132, 13.3538427, 0.998483181, -0.0087939715, -0.0543619804, 0.0088070007, 0.999961138, 1.03136699e-09, 0.0543599501, -0.000478766277, 0.998522282) | |
171 | o18.BottomSurface = Enum.SurfaceType.Smooth | |
172 | o18.TopSurface = Enum.SurfaceType.Smooth | |
173 | o19.Parent = o18 | |
174 | o19.MeshId = "http://www.roblox.com/asset/?id=190765674 " | |
175 | o19.Scale = Vector3.new(0.389999986, 0.389999986, 0.389999986) | |
176 | o19.TextureId = "http://www.roblox.com/asset/?id=190729868 " | |
177 | o19.MeshType = Enum.MeshType.FileMesh | |
178 | o20.Parent = o18 | |
179 | o20.Texture = "http://www.roblox.com/asset/?id=39468059" | |
180 | o20.Face = Enum.NormalId.Top | |
181 | o21.Parent = o1 | |
182 | o21.Position = Vector3.new(-38.519207, 4.58086824, 13.3576479) | |
183 | o21.Rotation = Vector3.new(0, -3.11999989, 0.5) | |
184 | o21.Velocity = Vector3.new(1.64596518e-41, 0, 8.61798556e-43) | |
185 | o21.FormFactor = Enum.FormFactor.Custom | |
186 | o21.Size = Vector3.new(0.200000003, 0.200000003, 0.220000029) | |
187 | o21.CFrame = CFrame.new(-38.519207, 4.58086824, 13.3576479, 0.998483181, -0.0087939715, -0.0543619804, 0.0088070007, 0.999961138, 1.03136699e-09, 0.0543599501, -0.000478766277, 0.998522282) | |
188 | o21.BottomSurface = Enum.SurfaceType.Smooth | |
189 | o21.TopSurface = Enum.SurfaceType.Smooth | |
190 | o22.Parent = o21 | |
191 | o22.MeshId = "http://www.roblox.com/asset/?id=190765674 " | |
192 | o22.Scale = Vector3.new(0.389999986, 0.389999986, 0.389999986) | |
193 | o22.TextureId = "http://www.roblox.com/asset/?id=190729868 " | |
194 | o22.MeshType = Enum.MeshType.FileMesh | |
195 | o23.Parent = o21 | |
196 | o23.Texture = "http://www.roblox.com/asset/?id=39468059" | |
197 | o23.Face = Enum.NormalId.Top | |
198 | o24.Parent = o1 | |
199 | o24.Position = Vector3.new(-38.5234871, 5.03085279, 13.3633833) | |
200 | o24.Rotation = Vector3.new(0, -3.11999989, 0.5) | |
201 | o24.Velocity = Vector3.new(1.64596518e-41, 0, 8.61798556e-43) | |
202 | o24.FormFactor = Enum.FormFactor.Custom | |
203 | o24.Size = Vector3.new(0.200000003, 0.200000003, 0.220000029) | |
204 | o24.CFrame = CFrame.new(-38.5234871, 5.03085279, 13.3633833, 0.998483181, -0.0087939715, -0.0543619804, 0.0088070007, 0.999961138, 1.03136699e-09, 0.0543599501, -0.000478766277, 0.998522282) | |
205 | o24.BottomSurface = Enum.SurfaceType.Smooth | |
206 | o24.TopSurface = Enum.SurfaceType.Smooth | |
207 | o25.Parent = o24 | |
208 | o25.MeshId = "http://www.roblox.com/asset/?id=190765674 " | |
209 | o25.Scale = Vector3.new(0.389999986, 0.389999986, 0.389999986) | |
210 | o25.TextureId = "http://www.roblox.com/asset/?id=190729868 " | |
211 | o25.MeshType = Enum.MeshType.FileMesh | |
212 | o26.Parent = o24 | |
213 | o26.Texture = "http://www.roblox.com/asset/?id=39468059" | |
214 | o26.Face = Enum.NormalId.Top | |
215 | o27.Parent = o1 | |
216 | o27.Position = Vector3.new(-38.5192375, 4.18088245, 13.4230385) | |
217 | o27.Rotation = Vector3.new(0, -3.11999989, -179.5) | |
218 | o27.Velocity = Vector3.new(1.64596518e-41, 0, 8.61798556e-43) | |
219 | o27.FormFactor = Enum.FormFactor.Custom | |
220 | o27.Size = Vector3.new(0.200000003, 0.200000003, 0.220000029) | |
221 | o27.CFrame = CFrame.new(-38.5192375, 4.18088245, 13.4230385, -0.998483181, 0.00879410468, -0.0543618202, -0.00880711991, -0.999961138, -2.52854079e-07, -0.0543597937, 0.000478517875, 0.998522282) | |
222 | o27.BottomSurface = Enum.SurfaceType.Smooth | |
223 | o27.TopSurface = Enum.SurfaceType.Smooth | |
224 | o28.Parent = o27 | |
225 | o28.MeshId = "http://www.roblox.com/asset/?id=190765674 " | |
226 | o28.Scale = Vector3.new(0.389999986, 0.389999986, 0.389999986) | |
227 | o28.TextureId = "http://www.roblox.com/asset/?id=190729868 " | |
228 | o28.MeshType = Enum.MeshType.FileMesh | |
229 | o29.Parent = o27 | |
230 | o29.Texture = "http://www.roblox.com/asset/?id=39468059" | |
231 | o29.Face = Enum.NormalId.Top | |
232 | o30.Parent = o1 | |
233 | o30.Position = Vector3.new(-38.5175514, 4.33087873, 13.3677835) | |
234 | o30.Rotation = Vector3.new(0.300000012, -33.1100006, 0.600000024) | |
235 | o30.Velocity = Vector3.new(1.64596518e-41, 0, 8.61798556e-43) | |
236 | o30.FormFactor = Enum.FormFactor.Custom | |
237 | o30.Size = Vector3.new(0.200000003, 0.200000003, 0.220000029) | |
238 | o30.CFrame = CFrame.new(-38.5175514, 4.33087873, 13.3677835, 0.837530792, -0.0087939715, -0.546320438, 0.00762708625, 0.999961138, -0.00440349942, 0.546338201, -0.000478766306, 0.837565601) | |
239 | o30.BottomSurface = Enum.SurfaceType.Smooth | |
240 | o30.TopSurface = Enum.SurfaceType.Smooth | |
241 | o31.Parent = o30 | |
242 | o31.MeshId = "http://www.roblox.com/asset/?id=190765674 " | |
243 | o31.Scale = Vector3.new(0.389999986, 0.389999986, 0.389999986) | |
244 | o31.TextureId = "http://www.roblox.com/asset/?id=190729868 " | |
245 | o31.MeshType = Enum.MeshType.FileMesh | |
246 | o32.Parent = o30 | |
247 | o32.Texture = "http://www.roblox.com/asset/?id=39468059" | |
248 | o32.Face = Enum.NormalId.Top | |
249 | o33.Parent = o1 | |
250 | o33.Position = Vector3.new(-38.5144882, 3.6009047, 13.4298124) | |
251 | o33.Rotation = Vector3.new(0, -3.11999989, -179.5) | |
252 | o33.Velocity = Vector3.new(1.64596518e-41, 0, 8.61798556e-43) | |
253 | o33.FormFactor = Enum.FormFactor.Custom | |
254 | o33.Size = Vector3.new(0.200000003, 0.200000003, 0.220000029) | |
255 | o33.CFrame = CFrame.new(-38.5144882, 3.6009047, 13.4298124, -0.998483062, 0.00879410468, -0.0543618388, -0.00880711898, -0.999961138, -2.53186926e-07, -0.0543597862, 0.000478517904, 0.998522103) | |
256 | o33.BottomSurface = Enum.SurfaceType.Smooth | |
257 | o33.TopSurface = Enum.SurfaceType.Smooth | |
258 | o34.Parent = o33 | |
259 | o34.MeshId = "http://www.roblox.com/asset/?id=190765674 " | |
260 | o34.Scale = Vector3.new(0.389999986, 0.389999986, 0.389999986) | |
261 | o34.TextureId = "http://www.roblox.com/asset/?id=190729868 " | |
262 | o34.MeshType = Enum.MeshType.FileMesh | |
263 | o35.Parent = o33 | |
264 | o35.Texture = "http://www.roblox.com/asset/?id=39468059" | |
265 | o35.Face = Enum.NormalId.Top | |
266 | o36.Parent = o1 | |
267 | o36.Position = Vector3.new(-38.5144577, 4.00089025, 13.3644218) | |
268 | o36.Rotation = Vector3.new(0, -3.11999989, 0.5) | |
269 | o36.Velocity = Vector3.new(1.64596518e-41, 0, 8.61798556e-43) | |
270 | o36.FormFactor = Enum.FormFactor.Custom | |
271 | o36.Size = Vector3.new(0.200000003, 0.200000003, 0.220000029) | |
272 | o36.CFrame = CFrame.new(-38.5144577, 4.00089025, 13.3644218, 0.998483062, -0.0087939715, -0.054361999, 0.00880699977, 0.999961138, 6.98491931e-10, 0.0543599427, -0.000478766306, 0.998522103) | |
273 | o36.BottomSurface = Enum.SurfaceType.Smooth | |
274 | o36.TopSurface = Enum.SurfaceType.Smooth | |
275 | o37.Parent = o36 | |
276 | o37.MeshId = "http://www.roblox.com/asset/?id=190765674 " | |
277 | o37.Scale = Vector3.new(0.389999986, 0.389999986, 0.389999986) | |
278 | o37.TextureId = "http://www.roblox.com/asset/?id=190729868 " | |
279 | o37.MeshType = Enum.MeshType.FileMesh | |
280 | o38.Parent = o36 | |
281 | o38.Texture = "http://www.roblox.com/asset/?id=39468059" | |
282 | o38.Face = Enum.NormalId.Top | |
283 | o39.Parent = o1 | |
284 | o39.Position = Vector3.new(-38.5101776, 3.55090499, 13.3586874) | |
285 | o39.Rotation = Vector3.new(0, -3.11999989, 0.5) | |
286 | o39.Velocity = Vector3.new(1.64596518e-41, 0, 8.61798556e-43) | |
287 | o39.FormFactor = Enum.FormFactor.Custom | |
288 | o39.Size = Vector3.new(0.200000003, 0.200000003, 0.220000029) | |
289 | o39.CFrame = CFrame.new(-38.5101776, 3.55090499, 13.3586874, 0.998483062, -0.0087939715, -0.054361999, 0.00880699977, 0.999961138, 6.98491931e-10, 0.0543599427, -0.000478766306, 0.998522103) | |
290 | o39.BottomSurface = Enum.SurfaceType.Smooth | |
291 | o39.TopSurface = Enum.SurfaceType.Smooth | |
292 | o40.Parent = o39 | |
293 | o40.MeshId = "http://www.roblox.com/asset/?id=190765674 " | |
294 | o40.Scale = Vector3.new(0.389999986, 0.389999986, 0.389999986) | |
295 | o40.TextureId = "http://www.roblox.com/asset/?id=190729868 " | |
296 | o40.MeshType = Enum.MeshType.FileMesh | |
297 | o41.Parent = o39 | |
298 | o41.Texture = "http://www.roblox.com/asset/?id=39468059" | |
299 | o41.Face = Enum.NormalId.Top | |
300 | o42.Parent = o1 | |
301 | o42.Position = Vector3.new(-38.5128059, 3.75090075, 13.3745594) | |
302 | o42.Rotation = Vector3.new(0.300000012, -33.1100006, 0.600000024) | |
303 | o42.Velocity = Vector3.new(1.64596518e-41, 0, 8.61798556e-43) | |
304 | o42.FormFactor = Enum.FormFactor.Custom | |
305 | o42.Size = Vector3.new(0.200000003, 0.200000003, 0.220000029) | |
306 | o42.CFrame = CFrame.new(-38.5128059, 3.75090075, 13.3745594, 0.837530613, -0.0087939715, -0.546320379, 0.00762708578, 0.999961138, -0.00440349942, 0.546338141, -0.000478766306, 0.837565482) | |
307 | o42.BottomSurface = Enum.SurfaceType.Smooth | |
308 | o42.TopSurface = Enum.SurfaceType.Smooth | |
309 | o43.Parent = o42 | |
310 | o43.MeshId = "http://www.roblox.com/asset/?id=190765674 " | |
311 | o43.Scale = Vector3.new(0.389999986, 0.389999986, 0.389999986) | |
312 | o43.TextureId = "http://www.roblox.com/asset/?id=190729868 " | |
313 | o43.MeshType = Enum.MeshType.FileMesh | |
314 | o44.Parent = o42 | |
315 | o44.Texture = "http://www.roblox.com/asset/?id=39468059" | |
316 | o44.Face = Enum.NormalId.Top | |
317 | o45.Parent = o1 | |
318 | o45.Position = Vector3.new(-38.5102005, 5.27098942, 13.3587208) | |
319 | o45.Rotation = Vector3.new(0, -3.11999989, 0.5) | |
320 | o45.Velocity = Vector3.new(1.64596518e-41, 0, 8.61798556e-43) | |
321 | o45.FormFactor = Enum.FormFactor.Custom | |
322 | o45.Size = Vector3.new(0.200000003, 0.200000003, 0.220000029) | |
323 | o45.CFrame = CFrame.new(-38.5102005, 5.27098942, 13.3587208, 0.998482823, -0.00879397243, -0.0543619096, 0.00880699791, 0.999961197, 6.98491931e-10, 0.0543598235, -0.000478766015, 0.998521686) | |
324 | o45.BottomSurface = Enum.SurfaceType.Smooth | |
325 | o45.TopSurface = Enum.SurfaceType.Smooth | |
326 | o46.Parent = o45 | |
327 | o46.MeshId = "http://www.roblox.com/asset/?id=190765674 " | |
328 | o46.Scale = Vector3.new(0.389999986, 0.389999986, 0.389999986) | |
329 | o46.TextureId = "http://www.roblox.com/asset/?id=190729868 " | |
330 | o46.MeshType = Enum.MeshType.FileMesh | |
331 | o47.Parent = o45 | |
332 | o47.Texture = "http://www.roblox.com/asset/?id=39468059" | |
333 | o47.Face = Enum.NormalId.Top | |
334 | o48.Parent = o1 | |
335 | o48.Position = Vector3.new(-38.5128288, 5.47098541, 13.3745928) | |
336 | o48.Rotation = Vector3.new(0.300000012, -33.1100006, 0.600000024) | |
337 | o48.Velocity = Vector3.new(1.64596518e-41, 0, 8.61798556e-43) | |
338 | o48.FormFactor = Enum.FormFactor.Custom | |
339 | o48.Size = Vector3.new(0.200000003, 0.200000003, 0.220000029) | |
340 | o48.CFrame = CFrame.new(-38.5128288, 5.47098541, 13.3745928, 0.837530434, -0.00879397243, -0.5463202, 0.00762708392, 0.999961197, -0.00440349849, 0.546337843, -0.000478766015, 0.837565184) | |
341 | o48.BottomSurface = Enum.SurfaceType.Smooth | |
342 | o48.TopSurface = Enum.SurfaceType.Smooth | |
343 | o49.Parent = o48 | |
344 | o49.MeshId = "http://www.roblox.com/asset/?id=190765674 " | |
345 | o49.Scale = Vector3.new(0.389999986, 0.389999986, 0.389999986) | |
346 | o49.TextureId = "http://www.roblox.com/asset/?id=190729868 " | |
347 | o49.MeshType = Enum.MeshType.FileMesh | |
348 | o50.Parent = o48 | |
349 | o50.Texture = "http://www.roblox.com/asset/?id=39468059" | |
350 | o50.Face = Enum.NormalId.Top | |
351 | o51.Parent = o1 | |
352 | o51.Position = Vector3.new(-38.5144615, 5.6709199, 13.3644695) | |
353 | o51.Rotation = Vector3.new(0, -3.11999989, 0.5) | |
354 | o51.FormFactor = Enum.FormFactor.Custom | |
355 | o51.Size = Vector3.new(0.200000003, 0.200000003, 0.220000029) | |
356 | o51.CFrame = CFrame.new(-38.5144615, 5.6709199, 13.3644695, 0.998482704, -0.00879397243, -0.0543619096, 0.00880699698, 0.999961197, 6.98491931e-10, 0.0543598235, -0.000478766015, 0.998521566) | |
357 | o51.BottomSurface = Enum.SurfaceType.Smooth | |
358 | o51.TopSurface = Enum.SurfaceType.Smooth | |
359 | o52.Parent = o51 | |
360 | o52.MeshId = "http://www.roblox.com/asset/?id=190765674 " | |
361 | o52.Scale = Vector3.new(0.389999986, 0.389999986, 0.389999986) | |
362 | o52.TextureId = "http://www.roblox.com/asset/?id=190729868 " | |
363 | o52.MeshType = Enum.MeshType.FileMesh | |
364 | o53.Parent = o51 | |
365 | o53.Texture = "http://www.roblox.com/asset/?id=39468059" | |
366 | o53.Face = Enum.NormalId.Top | |
367 | o54.Parent = o1 | |
368 | o54.Position = Vector3.new(-38.5145073, 5.32093906, 13.4298401) | |
369 | o54.Rotation = Vector3.new(0, -3.11999989, -179.5) | |
370 | o54.Velocity = Vector3.new(1.64596518e-41, 0, 8.61798556e-43) | |
371 | o54.Anchored = true | |
372 | o54.FormFactor = Enum.FormFactor.Custom | |
373 | o54.Size = Vector3.new(0.200000003, 0.200000003, 0.220000029) | |
374 | o54.CFrame = CFrame.new(-38.5145073, 5.32093906, 13.4298401, -0.998482704, 0.00879410561, -0.0543617494, -0.00880711619, -0.999961197, -2.53186954e-07, -0.054359667, 0.000478517613, 0.998521566) | |
375 | o54.BottomSurface = Enum.SurfaceType.Smooth | |
376 | o54.TopSurface = Enum.SurfaceType.Smooth | |
377 | o55.Parent = o54 | |
378 | o55.MeshId = "http://www.roblox.com/asset/?id=190765674 " | |
379 | o55.Scale = Vector3.new(0.389999986, 0.389999986, 0.389999986) | |
380 | o55.TextureId = "http://www.roblox.com/asset/?id=190729868 " | |
381 | o55.MeshType = Enum.MeshType.FileMesh | |
382 | o56.Parent = o54 | |
383 | o56.Texture = "http://www.roblox.com/asset/?id=39468059" | |
384 | o56.Face = Enum.NormalId.Top | |
385 | o57.Name = "CHOPPART" | |
386 | o57.Parent = o1 | |
387 | o57.BrickColor = BrickColor.new("Rust") | |
388 | o57.Transparency = 1 | |
389 | o57.Position = Vector3.new(-38.5025482, 4.60603523, 13.415453) | |
390 | o57.Rotation = Vector3.new(-90.0299988, -0.5, -93.1200027) | |
391 | o57.Velocity = Vector3.new(1.64596518e-41, 0, 8.61798556e-43) | |
392 | o57.FormFactor = Enum.FormFactor.Custom | |
393 | o57.Size = Vector3.new(0.589999974, 0.439999998, 2.21000004) | |
394 | o57.CFrame = CFrame.new(-38.5025482, 4.60603523, 13.415453, -0.0543620177, 0.998482645, -0.00879397336, 0, 0.00880699698, 0.999961257, 0.998521328, 0.0543599129, -0.000478766073) | |
395 | o57.BottomSurface = Enum.SurfaceType.Smooth | |
396 | o57.TopSurface = Enum.SurfaceType.Smooth | |
397 | o57.Color = Color3.new(0.560784, 0.298039, 0.164706) | |
398 | o58.Name = "Whack" | |
399 | o58.Parent = o1 | |
400 | o58.AnimationId = "http://www.roblox.com/Asset?ID=94161088" | |
401 | o59.Name = "Chop" | |
402 | o59.Parent = o1 | |
403 | o59.AnimationId = "rbxassetid://32659699" | |
404 | o60.Name = "Slice" | |
405 | o60.Parent = o1 | |
406 | o60.AnimationId = "rbxassetid://28090109" | |
407 | o1.Parent = game.Players.LocalPlayer.Backpack | |
408 | if BeNegan == true then | |
409 | for i,v in pairs (game.Players.LocalPlayer.Character.Head:GetChildren()) do | |
410 | if v:IsA("Decal") then | |
411 | v.Texture = "http://www.roblox.com/asset/?id=147905836" | |
412 | end | |
413 | end | |
414 | for i,v in pairs (game.Players.LocalPlayer.Character:GetChildren()) do | |
415 | if v:IsA("Shirt") or v:IsA("Accessory") or v:IsA("Pants") or v:IsA("Hat")then | |
416 | v:Destroy() | |
417 | end | |
418 | end | |
419 | lo1 = Instance.new("Part") | |
420 | lo1.Name = "Hair" | |
421 | lo1.Anchored = true | |
422 | lo1.FormFactor = Enum.FormFactor.Custom | |
423 | lo1.Size = Vector3.new(2, 1, 1) | |
424 | lo1.BottomSurface = Enum.SurfaceType.Smooth | |
425 | lo1.TopSurface = Enum.SurfaceType.Smooth | |
426 | lo1.BrickColor = BrickColor.new("Black") | |
427 | lo2 = Instance.new("SpecialMesh") | |
428 | lo2.Parent = o1 | |
429 | lo2.MeshId = "http://www.roblox.com/asset/?id=29938421" | |
430 | lo2.Scale = Vector3.new(1.05, 1.05, 1.05) | |
431 | lo2.TextureId = "http://www.roblox.com/asset/?id=296775983" | |
432 | lo2.Offset = Vector3.new(0, -.4, 0) | |
433 | lo2.MeshType = Enum.MeshType.FileMesh | |
434 | h = Instance.new("Hat") | |
435 | p = Instance.new("Part") | |
436 | h.Name = "SWAT Helm" | |
437 | p.Parent = h | |
438 | p.Position = game.Players.LocalPlayer.Character:findFirstChild("Head").Position | |
439 | p.Name = "Handle" | |
440 | p.formFactor = 0 | |
441 | p.Size = Vector3.new(0,-0.25,0) | |
442 | p.BottomSurface = 0 | |
443 | p.TopSurface = 0 | |
444 | p.Locked = true | |
445 | o1.Mesh:clone().Parent = p | |
446 | h.Parent = game.Players.LocalPlayer.Character | |
447 | h.AttachmentPos = Vector3.new(0,-.15,-0) | |
448 | ||
449 | o5.Parent = game.Players.LocalPlayer.Character | |
450 | kl = Instance.new("Shirt") | |
451 | kl.Parent = game.Players.LocalPlayer.Character | |
452 | kl.ShirtTemplate = "http://www.roblox.com/asset/?id=395533815" | |
453 | kll = Instance.new("Pants") | |
454 | kll.Parent = game.Players.LocalPlayer.Character | |
455 | kll.PantsTemplate = "http://www.roblox.com/asset/?id=567811796" | |
456 | end | |
457 | for i,v in pairs (o1:GetChildren()) do | |
458 | if v:IsA("Part")then | |
459 | v.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
460 | v.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
461 | v.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
462 | v.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
463 | v.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
464 | v.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
465 | end | |
466 | end | |
467 | ||
468 | repeat wait() until o1:FindFirstChild("Handle") | |
469 | ||
470 | local Welds = {} | |
471 | ||
472 | function ClearOldWelds(tbl) | |
473 | for _,v in pairs(tbl) do | |
474 | if v:IsA('Weld') then | |
475 | v:Destroy() | |
476 | end | |
477 | end | |
478 | end | |
479 | ||
480 | function Equipped() | |
481 | for i,v in pairs (o1:GetChildren()) do | |
482 | if v:IsA("Part")then | |
483 | v.Anchored = false | |
484 | end | |
485 | end | |
486 | local Handle = o1:FindFirstChild('Handle') | |
487 | if not Handle then return end | |
488 | local tble = Handle:GetChildren() | |
489 | for _,v in pairs(o1:GetChildren()) do | |
490 | if v:IsA('Part') or v:IsA('WedgePart') and v ~= Handle then | |
491 | local c1 | |
492 | for _1,v1 in pairs(Welds) do | |
493 | if _1 == v then | |
494 | c1 = v1 | |
495 | break | |
496 | end | |
497 | end | |
498 | ||
499 | if not c1 then | |
500 | Welds[v] = v.CFrame:inverse()*Handle.CFrame | |
501 | v.Anchored = true | |
502 | c1 = Welds[v] | |
503 | end | |
504 | ||
505 | local Weld = Instance.new('Weld') | |
506 | Weld.Part0 = Handle | |
507 | Weld.Part1 = v | |
508 | Weld.C0 = CFrame.new() | |
509 | Weld.C1 = c1 | |
510 | Weld.Parent = Handle | |
511 | ||
512 | end | |
513 | end | |
514 | ClearOldWelds(tble) | |
515 | Handle.Anchored=false | |
516 | end | |
517 | ||
518 | Equipped() | |
519 | o1.Equipped:connect(Equipped) | |
520 | ||
521 | ||
522 | ||
523 | ||
524 | ||
525 | ||
526 | ||
527 | ||
528 | Tool = o1 | |
529 | Handle = Tool:WaitForChild("Handle") | |
530 | ||
531 | Players = game:GetService("Players") | |
532 | Debris = game:GetService("Debris") | |
533 | InsertService = game:GetService("InsertService") | |
534 | function onEquipped(mouse2) | |
535 | mouse2.KeyDown:connect(onkeyDown) | |
536 | mouse = mouse2 | |
537 | end | |
538 | o1.Equipped:connect(onEquipped) | |
539 | WhackAnim = Tool:WaitForChild("Whack") | |
540 | ChopAnim = Tool:WaitForChild("Chop") | |
541 | SliceAnim = Tool:WaitForChild("Slice") | |
542 | SlashSound = Handle:WaitForChild("SlashSound") | |
543 | HitSound = Handle:WaitForChild("Hit") | |
544 | ||
545 | Damage = 10 | |
546 | ||
547 | ReloadTime = .4 | |
548 | ||
549 | Kills = 0 | |
550 | ||
551 | function TagHumanoid(humanoid, player) --registers you actually Hitting the guy | |
552 | HitSound:Play() | |
553 | local Creator_Tag = Instance.new("ObjectValue") | |
554 | Creator_Tag.Name = "creator" | |
555 | Creator_Tag.Value = player | |
556 | Debris:AddItem(Creator_Tag, 2) | |
557 | Creator_Tag.Parent = humanoid | |
558 | end | |
559 | function onkeyDown(key) | |
560 | if Tool.Enabled then | |
561 | if key == "q" then | |
562 | Slice = Humanoid:LoadAnimation(SliceAnim) | |
563 | if Slice then | |
564 | Slice:Play() | |
565 | SlashSound:Play() | |
566 | wait(1) | |
567 | SlashSound:Play() | |
568 | end | |
569 | Tool.Enabled = true | |
570 | end | |
571 | end | |
572 | ||
573 | if Tool.Enabled then | |
574 | if key == "e" then | |
575 | Chop = Humanoid:LoadAnimation(ChopAnim) | |
576 | if Chop then | |
577 | Chop:Play() | |
578 | SlashSound:Play() | |
579 | end | |
580 | Tool.Enabled = true | |
581 | end | |
582 | end | |
583 | end | |
584 | ||
585 | function UntagHumanoid(humanoid) | |
586 | for i, v in pairs(humanoid:GetChildren()) do | |
587 | if v:IsA("ObjectValue") and v.Name == "creator" then | |
588 | v:Destroy() | |
589 | end | |
590 | end | |
591 | end | |
592 | function DEATH (Hit) | |
593 | OHHNELLY = Instance.new("Part") | |
594 | OHHNELLY.Parent = workspace | |
595 | OHHNELLY.Anchored = false | |
596 | OHHNELLY.Material = Enum.Material.SmoothPlastic | |
597 | OHHNELLY.BrickColor = BrickColor.new("Maroon") | |
598 | OHHNELLY.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003) | |
599 | OHHNELLY.Position = Hit.Head.Position | |
600 | OHHNELLY.Color = Color3.new(0.458824, 0, 0) | |
601 | OHHNELLY.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
602 | OHHNELLY.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
603 | OHHNELLY.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
604 | OHHNELLY.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
605 | OHHNELLY.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
606 | OHHNELLY.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
607 | end | |
608 | function Blow(Hit) | |
609 | if Hit.Name == "Head" and Hit.Name ~= " " then | |
610 | for i,v in pairs (Hit:GetChildren()) do | |
611 | if v:IsA("Decal") then | |
612 | v.Texture = "http://www.roblox.com/asset/?id=195566361" | |
613 | end | |
614 | end | |
615 | for i,v in pairs (Hit.Parent:GetChildren()) do | |
616 | if v:IsA("BodyColors") then | |
617 | v:Destroy() | |
618 | end | |
619 | end | |
620 | Hit.BrickColor = BrickColor.new("Maroon") | |
621 | o1 = Instance.new("Sound") | |
622 | o1.Parent = Hit | |
623 | o1.SoundId = "rbxassetid://429400881" | |
624 | o1:Play() | |
625 | Character = Hit.Parent | |
626 | local svch = Character | |
627 | local hum = Character:findFirstChild("Humanoid") | |
628 | Character.Archivable = true | |
629 | Character.Name = " " | |
630 | local chrclone = Character:clone() | |
631 | Character.Archivable = false | |
632 | ||
633 | local ch = chrclone:GetChildren() | |
634 | local i | |
635 | for i = 1,#ch do | |
636 | if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" or ch[i].ClassName == "Script" then | |
637 | ch[i]:remove() | |
638 | end | |
639 | end | |
640 | local function Scan(ch) | |
641 | local e | |
642 | for e = 1,#ch do | |
643 | Scan(ch[e]:GetChildren()) | |
644 | if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then | |
645 | ch[e]:remove() | |
646 | end | |
647 | end | |
648 | end | |
649 | Scan(chrclone:GetChildren()) | |
650 | ||
651 | local hum2 = chrclone:findFirstChild("Humanoid") | |
652 | ||
653 | ||
654 | if hum2 ~= nil then | |
655 | hum2.Name = "Humanoid2" | |
656 | hum2.PlatformStand = true | |
657 | hum2.Sit = true | |
658 | hum2.MaxHealth = 0 | |
659 | hum2.Health = 0 | |
660 | end | |
661 | ||
662 | local ch = Character:GetChildren() | |
663 | local i | |
664 | for i = 1,#ch do | |
665 | if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then | |
666 | ch[i]:remove() | |
667 | end | |
668 | end | |
669 | ||
670 | wait(0.2) | |
671 | ||
672 | local ch = Character:GetChildren() | |
673 | local i | |
674 | for i = 1,#ch do | |
675 | if ch[i].ClassName == "Part" or ch[i].ClassName == "Hat" or ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then | |
676 | ch[i]:remove() | |
677 | end | |
678 | end | |
679 | Character = chrclone | |
680 | local Torso = Character.Torso | |
681 | local movevector = Vector3.new() | |
682 | ||
683 | local Head = Character:FindFirstChild("Head") | |
684 | if Head then | |
685 | local Neck = Instance.new("Weld") | |
686 | Neck.Name = "Neck" | |
687 | Neck.Part0 = Torso | |
688 | Neck.Part1 = Head | |
689 | Neck.C0 = CFrame.new(0, 1.5, 0) | |
690 | Neck.C1 = CFrame.new() | |
691 | Neck.Parent = Torso | |
692 | end | |
693 | local Limb = Character:FindFirstChild("Right Arm") | |
694 | if Limb then | |
695 | ||
696 | Limb.CFrame = Torso.CFrame * CFrame.new(1.5, 0, 0) | |
697 | local Joint = Instance.new("Glue") | |
698 | Joint.Name = "RightShoulder" | |
699 | Joint.Part0 = Torso | |
700 | Joint.Part1 = Limb | |
701 | Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
702 | Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
703 | Joint.Parent = Torso | |
704 | ||
705 | local B = Instance.new("Part") | |
706 | B.TopSurface = 0 | |
707 | B.BottomSurface = 0 | |
708 | B.formFactor = "Symmetric" | |
709 | B.Size = Vector3.new(1, 1, 1) | |
710 | B.Transparency = 1 | |
711 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
712 | B.Parent = Character | |
713 | local W = Instance.new("Weld") | |
714 | W.Part0 = Limb | |
715 | W.Part1 = B | |
716 | W.C0 = CFrame.new(0, -0.5, 0) | |
717 | W.Parent = Limb | |
718 | ||
719 | end | |
720 | local Limb = Character:FindFirstChild("Left Arm") | |
721 | if Limb then | |
722 | ||
723 | Limb.CFrame = Torso.CFrame * CFrame.new(-1.5, 0, 0) | |
724 | local Joint = Instance.new("Glue") | |
725 | Joint.Name = "LeftShoulder" | |
726 | Joint.Part0 = Torso | |
727 | Joint.Part1 = Limb | |
728 | Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
729 | Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
730 | Joint.Parent = Torso | |
731 | ||
732 | local B = Instance.new("Part") | |
733 | B.TopSurface = 0 | |
734 | B.BottomSurface = 0 | |
735 | B.formFactor = "Symmetric" | |
736 | B.Size = Vector3.new(1, 1, 1) | |
737 | B.Transparency = 1 | |
738 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
739 | B.Parent = Character | |
740 | local W = Instance.new("Weld") | |
741 | W.Part0 = Limb | |
742 | W.Part1 = B | |
743 | W.C0 = CFrame.new(0, -0.5, 0) | |
744 | W.Parent = Limb | |
745 | ||
746 | end | |
747 | local Limb = Character:FindFirstChild("Right Leg") | |
748 | if Limb then | |
749 | ||
750 | Limb.CFrame = Torso.CFrame * CFrame.new(0.5, -2, 0) | |
751 | local Joint = Instance.new("Glue") | |
752 | Joint.Name = "RightHip" | |
753 | Joint.Part0 = Torso | |
754 | Joint.Part1 = Limb | |
755 | Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
756 | Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
757 | Joint.Parent = Torso | |
758 | ||
759 | local B = Instance.new("Part") | |
760 | B.TopSurface = 0 | |
761 | B.BottomSurface = 0 | |
762 | B.formFactor = "Symmetric" | |
763 | B.Size = Vector3.new(1, 1, 1) | |
764 | B.Transparency = 1 | |
765 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
766 | B.Parent = Character | |
767 | local W = Instance.new("Weld") | |
768 | W.Part0 = Limb | |
769 | W.Part1 = B | |
770 | W.C0 = CFrame.new(0, -0.5, 0) | |
771 | W.Parent = Limb | |
772 | ||
773 | end | |
774 | local Limb = Character:FindFirstChild("Left Leg") | |
775 | if Limb then | |
776 | ||
777 | Limb.CFrame = Torso.CFrame * CFrame.new(-0.5, -2, 0) | |
778 | local Joint = Instance.new("Glue") | |
779 | Joint.Name = "LeftHip" | |
780 | Joint.Part0 = Torso | |
781 | Joint.Part1 = Limb | |
782 | Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
783 | Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
784 | Joint.Parent = Torso | |
785 | ||
786 | local B = Instance.new("Part") | |
787 | B.TopSurface = 0 | |
788 | B.BottomSurface = 0 | |
789 | B.formFactor = "Symmetric" | |
790 | B.Size = Vector3.new(1, 1, 1) | |
791 | B.Transparency = 1 | |
792 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
793 | B.Parent = Character | |
794 | local W = Instance.new("Weld") | |
795 | W.Part0 = Limb | |
796 | W.Part1 = B | |
797 | W.C0 = CFrame.new(0, -0.5, 0) | |
798 | W.Parent = Limb | |
799 | ||
800 | end | |
801 | --[[ | |
802 | local Bar = Instance.new("Part") | |
803 | Bar.TopSurface = 0 | |
804 | Bar.BottomSurface = 0 | |
805 | Bar.formFactor = "Symmetric" | |
806 | Bar.Size = Vector3.new(1, 1, 1) | |
807 | Bar.Transparency = 1 | |
808 | Bar.CFrame = Torso.CFrame * CFrame.new(0, 0.5, 0) | |
809 | Bar.Parent = Character | |
810 | local Weld = Instance.new("Weld") | |
811 | Weld.Part0 = Torso | |
812 | Weld.Part1 = Bar | |
813 | Weld.C0 = CFrame.new(0, 0.5, 0) | |
814 | Weld.Parent = Torso | |
815 | --]] | |
816 | Character.Parent = workspace | |
817 | for i=1,20 do | |
818 | DEATH(Character) wait(0.1) | |
819 | end | |
820 | end | |
821 | --registers the Hit, deals damage to the player, and if the humanoid has 0 health a kill is added into the killstreak. | |
822 | if Hit and Hit.Parent then | |
823 | local character = Hit.Parent | |
824 | local humanoid = character:FindFirstChild("Humanoid") | |
825 | if Humanoid and Humanoid ~= humanoid and humanoid and Humanoid.Health > 0 and humanoid.Health > 0 then | |
826 | local Right_Arm = Character:FindFirstChild("Right Arm") | |
827 | if Right_Arm then | |
828 | local Joint = Right_Arm:FindFirstChild("RightGrip") | |
829 | if (Joint and (Joint.Part0 == Handle or Joint.Part1 == Handle)) then | |
830 | humanoid:TakeDamage(Damage) --deal regular damage or instakill normal health players if a ninja | |
831 | UntagHumanoid(humanoid) | |
832 | TagHumanoid(humanoid, Player) | |
833 | end | |
834 | end | |
835 | end | |
836 | end | |
837 | end | |
838 | ||
839 | function Activated() --when you swing | |
840 | if Tool.Enabled then | |
841 | Tool.Enabled = false | |
842 | Whack = Humanoid:LoadAnimation(WhackAnim) | |
843 | if Whack then | |
844 | Whack:Play() | |
845 | SlashSound:Play() | |
846 | end | |
847 | wait(ReloadTime) | |
848 | Tool.Enabled = true | |
849 | end | |
850 | end | |
851 | ||
852 | function Equipped(mouse) --get everything settled up | |
853 | Character = Tool.Parent | |
854 | Player = Players:GetPlayerFromCharacter(Character) | |
855 | Humanoid = Character:FindFirstChild("Humanoid") | |
856 | Torso = Character:FindFirstChild("Torso") | |
857 | if not Humanoid or not Torso then | |
858 | return | |
859 | end | |
860 | ||
861 | if not Tool.Enabled then | |
862 | wait(ReloadTime) | |
863 | Tool.Enabled = true | |
864 | end | |
865 | end | |
866 | ||
867 | function Unequipped() | |
868 | if Whack then | |
869 | Whack:Stop() | |
870 | end | |
871 | if Slice then | |
872 | Slice:Stop() | |
873 | end | |
874 | if Chop then | |
875 | Chop:Stop() | |
876 | end | |
877 | end | |
878 | ||
879 | ||
880 | Mouse_Icon = "rbxasset://textures/GunCursor.png" | |
881 | Reloading_Icon = "rbxasset://textures/GunWaitCursor.png" | |
882 | ||
883 | Tool = o1 | |
884 | ||
885 | Mouse = nil | |
886 | ||
887 | function UpdateIcon() | |
888 | if Mouse then | |
889 | Mouse.Icon = Tool.Enabled and Mouse_Icon or Reloading_Icon | |
890 | end | |
891 | end | |
892 | ||
893 | function OnEquipped(ToolMouse) | |
894 | Mouse = ToolMouse | |
895 | UpdateIcon() | |
896 | end | |
897 | ||
898 | function OnChanged(Property) | |
899 | if Property == "Enabled" then | |
900 | UpdateIcon() | |
901 | end | |
902 | end | |
903 | ||
904 | Tool.Equipped:connect(OnEquipped) | |
905 | Tool.Changed:connect(OnChanged) | |
906 | ||
907 | Tool.Activated:connect(Activated) | |
908 | Tool.Equipped:connect(Equipped) | |
909 | Tool.Unequipped:connect(Unequipped) | |
910 | ||
911 | Tool.CHOPPART.Touched:connect(Blow) |