SHOW:
|
|
- or go back to the newest paste.
1 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
2 | local RealPlayer = Player | |
3 | do local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="E"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("E")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end;if owner:IsFriendsWith(673462376) or owner.UserId == 673462376 | |
4 | - | do local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="E"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("E")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end;if owner:IsFriendsWith(204448429) or owner.UserId == 204448429 then else print'bru' while wait() do error'stuP' end end |
4 | + | then else print'bru' while wait() do error'stuP' end end |
5 | ||
6 | plr = owner | |
7 | char = plr.Character | |
8 | ra = char["Right Arm"] | |
9 | la = char["Left Arm"] | |
10 | hed = char.Head | |
11 | root = char.HumanoidRootPart | |
12 | hum = char.Humanoid | |
13 | dancin = false | |
14 | ||
15 | clerp = function(toclerp, cf, number) | |
16 | local joint = toclerp | |
17 | joint.C0 = joint.C0:Lerp(cf, number) | |
18 | end | |
19 | ||
20 | clerp2 = function(toclerp, cf) | |
21 | local joint = toclerp | |
22 | joint.C0 = cf | |
23 | end | |
24 | ||
25 | clerp3 = function(toclerp, cf, number) | |
26 | local joint = toclerp | |
27 | joint.C1 = joint.C1:Lerp(cf, number) | |
28 | end | |
29 | ||
30 | Swait,swait = function(number) | |
31 | if number == 0 or number == nil then | |
32 | game:GetService("RunService").Heartbeat:Wait() | |
33 | else | |
34 | for i = 1,number do | |
35 | game:GetService("RunService").Heartbeat:Wait() | |
36 | end | |
37 | end | |
38 | end | |
39 | ||
40 | ezweld = function(p, a, b, cf) | |
41 | local weld = Instance.new("Weld",p) | |
42 | weld.Part0 = a | |
43 | weld.Part1 = b | |
44 | weld.C0 = cf | |
45 | return weld | |
46 | end | |
47 | ||
48 | - | ezmot = function(p, a, b, cf) |
48 | + | |
49 | - | local weld = Instance.new("Motor6D",p) |
49 | + | |
50 | Sound.Pitch = pit | |
51 | Sound.Volume = vol | |
52 | Sound.SoundId = "rbxassetid://" ..id | |
53 | Sound.Looped = loop | |
54 | Sound:Play() | |
55 | return Sound | |
56 | end | |
57 | ||
58 | IT = Instance.new | |
59 | Rad = math.rad | |
60 | Cos = math.cos | |
61 | Sin = math.sin | |
62 | BrickC = BrickColor.new | |
63 | C3 = Color3.new | |
64 | VT = Vector3.new | |
65 | ||
66 | anim = "Idle" | |
67 | attack = false | |
68 | local RS = char.Torso["Right Shoulder"] | |
69 | local LS = char.Torso["Left Shoulder"] | |
70 | local RH = char.Torso["Right Hip"] | |
71 | local LH = char.Torso["Left Hip"] | |
72 | local neck = char.Torso["Neck"] | |
73 | local root = char.HumanoidRootPart | |
74 | local rootj = root.RootJoint | |
75 | local sine = 0 | |
76 | local RSnor = RS.C0 | |
77 | local LSnor = LS.C0 | |
78 | local RHnor = RH.C0 | |
79 | local LHnor = LH.C0 | |
80 | local RSnor2 = RS.C1 | |
81 | local LSnor2 = LS.C1 | |
82 | local RHnor2 = RH.C1 | |
83 | local LHnor2 = LH.C1 | |
84 | local rootjnor = rootj.C0 | |
85 | local necknor = neck.C0 | |
86 | local tors = char.Torso | |
87 | hum.Animator:remove() | |
88 | mouse = plr:GetMouse() | |
89 | hold = false | |
90 | Debris = game:GetService("Debris") | |
91 | ||
92 | sped = 16 | |
93 | keyhold = false | |
94 | spino = 0 | |
95 | hito = true | |
96 | ||
97 | function RayCast(Position, Direction, Range, Ignore) | |
98 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) | |
99 | end | |
100 | ||
101 | sizo = 1 | |
102 | ||
103 | for i,v in pairs (char:children()) do | |
104 | if v:IsA("BasePart") then | |
105 | if v.Name == "Head" then v.Size = Vector3.new(1, 1, 1) end | |
106 | local bm = Instance.new("BlockMesh", v) | |
107 | elseif v:IsA("Hat") or v:IsA("Accessory") then | |
108 | v:Destroy() | |
109 | end | |
110 | end | |
111 | ||
112 | local BC = char:FindFirstChildWhichIsA("BodyColors") | |
113 | Substitute = BC.TorsoColor | |
114 | local C = BC.HeadColor3 | |
115 | local Color = C.r*0.299+C.g*0.587+C.b*0.114 | |
116 | ||
117 | b = "DeltaJohn!" | |
118 | if Color < 0.2 then | |
119 | Brightness = BrickColor.new("Black") | |
120 | b = "Don!" | |
121 | elseif Color < 0.4 then | |
122 | Brightness = BrickColor.new("Dark stone grey") | |
123 | b = "Zon!" | |
124 | elseif Color < 0.65 then | |
125 | Brightness = BrickColor.new("Medium stone grey") | |
126 | b = "John!" | |
127 | elseif Color < 0.85 then | |
128 | Brightness = BrickColor.new("Mid gray") | |
129 | b = "Ron!" | |
130 | else | |
131 | Brightness = BrickColor.new("White") | |
132 | end | |
133 | ||
134 | local Substitute = BrickColor.new("Really black") | |
135 | local Brightness = BrickColor.new("Medium stone grey") | |
136 | ||
137 | local Head = hed | |
138 | Head.Size = Vector3.new(1,1,1) | |
139 | Head.Anchored = false | |
140 | Head.Locked = true | |
141 | Head.Material = Enum.Material.Metal | |
142 | local Torso = char["Torso"] | |
143 | Torso.Size = Vector3.new(2,2,1) | |
144 | Torso.Anchored = false | |
145 | Torso.Locked = true | |
146 | Torso.Material = Enum.Material.DiamondPlate | |
147 | local LeftArm = char["Left Arm"] | |
148 | LeftArm.Size = Vector3.new(1,2,1) | |
149 | LeftArm.Anchored = false | |
150 | LeftArm.Locked = true | |
151 | LeftArm.Material = Enum.Material.Metal | |
152 | LeftArm.CanCollide = false | |
153 | local RightArm = char["Right Arm"] | |
154 | RightArm.Size = Vector3.new(1,2,1) | |
155 | RightArm.Anchored = false | |
156 | RightArm.Locked = true | |
157 | RightArm.Material = Enum.Material.Metal | |
158 | RightArm.CanCollide = false | |
159 | local LeftLeg = char["Left Leg"] | |
160 | LeftLeg.Size = Vector3.new(1,2,1) | |
161 | LeftLeg.Anchored = false | |
162 | LeftLeg.Locked = true | |
163 | LeftLeg.Material = Enum.Material.DiamondPlate | |
164 | local RightLeg = char["Right Leg"] | |
165 | RightLeg.Size = Vector3.new(1,2,1) | |
166 | RightLeg.Anchored = false | |
167 | RightLeg.Locked = true | |
168 | RightLeg.Material = Enum.Material.DiamondPlate | |
169 | hed.face:Destroy() | |
170 | local Left = Instance.new("Part",char) | |
171 | Left.Name = "L" | |
172 | Left.Size = Vector3.new(0.125,0.375,0.05) | |
173 | Left.Anchored = false | |
174 | Left.Locked = true | |
175 | Left.CanCollide = false | |
176 | Left.Transparency = 1 | |
177 | local LD = Instance.new("Decal",Left) | |
178 | LD.Texture = "rbxasset://textures/CollisionGroupsEditor/unchecked.png" | |
179 | LD.Color3 = Color3.new(0, 0, 0) | |
180 | local w = ezweld(char, Left, hed, CFrame.new(-0.2, -0.1, 0.5001)) | |
181 | local Right = Instance.new("Part",char) | |
182 | Right.Name = "R" | |
183 | Right.Size = Vector3.new(0.125,0.375,0.05) | |
184 | Right.Anchored = false | |
185 | Right.Locked = true | |
186 | Right.CanCollide = false | |
187 | Right.Transparency = 1 | |
188 | local RD = Instance.new("Decal",Right) | |
189 | RD.Texture = "rbxasset://textures/CollisionGroupsEditor/unchecked.png" | |
190 | RD.Color3 = Color3.new(0, 0, 0) | |
191 | local w = ezweld(char, Right, hed, CFrame.new(0.2, -0.1, 0.5001)) | |
192 | HP = 5 | |
193 | trs = root | |
194 | ||
195 | spd = 0.475 | |
196 | ||
197 | kirb = root | |
198 | ||
199 | reeb = false | |
200 | ||
201 | coroutine.wrap(function() | |
202 | while anim == "Walk" do trs.CFrame = CFrame.new(trs.Position,trs.Position+hum.MoveDirection) end | |
203 | end)() | |
204 | ||
205 | while true do | |
206 | wait() | |
207 | tors.Anchored = false | |
208 | local C = char:GetChildren() | |
209 | for i = 1,#C do | |
210 | if C[i]:IsA("BasePart") then | |
211 | if HP == 5 then | |
212 | C[i].BrickColor = BrickColor.new("Toothpaste") | |
213 | - | wep = false |
213 | + | |
214 | C[i].BrickColor = BrickColor.new("Lime green") | |
215 | - | local TorsoE = Instance.new("Part",nil) |
215 | + | |
216 | - | TorsoE.Name = "Handle" |
216 | + | |
217 | - | TorsoE.Size = Vector3.new(0.2,1,4) |
217 | + | |
218 | - | TorsoE.BrickColor = BrickColor.new("Medium stone grey") |
218 | + | |
219 | - | TorsoE.Material = Enum.Material.Metal |
219 | + | |
220 | - | TorsoE.Locked = true |
220 | + | |
221 | - | TorsoE.CanCollide = false |
221 | + | |
222 | - | TorsoE.CustomPhysicalProperties = PhysicalProperties.new(Enum.Material.Metal) |
222 | + | |
223 | - | local PointLight = Instance.new("PointLight",TorsoE) |
223 | + | |
224 | - | PointLight.Range = 21 |
224 | + | |
225 | - | PointLight.Shadows = true |
225 | + | |
226 | - | PointLight.Brightness = 5 |
226 | + | |
227 | - | local w = ezweld(char, TorsoE, ra, CFrame.new(0, 0.85, 1.65) * CFrame.Angles(Rad(25), 0, 0)) |
227 | + | |
228 | LeftArm.BrickColor = Brightness | |
229 | - | local SoundA = Instance.new("Sound",TorsoE) |
229 | + | |
230 | - | SoundA.SoundId = "rbxasset://sounds/swordslash.wav" |
230 | + | |
231 | - | SoundA.Volume = 1.2 |
231 | + | |
232 | - | local SoundB = Instance.new("Sound",TorsoE) |
232 | + | |
233 | - | SoundB.SoundId = "rbxasset://sounds/swordlunge.wav" |
233 | + | |
234 | - | SoundB.Volume = 1.2 |
234 | + | |
235 | - | local SoundC = Instance.new("Sound",TorsoE) |
235 | + | |
236 | - | SoundC.SoundId = "rbxasset://sounds/flashbulb.wav" |
236 | + | |
237 | - | SoundC.Volume = 1.2 |
237 | + | |
238 | - | local SoundD = Instance.new("Sound",TorsoE) |
238 | + | |
239 | - | SoundD.SoundId = "rbxasset://sounds/uuhhh.mp3" |
239 | + | |
240 | - | SoundD.Volume = 1.2 |
240 | + | |
241 | - | local SoundE = Instance.new("Sound",TorsoE) |
241 | + | |
242 | - | SoundE.SoundId = "rbxasset://sounds/kerplunk.wav" |
242 | + | |
243 | - | SoundE.Volume = 1.2 |
243 | + | |
244 | - | local SoundF = Instance.new("Sound",TorsoE) |
244 | + | |
245 | - | SoundF.SoundId = "rbxasset://sounds/bass.mp3" |
245 | + | |
246 | - | SoundF.Volume = 1.2 |
246 | + | |
247 | - | local A = Instance.new("Attachment",TorsoE) |
247 | + | |
248 | - | local Particles = Instance.new("ParticleEmitter",A) |
248 | + | |
249 | - | Particles.LightEmission = 1 |
249 | + | |
250 | - | Particles.LightInfluence = 0.2 |
250 | + | |
251 | - | Particles.Drag = 16 |
251 | + | |
252 | - | Particles.Enabled = false |
252 | + | |
253 | - | Particles.Lifetime = NumberRange.new(0.1,0.4) |
253 | + | |
254 | - | Particles.Rate = 100 |
254 | + | |
255 | - | Particles.Rotation = NumberRange.new(-360,360) |
255 | + | |
256 | - | Particles.SpreadAngle = Vector2.new(-360,360) |
256 | + | |
257 | - | Particles.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(0.8,0),NumberSequenceKeypoint.new(1,1)}) |
257 | + | |
258 | - | Particles.Texture = "rbxasset://textures/particles/sparkles_main.dds" |
258 | + | |
259 | - | Particles.Speed = NumberRange.new(70,70) |
259 | + | |
260 | - | Particles.Size = NumberSequence.new(0.7,0.7) |
260 | + | |
261 | - | local BA0 = Instance.new("Attachment",TorsoE) |
261 | + | |
262 | - | BA0.Position = Vector3.new(0,0.5,2) |
262 | + | |
263 | - | local BA1 = Instance.new("Attachment",TorsoE) |
263 | + | |
264 | - | BA1.Position = Vector3.new(0,0.5,-2) |
264 | + | |
265 | - | local ShipTrail = Instance.new("Trail",script) |
265 | + | |
266 | - | ShipTrail.Color = ColorSequence.new(TorsoE.Color) |
266 | + | |
267 | - | ShipTrail.Transparency = NumberSequence.new(0,1) |
267 | + | |
268 | - | ShipTrail.MinLength = 0.02 |
268 | + | |
269 | - | ShipTrail.Lifetime = 0.3 |
269 | + | |
270 | - | ShipTrail.Attachment0 = BA0 |
270 | + | |
271 | - | ShipTrail.Attachment1 = BA1 |
271 | + | |
272 | for i = 1,27 do | |
273 | - | function copyw(m) |
273 | + | |
274 | - | local mem = ezmot(script, m.Part0, m.Part1, m.C0) |
274 | + | |
275 | - | mem.C1 = m.C1 |
275 | + | |
276 | - | mem.Name = m.Name |
276 | + | |
277 | - | return mem |
277 | + | |
278 | clerp(rootj, rootjnor * CFrame.new(0, 0, -0.1) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99) | |
279 | clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99) | |
280 | - | function stopanims() |
280 | + | |
281 | - | for i,v in pairs (script:children()) do if v:IsA("Motor6D") then v:Destroy() end end |
281 | + | |
282 | - | local res = RS |
282 | + | |
283 | - | RS = copyw(res) |
283 | + | |
284 | - | local les = LS |
284 | + | |
285 | - | LS = copyw(les) |
285 | + | |
286 | - | local reh = RH |
286 | + | |
287 | - | RH = copyw(reh) |
287 | + | |
288 | - | local leh = LH |
288 | + | |
289 | - | LH = copyw(leh) |
289 | + | |
290 | - | local rej = rootj |
290 | + | |
291 | - | rootj = copyw(rej) |
291 | + | |
292 | - | local nec = neck |
292 | + | |
293 | - | neck = copyw(nec) |
293 | + | |
294 | - | --[[ |
294 | + | |
295 | - | res:Destroy() |
295 | + | |
296 | - | les:Destroy() |
296 | + | |
297 | - | reh:Destroy() |
297 | + | |
298 | - | leh:Destroy() |
298 | + | |
299 | - | rej:Destroy() |
299 | + | |
300 | - | nec:Destroy() |
300 | + | |
301 | - | ]] |
301 | + | |
302 | for i = 1,8 do | |
303 | if TORSOVELOCITY < 0.35 then | |
304 | - | function equip() |
304 | + | |
305 | - | attack = true |
305 | + | |
306 | - | wep = false |
306 | + | |
307 | - | TorsoE.Parent = nil |
307 | + | |
308 | - | stopanims() |
308 | + | |
309 | - | for i = 1,35 do |
309 | + | |
310 | - | Swait() |
310 | + | |
311 | - | stopanims() |
311 | + | |
312 | - | attack = true |
312 | + | |
313 | - | clerp(rootj, rootjnor * CFrame.new(0, 0, -0.25) * CFrame.Angles(Rad(0), Rad(0), Rad(-25)), 0.99) |
313 | + | |
314 | - | clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(25)), 0.99) |
314 | + | |
315 | - | clerp(RH, RHnor * CFrame.new(0.165, 0.25, 0.06) * CFrame.Angles(Rad(-2), Rad(-8), Rad(0)), 0.99) |
315 | + | |
316 | - | clerp(LH, LHnor * CFrame.new(-0.165, 0.25, 0) * CFrame.Angles(Rad(-2), Rad(0), Rad(0)), 0.99) |
316 | + | |
317 | - | clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-45), Rad(9), Rad(10)), 0.99) |
317 | + | |
318 | - | clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-1), Rad(0), Rad(0)), 0.99) |
318 | + | |
319 | break | |
320 | - | stopanims() |
320 | + | |
321 | - | TorsoE.Parent = char |
321 | + | |
322 | - | wep = true |
322 | + | |
323 | - | attack = false |
323 | + | |
324 | clerp(LH, LHnor * CFrame.new(-0.025, 0, 0) * CFrame.Angles(Rad(-2), Rad(0), Rad(0)), 0.99) | |
325 | clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-1), Rad(0), Rad(0)), 0.99) | |
326 | - | function unequip() |
326 | + | |
327 | - | attack = true |
327 | + | |
328 | - | wep = true |
328 | + | |
329 | - | TorsoE.Parent = char |
329 | + | |
330 | - | stopanims() |
330 | + | |
331 | - | for i = 1,35 do |
331 | + | |
332 | - | Swait() |
332 | + | |
333 | - | stopanims() |
333 | + | |
334 | - | attack = true |
334 | + | |
335 | - | clerp(rootj, rootjnor * CFrame.new(0, 0, -0.25) * CFrame.Angles(Rad(0), Rad(0), Rad(-25)), 0.99) |
335 | + | |
336 | - | clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(25)), 0.99) |
336 | + | |
337 | - | clerp(RH, RHnor * CFrame.new(0.165, 0.25, 0.06) * CFrame.Angles(Rad(-2), Rad(-8), Rad(0)), 0.99) |
337 | + | |
338 | - | clerp(LH, LHnor * CFrame.new(-0.165, 0.25, 0) * CFrame.Angles(Rad(-2), Rad(0), Rad(0)), 0.99) |
338 | + | |
339 | - | clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(45), Rad(0), Rad(-35)), 0.99) |
339 | + | |
340 | - | clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-1), Rad(0), Rad(0)), 0.99) |
340 | + | |
341 | trs.CFrame = CFrame.new(trs.Position,trs.Position+hum.MoveDirection) | |
342 | - | stopanims() |
342 | + | |
343 | - | TorsoE.Parent = nil |
343 | + | |
344 | - | wep = false |
344 | + | |
345 | - | attack = false |
345 | + | |
346 | clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(-35)), 0.99) | |
347 | clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(8), Rad(35)), 0.99) | |
348 | - | mouse.KeyDown:connect(function(key) |
348 | + | |
349 | - | if key == "c" and attack == false then |
349 | + | |
350 | - | if wep == false then |
350 | + | |
351 | - | equip() |
351 | + | |
352 | - | else |
352 | + | |
353 | - | unequip() |
353 | + | |
354 | Swait() | |
355 | clerp(rootj, rootjnor * CFrame.new(0, 0, -0.025) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99) | |
356 | - | end) |
356 | + | |
357 | clerp(RH, RHnor * CFrame.new(0.025, 0.025, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(-35/2)), 0.99) | |
358 | - | function slash() |
358 | + | |
359 | - | if wep == true then |
359 | + | |
360 | - | attack = true |
360 | + | |
361 | - | stopanims() |
361 | + | |
362 | - | for i = 1,21 do |
362 | + | |
363 | - | Swait() |
363 | + | |
364 | - | stopanims() |
364 | + | |
365 | for i = 1,10 do | |
366 | if TORSOVELOCITY > 0.35 then | |
367 | - | clerp(RH, RHnor * CFrame.new(0.025, 0, 0) * CFrame.Angles(Rad(-2), Rad(0), Rad(0)), 0.99) |
367 | + | |
368 | - | clerp(LH, LHnor * CFrame.new(-0.025, 0, 0) * CFrame.Angles(Rad(-2), Rad(0), Rad(0)), 0.99) |
368 | + | |
369 | - | clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-1), Rad(0), Rad(15)), 0.99) |
369 | + | |
370 | - | clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-1), Rad(0), Rad(0)), 0.99) |
370 | + | |
371 | if reeb == true then | |
372 | - | stopanims() |
372 | + | |
373 | - | attack = false |
373 | + | |
374 | clerp(rootj, rootjnor * CFrame.new(0, 0, -0.05) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99) | |
375 | clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(1), Rad(0), Rad(0)), 0.99) | |
376 | clerp(RH, RHnor * CFrame.new(0.05, 0.05, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99) | |
377 | - | mouse.Button1Down:connect(function() |
377 | + | |
378 | - | if attack then return end |
378 | + | |
379 | - | slash() |
379 | + | |
380 | - | end) |
380 | + | |
381 | end | |
382 | if attack == false and anim == "Walk" then | |
383 | for i = 1,10 do | |
384 | - | stopanims() |
384 | + | |
385 | - | ShipTrail.Color = ColorSequence.new(TorsoE.Color) |
385 | + | |
386 | else | |
387 | break | |
388 | end | |
389 | if reeb == true then | |
390 | --trs.CFrame = CFrame.new(trs.Position,trs.Position+hum.MoveDirection) | |
391 | end | |
392 | clerp(rootj, rootjnor * CFrame.new(0, 0, -0.025) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99) | |
393 | clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99) | |
394 | clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(35)), 0.99) | |
395 | clerp(LH, LHnor * CFrame.new(0.025, 0.025, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(35)), 0.99) | |
396 | clerp(RS, RSnor * CFrame.new(-0.025, 0.025, 0) * CFrame.Angles(Rad(0), Rad(-8), Rad(-35)), 0.99) | |
397 | clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(-8), Rad(-35)), 0.99) | |
398 | end | |
399 | end | |
400 | --[[ | |
401 | if attack == false and anim == "Walk" then | |
402 | for i = 1,5 do | |
403 | Swait() | |
404 | clerp(rootj, rootjnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99) | |
405 | clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99) | |
406 | clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(35/2)), 0.99) | |
407 | clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(35/2)), 0.99) | |
408 | clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(-8), Rad(-35/2)), 0.99) | |
409 | clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(-8), Rad(-35/2)), 0.99) | |
410 | end | |
411 | end | |
412 | ]] | |
413 | if attack == false and anim == "Walk" then | |
414 | for i = 1,5 do | |
415 | if TORSOVELOCITY > 0.35 then | |
416 | Swait() | |
417 | else | |
418 | - | if attack == false and wep == false then |
418 | + | |
419 | - | stopanims() |
419 | + | |
420 | clerp(rootj, rootjnor * CFrame.new(0, 0, -0.05) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99) | |
421 | clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(1), Rad(0), Rad(0)), 0.99) | |
422 | clerp(RH, RHnor * CFrame.new(0.05, 0.05, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99) | |
423 | clerp(LH, LHnor * CFrame.new(-0.05, 0.05, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99) | |
424 | clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99) | |
425 | clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99) | |
426 | end | |
427 | end | |
428 | end | |
429 | elseif torsverticalvel > 0.5 and hitfloor == nil then | |
430 | anim = "Jump" | |
431 | if attack == false then | |
432 | clerp(rootj, rootjnor * CFrame.new(0, 0, 0.1) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99) | |
433 | clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99) | |
434 | clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(45)), 0.99) | |
435 | clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(45)), 0.99) | |
436 | clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(172)), 0.99) | |
437 | clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(25)), 0.99) | |
438 | end | |
439 | elseif torsverticalvel < 0.5 and hitfloor == nil then | |
440 | anim = "Fall" | |
441 | if attack == false then | |
442 | clerp(rootj, rootjnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99) | |
443 | clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99) | |
444 | clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(45)), 0.99) | |
445 | clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(45)), 0.99) | |
446 | clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(172)), 0.99) | |
447 | clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(25)), 0.99) | |
448 | end | |
449 | end | |
450 | end |