SHOW:
|
|
- or go back to the newest paste.
1 | function sandbox(var,func) | |
2 | local env = getfenv(func) | |
3 | local newenv = setmetatable({},{ | |
4 | __index = function(self,k) | |
5 | if k=="script" then | |
6 | return var | |
7 | else | |
8 | return env[k] | |
9 | end | |
10 | end, | |
11 | }) | |
12 | setfenv(func,newenv) | |
13 | return func | |
14 | end | |
15 | cors = {} | |
16 | mas = Instance.new("Model",game:GetService("Lighting")) | |
17 | Tool0 = Instance.new("Tool") | |
18 | Part1 = Instance.new("Part") | |
19 | CylinderMesh2 = Instance.new("CylinderMesh") | |
20 | Weld3 = Instance.new("Weld") | |
21 | Weld4 = Instance.new("Weld") | |
22 | Weld5 = Instance.new("Weld") | |
23 | Weld6 = Instance.new("Weld") | |
24 | Weld7 = Instance.new("Weld") | |
25 | Weld8 = Instance.new("Weld") | |
26 | Weld9 = Instance.new("Weld") | |
27 | Weld10 = Instance.new("Weld") | |
28 | Weld11 = Instance.new("Weld") | |
29 | Weld12 = Instance.new("Weld") | |
30 | Weld13 = Instance.new("Weld") | |
31 | Weld14 = Instance.new("Weld") | |
32 | Weld15 = Instance.new("Weld") | |
33 | Weld16 = Instance.new("Weld") | |
34 | Weld17 = Instance.new("Weld") | |
35 | Weld18 = Instance.new("Weld") | |
36 | Weld19 = Instance.new("Weld") | |
37 | Weld20 = Instance.new("Weld") | |
38 | Weld21 = Instance.new("Weld") | |
39 | Weld22 = Instance.new("Weld") | |
40 | Weld23 = Instance.new("Weld") | |
41 | Weld24 = Instance.new("Weld") | |
42 | Weld25 = Instance.new("Weld") | |
43 | Weld26 = Instance.new("Weld") | |
44 | Weld27 = Instance.new("Weld") | |
45 | Weld28 = Instance.new("Weld") | |
46 | Weld29 = Instance.new("Weld") | |
47 | Weld30 = Instance.new("Weld") | |
48 | Weld31 = Instance.new("Weld") | |
49 | Weld32 = Instance.new("Weld") | |
50 | Weld33 = Instance.new("Weld") | |
51 | Weld34 = Instance.new("Weld") | |
52 | Weld35 = Instance.new("Weld") | |
53 | Weld36 = Instance.new("Weld") | |
54 | Weld37 = Instance.new("Weld") | |
55 | Weld38 = Instance.new("Weld") | |
56 | Weld39 = Instance.new("Weld") | |
57 | Weld40 = Instance.new("Weld") | |
58 | Weld41 = Instance.new("Weld") | |
59 | Weld42 = Instance.new("Weld") | |
60 | Weld43 = Instance.new("Weld") | |
61 | Weld44 = Instance.new("Weld") | |
62 | BoolValue45 = Instance.new("BoolValue") | |
63 | Script46 = Instance.new("Script") | |
64 | Script47 = Instance.new("Script") | |
65 | LocalScript48 = Instance.new("LocalScript") | |
66 | Part49 = Instance.new("Part") | |
67 | Script50 = Instance.new("Script") | |
68 | Decal51 = Instance.new("Decal") | |
69 | Decal52 = Instance.new("Decal") | |
70 | Decal53 = Instance.new("Decal") | |
71 | Decal54 = Instance.new("Decal") | |
72 | Decal55 = Instance.new("Decal") | |
73 | Decal56 = Instance.new("Decal") | |
74 | Weld57 = Instance.new("Weld") | |
75 | Script58 = Instance.new("Script") | |
76 | LocalScript59 = Instance.new("LocalScript") | |
77 | Tool0.Name = "kickhammer" | |
78 | Tool0.Parent = mas | |
79 | Part1.Name = "Handle" | |
80 | Part1.Parent = Tool0 | |
81 | Part1.CFrame = CFrame.new(12.8954172, 2.99767208, 6.03132582, 0.194495991, 0.980729401, 0.0182793029, -0.980597854, 0.193938702, 0.0284224544, 0.0243352558, -0.0234507825, 0.999423921) | |
82 | Part1.Orientation = Vector3.new(-1.63, 1.04999995, -78.8099976) | |
83 | Part1.Position = Vector3.new(12.8954172, 2.99767208, 6.03132582) | |
84 | Part1.Rotation = Vector3.new(-1.63, 1.04999995, -78.7799988) | |
85 | Part1.Color = Color3.new(0.972549, 0.972549, 0.972549) | |
86 | Part1.Size = Vector3.new(0.5, 2.5999999, 0.5) | |
87 | Part1.BottomSurface = Enum.SurfaceType.Weld | |
88 | Part1.BrickColor = BrickColor.new("Institutional white") | |
89 | Part1.Material = Enum.Material.Glass | |
90 | Part1.Reflectance = 0.94999998807907 | |
91 | Part1.TopSurface = Enum.SurfaceType.Weld | |
92 | Part1.brickColor = BrickColor.new("Institutional white") | |
93 | CylinderMesh2.Parent = Part1 | |
94 | Weld3.Parent = Part1 | |
95 | Weld4.Parent = Part1 | |
96 | Weld5.Parent = Part1 | |
97 | Weld6.Parent = Part1 | |
98 | Weld6.C0 = CFrame.new(0, 0, 0, -0.999999881, -1.24275684e-05, -0.000380992889, 0.0003708601, 0.200949788, -0.979601383, 8.893013e-05, -0.979601443, -0.200949907) | |
99 | Weld6.C1 = CFrame.new(-9.53674316e-07, 3.30000114, 0, 8.893013e-05, -0.979601443, -0.200949907, -0.0003708601, -0.200949788, 0.979601383, -0.999999881, -1.24275684e-05, -0.000380992889) | |
100 | Weld7.Parent = Part1 | |
101 | Weld7.C0 = CFrame.new(0, 0, 0, -0.999999762, -1.22633537e-05, -0.0003808201, 0.000370996248, 0.200949624, -0.979601204, 8.91257441e-05, -0.979601324, -0.200950012) | |
102 | Weld7.C1 = CFrame.new(0, 0, 0, -0.999999762, -1.22633537e-05, -0.0003808201, 0.000370996248, 0.200949624, -0.979601204, 8.91257441e-05, -0.979601324, -0.200950012) | |
103 | Weld8.Parent = Part1 | |
104 | Weld8.C0 = CFrame.new(0, 0, 0, 0.999999523, -0.000142265097, -0.00064931839, 0.000664706109, 0.215008557, 0.976611495, 7.98160443e-07, -0.976611793, 0.215008661) | |
105 | Weld8.C1 = CFrame.new(0, 0, 0, 0.999999523, -0.000142265097, -0.00064931839, 0.000664706109, 0.215008557, 0.976611495, 7.98160443e-07, -0.976611793, 0.215008661) | |
106 | Weld8.Part0 = Part1 | |
107 | Weld8.Part1 = Part1 | |
108 | Weld8.part1 = Part1 | |
109 | Weld9.Parent = Part1 | |
110 | Weld9.C0 = CFrame.new(0, 0, 0, 0.999999523, -0.00014049295, -0.00064556743, 0.000660824939, 0.215039328, 0.976604939, 1.8952361e-06, -0.976605058, 0.215039358) | |
111 | Weld9.C1 = CFrame.new(0, 0, 0, 0.999999523, -0.00014049295, -0.00064556743, 0.000660824939, 0.215039328, 0.976604939, 1.8952361e-06, -0.976605058, 0.215039358) | |
112 | Weld9.Part0 = Part1 | |
113 | Weld9.Part1 = Part1 | |
114 | Weld9.part1 = Part1 | |
115 | Weld10.Parent = Part1 | |
116 | Weld10.C0 = CFrame.new(0, 0, 0, 0.752205431, -5.51444029e-15, -0.658928692, -0.465349585, -0.707991004, -0.531223595, -0.466515601, 0.706221461, -0.532554686) | |
117 | Weld10.C1 = CFrame.new(0, 0, 0, 0.752205431, -5.51444029e-15, -0.658928692, -0.465349585, -0.707991004, -0.531223595, -0.466515601, 0.706221461, -0.532554686) | |
118 | Weld10.Part0 = Part1 | |
119 | Weld10.Part1 = Part1 | |
120 | Weld10.part1 = Part1 | |
121 | Weld11.Parent = Part1 | |
122 | Weld11.C0 = CFrame.new(0, 0, 0, 0.70471108, -0.150702611, -0.693303585, 0.290500641, 0.952803493, 0.0881705657, 0.647294879, -0.26353994, 0.715230346) | |
123 | Weld11.C1 = CFrame.new(0, 0, 0, 0.70471108, -0.150702611, -0.693303585, 0.290500641, 0.952803493, 0.0881705657, 0.647294879, -0.26353994, 0.715230346) | |
124 | Weld11.Part0 = Part1 | |
125 | Weld11.Part1 = Part1 | |
126 | Weld11.part1 = Part1 | |
127 | Weld12.Parent = Part1 | |
128 | Weld12.C0 = CFrame.new(0, 0, 0, -0.842987537, -5.51444029e-15, 0.537932456, 0.537832022, -0.019321369, 0.842830181, 0.0103935916, 0.999813318, 0.0162876733) | |
129 | Weld12.C1 = CFrame.new(0, 0, 0, -0.842987537, -5.51444029e-15, 0.537932456, 0.537832022, -0.019321369, 0.842830181, 0.0103935916, 0.999813318, 0.0162876733) | |
130 | Weld12.Part0 = Part1 | |
131 | Weld12.Part1 = Part1 | |
132 | Weld12.part1 = Part1 | |
133 | Weld13.Parent = Part1 | |
134 | Weld13.C0 = CFrame.new(0, 0, 0, -0.870282292, -0.128244698, -0.475551277, 0.0498076938, 0.937638283, -0.344009846, 0.490014791, -0.323073894, -0.809629023) | |
135 | Weld13.C1 = CFrame.new(0, 0, 0, -0.870282292, -0.128244698, -0.475551277, 0.0498076938, 0.937638283, -0.344009846, 0.490014791, -0.323073894, -0.809629023) | |
136 | Weld13.Part0 = Part1 | |
137 | Weld13.Part1 = Part1 | |
138 | Weld13.part1 = Part1 | |
139 | Weld14.Parent = Part1 | |
140 | Weld14.C0 = CFrame.new(0, 0, 0, -0.553237438, 7.36645522e-10, -0.833023548, -0.831115842, 0.0676385239, 0.551970482, 0.056344483, 0.99770987, -0.0374201648) | |
141 | Weld14.C1 = CFrame.new(0, 0, 0, -0.553237438, 7.36645522e-10, -0.833023548, -0.831115842, 0.0676385239, 0.551970482, 0.056344483, 0.99770987, -0.0374201648) | |
142 | Weld14.Part0 = Part1 | |
143 | Weld14.Part1 = Part1 | |
144 | Weld14.part1 = Part1 | |
145 | Weld15.Parent = Part1 | |
146 | Weld15.C0 = CFrame.new(0, 0, 0, -0.0249426812, -0.150701895, -0.988259315, 0.262834162, 0.952799797, -0.151928559, 0.964514494, -0.263539225, 0.0158432014) | |
147 | Weld15.C1 = CFrame.new(0, 0, 0, -0.0249426812, -0.150701895, -0.988259315, 0.262834162, 0.952799797, -0.151928559, 0.964514494, -0.263539225, 0.0158432014) | |
148 | Weld15.Part0 = Part1 | |
149 | Weld15.Part1 = Part1 | |
150 | Weld15.part1 = Part1 | |
151 | Weld16.Parent = Part1 | |
152 | Weld16.C0 = CFrame.new(0, 0, 0, 0.991470098, 2.85874044e-21, 0.130334213, 0.114126742, -0.482952029, -0.868177652, 0.0629451722, 0.87564683, -0.478832483) | |
153 | Weld16.C1 = CFrame.new(0, 0, 0, 0.991470098, 2.85874044e-21, 0.130334213, 0.114126742, -0.482952029, -0.868177652, 0.0629451722, 0.87564683, -0.478832483) | |
154 | Weld16.Part0 = Part1 | |
155 | Weld16.Part1 = Part1 | |
156 | Weld16.part1 = Part1 | |
157 | Weld17.Parent = Part1 | |
158 | Weld17.C0 = CFrame.new(0, 0, 0, 0.459316671, -0.128245711, -0.878965735, 0.344876677, 0.937643409, 0.0434133075, 0.81858927, -0.323075503, 0.474904418) | |
159 | Weld17.C1 = CFrame.new(0, 0, 0, 0.459316671, -0.128245711, -0.878965735, 0.344876677, 0.937643409, 0.0434133075, 0.81858927, -0.323075503, 0.474904418) | |
160 | Weld17.Part0 = Part1 | |
161 | Weld17.Part1 = Part1 | |
162 | Weld17.part1 = Part1 | |
163 | Weld18.Parent = Part1 | |
164 | Weld18.C0 = CFrame.new(0, 0, 0, 0.516071022, -0.0010327138, -0.85654521, -0.851224661, -0.111911885, -0.51273036, -0.0953281, 0.993717551, -0.0586335398) | |
165 | Weld18.C1 = CFrame.new(0, 0, 0, 0.516071022, -0.0010327138, -0.85654521, -0.851224661, -0.111911885, -0.51273036, -0.0953281, 0.993717551, -0.0586335398) | |
166 | Weld18.Part0 = Part1 | |
167 | Weld18.Part1 = Part1 | |
168 | Weld18.part1 = Part1 | |
169 | Weld19.Parent = Part1 | |
170 | Weld19.C0 = CFrame.new(0, 0, 0, -0.713529348, -0.12824361, 0.688788295, -0.313495487, 0.937639356, -0.150179788, -0.62657541, -0.323089689, -0.709237218) | |
171 | Weld19.C1 = CFrame.new(0, 0, 0, -0.713529348, -0.12824361, 0.688788295, -0.313495487, 0.937639356, -0.150179788, -0.62657541, -0.323089689, -0.709237218) | |
172 | Weld19.Part0 = Part1 | |
173 | Weld19.Part1 = Part1 | |
174 | Weld19.part1 = Part1 | |
175 | Weld20.Parent = Part1 | |
176 | Weld20.C0 = CFrame.new(0, 0, 0, 0.929042637, -0.150776386, -0.3378416, 0.227668524, 0.95279938, 0.200847849, 0.291613966, -0.263511926, 0.919524848) | |
177 | Weld20.C1 = CFrame.new(0, 0, 0, 0.929042637, -0.150776386, -0.3378416, 0.227668524, 0.95279938, 0.200847849, 0.291613966, -0.263511926, 0.919524848) | |
178 | Weld20.Part0 = Part1 | |
179 | Weld20.Part1 = Part1 | |
180 | Weld20.part1 = Part1 | |
181 | Weld21.Parent = Part1 | |
182 | Weld21.C0 = CFrame.new(0, 0, 0, -0.966982245, -0.00313005224, 0.254823595, 0.242650583, 0.294274956, 0.924403906, -0.0778816342, 0.955715716, -0.283799201) | |
183 | Weld21.C1 = CFrame.new(0, 0, 0, -0.966982245, -0.00313005224, 0.254823595, 0.242650583, 0.294274956, 0.924403906, -0.0778816342, 0.955715716, -0.283799201) | |
184 | Weld21.Part0 = Part1 | |
185 | Weld21.Part1 = Part1 | |
186 | Weld21.part1 = Part1 | |
187 | Weld22.Parent = Part1 | |
188 | Weld22.C0 = CFrame.new(0, 0, 0, -0.240235105, -0.128197134, -0.962209523, 0.28672418, 0.937642395, -0.196510151, 0.927404583, -0.323097885, -0.188497886) | |
189 | Weld22.C1 = CFrame.new(0, 0, 0, -0.240235105, -0.128197134, -0.962209523, 0.28672418, 0.937642395, -0.196510151, 0.927404583, -0.323097885, -0.188497886) | |
190 | Weld22.Part0 = Part1 | |
191 | Weld22.Part1 = Part1 | |
192 | Weld22.part1 = Part1 | |
193 | Weld23.Parent = Part1 | |
194 | Weld23.C0 = CFrame.new(0, 0, 0, 0.965081573, -5.63156063e-05, -0.261949003, -0.211083904, 0.591992557, -0.777809858, 0.155115649, 0.805943429, 0.571309149) | |
195 | Weld23.C1 = CFrame.new(0, 0, 0, 0.965081573, -5.63156063e-05, -0.261949003, -0.211083904, 0.591992557, -0.777809858, 0.155115649, 0.805943429, 0.571309149) | |
196 | Weld23.Part0 = Part1 | |
197 | Weld23.Part1 = Part1 | |
198 | Weld23.part1 = Part1 | |
199 | Weld24.Parent = Part1 | |
200 | Weld24.C0 = CFrame.new(0, 0, 0, -0.688556969, -0.150702283, -0.709348381, 0.0901177749, 0.952802181, -0.289901465, 0.719558001, -0.263540208, -0.642478049) | |
201 | Weld24.C1 = CFrame.new(0, 0, 0, -0.688556969, -0.150702283, -0.709348381, 0.0901177749, 0.952802181, -0.289901465, 0.719558001, -0.263540208, -0.642478049) | |
202 | Weld24.Part0 = Part1 | |
203 | Weld24.Part1 = Part1 | |
204 | Weld24.part1 = Part1 | |
205 | Weld25.Parent = Part1 | |
206 | Weld25.C0 = CFrame.new(0, 0, 0, 0.994675398, -5.63156063e-05, 0.103054799, 0.102880031, -0.0576739162, -0.993020058, 0.00599949667, 0.998335481, -0.0573610328) | |
207 | Weld25.C1 = CFrame.new(0, 0, 0, 0.994675398, -5.63156063e-05, 0.103054799, 0.102880031, -0.0576739162, -0.993020058, 0.00599949667, 0.998335481, -0.0573610328) | |
208 | Weld25.Part0 = Part1 | |
209 | Weld25.Part1 = Part1 | |
210 | Weld25.part1 = Part1 | |
211 | Weld26.Parent = Part1 | |
212 | Weld26.C0 = CFrame.new(0, 0, 0, 0.48199439, -0.128541723, 0.86668539, -0.225274205, 0.937743068, 0.264362335, -0.846720159, -0.322663724, 0.42303434) | |
213 | Weld26.C1 = CFrame.new(0, 0, 0, 0.48199439, -0.128541723, 0.86668539, -0.225274205, 0.937743068, 0.264362335, -0.846720159, -0.322663724, 0.42303434) | |
214 | Weld26.Part0 = Part1 | |
215 | Weld26.Part1 = Part1 | |
216 | Weld26.part1 = Part1 | |
217 | Weld27.Parent = Part1 | |
218 | Weld27.C0 = CFrame.new(0, 0, 0, -1, -9.16439603e-07, -2.08621458e-07, -1.05799984e-06, 0.999999702, -4.63430752e-06, 1.78819207e-07, -4.65665835e-06, -0.999999642) | |
219 | Weld27.C1 = CFrame.new(0, 0, 0, -1, -9.16439603e-07, -2.08621458e-07, -1.05799984e-06, 0.999999702, -4.63430752e-06, 1.78819207e-07, -4.65665835e-06, -0.999999642) | |
220 | Weld27.Part0 = Part1 | |
221 | Weld27.Part1 = Part1 | |
222 | Weld27.part1 = Part1 | |
223 | Weld28.Parent = Part1 | |
224 | Weld28.C0 = CFrame.new(0, 0, 0, 0.122463442, -6.72849634e-14, -0.992472768, -0.750495553, -0.65435493, -0.09260533, -0.64942944, 0.756187558, -0.0801345557) | |
225 | Weld28.C1 = CFrame.new(0, 0, 0, 0.122463442, -6.72849634e-14, -0.992472768, -0.750495553, -0.65435493, -0.09260533, -0.64942944, 0.756187558, -0.0801345557) | |
226 | Weld28.Part0 = Part1 | |
227 | Weld28.Part1 = Part1 | |
228 | Weld28.part1 = Part1 | |
229 | Weld29.Parent = Part1 | |
230 | Weld29.C0 = CFrame.new(0, 0, 0, 0.50846529, -0.128244445, 0.851471186, -0.217522249, 0.937637031, 0.271119595, -0.833144724, -0.323074967, 0.448862255) | |
231 | Weld29.C1 = CFrame.new(0, 0, 0, 0.50846529, -0.128244445, 0.851471186, -0.217522249, 0.937637031, 0.271119595, -0.833144724, -0.323074967, 0.448862255) | |
232 | Weld29.Part0 = Part1 | |
233 | Weld29.Part1 = Part1 | |
234 | Weld29.part1 = Part1 | |
235 | Weld30.Parent = Part1 | |
236 | Weld30.C0 = CFrame.new(0, 0, 0, -0.313147873, -6.72849634e-14, -0.949703932, -0.949227989, 0.0316552818, 0.312990934, 0.0300631449, 0.999498844, -0.00991278421) | |
237 | Weld30.C1 = CFrame.new(0, 0, 0, -0.313147873, -6.72849634e-14, -0.949703932, -0.949227989, 0.0316552818, 0.312990934, 0.0300631449, 0.999498844, -0.00991278421) | |
238 | Weld30.Part0 = Part1 | |
239 | Weld30.Part1 = Part1 | |
240 | Weld30.part1 = Part1 | |
241 | Weld31.Parent = Part1 | |
242 | Weld31.C0 = CFrame.new(0, 0, 0, 0.987303436, -0.127751395, 0.0944037437, 0.0892672911, 0.937803686, 0.335493565, -0.131391913, -0.322806656, 0.937300324) | |
243 | Weld31.C1 = CFrame.new(0, 0, 0, 0.987303436, -0.127751395, 0.0944037437, 0.0892672911, 0.937803686, 0.335493565, -0.131391913, -0.322806656, 0.937300324) | |
244 | Weld31.Part0 = Part1 | |
245 | Weld31.Part1 = Part1 | |
246 | Weld31.part1 = Part1 | |
247 | Weld32.Parent = Part1 | |
248 | Weld32.C0 = CFrame.new(0, 0, 0, 0.0537644625, -3.58815279e-21, 0.998553693, 0.997179091, 0.0524527207, -0.0536904521, -0.0523768589, 0.998623431, 0.00282009225) | |
249 | Weld32.C1 = CFrame.new(0, 0, 0, 0.0537644625, -3.58815279e-21, 0.998553693, 0.997179091, 0.0524527207, -0.0536904521, -0.0523768589, 0.998623431, 0.00282009225) | |
250 | Weld32.Part0 = Part1 | |
251 | Weld32.Part1 = Part1 | |
252 | Weld32.part1 = Part1 | |
253 | Weld33.Parent = Part1 | |
254 | Weld33.C0 = CFrame.new(0, 0, 0, 0.922180414, -0.150200352, -0.356407404, 0.231043026, 0.952955544, 0.196204871, 0.310169339, -0.263281167, 0.913497329) | |
255 | Weld33.C1 = CFrame.new(0, 0, 0, 0.922180414, -0.150200352, -0.356407404, 0.231043026, 0.952955544, 0.196204871, 0.310169339, -0.263281167, 0.913497329) | |
256 | Weld33.Part0 = Part1 | |
257 | Weld33.Part1 = Part1 | |
258 | Weld33.part1 = Part1 | |
259 | Weld34.Parent = Part1 | |
260 | Weld34.C0 = CFrame.new(0, 0, 0, 0.996542811, 0.000583756715, 0.0830801949, 0.0827328414, -0.0985891521, -0.991683245, 0.00761190802, 0.995128036, -0.0982966051) | |
261 | Weld34.C1 = CFrame.new(0, 0, 0, 0.996542811, 0.000583756715, 0.0830801949, 0.0827328414, -0.0985891521, -0.991683245, 0.00761190802, 0.995128036, -0.0982966051) | |
262 | Weld34.Part0 = Part1 | |
263 | Weld34.Part1 = Part1 | |
264 | Weld34.part1 = Part1 | |
265 | Weld35.Parent = Part1 | |
266 | Weld35.C0 = CFrame.new(0, 0, 0, 0.92218399, -0.150200546, -0.356408864, 0.231043652, 0.952956975, 0.196204945, 0.310168862, -0.263281077, 0.913496792) | |
267 | Weld35.C1 = CFrame.new(0, 0, 0, 0.92218399, -0.150200546, -0.356408864, 0.231043652, 0.952956975, 0.196204945, 0.310168862, -0.263281077, 0.913496792) | |
268 | Weld35.Part0 = Part1 | |
269 | Weld35.Part1 = Part1 | |
270 | Weld35.part1 = Part1 | |
271 | Weld36.Parent = Part1 | |
272 | Weld36.C0 = CFrame.new(0, 0, 0, 0.996542811, 0.000583756715, 0.0830801949, 0.0826915875, 0.0898927525, -0.992512763, -0.00804769527, 0.995951235, 0.089533709) | |
273 | Weld36.C1 = CFrame.new(0, 0, 0, 0.996542811, 0.000583756715, 0.0830801949, 0.0826915875, 0.0898927525, -0.992512763, -0.00804769527, 0.995951235, 0.089533709) | |
274 | Weld36.Part0 = Part1 | |
275 | Weld36.Part1 = Part1 | |
276 | Weld36.part1 = Part1 | |
277 | Weld37.Parent = Part1 | |
278 | Weld37.C0 = CFrame.new(0, 0, 0, -0.382317334, -0.128247723, 0.915087938, -0.347330838, 0.937642574, -0.0137036704, -0.856267989, -0.32307741, -0.403021365) | |
279 | Weld37.C1 = CFrame.new(0, 0, 0, -0.382317334, -0.128247723, 0.915087938, -0.347330838, 0.937642574, -0.0137036704, -0.856267989, -0.32307741, -0.403021365) | |
280 | Weld37.Part0 = Part1 | |
281 | Weld37.Part1 = Part1 | |
282 | Weld37.part1 = Part1 | |
283 | Weld38.Parent = Part1 | |
284 | Weld38.C0 = CFrame.new(0, 0, 0, 0.922370017, -1.29843227e-17, -0.386308849, -0.38454929, 0.09533526, -0.918168783, 0.0368288532, 0.995445192, 0.0879343823) | |
285 | Weld38.C1 = CFrame.new(0, 0, 0, 0.922370017, -1.29843227e-17, -0.386308849, -0.38454929, 0.09533526, -0.918168783, 0.0368288532, 0.995445192, 0.0879343823) | |
286 | Weld38.Part0 = Part1 | |
287 | Weld38.Part1 = Part1 | |
288 | Weld38.part1 = Part1 | |
289 | Weld39.Parent = Part1 | |
290 | Weld39.C0 = CFrame.new(0, 0, 0, 0.879658401, -0.128245458, -0.457982033, 0.257983625, 0.937640786, 0.232955605, 0.399549246, -0.323075324, 0.857893229) | |
291 | Weld39.C1 = CFrame.new(0, 0, 0, 0.879658401, -0.128245458, -0.457982033, 0.257983625, 0.937640786, 0.232955605, 0.399549246, -0.323075324, 0.857893229) | |
292 | Weld39.Part0 = Part1 | |
293 | Weld39.Part1 = Part1 | |
294 | Weld39.part1 = Part1 | |
295 | Weld40.Parent = Part1 | |
296 | Weld40.C0 = CFrame.new(0, 0, 0, -0.0279777497, -1.29843227e-17, 0.999607921, 0.9995386, 0.0117725078, 0.0279758107, -0.0117678922, 0.99993068, -0.000329368282) | |
297 | Weld40.C1 = CFrame.new(0, 0, 0, -0.0279777497, -1.29843227e-17, 0.999607921, 0.9995386, 0.0117725078, 0.0279758107, -0.0117678922, 0.99993068, -0.000329368282) | |
298 | Weld40.Part0 = Part1 | |
299 | Weld40.Part1 = Part1 | |
300 | Weld40.part1 = Part1 | |
301 | Weld41.Parent = Part1 | |
302 | Weld41.C0 = CFrame.new(0, 0, 0, -0.968318343, -0.128244177, 0.214273423, -0.18876937, 0.937642515, -0.291877806, -0.163480252, -0.323078841, -0.93214494) | |
303 | Weld41.C1 = CFrame.new(0, 0, 0, -0.968318343, -0.128244177, 0.214273423, -0.18876937, 0.937642515, -0.291877806, -0.163480252, -0.323078841, -0.93214494) | |
304 | Weld41.Part0 = Part1 | |
305 | Weld41.Part1 = Part1 | |
306 | Weld41.part1 = Part1 | |
307 | Weld42.Parent = Part1 | |
308 | Weld42.C0 = CFrame.new(0, 0, 0, -0.845244288, -1.29843227e-17, 0.534377515, 0.534365952, -0.00658070296, 0.84522599, 0.00351657975, 0.999978364, 0.00556230173) | |
309 | Weld42.C1 = CFrame.new(0, 0, 0, -0.845244288, -1.29843227e-17, 0.534377515, 0.534365952, -0.00658070296, 0.84522599, 0.00351657975, 0.999978364, 0.00556230173) | |
310 | Weld42.Part0 = Part1 | |
311 | Weld42.Part1 = Part1 | |
312 | Weld42.part1 = Part1 | |
313 | Weld43.Parent = Part1 | |
314 | Weld43.C0 = CFrame.new(0, 0, 0, 0.949886441, -0.150703162, -0.273888409, 0.213422433, 0.952806592, 0.215911031, 0.228422701, -0.263541877, 0.937215149) | |
315 | Weld43.C1 = CFrame.new(0, 0, 0, 0.949886441, -0.150703162, -0.273888409, 0.213422433, 0.952806592, 0.215911031, 0.228422701, -0.263541877, 0.937215149) | |
316 | Weld43.Part0 = Part1 | |
317 | Weld43.Part1 = Part1 | |
318 | Weld43.part1 = Part1 | |
319 | Weld44.Parent = Part1 | |
320 | Weld44.C0 = CFrame.new(0, 0, 0, 0.972093463, -7.87255146e-07, 0.234601244, 0.234507605, -0.0282484554, -0.971705556, 0.00662788795, 0.999600947, -0.027459953) | |
321 | Weld44.C1 = CFrame.new(0, 0, 0, 0.972093463, -7.87255146e-07, 0.234601244, 0.234507605, -0.0282484554, -0.971705556, 0.00662788795, 0.999600947, -0.027459953) | |
322 | Weld44.Part0 = Part1 | |
323 | Weld44.Part1 = Part1 | |
324 | Weld44.part1 = Part1 | |
325 | BoolValue45.Name = "MouseClick" | |
326 | BoolValue45.Parent = Tool0 | |
327 | BoolValue45.Value = true | |
328 | Script46.Name = "Welding" | |
329 | Script46.Parent = Tool0 | |
330 | table.insert(cors,sandbox(Script46,function() | |
331 | function Weld(x,y) | |
332 | local W = Instance.new("Weld") | |
333 | W.Part0 = x | |
334 | W.Part1 = y | |
335 | local CJ = CFrame.new(x.Position) | |
336 | local C0 = x.CFrame:inverse()*CJ | |
337 | local C1 = y.CFrame:inverse()*CJ | |
338 | W.C0 = C0 | |
339 | W.C1 = C1 | |
340 | W.Parent = x | |
341 | end | |
342 | ||
343 | function Get(A) | |
344 | if A.className == "Part" then | |
345 | Weld(script.Parent.Handle, A) | |
346 | A.Anchored = false | |
347 | else | |
348 | local C = A:GetChildren() | |
349 | for i=1, #C do | |
350 | Get(C[i]) | |
351 | end | |
352 | end | |
353 | end | |
354 | ||
355 | function Finale() | |
356 | Get(script.Parent) | |
357 | end | |
358 | ||
359 | script.Parent.Equipped:connect(Finale) | |
360 | script.Parent.Unequipped:connect(Finale) | |
361 | Finale() | |
362 | end)) | |
363 | Script47.Name = "_Main" | |
364 | Script47.Parent = Tool0 | |
365 | table.insert(cors,sandbox(Script47,function() | |
366 | --player | |
367 | player = nil | |
368 | --save shoulders | |
369 | RSH, LSH = nil, nil | |
370 | --grip | |
371 | GRP = nil | |
372 | --welds | |
373 | RW, LW = Instance.new("Weld"), Instance.new("Weld") | |
374 | --what anim | |
375 | anim = "none" | |
376 | ||
377 | --onselected, save shoulders and get player | |
378 | script.Parent.Equipped:connect(function() | |
379 | player = game.Players:playerFromCharacter(script.Parent.Parent) | |
380 | local ch = script.Parent.Parent | |
381 | RSH = ch.Torso["Right Shoulder"] | |
382 | LSH = ch.Torso["Left Shoulder"] | |
383 | GRP = ch["Right Arm"].RightGrip | |
384 | -- | |
385 | RSH.Parent = nil | |
386 | LSH.Parent = nil | |
387 | -- | |
388 | RW.Part0 = ch.Torso | |
389 | RW.C0 = CFrame.new(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) | |
390 | RW.C1 = CFrame.new(0, 0.5, 0) | |
391 | RW.Part1 = ch["Right Arm"] | |
392 | RW.Parent = ch.Torso | |
393 | _G.R = RW | |
394 | -- | |
395 | LW.Part0 = ch.Torso | |
396 | LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) | |
397 | LW.C1 = CFrame.new(0, 0.5, 0) | |
398 | LW.Part1 = ch["Left Arm"] | |
399 | LW.Parent = ch.Torso | |
400 | _G.L = LW | |
401 | -- | |
402 | GRP.C0 = CFrame.new(0, -1, 0) * CFrame.fromEulerAnglesXYZ(-1, 0, 0) | |
403 | --Bring_Arm_Up animation | |
404 | for i = 0, 1, 0.05 do | |
405 | wait() | |
406 | RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1.3*i, 0, -0.5*i) | |
407 | LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1.7*i, 0, 0.8*i) | |
408 | LW.C1 = CFrame.new(-0.3*i, 0.5+1.2*i, 0) | |
409 | end | |
410 | end) | |
411 | ||
412 | --griptcf = CFrame.new(0, -1, 0) * CFrame.fromEulerAnglesXYZ(-math.pi/2+0.5, 0, 0) | |
413 | ||
414 | script.Parent.Unequipped:connect(function() | |
415 | --Bring_Arm_Down animation | |
416 | for i = 1, 0, -0.05 do | |
417 | wait() | |
418 | RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1.3*i, 0, -0.5*i) | |
419 | LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1.7*i, 0, 0.8*i) | |
420 | LW.C1 = CFrame.new(-0.3*i, 0.5+1.2*i, 0) | |
421 | end | |
422 | RW.Parent = nil | |
423 | LW.Parent = nil | |
424 | RSH.Parent = player.Character.Torso | |
425 | LSH.Parent = player.Character.Torso | |
426 | end) | |
427 | ||
428 | function HomeRunHit(part) | |
429 | local h = (part.Parent or game):FindFirstChild("Humanoid") --or findfirstchild optimization | |
430 | if h then | |
431 | h.Sit = true | |
432 | wait() | |
433 | h.Jump = true | |
434 | h.Parent.Torso.Velocity = (CFrame.new(script.Parent.Handle.Position, h.Parent.Torso.Position).lookVector * 100) + Vector3.new(0, 30, 0) | |
435 | h.Parent.Torso.RotVelocity = Vector3.new(math.random(-100, 100), math.random(-100, 100), math.random(-100, 100)) | |
436 | end | |
437 | end | |
438 | ||
439 | function HomeRun() | |
440 | for i = 0, 1, 0.1 do | |
441 | if anim ~= "homerun" then return end | |
442 | wait() | |
443 | RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1.3+1.2*i, -0.5*i, -0.5+i) | |
444 | --R.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(2.5, -0.5, 0.5) | |
445 | LW.C0 = CFrame.new(-1.5+0.5*i, 0.5, -0.5*i) * CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) | |
446 | --L.C0 = CFrame.new(-1.0, 0.5, -0.5) * CFrame.fromEulerAnglesXYZ(1.7, 0, 1) | |
447 | end | |
448 | --start homerunhit connection-- | |
449 | local con = script.Parent.Handle.Touched:connect(HomeRunHit) | |
450 | ---------------------------------------- | |
451 | for i = 0, 1, 0.2 do | |
452 | wait() | |
453 | RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(2.5, -0.5-1.7*i, 0.5+0.5*i) | |
454 | --R.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(2.5, -2.2, 1) | |
455 | LW.C0 = CFrame.new(-1-0.5*i, 0.5, -0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8-1.2*i) | |
456 | LW.C1 = CFrame.new(0, 0.5-i, 0) | |
457 | GRP.C0 = CFrame.new(0, -1, 0) * CFrame.fromEulerAnglesXYZ(-1-2*i, 0, 0) | |
458 | end | |
459 | for i = 0, 1, 0.2 do | |
460 | wait() | |
461 | RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(2.5, -2.2-0.6*i, 1) | |
462 | end | |
463 | wait(0.1) | |
464 | ----end homerun connection--- | |
465 | con:disconnect() | |
466 | -------------------------------------- | |
467 | for i = 0, 1, 0.1 do | |
468 | wait() | |
469 | RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(2.5-1.2*i, -2.8+2.8*i, 1-1.5*i) | |
470 | --RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) | |
471 | LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1.7, 0, -0.4+1.2*i) | |
472 | LW.C1 = CFrame.new(0, -0.5+i*2, 0) | |
473 | --LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) | |
474 | GRP.C0 = CFrame.new(0, -1, 0) * CFrame.fromEulerAnglesXYZ(-3+2*i, 0, 0) | |
475 | end | |
476 | end | |
477 | ||
478 | function Whack() | |
479 | for i = 0, 1, 0.2 do | |
480 | if anim ~= "norm" then return end | |
481 | wait() | |
482 | RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1.3+i, 0, -0.5+0.5*i) | |
483 | LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1.7-0.25*i, 0, 0.8-0.6*i) | |
484 | end | |
485 | for i = 0, 1, 0.25 do | |
486 | if anim ~= "norm" then return end | |
487 | wait() | |
488 | RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(2.3-2.5*i, 0, 0) | |
489 | LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1.45-0.25*i, 0, 0.2) | |
490 | GRP.C0 = CFrame.new(0, -1, 0) * CFrame.fromEulerAnglesXYZ(-1-0.5*i, 0, 0) | |
491 | end | |
492 | --insert camshake and hit nearby people | |
493 | for _, p in pairs(game.Players:GetChildren()) do | |
494 | if p.Character:FindFirstChild("Torso") then | |
495 | if (p.Character.Torso.Position - (script.Parent.Handle.CFrame*CFrame.new(0, -3, 0)).p).magnitude < 10 then | |
496 | if p ~= player then | |
497 | p.Character.Humanoid.Sit = true | |
498 | delay(0.1, function() p.Character.Humanoid.Jump = true end) | |
499 | p.Character.Torso.RotVelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)) | |
500 | end | |
501 | end | |
502 | end | |
503 | end | |
504 | ------ | |
505 | for i = 0, 1, 0.2 do | |
506 | if anim ~= "norm" then return end | |
507 | wait() | |
508 | RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.2+1.5*i, 0, -0.5*i) | |
509 | LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1.2+0.5*i, 0, 0.2+0.6*i) | |
510 | GRP.C0 = CFrame.new(0, -1, 0) * CFrame.fromEulerAnglesXYZ(-1.5+0.5*i, 0, 0) | |
511 | end | |
512 | end | |
513 | ||
514 | local a = false | |
515 | local co = nil | |
516 | --OMGHAX mouseclick | |
517 | local last_click = 0 | |
518 | script.Parent.MouseClick.Changed:connect(function() | |
519 | if time() - last_click < 0.3 then | |
520 | anim = "homerun" | |
521 | last_click = time() | |
522 | HomeRun() | |
523 | else | |
524 | anim = "norm" | |
525 | last_click = time() | |
526 | Whack() | |
527 | end | |
528 | end) | |
529 | ||
530 | end)) | |
531 | LocalScript48.Name = "_EVT" | |
532 | LocalScript48.Parent = Tool0 | |
533 | table.insert(cors,sandbox(LocalScript48,function() | |
534 | script.Parent.Equipped:connect(function(mouse) | |
535 | mouse.Button1Down:connect(function() | |
536 | script.Parent.MouseClick.Value = not script.Parent.MouseClick.Value | |
537 | end) | |
538 | end) | |
539 | end)) | |
540 | Part49.Name = "Handle 2" | |
541 | Part49.Parent = Tool0 | |
542 | Part49.CFrame = CFrame.new(14.6511459, 3.33246565, 5.48939991, 0.018308267, -0.980727077, 0.194504812, 0.0283583738, -0.193948328, -0.980597794, 0.999425232, 0.0234669708, 0.0242665503) | |
543 | Part49.Orientation = Vector3.new(78.6999969, 82.8899994, 171.679993) | |
544 | Part49.Position = Vector3.new(14.6511459, 3.33246565, 5.48939991) | |
545 | Part49.Rotation = Vector3.new(88.5800018, 11.2200003, 88.9300003) | |
546 | Part49.Color = Color3.new(1, 0, 0.74902) | |
547 | Part49.Transparency = 0.60000002384186 | |
548 | Part49.Size = Vector3.new(2, 1, 1) | |
549 | Part49.BottomSurface = Enum.SurfaceType.Smooth | |
550 | Part49.BrickColor = BrickColor.new("Hot pink") | |
551 | Part49.Material = Enum.Material.Neon | |
552 | Part49.Reflectance = 1 | |
553 | Part49.TopSurface = Enum.SurfaceType.Smooth | |
554 | Part49.brickColor = BrickColor.new("Hot pink") | |
555 | Part49.FormFactor = Enum.FormFactor.Symmetric | |
556 | Part49.formFactor = Enum.FormFactor.Symmetric | |
557 | Script50.Parent = Part49 | |
558 | table.insert(cors,sandbox(Script50,function() | |
559 | - | script.Parent.Touched:Connect(function(hit) |
559 | + | |
560 | plr:Kick("You kicked yourself out from the server.") | |
561 | end) | |
562 | ||
563 | end)) | |
564 | Decal51.Parent = Part49 | |
565 | Decal51.Texture = "http://www.roblox.com/asset/?id=142817767" | |
566 | Decal51.Face = Enum.NormalId.Back | |
567 | Decal52.Parent = Part49 | |
568 | Decal52.Texture = "http://www.roblox.com/asset/?id=142817767" | |
569 | Decal53.Parent = Part49 | |
570 | Decal53.Texture = "http://www.roblox.com/asset/?id=142817767" | |
571 | Decal53.Face = Enum.NormalId.Back | |
572 | Decal54.Parent = Part49 | |
573 | Decal54.Texture = "http://www.roblox.com/asset/?id=142817767" | |
574 | Decal55.Parent = Part49 | |
575 | Decal55.Texture = "http://www.roblox.com/asset/?id=142817767" | |
576 | Decal55.Face = Enum.NormalId.Back | |
577 | Decal56.Parent = Part49 | |
578 | Decal56.Texture = "http://www.roblox.com/asset/?id=142817767" | |
579 | Weld57.Parent = Part49 | |
580 | Weld57.C0 = CFrame.new(0, 0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
581 | Weld57.C1 = CFrame.new(1.84774399e-06, 1.2995472, -0.500005245, -6.850317e-05, 1, 1.02692866e-05, -1.59481242e-05, 1.02681943e-05, -1, -1, -6.85033374e-05, 1.59474203e-05) | |
582 | Weld57.Part0 = Part49 | |
583 | Weld57.Part1 = Part1 | |
584 | Weld57.part1 = Part1 | |
585 | Script58.Name = "SwordScript" | |
586 | Script58.Parent = Tool0 | |
587 | table.insert(cors,sandbox(Script58,function() | |
588 | --Rescripted by Luckymaxer | |
589 | --EUROCOW WAS HERE BECAUSE I MADE THE PARTICLES AND THEREFORE THIS ENTIRE SWORD PRETTY AND LOOK PRETTY WORDS AND I'D LIKE TO DEDICATE THIS TO MY FRIENDS AND HI LUCKYMAXER PLS FIX SFOTH SWORDS TY LOVE Y'ALl | |
590 | --Updated for R15 avatars by StarWars | |
591 | --Re-updated by TakeoHonorable | |
592 | ||
593 | Tool = script.Parent | |
594 | Handle = Tool:WaitForChild("Handle") | |
595 | ||
596 | function Create(ty) | |
597 | return function(data) | |
598 | local obj = Instance.new(ty) | |
599 | for k, v in pairs(data) do | |
600 | if type(k) == 'number' then | |
601 | v.Parent = obj | |
602 | else | |
603 | obj[k] = v | |
604 | end | |
605 | end | |
606 | return obj | |
607 | end | |
608 | end | |
609 | ||
610 | local BaseUrl = "rbxassetid://" | |
611 | ||
612 | Players = game:GetService("Players") | |
613 | Debris = game:GetService("Debris") | |
614 | RunService = game:GetService("RunService") | |
615 | ||
616 | DamageValues = { | |
617 | BaseDamage = 5, | |
618 | SlashDamage = 10, | |
619 | LungeDamage = 30 | |
620 | } | |
621 | ||
622 | --For R15 avatars | |
623 | Animations = { | |
624 | R15Slash = 522635514, | |
625 | R15Lunge = 522638767 | |
626 | } | |
627 | ||
628 | Damage = DamageValues.BaseDamage | |
629 | ||
630 | Grips = { | |
631 | Up = CFrame.new(0, 0, -1.70000005, 0, 0, 1, 1, 0, 0, 0, 1, 0), | |
632 | Out = CFrame.new(0, 0, -1.70000005, 0, 1, 0, 1, -0, 0, 0, 0, -1) | |
633 | } | |
634 | ||
635 | Sounds = { | |
636 | Slash = Handle:WaitForChild("SwordSlash"), | |
637 | Lunge = Handle:WaitForChild("SwordLunge"), | |
638 | Unsheath = Handle:WaitForChild("Unsheath") | |
639 | } | |
640 | ||
641 | ToolEquipped = false | |
642 | ||
643 | --For Omega Rainbow Katana thumbnail to display a lot of particles. | |
644 | for i, v in pairs(Handle:GetChildren()) do | |
645 | if v:IsA("ParticleEmitter") then | |
646 | v.Rate = 20 | |
647 | end | |
648 | end | |
649 | ||
650 | Tool.Grip = Grips.Up | |
651 | Tool.Enabled = true | |
652 | ||
653 | function IsTeamMate(Player1, Player2) | |
654 | return (Player1 and Player2 and not Player1.Neutral and not Player2.Neutral and Player1.TeamColor == Player2.TeamColor) | |
655 | end | |
656 | ||
657 | function TagHumanoid(humanoid, player) | |
658 | local Creator_Tag = Instance.new("ObjectValue") | |
659 | Creator_Tag.Name = "creator" | |
660 | Creator_Tag.Value = player | |
661 | Debris:AddItem(Creator_Tag, 2) | |
662 | Creator_Tag.Parent = humanoid | |
663 | end | |
664 | ||
665 | function UntagHumanoid(humanoid) | |
666 | for i, v in pairs(humanoid:GetChildren()) do | |
667 | if v:IsA("ObjectValue") and v.Name == "creator" then | |
668 | v:Destroy() | |
669 | end | |
670 | end | |
671 | end | |
672 | ||
673 | function Blow(Hit) | |
674 | if not Hit or not Hit.Parent or not CheckIfAlive() or not ToolEquipped then | |
675 | return | |
676 | end | |
677 | local RightArm = Character:FindFirstChild("Right Arm") or Character:FindFirstChild("RightHand") | |
678 | if not RightArm then | |
679 | return | |
680 | end | |
681 | local RightGrip = RightArm:FindFirstChild("RightGrip") | |
682 | if not RightGrip or (RightGrip.Part0 ~= Handle and RightGrip.Part1 ~= Handle) then | |
683 | return | |
684 | end | |
685 | local character = Hit.Parent | |
686 | if character == Character then | |
687 | return | |
688 | end | |
689 | local humanoid = character:FindFirstChildOfClass("Humanoid") | |
690 | if not humanoid or humanoid.Health == 0 then | |
691 | return | |
692 | end | |
693 | local player = Players:GetPlayerFromCharacter(character) | |
694 | if player and (player == Player or IsTeamMate(Player, player)) then | |
695 | return | |
696 | end | |
697 | UntagHumanoid(humanoid) | |
698 | TagHumanoid(humanoid, Player) | |
699 | humanoid:TakeDamage(Damage) | |
700 | end | |
701 | ||
702 | ||
703 | function Attack() | |
704 | Damage = DamageValues.SlashDamage | |
705 | Sounds.Slash:Play() | |
706 | ||
707 | if Humanoid then | |
708 | if Humanoid.RigType == Enum.HumanoidRigType.R6 then | |
709 | local Anim = Instance.new("StringValue") | |
710 | Anim.Name = "toolanim" | |
711 | Anim.Value = "Slash" | |
712 | Anim.Parent = Tool | |
713 | elseif Humanoid.RigType == Enum.HumanoidRigType.R15 then | |
714 | local Anim = Tool:FindFirstChild("R15Slash") | |
715 | if Anim then | |
716 | local Track = Humanoid:LoadAnimation(Anim) | |
717 | Track:Play(0) | |
718 | end | |
719 | end | |
720 | end | |
721 | end | |
722 | ||
723 | function Lunge() | |
724 | Damage = DamageValues.LungeDamage | |
725 | ||
726 | Sounds.Lunge:Play() | |
727 | ||
728 | if Humanoid then | |
729 | if Humanoid.RigType == Enum.HumanoidRigType.R6 then | |
730 | local Anim = Instance.new("StringValue") | |
731 | Anim.Name = "toolanim" | |
732 | Anim.Value = "Lunge" | |
733 | Anim.Parent = Tool | |
734 | elseif Humanoid.RigType == Enum.HumanoidRigType.R15 then | |
735 | local Anim = Tool:FindFirstChild("R15Lunge") | |
736 | if Anim then | |
737 | local Track = Humanoid:LoadAnimation(Anim) | |
738 | Track:Play(0) | |
739 | end | |
740 | end | |
741 | end | |
742 | --[[ | |
743 | if CheckIfAlive() then | |
744 | local Force = Instance.new("BodyVelocity") | |
745 | Force.velocity = Vector3.new(0, 10, 0) | |
746 | Force.maxForce = Vector3.new(0, 4000, 0) | |
747 | Debris:AddItem(Force, 0.4) | |
748 | Force.Parent = Torso | |
749 | end | |
750 | ]] | |
751 | ||
752 | wait(0.2) | |
753 | Tool.Grip = Grips.Out | |
754 | wait(0.6) | |
755 | Tool.Grip = Grips.Up | |
756 | ||
757 | Damage = DamageValues.SlashDamage | |
758 | end | |
759 | ||
760 | Tool.Enabled = true | |
761 | LastAttack = 0 | |
762 | ||
763 | function Activated() | |
764 | if not Tool.Enabled or not ToolEquipped or not CheckIfAlive() then | |
765 | return | |
766 | end | |
767 | Tool.Enabled = false | |
768 | local Tick = RunService.Stepped:wait() | |
769 | if (Tick - LastAttack < 0.2) then | |
770 | Lunge() | |
771 | else | |
772 | Attack() | |
773 | end | |
774 | LastAttack = Tick | |
775 | --wait(0.5) | |
776 | Damage = DamageValues.BaseDamage | |
777 | local SlashAnim = (Tool:FindFirstChild("R15Slash") or Create("Animation"){ | |
778 | Name = "R15Slash", | |
779 | AnimationId = BaseUrl .. Animations.R15Slash, | |
780 | Parent = Tool | |
781 | }) | |
782 | ||
783 | local LungeAnim = (Tool:FindFirstChild("R15Lunge") or Create("Animation"){ | |
784 | Name = "R15Lunge", | |
785 | AnimationId = BaseUrl .. Animations.R15Lunge, | |
786 | Parent = Tool | |
787 | }) | |
788 | Tool.Enabled = true | |
789 | end | |
790 | ||
791 | function CheckIfAlive() | |
792 | return (((Player and Player.Parent and Character and Character.Parent and Humanoid and Humanoid.Parent and Humanoid.Health > 0 and Torso and Torso.Parent) and true) or false) | |
793 | end | |
794 | ||
795 | function Equipped() | |
796 | Character = Tool.Parent | |
797 | Player = Players:GetPlayerFromCharacter(Character) | |
798 | Humanoid = Character:FindFirstChildOfClass("Humanoid") | |
799 | Torso = Character:FindFirstChild("Torso") or Character:FindFirstChild("HumanoidRootPart") | |
800 | if not CheckIfAlive() then | |
801 | return | |
802 | end | |
803 | ToolEquipped = true | |
804 | Sounds.Unsheath:Play() | |
805 | end | |
806 | ||
807 | function Unequipped() | |
808 | Tool.Grip = Grips.Up | |
809 | ToolEquipped = false | |
810 | end | |
811 | ||
812 | Tool.Activated:Connect(Activated) | |
813 | Tool.Equipped:Connect(Equipped) | |
814 | Tool.Unequipped:Connect(Unequipped) | |
815 | ||
816 | Connection = Handle.Touched:Connect(Blow) | |
817 | end)) | |
818 | LocalScript59.Name = "MouseIcon" | |
819 | LocalScript59.Parent = Tool0 | |
820 | table.insert(cors,sandbox(LocalScript59,function() | |
821 | --Made by Luckymaxer | |
822 | ||
823 | Mouse_Icon = "rbxasset://textures/GunCursor.png" | |
824 | Reloading_Icon = "rbxasset://textures/GunWaitCursor.png" | |
825 | ||
826 | Tool = script.Parent | |
827 | ||
828 | Mouse = nil | |
829 | ||
830 | function UpdateIcon() | |
831 | if Mouse then | |
832 | Mouse.Icon = Tool.Enabled and Mouse_Icon or Reloading_Icon | |
833 | end | |
834 | end | |
835 | ||
836 | function OnEquipped(ToolMouse) | |
837 | Mouse = ToolMouse | |
838 | UpdateIcon() | |
839 | end | |
840 | ||
841 | function OnChanged(Property) | |
842 | if Property == "Enabled" then | |
843 | UpdateIcon() | |
844 | end | |
845 | end | |
846 | ||
847 | Tool.Equipped:Connect(OnEquipped) | |
848 | Tool.Changed:Connect(OnChanged) | |
849 | ||
850 | end)) | |
851 | for i,v in pairs(mas:GetChildren()) do | |
852 | v.Parent = workspace | |
853 | pcall(function() v:MakeJoints() end) | |
854 | end | |
855 | mas:Destroy() | |
856 | for i,v in pairs(cors) do | |
857 | spawn(function() | |
858 | pcall(v) | |
859 | end) | |
860 | end |