SHOW:
|
|
- or go back to the newest paste.
1 | if game:GetService("RunService"):IsClient() then error("Please run as a server script. Use h/ instead of hl/.") end | |
2 | print("FE Compatibility: by WaverlyCole & Mokiros") | |
3 | InternalData = {} | |
4 | do | |
5 | script.Parent = owner.Character | |
6 | local Event = Instance.new("RemoteEvent") | |
7 | Event.Name = "UserInput" | |
8 | local function NewFakeEvent() | |
9 | local Fake = {fakeEvent=true,Connect=function(self,Func)self.Function=Func end}Fake.connect = Fake.Connect | |
10 | return Fake | |
11 | end | |
12 | local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()} | |
13 | local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()} | |
14 | local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...) | |
15 | self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil | |
16 | end};ContextActionService.UnBindAction = ContextActionService.BindAction | |
17 | local function TriggerEvent(self,Event,...) | |
18 | local Trigger = Mouse[Event] | |
19 | if Trigger and Trigger.fakeEvent and Trigger.Function then | |
20 | Trigger.Function(...) | |
21 | end | |
22 | end | |
23 | Mouse.TrigEvent = TriggerEvent | |
24 | UserInputService.TrigEvent = TriggerEvent | |
25 | Event.OnServerEvent:Connect(function(FiredBy,Input) | |
26 | if FiredBy.Name ~= owner.Name then end | |
27 | if Input.MouseEvent then | |
28 | Mouse.Target = Input.Target | |
29 | Mouse.Hit = Input.Hit | |
30 | else | |
31 | local Begin = Input.UserInputState == Enum.UserInputState.Begin | |
32 | if Input.UserInputType == Enum.UserInputType.MouseButton1 then | |
33 | return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") | |
34 | end | |
35 | for _,Action in pairs(ContextActionService.Actions) do | |
36 | for _,Key in pairs(Action.Keys) do | |
37 | if Key==Input.KeyCode then | |
38 | Action.Function(Action.Name,Input.UserInputState,Input) | |
39 | end | |
40 | end | |
41 | end | |
42 | Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower()) | |
43 | UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false) | |
44 | end | |
45 | end) | |
46 | InternalData["Mouse"] = Mouse | |
47 | InternalData["ContextActionService"] = ContextActionService | |
48 | InternalData["UserInputService"] = UserInputService | |
49 | Event.Parent = NLS([[ | |
50 | local Player = owner | |
51 | local Event = script:WaitForChild("UserInput") | |
52 | local UserInputService = game:GetService("UserInputService") | |
53 | local Mouse = Player:GetMouse() | |
54 | local Input = function(Input,gameProcessedEvent) | |
55 | if gameProcessedEvent then return end | |
56 | Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState}) | |
57 | end | |
58 | UserInputService.InputBegan:Connect(Input) | |
59 | UserInputService.InputEnded:Connect(Input) | |
60 | local Hit,Target | |
61 | while wait(1/30) do | |
62 | if Hit ~= Mouse.Hit or Target ~= Mouse.Target then | |
63 | Hit,Target = Mouse.Hit,Mouse.Target | |
64 | Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit}) | |
65 | end | |
66 | end | |
67 | ]],owner.Character) | |
68 | end | |
69 | RealGame = game;game = setmetatable({},{ | |
70 | __index = function (self,Index) | |
71 | local Sandbox = function (Thing) | |
72 | if Thing:IsA("Player") then | |
73 | local RealPlayer = Thing | |
74 | return setmetatable({},{ | |
75 | __index = function (self,Index) | |
76 | local Type = type(RealPlayer[Index]) | |
77 | if Type == "function" then | |
78 | if Index:lower() == "getmouse" or Index:lower() == "mouse" then | |
79 | return function (self) | |
80 | return InternalData["Mouse"] | |
81 | end | |
82 | end | |
83 | return function (self,...) | |
84 | return RealPlayer[Index](RealPlayer,...) | |
85 | end | |
86 | else | |
87 | return RealPlayer[Index] | |
88 | end | |
89 | end; | |
90 | __tostring = function(self) | |
91 | return RealPlayer.Name | |
92 | end | |
93 | }) | |
94 | end | |
95 | end | |
96 | if RealGame[Index] then | |
97 | local Type = type(RealGame[Index]) | |
98 | if Type == "function" then | |
99 | if Index:lower() == "getservice" or Index:lower() == "service" then | |
100 | return function (self,Service) | |
101 | if Service:lower() == "players" then | |
102 | return setmetatable({},{ | |
103 | __index = function (self2,Index2) | |
104 | local RealService = RealGame:GetService(Service) | |
105 | local Type2 = type(Index2) | |
106 | if Type2 == "function" then | |
107 | return function (self,...) | |
108 | return RealService[Index2](RealService,...) | |
109 | end | |
110 | else | |
111 | if Index2:lower() == "localplayer" then | |
112 | return Sandbox(owner) | |
113 | end | |
114 | return RealService[Index2] | |
115 | end | |
116 | end; | |
117 | __tostring = function(self) | |
118 | return RealGame:GetService(Service).Name | |
119 | end | |
120 | }) | |
121 | elseif Service:lower() == "contextactionservice" then | |
122 | return InternalData["ContextActionService"] | |
123 | elseif Service:lower() == "contextactionservice" then | |
124 | return InternalData["UserInputService"] | |
125 | elseif Service:lower() == "runservice" then | |
126 | return setmetatable({},{ | |
127 | __index = function(self2,Index2) | |
128 | local RealService = RealGame:GetService(Service) | |
129 | local Type2 = type(Index2) | |
130 | if Type2 == "function" then | |
131 | return function (self,...) | |
132 | return RealService[Index2](RealService,...) | |
133 | end | |
134 | else | |
135 | if Index2:lower() == "bindtorenderstep" then | |
136 | return function (self,Name,Priority,Function) | |
137 | return RealGame:GetService("RunService").Stepped:Connect(Function) | |
138 | end | |
139 | end | |
140 | if Index2:lower() == "renderstepped" then | |
141 | return RealService["Stepped"] | |
142 | end | |
143 | return RealService[Index2] | |
144 | end | |
145 | end | |
146 | }) | |
147 | else | |
148 | return RealGame:GetService(Service) | |
149 | end | |
150 | end | |
151 | end | |
152 | return function (self,...) | |
153 | return RealGame[Index](RealGame,...) | |
154 | end | |
155 | else | |
156 | if game:GetService(Index) then | |
157 | return game:GetService(Index) | |
158 | end | |
159 | return RealGame[Index] | |
160 | end | |
161 | else | |
162 | return nil | |
163 | end | |
164 | end | |
165 | });Game = game;owner = game:GetService("Players").LocalPlayer | |
166 | print("Complete! Running... Showcased by VengefulProgram ") | |
167 | print(" Created by Oilsauce ") | |
168 | ||
169 | ||
170 | ||
171 | local plrs = game:GetService("Players") | |
172 | local plr = plrs.LocalPlayer | |
173 | local char = plr.Character | |
174 | local tweenserv = game:GetService("TweenService") | |
175 | local lighting = game:GetService("Lighting") | |
176 | local hum = char:FindFirstChildOfClass("Humanoid") | |
177 | local mou = plr:GetMouse() | |
178 | local tor = char:FindFirstChild("Torso") or char:FindFirstChild("UpperTorso") | |
179 | local root = char:FindFirstChild("HumanoidRootPart") | |
180 | local head = char:FindFirstChild("Head") | |
181 | local face = head:FindFirstChildOfClass("Decal") | |
182 | local larm = char:FindFirstChild("Left Arm") or char:FindFirstChild("LeftUpperArm") | |
183 | local rarm = char:FindFirstChild("Right Arm") or char:FindFirstChild("RightUpperArm") | |
184 | local rleg = char:FindFirstChild("Right Leg") or char:FindFirstChild("RightUpperLeg") | |
185 | local lleg = char:FindFirstChild("Left Leg") or char:FindFirstChild("LeftUpperLeg") | |
186 | local neck = tor:FindFirstChild("Neck") | |
187 | local rootj = root:FindFirstChild("RootJoint") | |
188 | local LS = tor:FindFirstChild("Left Shoulder") | |
189 | local RS = tor:FindFirstChild("Right Shoulder") | |
190 | local LH = tor:FindFirstChild("Left Hip") | |
191 | local RH = tor:FindFirstChild("Right Hip") | |
192 | local bp = plr:FindFirstChild("Backpack") | |
193 | local cam = workspace.CurrentCamera | |
194 | ||
195 | script.Name = "Oilsauce's Excalibur" | |
196 | hum:ClearAllChildren() | |
197 | char.Animate:remove() | |
198 | ||
199 | ||
200 | --Converted with ttyyuu12345's model to script plugin v4 | |
201 | function sandbox(var,func) | |
202 | local env = getfenv(func) | |
203 | local newenv = setmetatable({},{ | |
204 | __index = function(self,k) | |
205 | if k=="script" then | |
206 | return var | |
207 | else | |
208 | return env[k] | |
209 | end | |
210 | end, | |
211 | }) | |
212 | setfenv(func,newenv) | |
213 | return func | |
214 | end | |
215 | cors = {} | |
216 | mas = Instance.new("Model",game:GetService("Lighting")) | |
217 | Model0 = Instance.new("Model") | |
218 | Part1 = Instance.new("Part") | |
219 | ManualWeld2 = Instance.new("ManualWeld") | |
220 | Part3 = Instance.new("Part") | |
221 | ManualWeld4 = Instance.new("ManualWeld") | |
222 | Part5 = Instance.new("Part") | |
223 | ManualWeld6 = Instance.new("ManualWeld") | |
224 | Part7 = Instance.new("Part") | |
225 | ManualWeld8 = Instance.new("ManualWeld") | |
226 | Part9 = Instance.new("Part") | |
227 | ManualWeld10 = Instance.new("ManualWeld") | |
228 | Part11 = Instance.new("Part") | |
229 | ManualWeld12 = Instance.new("ManualWeld") | |
230 | Part13 = Instance.new("Part") | |
231 | ManualWeld14 = Instance.new("ManualWeld") | |
232 | Part15 = Instance.new("Part") | |
233 | CornerWedgePart16 = Instance.new("CornerWedgePart") | |
234 | ManualWeld17 = Instance.new("ManualWeld") | |
235 | CornerWedgePart18 = Instance.new("CornerWedgePart") | |
236 | ManualWeld19 = Instance.new("ManualWeld") | |
237 | CornerWedgePart20 = Instance.new("CornerWedgePart") | |
238 | ManualWeld21 = Instance.new("ManualWeld") | |
239 | CornerWedgePart22 = Instance.new("CornerWedgePart") | |
240 | ManualWeld23 = Instance.new("ManualWeld") | |
241 | WedgePart24 = Instance.new("WedgePart") | |
242 | ManualWeld25 = Instance.new("ManualWeld") | |
243 | WedgePart26 = Instance.new("WedgePart") | |
244 | ManualWeld27 = Instance.new("ManualWeld") | |
245 | WedgePart28 = Instance.new("WedgePart") | |
246 | ManualWeld29 = Instance.new("ManualWeld") | |
247 | WedgePart30 = Instance.new("WedgePart") | |
248 | ManualWeld31 = Instance.new("ManualWeld") | |
249 | Part32 = Instance.new("Part") | |
250 | ManualWeld33 = Instance.new("ManualWeld") | |
251 | Part34 = Instance.new("Part") | |
252 | ManualWeld35 = Instance.new("ManualWeld") | |
253 | Model0.Name = "OilStyled-Arthur-Excalibur" | |
254 | Model0.Parent = mas | |
255 | Model0.PrimaryPart = Part32 | |
256 | Part1.Parent = Model0 | |
257 | Part1.Material = Enum.Material.Glass | |
258 | Part1.BrickColor = BrickColor.new("Gold") | |
259 | Part1.Rotation = Vector3.new(0, 90, 0) | |
260 | Part1.CanCollide = false | |
261 | Part1.Locked = true | |
262 | Part1.Shape = Enum.PartType.Cylinder | |
263 | Part1.Size = Vector3.new(1.20000005, 0.299999952, 0.299999952) | |
264 | Part1.CFrame = CFrame.new(-14.0602179, 9.95006561, 0.555490255, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
265 | Part1.BottomSurface = Enum.SurfaceType.Smooth | |
266 | Part1.TopSurface = Enum.SurfaceType.Smooth | |
267 | Part1.Color = Color3.new(0.937255, 0.721569, 0.219608) | |
268 | Part1.Position = Vector3.new(-14.0602179, 9.95006561, 0.555490255) | |
269 | Part1.Orientation = Vector3.new(0, 90, 0) | |
270 | Part1.Color = Color3.new(0.937255, 0.721569, 0.219608) | |
271 | ManualWeld2.Name = "Weld" | |
272 | ManualWeld2.Parent = Part1 | |
273 | ManualWeld2.C0 = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
274 | ManualWeld2.C1 = CFrame.new(-4.24999714, -0.0073223114, 0.00865459442, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
275 | ManualWeld2.Part0 = Part1 | |
276 | ManualWeld2.Part1 = Part15 | |
277 | Part3.Parent = Model0 | |
278 | Part3.Material = Enum.Material.Glass | |
279 | Part3.BrickColor = BrickColor.new("Gold") | |
280 | Part3.Rotation = Vector3.new(-180, 0, 90) | |
281 | Part3.CanCollide = false | |
282 | Part3.Locked = true | |
283 | Part3.Shape = Enum.PartType.Cylinder | |
284 | Part3.Size = Vector3.new(0.400000006, 0.400000006, 0.400000006) | |
285 | Part3.CFrame = CFrame.new(-14.0602179, 9.95005989, 1.25548816, 0, -1, 0, -1, 0, 0, 0, 0, -1) | |
286 | Part3.BottomSurface = Enum.SurfaceType.Smooth | |
287 | Part3.TopSurface = Enum.SurfaceType.Smooth | |
288 | Part3.Color = Color3.new(0.937255, 0.721569, 0.219608) | |
289 | Part3.Position = Vector3.new(-14.0602179, 9.95005989, 1.25548816) | |
290 | Part3.Orientation = Vector3.new(0, 180, -90) | |
291 | Part3.Color = Color3.new(0.937255, 0.721569, 0.219608) | |
292 | ManualWeld4.Name = "Weld" | |
293 | ManualWeld4.Parent = Part3 | |
294 | ManualWeld4.C0 = CFrame.new(0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1) | |
295 | ManualWeld4.C1 = CFrame.new(-4.94999504, -0.00732803345, 0.00865459442, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
296 | ManualWeld4.Part0 = Part3 | |
297 | ManualWeld4.Part1 = Part15 | |
298 | Part5.Parent = Model0 | |
299 | - | Part5.Material = Enum.Material.Wood |
299 | + | Part5.Material = Enum.Material.Plastic |
300 | - | Part5.BrickColor = BrickColor.new("CGA brown") |
300 | + | Part5.BrickColor = BrickColor.new("Lily white") |
301 | Part5.Rotation = Vector3.new(0, 90, 0) | |
302 | Part5.CanCollide = false | |
303 | Part5.Locked = true | |
304 | Part5.Shape = Enum.PartType.Cylinder | |
305 | Part5.Size = Vector3.new(0.699999928, 0.349999994, 0.349999994) | |
306 | Part5.CFrame = CFrame.new(-14.0602179, 9.95005989, 0.60549283, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
307 | Part5.BottomSurface = Enum.SurfaceType.Smooth | |
308 | Part5.TopSurface = Enum.SurfaceType.Smooth | |
309 | Part5.Color = Color3.new(0.666667, 0.333333, 0) | |
310 | Part5.Position = Vector3.new(-14.0602179, 9.95005989, 0.60549283) | |
311 | Part5.Orientation = Vector3.new(0, 90, 0) | |
312 | Part5.Color = Color3.new(0.666667, 0.333333, 0) | |
313 | ManualWeld6.Name = "Weld" | |
314 | ManualWeld6.Parent = Part5 | |
315 | ManualWeld6.C0 = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
316 | ManualWeld6.C1 = CFrame.new(-4.29999971, -0.00732803345, 0.00865459442, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
317 | ManualWeld6.Part0 = Part5 | |
318 | ManualWeld6.Part1 = Part15 | |
319 | Part7.Parent = Model0 | |
320 | Part7.Material = Enum.Material.Glass | |
321 | Part7.BrickColor = BrickColor.new("Gold") | |
322 | Part7.Rotation = Vector3.new(0, 90, 0) | |
323 | Part7.CanCollide = false | |
324 | Part7.Locked = true | |
325 | Part7.Size = Vector3.new(0.199999899, 0.399999976, 2) | |
326 | Part7.CFrame = CFrame.new(-14.018878, 9.95738792, 0.0554900169, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
327 | Part7.BottomSurface = Enum.SurfaceType.Smooth | |
328 | Part7.TopSurface = Enum.SurfaceType.Smooth | |
329 | Part7.Color = Color3.new(0.937255, 0.721569, 0.219608) | |
330 | Part7.Position = Vector3.new(-14.018878, 9.95738792, 0.0554900169) | |
331 | Part7.Orientation = Vector3.new(0, 90, 0) | |
332 | Part7.Color = Color3.new(0.937255, 0.721569, 0.219608) | |
333 | ManualWeld8.Name = "Weld" | |
334 | ManualWeld8.Parent = Part7 | |
335 | ManualWeld8.C0 = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
336 | ManualWeld8.C1 = CFrame.new(-3.7499969, 0, 0.0499944687, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
337 | ManualWeld8.Part0 = Part7 | |
338 | ManualWeld8.Part1 = Part15 | |
339 | Part9.Parent = Model0 | |
340 | Part9.Material = Enum.Material.Glass | |
341 | Part9.BrickColor = BrickColor.new("Lily white") | |
342 | Part9.Reflectance = 0.10000000149012 | |
343 | Part9.Rotation = Vector3.new(0, 90, 0) | |
344 | Part9.CanCollide = false | |
345 | Part9.Locked = true | |
346 | Part9.Size = Vector3.new(4.69999981, 0.0999999717, 0.100000016) | |
347 | Part9.CFrame = CFrame.new(-14.1688719, 9.95738411, -2.39450908, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
348 | Part9.BottomSurface = Enum.SurfaceType.Smooth | |
349 | Part9.TopSurface = Enum.SurfaceType.Smooth | |
350 | Part9.Color = Color3.new(0.929412, 0.917647, 0.917647) | |
351 | Part9.Position = Vector3.new(-14.1688719, 9.95738411, -2.39450908) | |
352 | Part9.Orientation = Vector3.new(0, 90, 0) | |
353 | Part9.Color = Color3.new(0.929412, 0.917647, 0.917647) | |
354 | ManualWeld10.Name = "Weld" | |
355 | ManualWeld10.Parent = Part9 | |
356 | ManualWeld10.C0 = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
357 | ManualWeld10.C1 = CFrame.new(-1.29999781, -3.81469727e-06, -0.0999994278, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
358 | ManualWeld10.Part0 = Part9 | |
359 | ManualWeld10.Part1 = Part15 | |
360 | Part11.Parent = Model0 | |
361 | Part11.Material = Enum.Material.Glass | |
362 | Part11.BrickColor = BrickColor.new("Lily white") | |
363 | Part11.Reflectance = 0.10000000149012 | |
364 | Part11.Rotation = Vector3.new(0, 90, 0) | |
365 | Part11.CanCollide = false | |
366 | Part11.Locked = true | |
367 | Part11.Size = Vector3.new(4.69999981, 0.0999999717, 0.100000016) | |
368 | Part11.CFrame = CFrame.new(-13.9688702, 9.95738602, -2.39450788, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
369 | Part11.BottomSurface = Enum.SurfaceType.Smooth | |
370 | Part11.TopSurface = Enum.SurfaceType.Smooth | |
371 | Part11.Color = Color3.new(0.929412, 0.917647, 0.917647) | |
372 | Part11.Position = Vector3.new(-13.9688702, 9.95738602, -2.39450788) | |
373 | Part11.Orientation = Vector3.new(0, 90, 0) | |
374 | Part11.Color = Color3.new(0.929412, 0.917647, 0.917647) | |
375 | ManualWeld12.Name = "Weld" | |
376 | ManualWeld12.Parent = Part11 | |
377 | ManualWeld12.C0 = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
378 | ManualWeld12.C1 = CFrame.new(-1.299999, -1.90734863e-06, 0.100002289, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
379 | ManualWeld12.Part0 = Part11 | |
380 | ManualWeld12.Part1 = Part15 | |
381 | Part13.Parent = Model0 | |
382 | Part13.Material = Enum.Material.Glass | |
383 | Part13.BrickColor = BrickColor.new("Lily white") | |
384 | Part13.Reflectance = 0.10000000149012 | |
385 | Part13.Rotation = Vector3.new(0, 90, 0) | |
386 | Part13.CanCollide = false | |
387 | Part13.Locked = true | |
388 | Part13.Size = Vector3.new(2.5999999, 0.0500000007, 0.100000016) | |
389 | Part13.CFrame = CFrame.new(-14.0688677, 9.95738602, -1.34450984, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
390 | Part13.BottomSurface = Enum.SurfaceType.Smooth | |
391 | Part13.TopSurface = Enum.SurfaceType.Smooth | |
392 | Part13.Color = Color3.new(0.929412, 0.917647, 0.917647) | |
393 | Part13.Position = Vector3.new(-14.0688677, 9.95738602, -1.34450984) | |
394 | Part13.Orientation = Vector3.new(0, 90, 0) | |
395 | Part13.Color = Color3.new(0.929412, 0.917647, 0.917647) | |
396 | ManualWeld14.Name = "Weld" | |
397 | ManualWeld14.Parent = Part13 | |
398 | ManualWeld14.C0 = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
399 | ManualWeld14.C1 = CFrame.new(-2.34999704, -1.90734863e-06, 4.76837158e-06, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
400 | ManualWeld14.Part0 = Part13 | |
401 | ManualWeld14.Part1 = Part15 | |
402 | Part15.Parent = Model0 | |
403 | Part15.Material = Enum.Material.Glass | |
404 | Part15.BrickColor = BrickColor.new("Lily white") | |
405 | Part15.Reflectance = 0.10000000149012 | |
406 | Part15.Rotation = Vector3.new(0, 90, 0) | |
407 | Part15.CanCollide = false | |
408 | Part15.Locked = true | |
409 | Part15.Size = Vector3.new(2.0999999, 0.100000001, 0.100000016) | |
410 | Part15.CFrame = CFrame.new(-14.0688725, 9.95738792, -3.69450688, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
411 | Part15.BottomSurface = Enum.SurfaceType.Smooth | |
412 | Part15.TopSurface = Enum.SurfaceType.Smooth | |
413 | Part15.Color = Color3.new(0.929412, 0.917647, 0.917647) | |
414 | Part15.Position = Vector3.new(-14.0688725, 9.95738792, -3.69450688) | |
415 | Part15.Orientation = Vector3.new(0, 90, 0) | |
416 | Part15.Color = Color3.new(0.929412, 0.917647, 0.917647) | |
417 | CornerWedgePart16.Parent = Model0 | |
418 | CornerWedgePart16.Material = Enum.Material.Glass | |
419 | CornerWedgePart16.BrickColor = BrickColor.new("Lily white") | |
420 | CornerWedgePart16.Reflectance = 0.10000000149012 | |
421 | CornerWedgePart16.Rotation = Vector3.new(-90, -90, 0) | |
422 | CornerWedgePart16.CanCollide = false | |
423 | CornerWedgePart16.Locked = true | |
424 | CornerWedgePart16.Size = Vector3.new(0.0500000007, 0.899999976, 0.150000006) | |
425 | CornerWedgePart16.CFrame = CFrame.new(-14.1444778, 9.93199825, -5.18227577, 0, 0, -1, 1, 0, 0, 0, -1, 0) | |
426 | CornerWedgePart16.Color = Color3.new(0.929412, 0.917647, 0.917647) | |
427 | CornerWedgePart16.Position = Vector3.new(-14.1444778, 9.93199825, -5.18227577) | |
428 | CornerWedgePart16.Orientation = Vector3.new(0, -90, 90) | |
429 | CornerWedgePart16.Color = Color3.new(0.929412, 0.917647, 0.917647) | |
430 | ManualWeld17.Name = "Weld" | |
431 | ManualWeld17.Parent = CornerWedgePart16 | |
432 | ManualWeld17.C0 = CFrame.new(0, 0, 0, 0, 1, 0, 0, 0, -1, -1, 0, 0) | |
433 | ManualWeld17.C1 = CFrame.new(1.48776889, -0.0253896713, -0.0756053925, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
434 | ManualWeld17.Part0 = CornerWedgePart16 | |
435 | ManualWeld17.Part1 = Part15 | |
436 | CornerWedgePart18.Parent = Model0 | |
437 | CornerWedgePart18.Material = Enum.Material.Glass | |
438 | CornerWedgePart18.BrickColor = BrickColor.new("Lily white") | |
439 | CornerWedgePart18.Reflectance = 0.10000000149012 | |
440 | CornerWedgePart18.Rotation = Vector3.new(-90, 90, 0) | |
441 | CornerWedgePart18.CanCollide = false | |
442 | CornerWedgePart18.Locked = true | |
443 | CornerWedgePart18.Size = Vector3.new(0.0500000007, 0.899999976, 0.150000006) | |
444 | CornerWedgePart18.CFrame = CFrame.new(-13.9944744, 9.98199368, -5.18227577, 0, 0, 1, -1, 0, 0, 0, -1, 0) | |
445 | CornerWedgePart18.Color = Color3.new(0.929412, 0.917647, 0.917647) | |
446 | CornerWedgePart18.Position = Vector3.new(-13.9944744, 9.98199368, -5.18227577) | |
447 | CornerWedgePart18.Orientation = Vector3.new(0, 90, -90) | |
448 | CornerWedgePart18.Color = Color3.new(0.929412, 0.917647, 0.917647) | |
449 | ManualWeld19.Name = "Weld" | |
450 | ManualWeld19.Parent = CornerWedgePart18 | |
451 | ManualWeld19.C0 = CFrame.new(0, 0, 0, 0, -1, 0, 0, 0, -1, 1, 0, 0) | |
452 | ManualWeld19.C1 = CFrame.new(1.48776889, 0.024605751, 0.0743980408, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
453 | ManualWeld19.Part0 = CornerWedgePart18 | |
454 | ManualWeld19.Part1 = Part15 | |
455 | CornerWedgePart20.Parent = Model0 | |
456 | CornerWedgePart20.Material = Enum.Material.Glass | |
457 | CornerWedgePart20.BrickColor = BrickColor.new("Lily white") | |
458 | CornerWedgePart20.Reflectance = 0.10000000149012 | |
459 | CornerWedgePart20.Rotation = Vector3.new(-90, 0, 0) | |
460 | CornerWedgePart20.CanCollide = false | |
461 | CornerWedgePart20.Locked = true | |
462 | CornerWedgePart20.Size = Vector3.new(0.150000006, 0.899999976, 0.0500000007) | |
463 | CornerWedgePart20.CFrame = CFrame.new(-14.1444778, 9.98199844, -5.18227577, 1, 0, 0, 0, 0, 1, 0, -1, 0) | |
464 | CornerWedgePart20.Color = Color3.new(0.929412, 0.917647, 0.917647) | |
465 | CornerWedgePart20.Position = Vector3.new(-14.1444778, 9.98199844, -5.18227577) | |
466 | CornerWedgePart20.Orientation = Vector3.new(-90, 0, 0) | |
467 | CornerWedgePart20.Color = Color3.new(0.929412, 0.917647, 0.917647) | |
468 | ManualWeld21.Name = "Weld" | |
469 | ManualWeld21.Parent = CornerWedgePart20 | |
470 | ManualWeld21.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 0, -1, 0, 1, 0) | |
471 | ManualWeld21.C1 = CFrame.new(1.48776889, 0.0246105194, -0.0756053925, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
472 | ManualWeld21.Part0 = CornerWedgePart20 | |
473 | ManualWeld21.Part1 = Part15 | |
474 | CornerWedgePart22.Parent = Model0 | |
475 | CornerWedgePart22.Material = Enum.Material.Glass | |
476 | CornerWedgePart22.BrickColor = BrickColor.new("Lily white") | |
477 | CornerWedgePart22.Reflectance = 0.10000000149012 | |
478 | CornerWedgePart22.Rotation = Vector3.new(90, 0, -180) | |
479 | CornerWedgePart22.CanCollide = false | |
480 | CornerWedgePart22.Locked = true | |
481 | CornerWedgePart22.Size = Vector3.new(0.150000006, 0.899999976, 0.0500000007) | |
482 | CornerWedgePart22.CFrame = CFrame.new(-13.9944782, 9.93199444, -5.18227577, -1, 0, 0, 0, 0, -1, 0, -1, 0) | |
483 | CornerWedgePart22.Color = Color3.new(0.929412, 0.917647, 0.917647) | |
484 | CornerWedgePart22.Position = Vector3.new(-13.9944782, 9.93199444, -5.18227577) | |
485 | CornerWedgePart22.Orientation = Vector3.new(90, 180, 0) | |
486 | CornerWedgePart22.Color = Color3.new(0.929412, 0.917647, 0.917647) | |
487 | ManualWeld23.Name = "Weld" | |
488 | ManualWeld23.Parent = CornerWedgePart22 | |
489 | ManualWeld23.C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0) | |
490 | ManualWeld23.C1 = CFrame.new(1.48776889, -0.025393486, 0.0743942261, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
491 | ManualWeld23.Part0 = CornerWedgePart22 | |
492 | ManualWeld23.Part1 = Part15 | |
493 | WedgePart24.Parent = Model0 | |
494 | WedgePart24.Material = Enum.Material.Glass | |
495 | WedgePart24.BrickColor = BrickColor.new("Gold") | |
496 | WedgePart24.Rotation = Vector3.new(-90, 90, 0) | |
497 | WedgePart24.CanCollide = false | |
498 | WedgePart24.Locked = true | |
499 | WedgePart24.Size = Vector3.new(0.399999946, 0.200000018, 0.50000006) | |
500 | WedgePart24.CFrame = CFrame.new(-14.3113461, 9.95738983, -0.127655029, 0, 0, 1, -1, 0, 0, 0, -1, 0) | |
501 | WedgePart24.BottomSurface = Enum.SurfaceType.Smooth | |
502 | WedgePart24.Color = Color3.new(0.937255, 0.721569, 0.219608) | |
503 | WedgePart24.Position = Vector3.new(-14.3113461, 9.95738983, -0.127655029) | |
504 | WedgePart24.Orientation = Vector3.new(0, 90, -90) | |
505 | WedgePart24.Color = Color3.new(0.937255, 0.721569, 0.219608) | |
506 | ManualWeld25.Name = "Weld" | |
507 | ManualWeld25.Parent = WedgePart24 | |
508 | ManualWeld25.C0 = CFrame.new(0, 0, 0, 0, -1, 0, 0, 0, -1, 1, 0, 0) | |
509 | ManualWeld25.C1 = CFrame.new(-3.56685185, 1.90734863e-06, -0.242473602, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
510 | ManualWeld25.Part0 = WedgePart24 | |
511 | ManualWeld25.Part1 = Part15 | |
512 | WedgePart26.Parent = Model0 | |
513 | WedgePart26.Material = Enum.Material.Glass | |
514 | WedgePart26.BrickColor = BrickColor.new("Gold") | |
515 | WedgePart26.Rotation = Vector3.new(-90, -90, 0) | |
516 | WedgePart26.CanCollide = false | |
517 | WedgePart26.Locked = true | |
518 | WedgePart26.Size = Vector3.new(0.399999946, 0.200000018, 0.50000006) | |
519 | WedgePart26.CFrame = CFrame.new(-13.8113518, 9.95738792, -0.127655029, 0, 0, -1, 1, 0, 0, 0, -1, 0) | |
520 | WedgePart26.BottomSurface = Enum.SurfaceType.Smooth | |
521 | WedgePart26.Color = Color3.new(0.937255, 0.721569, 0.219608) | |
522 | WedgePart26.Position = Vector3.new(-13.8113518, 9.95738792, -0.127655029) | |
523 | WedgePart26.Orientation = Vector3.new(0, -90, 90) | |
524 | WedgePart26.Color = Color3.new(0.937255, 0.721569, 0.219608) | |
525 | ManualWeld27.Name = "Weld" | |
526 | ManualWeld27.Parent = WedgePart26 | |
527 | ManualWeld27.C0 = CFrame.new(0, 0, 0, 0, 1, 0, 0, 0, -1, -1, 0, 0) | |
528 | ManualWeld27.C1 = CFrame.new(-3.56685185, 0, 0.257520676, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
529 | ManualWeld27.Part0 = WedgePart26 | |
530 | ManualWeld27.Part1 = Part15 | |
531 | WedgePart28.Parent = Model0 | |
532 | WedgePart28.Material = Enum.Material.Glass | |
533 | WedgePart28.BrickColor = BrickColor.new("Gold") | |
534 | WedgePart28.Rotation = Vector3.new(90, 90, 0) | |
535 | WedgePart28.CanCollide = false | |
536 | WedgePart28.Locked = true | |
537 | WedgePart28.Size = Vector3.new(0.399999946, 0.200000018, 0.50000006) | |
538 | WedgePart28.CFrame = CFrame.new(-13.271347, 9.95738983, 0.252345085, -2.62268316e-07, -8.74227766e-08, 1, 1, -2.29282264e-14, 2.62268316e-07, 0, 1, 8.74227766e-08) | |
539 | WedgePart28.BottomSurface = Enum.SurfaceType.Smooth | |
540 | WedgePart28.Color = Color3.new(0.937255, 0.721569, 0.219608) | |
541 | WedgePart28.Position = Vector3.new(-13.271347, 9.95738983, 0.252345085) | |
542 | WedgePart28.Orientation = Vector3.new(0, 90, 90) | |
543 | WedgePart28.Color = Color3.new(0.937255, 0.721569, 0.219608) | |
544 | ManualWeld29.Name = "Weld" | |
545 | ManualWeld29.Parent = WedgePart28 | |
546 | ManualWeld29.C0 = CFrame.new(0, 0, 0, -2.62268316e-07, 1, 0, -8.74227766e-08, -2.29282264e-14, 1, 1, 2.62268316e-07, 8.74227766e-08) | |
547 | ManualWeld29.C1 = CFrame.new(-3.94685197, 1.90734863e-06, 0.797525406, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
548 | ManualWeld29.Part0 = WedgePart28 | |
549 | ManualWeld29.Part1 = Part15 | |
550 | WedgePart30.Parent = Model0 | |
551 | WedgePart30.Material = Enum.Material.Glass | |
552 | WedgePart30.BrickColor = BrickColor.new("Gold") | |
553 | WedgePart30.Rotation = Vector3.new(90, -90, 0) | |
554 | WedgePart30.CanCollide = false | |
555 | WedgePart30.Locked = true | |
556 | WedgePart30.Size = Vector3.new(0.399999946, 0.200000033, 0.50000006) | |
557 | WedgePart30.CFrame = CFrame.new(-14.7713461, 9.95738983, 0.252345085, 1.74845553e-07, 8.74227766e-08, -1, -1, 1.52854837e-14, -1.74845553e-07, 0, 1, 8.74227766e-08) | |
558 | WedgePart30.BottomSurface = Enum.SurfaceType.Smooth | |
559 | WedgePart30.Color = Color3.new(0.937255, 0.721569, 0.219608) | |
560 | WedgePart30.Position = Vector3.new(-14.7713461, 9.95738983, 0.252345085) | |
561 | WedgePart30.Orientation = Vector3.new(0, -90, -90) | |
562 | WedgePart30.Color = Color3.new(0.937255, 0.721569, 0.219608) | |
563 | ManualWeld31.Name = "Weld" | |
564 | ManualWeld31.Parent = WedgePart30 | |
565 | ManualWeld31.C0 = CFrame.new(0, 0, 0, 1.74845553e-07, -1, 0, 8.74227766e-08, 1.52854837e-14, 1, -1, -1.74845553e-07, 8.74227766e-08) | |
566 | ManualWeld31.C1 = CFrame.new(-3.94685197, 1.90734863e-06, -0.70247364, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
567 | ManualWeld31.Part0 = WedgePart30 | |
568 | ManualWeld31.Part1 = Part15 | |
569 | Part32.Name = "handleP" | |
570 | Part32.Parent = Model0 | |
571 | Part32.Transparency = 1 | |
572 | Part32.CanCollide = false | |
573 | Part32.Locked = true | |
574 | Part32.Size = Vector3.new(1, 1, 1) | |
575 | Part32.CFrame = CFrame.new(-14.0687914, 9.95006847, 0.769564867, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
576 | Part32.BottomSurface = Enum.SurfaceType.Smooth | |
577 | Part32.TopSurface = Enum.SurfaceType.Smooth | |
578 | Part32.Position = Vector3.new(-14.0687914, 9.95006847, 0.769564867) | |
579 | ManualWeld33.Name = "Weld" | |
580 | ManualWeld33.Parent = Part32 | |
581 | ManualWeld33.C1 = CFrame.new(-4.46407175, -0.00731945038, 8.10623169e-05, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
582 | ManualWeld33.Part0 = Part32 | |
583 | ManualWeld33.Part1 = Part15 | |
584 | Part34.Name = "bladeP" | |
585 | Part34.Parent = Model0 | |
586 | --[[Part34.Transparency = 0.7 | |
587 | Part34.BrickColor = BrickColor.new("New Yeller") | |
588 | Part34.Material = "Neon"]] | |
589 | Part34.Transparency = 1 | |
590 | Part34.CanCollide = false | |
591 | Part34.Locked = true | |
592 | Part34.Size = Vector3.new(0.6, 0.2, 5.55) | |
593 | Part34.CFrame = CFrame.new(-14.0687914, 9.95006847, -2.98043513, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
594 | Part34.BottomSurface = Enum.SurfaceType.Smooth | |
595 | Part34.TopSurface = Enum.SurfaceType.Smooth | |
596 | Part34.Position = Vector3.new(-14.0687914, 9.95006847, -2.98043513) | |
597 | ManualWeld35.Name = "Weld" | |
598 | ManualWeld35.Parent = Part34 | |
599 | ManualWeld35.C1 = CFrame.new(-0.714071751, -0.00731945038, 8.10623169e-05, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
600 | ManualWeld35.Part0 = Part34 | |
601 | ManualWeld35.Part1 = Part15 | |
602 | for i,v in pairs(mas:GetChildren()) do | |
603 | v.Parent = char | |
604 | Excalibur = v | |
605 | handleP = Part32 | |
606 | bladeP = Part34 | |
607 | pcall(function() v:MakeJoints() end) | |
608 | end | |
609 | mas:Destroy() | |
610 | for i,v in pairs(cors) do | |
611 | spawn(function() | |
612 | pcall(v) | |
613 | end) | |
614 | end | |
615 | ||
616 | local AT0 = Instance.new("Attachment", bladeP) | |
617 | AT0.Position = Vector3.new(0, 0, -2.7) | |
618 | ||
619 | local AT1 = Instance.new("Attachment", bladeP) | |
620 | AT1.Position = Vector3.new(0, 0, 2.7) | |
621 | ||
622 | local trial = Instance.new("Trail", bladeP) | |
623 | trial.Attachment0 = AT0 | |
624 | trial.Attachment1 = AT1 | |
625 | trial.Color = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 255, 0)), ColorSequenceKeypoint.new(1, Color3.fromRGB(255, 255, 0))}) | |
626 | trial.WidthScale = NumberSequence.new({NumberSequenceKeypoint.new(0, 1, 0), NumberSequenceKeypoint.new(1, 0, 0)}) | |
627 | trial.Lifetime = 0.25 | |
628 | trial.LightEmission = 1 | |
629 | trial.Enabled = false | |
630 | ||
631 | local ws = hum.WalkSpeed | |
632 | local jp = hum.JumpPower | |
633 | local nws = ws | |
634 | local njp = jp | |
635 | ||
636 | local rootj0 = rootj.C0 | |
637 | local neck0 = neck.C0 | |
638 | local LS0 = LS.C0 | |
639 | local RS0 = RS.C0 | |
640 | local LH0 = LH.C0 | |
641 | local RH0 = RH.C0 | |
642 | local rootj1 = rootj.C1 | |
643 | local neck1 = neck.C1 | |
644 | local LS1 = LS.C1 | |
645 | local RS1 = RS.C1 | |
646 | local LH1 = LH.C1 | |
647 | local RH1 = RH.C1 | |
648 | ||
649 | ----------------------------------------------------------------------------- | |
650 | ||
651 | local CFn = CFrame.new | |
652 | local CFa = CFrame.Angles | |
653 | local Rad = math.rad | |
654 | local Cos = math.cos | |
655 | local Sin = math.sin | |
656 | local sine = 1 | |
657 | local running = false | |
658 | local Slashing = false | |
659 | local lSlashing = false | |
660 | local attackstate = 1 | |
661 | local cut = false | |
662 | local attacking = false | |
663 | local shoot = false | |
664 | local Slamming = false | |
665 | local LOCKEDON = false | |
666 | ||
667 | local rarmP = Instance.new("Part", char) | |
668 | rarmP.Size = Vector3.new(1, 1, 1) | |
669 | rarmP.CanCollide = false | |
670 | rarmP.Transparency = 1 | |
671 | rarmP.Locked = true | |
672 | ||
673 | local rarmPw = Instance.new("Weld", rarmP) | |
674 | rarmPw.Part0 = rarm | |
675 | rarmPw.Part1 = rarmP | |
676 | rarmPw.C1 = CFn(1, 0, 0) * CFa(0, 0, Rad(-90)) | |
677 | ||
678 | local hPw = Instance.new("Weld", handleP) | |
679 | hPw.Part0 = rarmP | |
680 | hPw.Part1 = handleP | |
681 | ||
682 | local hPw0 = hPw.C0 | |
683 | local hPw1 = hPw.C1 | |
684 | ||
685 | local tweeninfo = TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.Out, 0, false, 0) | |
686 | ||
687 | ----------------------------------------------------------------------------- | |
688 | ||
689 | ArtificialHB = Instance.new("BindableEvent", script) | |
690 | ArtificialHB.Name = "Heartbeat" | |
691 | script:WaitForChild("Heartbeat") | |
692 | ||
693 | frame = 1 / 60 | |
694 | tf = 0 | |
695 | allowframeloss = false | |
696 | tossremainder = false | |
697 | ||
698 | ||
699 | lastframe = tick() | |
700 | script.Heartbeat:Fire() | |
701 | ||
702 | ||
703 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
704 | tf = tf + s | |
705 | if tf >= frame then | |
706 | if allowframeloss then | |
707 | script.Heartbeat:Fire() | |
708 | lastframe = tick() | |
709 | else | |
710 | for i = 1, math.floor(tf / frame) do | |
711 | script.Heartbeat:Fire() | |
712 | end | |
713 | lastframe = tick() | |
714 | end | |
715 | if tossremainder then | |
716 | tf = 0 | |
717 | else | |
718 | tf = tf - frame * math.floor(tf / frame) | |
719 | end | |
720 | end | |
721 | end) | |
722 | ||
723 | function swait(num) | |
724 | if num == 0 or num == nil then | |
725 | game:service("RunService").Stepped:wait(0) | |
726 | else | |
727 | for i = 0, num do | |
728 | game:service("RunService").Stepped:wait(0) | |
729 | end | |
730 | end | |
731 | end | |
732 | ||
733 | function clerp(a, b, t) | |
734 | return a:lerp(b, t) | |
735 | end | |
736 | ||
737 | function GetTorsos(pos,dis) | |
738 | local people = workspace:GetChildren() | |
739 | local peopletab = {} | |
740 | local temp = nil | |
741 | local humtor = nil | |
742 | local temp2 = nil | |
743 | for x = 1, #people do | |
744 | temp2 = people[x] | |
745 | if temp2.className == "Model" and temp2 ~= char and temp2:FindFirstChildOfClass("Humanoid") then | |
746 | temp = temp2:FindFirstChild("Torso") or temp2:FindFirstChild("UpperTorso") | |
747 | humtor = temp2:FindFirstChildOfClass("Humanoid") | |
748 | if temp ~= nil and humtor ~= nil and humtor.Health > 0 then | |
749 | if (temp.Position - pos).magnitude < dis then | |
750 | table.insert(peopletab,temp) | |
751 | dis = (temp.Position - pos).magnitude | |
752 | end | |
753 | end | |
754 | end | |
755 | end | |
756 | return peopletab | |
757 | end | |
758 | ||
759 | function Slash() | |
760 | if Slashing == false and attacking == false then | |
761 | attacking = true | |
762 | Slashing = true | |
763 | cut = true | |
764 | hum.WalkSpeed = 2 | |
765 | hum.JumpPower = 5 | |
766 | if Slashing == true and attacking == true then | |
767 | tdmg = bladeP.Touched:connect(function(hit) | |
768 | if cut == true and Slashing == true and hit.Parent:FindFirstChildOfClass("Humanoid") and not hit:IsDescendantOf(char) and hit.Name ~= "scar" then | |
769 | if hit.Parent == nil then | |
770 | return | |
771 | end | |
772 | cut = false | |
773 | local cutman = hit.Parent | |
774 | local cutthing = hit | |
775 | local cuthum = cutman:FindFirstChildOfClass("Humanoid") | |
776 | cuthum.Health = cuthum.Health - 30 | |
777 | for i = 1,10 do | |
778 | local ranAng = math.random(-360, 360) | |
779 | local scar = Instance.new("Part", cutman) | |
780 | scar.Name = "scar" | |
781 | scar.CanCollide = false | |
782 | scar.Anchored = true | |
783 | scar.Material = "Neon" | |
784 | scar.BrickColor = BrickColor.new("New Yeller") | |
785 | scar.Size = Vector3.new(0.1, 0.1, 0.1) | |
786 | local scarm = Instance.new("SpecialMesh", scar) | |
787 | scarm.MeshType = "Sphere" | |
788 | scarm.Scale = Vector3.new(1, 20, 20) | |
789 | scar.CFrame = cutthing.CFrame * CFa(Rad(ranAng), Rad(ranAng), Rad(ranAng)) | |
790 | local partprop = {Scale = Vector3.new(150, 10, 10)} | |
791 | local partprop2 = {Transparency = 1} | |
792 | local tween = tweenserv:Create(scarm, tweeninfo, partprop) | |
793 | local tween2 = tweenserv:Create(scar, tweeninfo, partprop2) | |
794 | tween:Play() | |
795 | tween2:Play() | |
796 | game:GetService("Debris"):AddItem(scar, 0.5) | |
797 | end | |
798 | elseif cut == true and Slashing == true and hit.Parent.Parent:FindFirstChildOfClass("Humanoid") and not hit:IsDescendantOf(char) and hit.Name ~= "scar" then | |
799 | if hit.Parent.Parent == nil then | |
800 | return | |
801 | end | |
802 | cut = false | |
803 | local cutman = hit.Parent.Parent | |
804 | local cutthing = hit | |
805 | local cuthum = cutman:FindFirstChildOfClass("Humanoid") | |
806 | cuthum.Health = cuthum.Health - 30 | |
807 | for i = 1,10 do | |
808 | local ranAng = math.random(-360, 360) | |
809 | local scar = Instance.new("Part", cutman) | |
810 | scar.Name = "scar" | |
811 | scar.CanCollide = false | |
812 | scar.Anchored = true | |
813 | scar.Material = "Neon" | |
814 | scar.BrickColor = BrickColor.new("New Yeller") | |
815 | scar.Size = Vector3.new(0.1, 0.1, 0.1) | |
816 | local scarm = Instance.new("SpecialMesh", scar) | |
817 | scarm.MeshType = "Sphere" | |
818 | scarm.Scale = Vector3.new(1, 20, 20) | |
819 | scar.CFrame = cutthing.CFrame * CFa(Rad(ranAng), Rad(ranAng), Rad(ranAng)) | |
820 | local partprop = {Scale = Vector3.new(150, 10, 10)} | |
821 | local partprop2 = {Transparency = 1} | |
822 | local tween = tweenserv:Create(scarm, tweeninfo, partprop) | |
823 | local tween2 = tweenserv:Create(scar, tweeninfo, partprop2) | |
824 | tween:Play() | |
825 | tween2:Play() | |
826 | game:GetService("Debris"):AddItem(scar, 0.5) | |
827 | end | |
828 | end | |
829 | end) | |
830 | end | |
831 | if attackstate == 1 then | |
832 | for i = 0,1,.15 do | |
833 | hPw.C1 = clerp(hPw.C1, hPw1, i) | |
834 | hPw.C0 = clerp(hPw.C0, hPw0, i) | |
835 | neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(5), 0, Rad(-15)), i) | |
836 | rootj.C1 = clerp(rootj.C1, rootj1 * CFn(0, 0, 0.1) * CFa(Rad(-10), 0, Rad(-15)), i) | |
837 | LS.C1 = clerp(LS.C1, LS1 * CFn(0, 0.2, 0.2) * CFa(Rad(30), 0, Rad(-30)), i) | |
838 | RS.C1 = clerp(RS.C1, RS1 * CFn(0, 0.4, 0.2) * CFa(Rad(-50), Rad(-110), Rad(-120)), i) | |
839 | LH.C1 = clerp(LH.C1, LH1 * CFn(0.1, -0.1, 0) * CFa(Rad(5), 0, Rad(-10)), i) | |
840 | RH.C1 = clerp(RH.C1, RH1 * CFn(-0.1, -0.1, 0) * CFa(Rad(5), 0, Rad(-10)), i) | |
841 | neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), i) | |
842 | rootj.C0 = clerp(rootj.C0, rootj0 * CFa(Rad(5), 0, 0), i) | |
843 | LS.C0 = clerp(LS.C0, LS0, i) | |
844 | RS.C0 = clerp(RS.C0, RS0, i) | |
845 | LH.C0 = clerp(LH.C0, LH0 * CFa(0, 0, Rad(5)), i) | |
846 | RH.C0 = clerp(RH.C0, RH0 * CFa(0, 0, Rad(5)), i) | |
847 | swait() | |
848 | end | |
849 | if not bladeP:FindFirstChild("1,2sounds") then | |
850 | local sound12 = Instance.new("Sound", bladeP) | |
851 | sound12.SoundId = "rbxassetid://588693156" | |
852 | sound12.Volume = 2 | |
853 | sound12.Name = "1,2sounds" | |
854 | sound12:Play() | |
855 | else | |
856 | local sound12 = bladeP:FindFirstChild("1,2sounds") | |
857 | sound12:Play() | |
858 | end | |
859 | for i = 0,1,.15 do | |
860 | hPw.C1 = clerp(hPw.C1, hPw1, i) | |
861 | hPw.C0 = clerp(hPw.C0, hPw0, i) | |
862 | neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(5), 0, Rad(-15)), i) | |
863 | rootj.C1 = clerp(rootj.C1, rootj1 * CFn(0, 0, 0.1) * CFa(Rad(10), 0, Rad(25)), i) | |
864 | LS.C1 = clerp(LS.C1, LS1 * CFn(0, 0.2, 0.2) * CFa(Rad(30), 0, Rad(-30)), i) | |
865 | RS.C1 = clerp(RS.C1, RS1 * CFn(0, 0.4, 0.2) * CFa(Rad(100), Rad(-20), Rad(10)), i) | |
866 | LH.C1 = clerp(LH.C1, LH1 * CFn(0.1, -0.1, 0) * CFa(Rad(5), 0, Rad(-10)), i) | |
867 | RH.C1 = clerp(RH.C1, RH1 * CFn(-0.1, -0.1, 0) * CFa(Rad(5), 0, Rad(10)), i) | |
868 | neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), i) | |
869 | rootj.C0 = clerp(rootj.C0, rootj0 * CFa(Rad(5), 0, 0), i) | |
870 | LS.C0 = clerp(LS.C0, LS0, i) | |
871 | RS.C0 = clerp(RS.C0, RS0, i) | |
872 | LH.C0 = clerp(LH.C0, LH0 * CFa(0, 0, Rad(5)), i) | |
873 | RH.C0 = clerp(RH.C0, RH0 * CFa(0, 0, Rad(5)), i) | |
874 | swait() | |
875 | end | |
876 | attackstate = 2 | |
877 | elseif attackstate == 2 then | |
878 | for i = 0,1,.15 do | |
879 | hPw.C1 = clerp(hPw.C1, hPw1, i) | |
880 | hPw.C0 = clerp(hPw.C0, hPw0, i) | |
881 | neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(5), 0, Rad(-15)), i) | |
882 | rootj.C1 = clerp(rootj.C1, rootj1 * CFn(0, 0, 0.1) * CFa(Rad(10), 0, Rad(25)), i) | |
883 | LS.C1 = clerp(LS.C1, LS1 * CFn(0, 0.2, 0.2) * CFa(Rad(30), 0, Rad(-30)), i) | |
884 | RS.C1 = clerp(RS.C1, RS1 * CFn(0, 0.4, 0.2) * CFa(Rad(70), Rad(-20), Rad(-110)), i) | |
885 | LH.C1 = clerp(LH.C1, LH1 * CFn(0.1, -0.1, 0) * CFa(Rad(5), 0, Rad(-10)), i) | |
886 | RH.C1 = clerp(RH.C1, RH1 * CFn(-0.1, -0.1, 0) * CFa(Rad(5), 0, Rad(10)), i) | |
887 | neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), i) | |
888 | rootj.C0 = clerp(rootj.C0, rootj0 * CFa(Rad(5), 0, 0), i) | |
889 | LS.C0 = clerp(LS.C0, LS0, i) | |
890 | RS.C0 = clerp(RS.C0, RS0, i) | |
891 | LH.C0 = clerp(LH.C0, LH0 * CFa(0, 0, Rad(5)), i) | |
892 | RH.C0 = clerp(RH.C0, RH0 * CFa(0, 0, Rad(5)), i) | |
893 | swait() | |
894 | end | |
895 | if not bladeP:FindFirstChild("1,2sounds") then | |
896 | local sound12 = Instance.new("Sound", bladeP) | |
897 | sound12.SoundId = "rbxassetid://588693156" | |
898 | sound12.Volume = 2 | |
899 | sound12.Name = "1,2sounds" | |
900 | sound12:Play() | |
901 | else | |
902 | local sound12 = bladeP:FindFirstChild("1,2sounds") | |
903 | sound12:Play() | |
904 | end | |
905 | for i = 0,1,.15 do | |
906 | hPw.C1 = clerp(hPw.C1, hPw1 * CFa(0, Rad(-20), 0), i) | |
907 | hPw.C0 = clerp(hPw.C0, hPw0, i) | |
908 | neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(5), 0, Rad(-15)), i) | |
909 | rootj.C1 = clerp(rootj.C1, rootj1 * CFn(0, 0, 0.1) * CFa(Rad(-10), 0, Rad(-15)), i) | |
910 | LS.C1 = clerp(LS.C1, LS1 * CFn(0, 0.2, 0.2) * CFa(Rad(30), 0, Rad(-30)), i) | |
911 | RS.C1 = clerp(RS.C1, RS1 * CFn(0, 0.4, 0.2) * CFa(Rad(-20), Rad(-10), Rad(-20)), i) | |
912 | LH.C1 = clerp(LH.C1, LH1 * CFn(0.1, -0.1, 0) * CFa(Rad(5), 0, Rad(-10)), i) | |
913 | RH.C1 = clerp(RH.C1, RH1 * CFn(-0.1, -0.1, 0) * CFa(Rad(5), 0, Rad(-10)), i) | |
914 | neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), i) | |
915 | rootj.C0 = clerp(rootj.C0, rootj0 * CFa(Rad(5), 0, 0), i) | |
916 | LS.C0 = clerp(LS.C0, LS0, i) | |
917 | RS.C0 = clerp(RS.C0, RS0, i) | |
918 | LH.C0 = clerp(LH.C0, LH0 * CFa(0, 0, Rad(5)), i) | |
919 | RH.C0 = clerp(RH.C0, RH0 * CFa(0, 0, Rad(5)), i) | |
920 | swait() | |
921 | end | |
922 | attackstate = 3 | |
923 | elseif attackstate == 3 then | |
924 | for i = 0,1,.15 do | |
925 | hPw.C1 = clerp(hPw.C1, hPw1 * CFn(-0.3, -0.3, 0) * CFa(0, Rad(10), Rad(-35)), i) | |
926 | hPw.C0 = clerp(hPw.C0, hPw0, i) | |
927 | neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(15), 0, Rad(-15)), i) | |
928 | rootj.C1 = clerp(rootj.C1, rootj1 * CFn(0, 0, 0.1) * CFa(Rad(45), 0, 0), i) | |
929 | LS.C1 = clerp(LS.C1, LS1 * CFn(0, 0.2, 0.2) * CFa(Rad(-30), 0, Rad(120)), i) | |
930 | RS.C1 = clerp(RS.C1, RS1 * CFn(0, 0.2, 0.2) * CFa(Rad(-30), 0, Rad(-120)), i) | |
931 | LH.C1 = clerp(LH.C1, LH1 * CFn(0.1, -0.1, 0) * CFa(Rad(5), 0, Rad(-45)), i) | |
932 | RH.C1 = clerp(RH.C1, RH1 * CFn(-0.1, -0.1, 0) * CFa(Rad(5), 0, Rad(45)), i) | |
933 | neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), i) | |
934 | rootj.C0 = clerp(rootj.C0, rootj0 * CFa(Rad(5), 0, 0), i) | |
935 | LS.C0 = clerp(LS.C0, LS0, i) | |
936 | RS.C0 = clerp(RS.C0, RS0, i) | |
937 | LH.C0 = clerp(LH.C0, LH0 * CFa(0, 0, Rad(5)), i) | |
938 | RH.C0 = clerp(RH.C0, RH0 * CFa(0, 0, Rad(5)), i) | |
939 | swait() | |
940 | end | |
941 | if not bladeP:FindFirstChild("3sounds") then | |
942 | local sound3 = Instance.new("Sound", bladeP) | |
943 | sound3.SoundId = "rbxassetid://588693922" | |
944 | sound3.Volume = 2 | |
945 | sound3.Name = "3sounds" | |
946 | sound3:Play() | |
947 | else | |
948 | local sound3 = bladeP:FindFirstChild("3sounds") | |
949 | sound3:Play() | |
950 | end | |
951 | for i = 0,1,.15 do | |
952 | hPw.C1 = clerp(hPw.C1, hPw1 * CFn(-0.3, -0.3, 0) * CFa(0, Rad(-30), Rad(-35)), i) | |
953 | hPw.C0 = clerp(hPw.C0, hPw0, i) | |
954 | neck.C1 = clerp(neck.C1, neck1 * CFa(0, 0, Rad(-15)), i) | |
955 | rootj.C1 = clerp(rootj.C1, rootj1 * CFn(0, 0, 0.1) * CFa(Rad(-40), 0, 0), i) | |
956 | LS.C1 = clerp(LS.C1, LS1 * CFn(0, 0.2, 0.2) * CFa(Rad(-30), 0, Rad(10)), i) | |
957 | RS.C1 = clerp(RS.C1, RS1 * CFn(0, 0.2, 0.2) * CFa(Rad(-30), 0, Rad(-10)), i) | |
958 | LH.C1 = clerp(LH.C1, LH1 * CFn(0.1, -0.1, 0) * CFa(Rad(5), 0, Rad(40)), i) | |
959 | RH.C1 = clerp(RH.C1, RH1 * CFn(-0.1, -0.1, 0) * CFa(Rad(5), 0, Rad(-40)), i) | |
960 | neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), i) | |
961 | rootj.C0 = clerp(rootj.C0, rootj0 * CFa(Rad(5), 0, 0), i) | |
962 | LS.C0 = clerp(LS.C0, LS0, i) | |
963 | RS.C0 = clerp(RS.C0, RS0, i) | |
964 | LH.C0 = clerp(LH.C0, LH0 * CFa(0, 0, Rad(5)), i) | |
965 | RH.C0 = clerp(RH.C0, RH0 * CFa(0, 0, Rad(5)), i) | |
966 | swait() | |
967 | end | |
968 | attackstate = 1 | |
969 | end | |
970 | hum.WalkSpeed = nws | |
971 | hum.JumpPower = jp | |
972 | cut = false | |
973 | tdmg:Disconnect() | |
974 | Slashing = false | |
975 | attacking = false | |
976 | end | |
977 | end | |
978 | ||
979 | function longSlash() | |
980 | if lSlashing == false and attacking == false then | |
981 | attacking = true | |
982 | lSlashing = true | |
983 | shoot = true | |
984 | hum.WalkSpeed = 2 | |
985 | hum.JumpPower = 5 | |
986 | for i = 0,1,.15 do | |
987 | hPw.C1 = clerp(hPw.C1, hPw1, i) | |
988 | hPw.C0 = clerp(hPw.C0, hPw0, i) | |
989 | neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(5), 0, Rad(-15)), i) | |
990 | rootj.C1 = clerp(rootj.C1, rootj1 * CFn(0, 0, 0.1) * CFa(Rad(20), 0, Rad(-30)), i) | |
991 | LS.C1 = clerp(LS.C1, LS1 * CFn(0, 0.2, 0.2) * CFa(Rad(30), 0, Rad(-30)), i) | |
992 | RS.C1 = clerp(RS.C1, RS1 * CFn(0, 0.4, 0.2) * CFa(Rad(-50), Rad(-70), Rad(-160)), i) | |
993 | LH.C1 = clerp(LH.C1, LH1 * CFn(0.1, -0.1, 0) * CFa(Rad(5), 0, Rad(-20)), i) | |
994 | RH.C1 = clerp(RH.C1, RH1 * CFn(-0.1, -0.1, 0) * CFa(Rad(5), 0, Rad(20)), i) | |
995 | neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), i) | |
996 | rootj.C0 = clerp(rootj.C0, rootj0 * CFa(Rad(5), 0, 0), i) | |
997 | LS.C0 = clerp(LS.C0, LS0, i) | |
998 | RS.C0 = clerp(RS.C0, RS0, i) | |
999 | LH.C0 = clerp(LH.C0, LH0 * CFa(0, 0, Rad(5)), i) | |
1000 | RH.C0 = clerp(RH.C0, RH0 * CFa(0, 0, Rad(5)), i) | |
1001 | swait() | |
1002 | end | |
1003 | local slashp = Instance.new("Part", char) | |
1004 | slashp.BrickColor = BrickColor.new("New Yeller") | |
1005 | slashp.Material = "Neon" | |
1006 | slashp.CanCollide = false | |
1007 | slashp.Size = Vector3.new(15, 3, 1) | |
1008 | slashp.Transparency = 1 | |
1009 | slashp.CFrame = CFn(bladeP.CFrame.p, mou.Hit.p) | |
1010 | local slashat0 = Instance.new("Attachment", slashp) | |
1011 | slashat0.Position = Vector3.new(7.5, 0, 0) | |
1012 | local slashat1 = Instance.new("Attachment", slashp) | |
1013 | slashat1.Position = Vector3.new(-7.5, 0, 0) | |
1014 | local slashat2 = Instance.new("Attachment", slashp) | |
1015 | slashat2.Position = Vector3.new(7.5, -1.5, 0) | |
1016 | local slashat3 = Instance.new("Attachment", slashp) | |
1017 | slashat3.Position = Vector3.new(-7.5, -1.5, 0) | |
1018 | local slashat4 = Instance.new("Attachment", slashp) | |
1019 | slashat4.Position = Vector3.new(7.5, 1.5, 0) | |
1020 | local slashat5 = Instance.new("Attachment", slashp) | |
1021 | slashat5.Position = Vector3.new(-7.5, 1.5, 0) | |
1022 | local slashpt = Instance.new("Trail", slashp) | |
1023 | slashpt.Color = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 255, 0)), ColorSequenceKeypoint.new(1, Color3.fromRGB(255, 255, 0))}) | |
1024 | slashpt.WidthScale = NumberSequence.new({NumberSequenceKeypoint.new(0, 1, 0), NumberSequenceKeypoint.new(0.5, 0, 0), NumberSequenceKeypoint.new(1, 0, 0)}) | |
1025 | slashpt.Lifetime = 0.35 | |
1026 | slashpt.LightEmission = 1 | |
1027 | slashpt.Attachment0 = slashat0 | |
1028 | slashpt.Attachment1 = slashat1 | |
1029 | slashpt.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0, 0), NumberSequenceKeypoint.new(0.6, 0.5, 0), NumberSequenceKeypoint.new(1, 0.5, 0)}) | |
1030 | local slashpt2 = Instance.new("Trail", slashp) | |
1031 | slashpt2.Color = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 255, 0)), ColorSequenceKeypoint.new(1, Color3.fromRGB(255, 255, 0))}) | |
1032 | slashpt2.WidthScale = NumberSequence.new({NumberSequenceKeypoint.new(0, 1, 0), NumberSequenceKeypoint.new(0.5, 0, 0), NumberSequenceKeypoint.new(1, 0, 0)}) | |
1033 | slashpt2.Lifetime = 0.35 | |
1034 | slashpt2.LightEmission = 1 | |
1035 | slashpt2.Attachment0 = slashat2 | |
1036 | slashpt2.Attachment1 = slashat3 | |
1037 | slashpt2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0, 0), NumberSequenceKeypoint.new(0.6, 0.5, 0), NumberSequenceKeypoint.new(1, 0.5, 0)}) | |
1038 | local slashpt3 = Instance.new("Trail", slashp) | |
1039 | slashpt3.Color = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 255, 0)), ColorSequenceKeypoint.new(1, Color3.fromRGB(255, 255, 0))}) | |
1040 | slashpt3.WidthScale = NumberSequence.new({NumberSequenceKeypoint.new(0, 1, 0), NumberSequenceKeypoint.new(0.5, 0, 0), NumberSequenceKeypoint.new(1, 0, 0)}) | |
1041 | slashpt3.Lifetime = 0.35 | |
1042 | slashpt3.LightEmission = 1 | |
1043 | slashpt3.Attachment0 = slashat4 | |
1044 | slashpt3.Attachment1 = slashat5 | |
1045 | slashpt3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0, 0), NumberSequenceKeypoint.new(0.6, 0.5, 0), NumberSequenceKeypoint.new(1, 0.5, 0)}) | |
1046 | local slashbv = Instance.new("BodyVelocity", slashp) | |
1047 | slashbv.Velocity = mou.Hit.lookVector * 180 | |
1048 | slashbv.MaxForce = Vector3.new(100000000000, 100000000000, 100000000000) | |
1049 | game:GetService("Debris"):AddItem(slashp, 15) | |
1050 | slashp.Touched:connect(function(hit) | |
1051 | if shoot == true and hit.Parent:FindFirstChildOfClass("Humanoid") and not hit:IsDescendantOf(char) then | |
1052 | shoot = false | |
1053 | slashp:Destroy() | |
1054 | local shootman = hit.Parent | |
1055 | local shoottor = shootman:FindFirstChild("Torso") or shootman:FindFirstChild("UpperTorso") | |
1056 | local shoothum = shootman:FindFirstChildOfClass("Humanoid") | |
1057 | shoothum.Health = shoothum.Health - 75 | |
1058 | local ranPit = math.random(0.9, 1.4) | |
1059 | if not shoottor:FindFirstChild("XDthxforthesoundtho") then | |
1060 | local boom = Instance.new("Sound", shoottor) | |
1061 | boom.SoundId = "rbxassetid://3015952873" | |
1062 | boom.Volume = 3 | |
1063 | boom.Pitch = ranPit | |
1064 | boom.Name = "XDthxforthesoundtho" | |
1065 | boom:Play() | |
1066 | else | |
1067 | local boom = shoottor:FindFirstChild("XDthxforthesoundtho") | |
1068 | boom.Pitch = ranPit | |
1069 | boom:Play() | |
1070 | end | |
1071 | for i = 1,15 do | |
1072 | local ranAng2 = math.random(-360, 360) | |
1073 | local scar2 = Instance.new("Part", char) | |
1074 | scar2.Name = "scar" | |
1075 | scar2.CanCollide = false | |
1076 | scar2.Anchored = true | |
1077 | scar2.Material = "Neon" | |
1078 | scar2.BrickColor = BrickColor.new("New Yeller") | |
1079 | scar2.Size = Vector3.new(0.1, 0.1, 0.1) | |
1080 | local scarm2 = Instance.new("SpecialMesh", scar2) | |
1081 | scarm2.MeshType = "Sphere" | |
1082 | scarm2.Scale = Vector3.new(800, 1, 1) | |
1083 | scar2.CFrame = shoottor.CFrame * CFa(Rad(ranAng2), Rad(ranAng2), Rad(ranAng2)) | |
1084 | local partprop3 = {Scale = Vector3.new(600, 40, 40)} | |
1085 | local partprop4 = {Transparency = 1} | |
1086 | local tween3 = tweenserv:Create(scarm2, tweeninfo, partprop3) | |
1087 | local tween4 = tweenserv:Create(scar2, tweeninfo, partprop4) | |
1088 | tween3:Play() | |
1089 | tween4:Play() | |
1090 | game:GetService("Debris"):AddItem(scar2, 0.5) | |
1091 | local cutSparkle = Instance.new("Part", char) | |
1092 | cutSparkle.Name = "cutSparkle2244" | |
1093 | cutSparkle.CanCollide = false | |
1094 | cutSparkle.Anchored = true | |
1095 | cutSparkle.Material = "Neon" | |
1096 | cutSparkle.BrickColor = BrickColor.new("Really red") | |
1097 | cutSparkle.Size = Vector3.new(10, 10, 10) | |
1098 | cutSparkle.CFrame = shoottor.CFrame | |
1099 | local ranPos = math.random(-30, 30) | |
1100 | local ranPos2 = math.random(-30, 30) | |
1101 | local ranPos3 = math.random(-30, 30) | |
1102 | local partprop5 = {CFrame = shoottor.CFrame * CFn(ranPos, ranPos2, ranPos3) * CFa(ranAng2, ranAng2, ranAng2); Size = Vector3.new(0.1, 0.1, 0.1)} | |
1103 | local tween5 = tweenserv:Create(cutSparkle, tweeninfo, partprop5) | |
1104 | tween5:Play() | |
1105 | game:GetService("Debris"):AddItem(cutSparkle, 0.5) | |
1106 | end | |
1107 | elseif shoot == true and hit.Parent.Parent:FindFirstChildOfClass("Humanoid") and not hit:IsDescendantOf(char) then | |
1108 | shoot = false | |
1109 | slashp:Destroy() | |
1110 | local shootman = hit.Parent.Parent | |
1111 | local shoottor = shootman:FindFirstChild("Torso") or shootman:FindFirstChild("UpperTorso") | |
1112 | local shoothum = shootman:FindFirstChildOfClass("Humanoid") | |
1113 | shoothum.Health = shoothum.Health - 99 | |
1114 | local ranPit = math.random(0.9, 1.4) | |
1115 | if not shoottor:FindFirstChild("XDthxforthesoundtho") then | |
1116 | local boom = Instance.new("Sound", shoottor) | |
1117 | boom.SoundId = "rbxassetid://623904185" | |
1118 | boom.Volume = 3 | |
1119 | boom.Pitch = ranPit | |
1120 | boom.Name = "XDthxforthesoundtho" | |
1121 | boom:Play() | |
1122 | else | |
1123 | local boom = shoottor:FindFirstChild("XDthxforthesoundtho") | |
1124 | boom.Pitch = ranPit | |
1125 | boom:Play() | |
1126 | end | |
1127 | for i = 1,15 do | |
1128 | local ranAng2 = math.random(-360, 360) | |
1129 | local scar2 = Instance.new("Part", char) | |
1130 | scar2.Name = "scar" | |
1131 | scar2.CanCollide = false | |
1132 | scar2.Anchored = true | |
1133 | scar2.Material = "Neon" | |
1134 | scar2.BrickColor = BrickColor.new("New Yeller") | |
1135 | scar2.Size = Vector3.new(0.1, 0.1, 0.1) | |
1136 | local scarm2 = Instance.new("SpecialMesh", scar2) | |
1137 | scarm2.MeshType = "Sphere" | |
1138 | scarm2.Scale = Vector3.new(800, 1, 1) | |
1139 | scar2.CFrame = shoottor.CFrame * CFa(Rad(ranAng2), Rad(ranAng2), Rad(ranAng2)) | |
1140 | local partprop3 = {Scale = Vector3.new(600, 40, 40)} | |
1141 | local partprop4 = {Transparency = 1} | |
1142 | local tween3 = tweenserv:Create(scarm2, tweeninfo, partprop3) | |
1143 | local tween4 = tweenserv:Create(scar2, tweeninfo, partprop4) | |
1144 | tween3:Play() | |
1145 | tween4:Play() | |
1146 | game:GetService("Debris"):AddItem(scar2, 0.5) | |
1147 | local cutSparkle = Instance.new("Part", char) | |
1148 | cutSparkle.Name = "cutSparkle2244" | |
1149 | cutSparkle.CanCollide = false | |
1150 | cutSparkle.Anchored = true | |
1151 | cutSparkle.Material = "Neon" | |
1152 | cutSparkle.BrickColor = BrickColor.new("New Yeller") | |
1153 | cutSparkle.Size = Vector3.new(10, 10, 10) | |
1154 | cutSparkle.CFrame = shoottor.CFrame | |
1155 | local ranPos = math.random(-30, 30) | |
1156 | local ranPos2 = math.random(-30, 30) | |
1157 | local ranPos3 = math.random(-30, 30) | |
1158 | local partprop5 = {CFrame = shoottor.CFrame * CFn(ranPos, ranPos2, ranPos3) * CFa(ranAng2, ranAng2, ranAng2); Size = Vector3.new(0.1, 0.1, 0.1)} | |
1159 | local tween5 = tweenserv:Create(cutSparkle, tweeninfo, partprop5) | |
1160 | tween5:Play() | |
1161 | game:GetService("Debris"):AddItem(cutSparkle, 0.5) | |
1162 | end | |
1163 | end | |
1164 | end) | |
1165 | for i = 0,1,.15 do | |
1166 | hPw.C1 = clerp(hPw.C1, hPw1, i) | |
1167 | hPw.C0 = clerp(hPw.C0, hPw0, i) | |
1168 | neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(5), 0, Rad(-15)), i) | |
1169 | rootj.C1 = clerp(rootj.C1, rootj1 * CFn(0, 0, 0.1) * CFa(Rad(-10), 0, Rad(50)), i) | |
1170 | LS.C1 = clerp(LS.C1, LS1 * CFn(0, 0.2, 0.2) * CFa(Rad(30), 0, Rad(-30)), i) | |
1171 | RS.C1 = clerp(RS.C1, RS1 * CFn(0, 0.4, 0.2) * CFa(Rad(60), Rad(-20), Rad(10)), i) | |
1172 | LH.C1 = clerp(LH.C1, LH1 * CFn(0.1, -0.1, 0) * CFa(Rad(5), 0, Rad(10)), i) | |
1173 | RH.C1 = clerp(RH.C1, RH1 * CFn(-0.1, -0.1, 0) * CFa(Rad(5), 0, Rad(-10)), i) | |
1174 | neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), i) | |
1175 | rootj.C0 = clerp(rootj.C0, rootj0 * CFa(Rad(5), 0, 0), i) | |
1176 | LS.C0 = clerp(LS.C0, LS0, i) | |
1177 | RS.C0 = clerp(RS.C0, RS0, i) | |
1178 | LH.C0 = clerp(LH.C0, LH0 * CFa(0, 0, Rad(5)), i) | |
1179 | RH.C0 = clerp(RH.C0, RH0 * CFa(0, 0, Rad(5)), i) | |
1180 | swait() | |
1181 | end | |
1182 | hum.WalkSpeed = nws | |
1183 | hum.JumpPower = jp | |
1184 | lSlashing = false | |
1185 | attacking = false | |
1186 | end | |
1187 | end | |
1188 | ||
1189 | function SwordSlam() | |
1190 | if Slamming == false and attacking == false then | |
1191 | attacking = true | |
1192 | Slamming = true | |
1193 | hum.WalkSpeed = 0 | |
1194 | hum.JumpPower = 0 | |
1195 | for i = 0,1,.1 do | |
1196 | hPw.C1 = clerp(hPw.C1, hPw1 * CFn(-0.3, -0.3, 0) * CFa(0, Rad(-150), Rad(-35)), i) | |
1197 | hPw.C0 = clerp(hPw.C0, hPw0, i) | |
1198 | neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(15), 0, Rad(-15)), i) | |
1199 | rootj.C1 = clerp(rootj.C1, rootj1 * CFn(0, 0, 0.1) * CFa(Rad(45), 0, 0), i) | |
1200 | LS.C1 = clerp(LS.C1, LS1 * CFn(0, 0.2, 0.2) * CFa(Rad(-30), 0, Rad(130)), i) | |
1201 | RS.C1 = clerp(RS.C1, RS1 * CFn(0, 0.2, 0.2) * CFa(Rad(-30), 0, Rad(-130)), i) | |
1202 | LH.C1 = clerp(LH.C1, LH1 * CFn(0.1, -0.1, 0) * CFa(Rad(5), 0, Rad(-45)), i) | |
1203 | RH.C1 = clerp(RH.C1, RH1 * CFn(-0.1, -0.1, 0) * CFa(Rad(5), 0, Rad(45)), i) | |
1204 | neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), i) | |
1205 | rootj.C0 = clerp(rootj.C0, rootj0 * CFa(Rad(5), 0, 0), i) | |
1206 | LS.C0 = clerp(LS.C0, LS0, i) | |
1207 | RS.C0 = clerp(RS.C0, RS0, i) | |
1208 | LH.C0 = clerp(LH.C0, LH0 * CFa(0, 0, Rad(5)), i) | |
1209 | RH.C0 = clerp(RH.C0, RH0 * CFa(0, 0, Rad(5)), i) | |
1210 | swait() | |
1211 | end | |
1212 | if not bladeP:FindFirstChild("SLAMMM") then | |
1213 | local SPAM = Instance.new("Sound", bladeP) | |
1214 | SPAM.SoundId = "rbxassetid://1548538202" | |
1215 | SPAM.Name = "SLAMMM" | |
1216 | SPAM.Volume = 4 | |
1217 | SPAM:Play() | |
1218 | else | |
1219 | local SPAM = bladeP:FindFirstChild("SLAMMM") | |
1220 | SPAM:Play() | |
1221 | end | |
1222 | for i = 1,30 do | |
1223 | local ranAng3 = math.random(-360, 360) | |
1224 | local ranAng4 = math.random(-360, 360) | |
1225 | local ranPos4 = math.random(-80, 80) | |
1226 | local ranPos5 = math.random(-80, 80) | |
1227 | local ranPos6 = math.random(-80, 80) | |
1228 | local ranPos7 = math.random(-80, 80) | |
1229 | local ranPos8 = math.random(-80, 80) | |
1230 | local ranPos9 = math.random(-80, 80) | |
1231 | local FIRE = Instance.new("Part", char) | |
1232 | FIRE.Material = "Neon" | |
1233 | FIRE.BrickColor = BrickColor.new("Really red") | |
1234 | FIRE.CanCollide = false | |
1235 | FIRE.Size = Vector3.new(30, 30, 30) | |
1236 | FIRE.Anchored = true | |
1237 | FIRE.CFrame = bladeP.CFrame | |
1238 | local FIRE2 = Instance.new("Part", char) | |
1239 | FIRE2.Material = "Neon" | |
1240 | FIRE2.BrickColor = BrickColor.new("Bright blue") | |
1241 | FIRE2.CanCollide = false | |
1242 | FIRE2.Anchored = true | |
1243 | FIRE2.CFrame = bladeP.CFrame | |
1244 | local FIREM = Instance.new("SpecialMesh", FIRE2) | |
1245 | FIREM.MeshType = "Sphere" | |
1246 | FIREM.Scale = Vector3.new(3, 1, 1) | |
1247 | local tweeninfo2 = TweenInfo.new(1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out, 0, false, 0) | |
1248 | local partprop6 = {CFrame = bladeP.CFrame * CFn(ranPos4, ranPos5, ranPos6) * CFa(ranAng3, ranAng3, ranAng3); Size = Vector3.new(0.1, 0.1, 0.1)} | |
1249 | local partprop7 = {CFrame = bladeP.CFrame * CFn(ranPos7, ranPos8, ranPos9) * CFa(ranAng4, ranAng4, ranAng4); Transparency = 1} | |
1250 | local partprop8 = {Scale = Vector3.new(15, 5, 5)} | |
1251 | local tween6 = tweenserv:Create(FIRE, tweeninfo2, partprop6) | |
1252 | local tween7 = tweenserv:Create(FIRE2, tweeninfo2, partprop7) | |
1253 | local tween8 = tweenserv:Create(FIREM, tweeninfo2, partprop8) | |
1254 | tween6:Play() | |
1255 | tween7:Play() | |
1256 | tween8:Play() | |
1257 | game:GetService("Debris"):AddItem(FIRE, 1) | |
1258 | game:GetService("Debris"):AddItem(FIRE2, 1) | |
1259 | end | |
1260 | for i,v in pairs(GetTorsos(bladeP.Position, 35)) do | |
1261 | if v.Parent:FindFirstChildOfClass("Humanoid") then | |
1262 | v.Parent:FindFirstChildOfClass("Humanoid").Health = v.Parent:FindFirstChildOfClass("Humanoid").Health - 300 | |
1263 | end | |
1264 | end | |
1265 | for i = 0,1,.1 do | |
1266 | hPw.C1 = clerp(hPw.C1, hPw1 * CFn(-0.3, -0.3, 0) * CFa(0, Rad(-150), Rad(-35)), i) | |
1267 | hPw.C0 = clerp(hPw.C0, hPw0, i) | |
1268 | neck.C1 = clerp(neck.C1, neck1 * CFa(0, 0, Rad(-15)), i) | |
1269 | rootj.C1 = clerp(rootj.C1, rootj1 * CFn(0, 1, 0.1) * CFa(Rad(-40), 0, 0), i) | |
1270 | LS.C1 = clerp(LS.C1, LS1 * CFn(0, 0.2, 0.2) * CFa(Rad(-30), 0, Rad(90)), i) | |
1271 | RS.C1 = clerp(RS.C1, RS1 * CFn(0, 0.2, 0.2) * CFa(Rad(-30), 0, Rad(-90)), i) | |
1272 | LH.C1 = clerp(LH.C1, LH1 * CFn(0.1, -0.5, 0) * CFa(Rad(5), 0, Rad(-40)), i) | |
1273 | RH.C1 = clerp(RH.C1, RH1 * CFn(-0.5, -0.5, 0) * CFa(Rad(5), 0, Rad(-40)), i) | |
1274 | neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), i) | |
1275 | rootj.C0 = clerp(rootj.C0, rootj0 * CFa(Rad(5), 0, 0), i) | |
1276 | LS.C0 = clerp(LS.C0, LS0, i) | |
1277 | RS.C0 = clerp(RS.C0, RS0, i) | |
1278 | LH.C0 = clerp(LH.C0, LH0 * CFa(0, 0, Rad(5)), i) | |
1279 | RH.C0 = clerp(RH.C0, RH0 * CFa(0, 0, Rad(5)), i) | |
1280 | swait() | |
1281 | end | |
1282 | hum.WalkSpeed = nws | |
1283 | hum.JumpPower = jp | |
1284 | Slamming = false | |
1285 | attacking = false | |
1286 | end | |
1287 | end | |
1288 | ||
1289 | function LockChar() | |
1290 | if mou.Target ~= nil and mou.Target.Parent:FindFirstChildOfClass("Humanoid") then | |
1291 | LOCKEDON = true | |
1292 | lockman = mou.Target.Parent | |
1293 | lockhead = lockman:FindFirstChild("Head") | |
1294 | locktor = lockman:FindFirstChild("Torso") or lockman:FindFirstChild("UpperTorso") | |
1295 | lockhum = lockman:FindFirstChildOfClass("Humanoid") | |
1296 | elseif mou.Target ~= nil and mou.Target.Parent.Parent:FindFirstChildOfClass("Humanoid") then | |
1297 | LOCKEDON = true | |
1298 | lockman = mou.Target.Parent.Parent | |
1299 | lockhead = lockman:FindFirstChild("Head") | |
1300 | locktor = lockman:FindFirstChild("Torso") or lockman:FindFirstChild("UpperTorso") | |
1301 | lockhum = lockman:FindFirstChildOfClass("Humanoid") | |
1302 | elseif mou.Target ~= nil and not mou.Target.Parent:FindFirstChildOfClass("Humanoid") and LOCKEDON == true then | |
1303 | LOCKEDON = false | |
1304 | lockman = nil | |
1305 | lockhead = nil | |
1306 | locktor = nil | |
1307 | lockhum = nil | |
1308 | elseif mou.Target ~= nil and not mou.Target.Parent.Parent:FindFirstChildOfClass("Humanoid") and LOCKEDON == true then | |
1309 | LOCKEDON = false | |
1310 | lockman = nil | |
1311 | lockhead = nil | |
1312 | locktor = nil | |
1313 | lockhum = nil | |
1314 | end | |
1315 | end | |
1316 | ||
1317 | ----------------------------------------------------------------------------- | |
1318 | ||
1319 | function kdown(k) | |
1320 | if string.byte(k) == 50 and running == false then | |
1321 | running = true | |
1322 | nws = ws + 11 | |
1323 | hum.WalkSpeed = nws | |
1324 | elseif string.byte(k) == 50 and running == true then | |
1325 | running = false | |
1326 | nws = ws | |
1327 | hum.WalkSpeed = nws | |
1328 | elseif k == "r" then | |
1329 | longSlash() | |
1330 | elseif k == "f" then | |
1331 | SwordSlam() | |
1332 | elseif k == "q" then | |
1333 | LockChar() | |
1334 | end | |
1335 | end | |
1336 | ||
1337 | function lmdown() | |
1338 | Slash() | |
1339 | end | |
1340 | ||
1341 | mou.KeyDown:connect(kdown) | |
1342 | mou.Button1Down:connect(lmdown) | |
1343 | ||
1344 | ----------------------------------------------------------------------------- | |
1345 | ||
1346 | warn([[ | |
1347 | ||
1348 | ||
1349 | oilsauce's Excalibur. | |
1350 | last updated: 2018/5/27, 12:56 JST. | |
1351 | ||
1352 | this was already logged so here | |
1353 | ||
1354 | Keys are | |
1355 | ||
1356 | R = Lethal damage Slash | |
1357 | F = Sword slam ( another lethal damage slash ) | |
1358 | Left click = sword slash | |
1359 | Q = Lock Character ( this is useless ) | |
1360 | ]]) | |
1361 | ||
1362 | ----------------------------------------------------------------------------- | |
1363 | ||
1364 | while true do | |
1365 | swait() | |
1366 | sine = sine + 1 | |
1367 | local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude | |
1368 | local campos = head.CFrame.p + Vector3.new(0, 10, 0) | |
1369 | if Slashing == true then | |
1370 | state = "Slash" | |
1371 | trial.Enabled = true | |
1372 | elseif lSlashing == true then | |
1373 | state = "LongSlash" | |
1374 | trial.Enabled = true | |
1375 | elseif Slamming == true then | |
1376 | state = "Slam" | |
1377 | trial.Enabled = true | |
1378 | elseif 1 < root.Velocity.y then | |
1379 | state = "Jump" | |
1380 | trial.Enabled = false | |
1381 | elseif -1 > root.Velocity.y then | |
1382 | state = "Fall" | |
1383 | trial.Enabled = false | |
1384 | elseif torvel < 1 then | |
1385 | state = "Idle" | |
1386 | trial.Enabled = false | |
1387 | elseif tor.Velocity.magnitude < 50 and running == true then | |
1388 | state = "Run" | |
1389 | trial.Enabled = true | |
1390 | elseif tor.Velocity.magnitude < 50 and running == false then | |
1391 | state = "Walk" | |
1392 | trial.Enabled = false | |
1393 | end | |
1394 | ||
1395 | if LOCKEDON == true then | |
1396 | root.CFrame = CFn(root.CFrame.p, Vector3.new(locktor.CFrame.x, root.CFrame.y, locktor.CFrame.z)) | |
1397 | cam.CoordinateFrame = clerp(cam.CoordinateFrame, CFn(campos, locktor.CFrame.p), 0.15) | |
1398 | end | |
1399 | ||
1400 | if state == "Jump" then | |
1401 | hPw.C1 = clerp(hPw.C1, hPw1 * CFn(0, -0.4, 0) * CFa(Rad(75), Rad(25), Rad(-90)), 0.15) | |
1402 | hPw.C0 = clerp(hPw.C0, hPw0, 0.15) | |
1403 | neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-20), 0, 0), 0.15) | |
1404 | rootj.C1 = clerp(rootj.C1, rootj1, 0.15) | |
1405 | LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(10), 0, Rad(-10)), 0.15) | |
1406 | RS.C1 = clerp(RS.C1, RS1 * CFa(Rad(10), 0, Rad(-65)), 0.15) | |
1407 | LH.C1 = clerp(LH.C1, LH1 * CFn(0.7, -1.3, -0.2) * CFa(Rad(-10), 0, Rad(-50)), 0.15) | |
1408 | RH.C1 = clerp(RH.C1, RH1 * CFn(-0.5, -1.1, 0) * CFa(Rad(-5), 0, Rad(40)), 0.15) | |
1409 | neck.C0 = clerp(neck.C0, neck0, 0.15) | |
1410 | rootj.C0 = clerp(rootj.C0, rootj0, 0.15) | |
1411 | LS.C0 = clerp(LS.C0, LS0, 0.15) | |
1412 | RS.C0 = clerp(RS.C0, RS0, 0.15) | |
1413 | LH.C0 = clerp(LH.C0, LH0, 0.15) | |
1414 | RH.C0 = clerp(RH.C0, RH0, 0.15) | |
1415 | elseif state == "Fall" then | |
1416 | hPw.C1 = clerp(hPw.C1, hPw1 * CFn(0, -0.4, 0) * CFa(Rad(60), Rad(25), Rad(-90)), 0.15) | |
1417 | hPw.C0 = clerp(hPw.C0, hPw0, 0.15) | |
1418 | neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-5), 0, 0), 0.15) | |
1419 | rootj.C1 = clerp(rootj.C1, rootj1 * CFa(Rad(10), 0, 0), 0.15) | |
1420 | LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(20), 0, Rad(-10)), 0.15) | |
1421 | RS.C1 = clerp(RS.C1, RS1 * CFa(Rad(10), 0, Rad(-50)), 0.15) | |
1422 | LH.C1 = clerp(LH.C1, LH1 * CFn(0.4, -0.7, -0.1) * CFa(Rad(-2), 0, 0), 0.15) | |
1423 | RH.C1 = clerp(RH.C1, RH1 * CFn(-0.2, -0.5, -0.1) * CFa(Rad(-2), 0, 0), 0.15) | |
1424 | neck.C0 = clerp(neck.C0, neck0, 0.15) | |
1425 | rootj.C0 = clerp(rootj.C0, rootj0, 0.15) | |
1426 | LS.C0 = clerp(LS.C0, LS0, 0.15) | |
1427 | RS.C0 = clerp(RS.C0, RS0, 0.15) | |
1428 | LH.C0 = clerp(LH.C0, LH0 * CFa(0, 0, Rad(20)), 0.15) | |
1429 | RH.C0 = clerp(RH.C0, RH0 * CFa(0, 0, Rad(-20)), 0.15) | |
1430 | elseif state == "Idle" then | |
1431 | hPw.C1 = clerp(hPw.C1, hPw1 * CFn(-0.3, -0.3, 0) * CFa(0, Rad(10), Rad(-35)), 0.15) | |
1432 | hPw.C0 = clerp(hPw.C0, hPw0, 0.15) | |
1433 | neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(5 * Cos(sine / 20)), 0, Rad(-15)), 0.15) | |
1434 | rootj.C1 = clerp(rootj.C1, rootj1 * CFn(0, 0, 0.1 * Cos(sine / 15)) * CFa(Rad(-5 * Cos(sine / 15)), 0, Rad(15)), 0.15) | |
1435 | LS.C1 = clerp(LS.C1, LS1 * CFn(0, 0.2, 0.2) * CFa(Rad(-30), 0, Rad(55)), 0.15) | |
1436 | RS.C1 = clerp(RS.C1, RS1 * CFn(0, 0.2, 0.2) * CFa(Rad(-30), 0, Rad(-55)), 0.15) | |
1437 | LH.C1 = clerp(LH.C1, LH1 * CFn(0.1 * Cos(sine / 15), -0.1 * Cos(sine / 15), 0) * CFa(Rad(5), Rad(-10), Rad(5 * Cos(sine / 15))), 0.15) | |
1438 | RH.C1 = clerp(RH.C1, RH1 * CFn(-0.1 * Cos(sine / 15), -0.1 * Cos(sine / 15), 0) * CFa(Rad(5), Rad(-15), Rad(-5 * Cos(sine / 15))), 0.15) | |
1439 | neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), 0.15) | |
1440 | rootj.C0 = clerp(rootj.C0, rootj0 * CFa(Rad(5), 0, 0), 0.15) | |
1441 | LS.C0 = clerp(LS.C0, LS0, 0.15) | |
1442 | RS.C0 = clerp(RS.C0, RS0, 0.15) | |
1443 | LH.C0 = clerp(LH.C0, LH0 * CFa(0, 0, Rad(5)), 0.15) | |
1444 | RH.C0 = clerp(RH.C0, RH0 * CFa(0, 0, Rad(5)), 0.15) | |
1445 | elseif state == "Run" then | |
1446 | hPw.C1 = clerp(hPw.C1, hPw1 * CFn(0, 0, -0.3) * CFa(0, Rad(-85), 0), 0.15) | |
1447 | hPw.C0 = clerp(hPw.C0, hPw0, 0.15) | |
1448 | neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-5), 0, 0), 0.15) | |
1449 | rootj.C1 = clerp(rootj.C1, rootj1 * CFa(Rad(-5 * Cos(sine / 1.5)), 0, Rad(5 * Cos(sine / 3))), 0.15) | |
1450 | LS.C1 = clerp(LS.C1, LS1 * CFn(-0.2 * Cos(sine / 3), -0.1 * Cos(sine / 6), 0) * CFa(Rad(10), 0, Rad(-110 * Cos(sine / 3))), 0.15) | |
1451 | RS.C1 = clerp(RS.C1, RS1 * CFn(0, 0.3, -0.1 * Cos(sine / 6)) * CFa(Rad(90), 0, 0), 0.15) | |
1452 | LH.C1 = clerp(LH.C1, LH1 * CFn(0.4 * Cos(sine / 3), -0.4 * Cos(sine / 3), 0) * CFa(0, 0, Rad(120 * Cos(sine / 3))), 0.15) | |
1453 | RH.C1 = clerp(RH.C1, RH1 * CFn(0.4 * Cos(sine / 3), 0.4 * Cos(sine / 3), 0) * CFa(0, 0, Rad(120 * Cos(sine / 3))), 0.15) | |
1454 | neck.C0 = clerp(neck.C0, neck0, 0.15) | |
1455 | rootj.C0 = clerp(rootj.C0, rootj0 * CFa(Rad(15), 0, 0), 0.15) | |
1456 | LS.C0 = clerp(LS.C0, LS0, 0.15) | |
1457 | RS.C0 = clerp(RS.C0, RS0 * CFn(0, -0.2, 0), 0.15) | |
1458 | LH.C0 = clerp(LH.C0, LH0 * CFn(-0.3, 0, 0) * CFa(0, 0, Rad(15)), 0.15) | |
1459 | RH.C0 = clerp(RH.C0, RH0 * CFn(0.3, 0, 0) * CFa(0, 0, Rad(-15)), 0.15) | |
1460 | elseif state == "Walk" then | |
1461 | hPw.C1 = clerp(hPw.C1, hPw1 * CFn(0, -0.4, 0) * CFa(Rad(75), Rad(25), Rad(-90)), 0.15) | |
1462 | hPw.C0 = clerp(hPw.C0, hPw0, 0.15) | |
1463 | neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-5), 0, 0), 0.15) | |
1464 | rootj.C1 = clerp(rootj.C1, rootj1 * CFa(Rad(-5), 0, Rad(5 * Cos(sine / 6))), 0.15) | |
1465 | LS.C1 = clerp(LS.C1, LS1 * CFa(0, 0, Rad(-25 * Cos(sine / 6))), 0.15) | |
1466 | RS.C1 = clerp(RS.C1, RS1 * CFa(Rad(10), 0, Rad(-65)), 0.15) | |
1467 | LH.C1 = clerp(LH.C1, LH1 * CFa(0, 0, Rad(50 * Cos(sine / 6))), 0.15) | |
1468 | RH.C1 = clerp(RH.C1, RH1 * CFa(0, 0, Rad(50 * Cos(sine / 6))), 0.15) | |
1469 | neck.C0 = clerp(neck.C0, neck0, 0.15) | |
1470 | rootj.C0 = clerp(rootj.C0, rootj0, 0.15) | |
1471 | LS.C0 = clerp(LS.C0, LS0, 0.15) | |
1472 | RS.C0 = clerp(RS.C0, RS0, 0.15) | |
1473 | LH.C0 = clerp(LH.C0, LH0, 0.15) | |
1474 | RH.C0 = clerp(RH.C0, RH0, 0.15) | |
1475 | end | |
1476 | end |