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;print("FE Compatibility: by WaverlyCole");InternalData = {} | |
2 | do | |
3 | script.Parent = owner.Character | |
4 | local Event = Instance.new("RemoteEvent");Event.Name = "UserInput" | |
5 | local function NewFakeEvent() | |
6 | local Bind = Instance.new("BindableEvent") | |
7 | local Fake;Fake = {Connections = {}, | |
8 | fakeEvent=true; | |
9 | Connect=function(self,Func) | |
10 | Bind.Event:connect(Func) | |
11 | self.Connections[Bind] = true | |
12 | return setmetatable({Connected = true},{ | |
13 | __index = function (self,Index) | |
14 | if Index:lower() == "disconnect" then | |
15 | return function() Fake.Connections[Bind] = false;self.Connected = false end | |
16 | end | |
17 | return Fake[Index] | |
18 | end; | |
19 | __tostring = function() return "Connection" end; | |
20 | }) | |
21 | end} | |
22 | Fake.connect = Fake.Connect;return Fake; | |
23 | end | |
24 | local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()} | |
25 | local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()} | |
26 | local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...) | |
27 | self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil | |
28 | end};ContextActionService.UnBindAction = ContextActionService.BindAction | |
29 | local function TriggerEvent(self,Event,...) | |
30 | local Trigger = Mouse[Event] | |
31 | if Trigger and Trigger.fakeEvent and Trigger.Connections then | |
32 | for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end | |
33 | end | |
34 | end | |
35 | Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent | |
36 | Event.OnServerEvent:Connect(function(FiredBy,Input) | |
37 | if FiredBy.Name ~= owner.Name then return end | |
38 | if Input.MouseEvent then | |
39 | Mouse.Target = Input.Target;Mouse.Hit = Input.Hit | |
40 | else | |
41 | local Begin = Input.UserInputState == Enum.UserInputState.Begin | |
42 | if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end | |
43 | for _,Action in pairs(ContextActionService.Actions) do | |
44 | for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end | |
45 | end | |
46 | Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower()) | |
47 | UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false) | |
48 | end | |
49 | end) | |
50 | InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService | |
51 | Event.Parent = NLS([[ | |
52 | local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse() | |
53 | local Input = function(Input,gameProcessedEvent) | |
54 | if gameProcessedEvent then return end | |
55 | Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState}) | |
56 | end | |
57 | UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input) | |
58 | local Hit,Target | |
59 | while wait(1/30) do | |
60 | if Hit ~= Mouse.Hit or Target ~= Mouse.Target then | |
61 | Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit}) | |
62 | end | |
63 | end | |
64 | ]],owner.Character) | |
65 | end | |
66 | RealGame = game;game = setmetatable({},{ | |
67 | __index = function (self,Index) | |
68 | local Sandbox = function (Thing) | |
69 | if Thing:IsA("Player") then | |
70 | local RealPlayer = Thing | |
71 | return setmetatable({},{ | |
72 | __index = function (self,Index) | |
73 | local Type = type(RealPlayer[Index]) | |
74 | if Type == "function" then | |
75 | if Index:lower() == "getmouse" or Index:lower() == "mouse" then | |
76 | return function (self)return InternalData["Mouse"] end | |
77 | end | |
78 | return function (self,...)return RealPlayer[Index](RealPlayer,...) end | |
79 | end | |
80 | return RealPlayer[Index] | |
81 | end; | |
82 | __tostring = function(self) return RealPlayer.Name end | |
83 | }) | |
84 | end | |
85 | end | |
86 | if RealGame[Index] then | |
87 | local Type = type(RealGame[Index]) | |
88 | if Type == "function" then | |
89 | if Index:lower() == "getservice" or Index:lower() == "service" then | |
90 | return function (self,Service) | |
91 | local FakeServices = { | |
92 | ["players"] = function() | |
93 | return setmetatable({},{ | |
94 | __index = function (self2,Index2) | |
95 | local RealService = RealGame:GetService(Service) | |
96 | local Type2 = type(Index2) | |
97 | if Type2 == "function" then | |
98 | return function (self,...) return RealService[Index2](RealService,...)end | |
99 | else | |
100 | if Index2:lower() == "localplayer" then return Sandbox(owner) end | |
101 | return RealService[Index2] | |
102 | end | |
103 | end; | |
104 | __tostring = function(self) return RealGame:GetService(Service).Name end | |
105 | }) | |
106 | end; | |
107 | ["contextactionservice"] = function() return InternalData["ContextActionService"] end; | |
108 | ["userinputservice"] = function() return InternalData["UserInputService"] end; | |
109 | ["runservice"] = function() | |
110 | return setmetatable({},{ | |
111 | __index = function(self2,Index2) | |
112 | local RealService = RealGame:GetService(Service) | |
113 | local Type2 = type(Index2) | |
114 | if Type2 == "function" then | |
115 | return function (self,...) return RealService[Index2](RealService,...) end | |
116 | else | |
117 | local RunServices = { | |
118 | ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end; | |
119 | ["renderstepped"] = function() return RealService["Stepped"] end | |
120 | } | |
121 | if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end | |
122 | return RealService[Index2] | |
123 | end | |
124 | end | |
125 | }) | |
126 | end | |
127 | } | |
128 | if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end | |
129 | return RealGame:GetService(Service) | |
130 | end | |
131 | end | |
132 | return function (self,...) return RealGame[Index](RealGame,...) end | |
133 | else | |
134 | if game:GetService(Index) then return game:GetService(Index) end | |
135 | return RealGame[Index] | |
136 | end | |
137 | end | |
138 | return nil | |
139 | end | |
140 | });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete! Running...") | |
141 | ||
142 | wait(.25)--made by yoyyo75 :3 | |
143 | run = game:GetService("RunService") | |
144 | local player = game.Players.LocalPlayer;char = player.Character;char.Archivable = true; | |
145 | hrp = char:findFirstChild("HumanoidRootPart");head = char:findFirstChild("Head");ra = char:findFirstChild("Right Arm");la = char:findFirstChild("Left Arm");t = char:findFirstChild("Torso");humanoid = char:findFirstChild("Humanoid");ll = char:findFirstChild("Left Leg");rl = char:findFirstChild("Right Leg"); | |
146 | if player.Backpack:findFirstChild("WindKatana") then | |
147 | player.Backpack:findFirstChild("WindKatana").Parent = nil | |
148 | end | |
149 | local hb = Instance.new("HopperBin", player.Backpack) | |
150 | hb.Name = "WindKatana" | |
151 | sword = Instance.new("Model");sword.Name = "WindKatana" | |
152 | script.Parent = hb;idol = true | |
153 | if char:findFirstChild(hb.Name) then | |
154 | char:findFirstChild(hb.Name):Destroy() | |
155 | end | |
156 | equip=false;anim = false;banim=false;click=false;damageon=false;DMG=0;edown=false;canjump=true;running=false;don=false;Damag = 10;fell = true;lenormal=true;lerun=false;canjump=true;locanrun=false;ss=false;canboost = true | |
157 | if char:findFirstChild(hb.Name) then | |
158 | char:findFirstChild(hb.Name).Parent = nil | |
159 | end | |
160 | function weldIt(p1,p2,r1,r2,place) | |
161 | local w = Instance.new("Weld") | |
162 | if place then | |
163 | w.Parent = place | |
164 | else | |
165 | w.Parent = p1 | |
166 | end | |
167 | w.Part0 = p1 | |
168 | w.Part1 = p2 | |
169 | w.C0 = r1 | |
170 | if r2 then | |
171 | w.C1 = r2 | |
172 | end | |
173 | return w | |
174 | end | |
175 | ||
176 | ||
177 | ||
178 | Add = { | |
179 | part = function(color,size,pos, place, naym,scale, thing,mt,ccd,id,transparent,loool,ff,yos) | |
180 | if loool ~= nil then | |
181 | balleff = Instance.new(loool, place) | |
182 | else | |
183 | balleff = Instance.new("Part", place) | |
184 | balleff.Material = "SmoothPlastic" | |
185 | balleff.TopSurface = "SmoothNoOutlines" | |
186 | balleff.BottomSurface = "SmoothNoOutlines" | |
187 | balleff.RightSurface = "SmoothNoOutlines" | |
188 | balleff.LeftSurface = "SmoothNoOutlines" | |
189 | end | |
190 | balleff.Name = naym | |
191 | balleff.Anchored= true | |
192 | balleff.CFrame = pos | |
193 | if loool == nil then | |
194 | balleff.Shape = thing | |
195 | end | |
196 | if ff then | |
197 | balleff.FormFactor = ff | |
198 | end | |
199 | balleff.CanCollide = ccd;balleff.Transparency = transparent; | |
200 | balleff.TopSurface = 0 | |
201 | balleff.BottomSurface = 0 | |
202 | balleff.Size = size | |
203 | balleff.BrickColor = BrickColor.new(color) | |
204 | if not yos then | |
205 | mesh = Instance.new("SpecialMesh",balleff) | |
206 | mesh.MeshType = mt | |
207 | else | |
208 | mesh = Instance.new(yos,balleff) | |
209 | end | |
210 | mesh.Scale = scale | |
211 | if mt == "FileMesh" then | |
212 | mesh.MeshId = id | |
213 | end | |
214 | balleff.Parent = place | |
215 | return balleff | |
216 | end, | |
217 | bp = function(parent,num,p) | |
218 | lop = Instance.new("BodyPosition",parent) | |
219 | lop.Name = num | |
220 | lop.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
221 | lop.position = p | |
222 | return lop | |
223 | end, | |
224 | BG = function(P,cf) | |
225 | local bg = Instance.new("BodyGyro",P) | |
226 | bg.maxTorque = Vector3.new(math.huge, math.huge, math.huge) | |
227 | bg.P = 14000 | |
228 | bg.cframe = cf | |
229 | return bg | |
230 | end | |
231 | } | |
232 | ||
233 | ||
234 | ||
235 | ||
236 | ||
237 | ||
238 | ||
239 | ||
240 | -- MAKING THE BLADE--- | |
241 | Lite= Add.part("Mid gray",Vector3.new(0.300000042, 0.299999982, 0.399999976),CFrame.new(-185.849991, 1.64999986, -65.3999939, 0, -1, 0, 1, 0, -0, 0, 0, 1),sword,"Lite",Vector3.new(0.800000012, 0.800000012, 0.699999988),"Block","Brick",false,nil,0,Part,"Custom") | |
242 | Dark= Add.part("Black",Vector3.new(0.400000066, 0.799999952, 0.49999997),CFrame.new(-185.991409, 1.50857925, -65.3999939, -0.707106709, -0.707106709, 0, 0.707106709, -0.707106709, 0, 0, 0, 1),sword,"Dark",Vector3.new(0.100000001, 0.949999988, 0.574999988),"Block","Brick",false,nil,0,Part,"Custom") | |
243 | Dark= Add.part("Black",Vector3.new(0.400000066, 0.399999976, 0.399999976),CFrame.new(-185.991409, 1.50857735, -65.3999939, 0, -1, 0, 1, 0, -0, 0, 0, 1),sword,"Dark",Vector3.new(1, 1, 0.600000024),"Block","Brick",false,nil,0,Part,"Custom") | |
244 | Blade= Add.part("Medium stone grey",Vector3.new(0.900000036, 0.200000003, 0.399999976),CFrame.new(-183.909775, 3.94065022, -65.3999939, 0.500000119, -0.866025269, 0, 0.866025269, 0.500000119, 0, 0, 0, 1),sword,"Blade",Vector3.new(1, 1, 0.200000003),"Block","Brick",false,nil,0,Part,"Custom") | |
245 | Blade= Add.part("Medium stone grey",Vector3.new(0.900000036, 0.200000003, 0.399999976),CFrame.new(-183.803696, 3.83458066, -65.3799896, 0.500000119, 0.866025269, 1.44789709e-007, 0.866025269, -0.500000119, -6.87506159e-008, 1.28551001e-008, 1.5976687e-007, -1),sword,"Blade",Vector3.new(1, 0.5, 0.100000001),"Block","Wedge",false,nil,0,Part,"Custom") | |
246 | Blade= Add.part("Medium stone grey",Vector3.new(0.900000036, 0.200000003, 0.399999976),CFrame.new(-185.531784, 1.82677507, -65.3999939, 0.707106829, -0.707106709, 0, 0.707106709, 0.707106829, 0, 0, 0, 1),sword,"Blade",Vector3.new(1, 1, 0.200000003),"Block","Brick",false,nil,0,Part,"Custom") | |
247 | Dark= Add.part("Black",Vector3.new(0.300000042, 0.299999982, 0.399999976),CFrame.new(-185.849991, 1.64999986, -65.3999939, 0, -1, 0, 1, 0, -0, 0, 0, 1),sword,"Dark",Vector3.new(1, 1, 0.600000024),"Block","Brick",false,nil,0,Part,"Custom") | |
248 | Dark= Add.part("Black",Vector3.new(0.200000077, 0.200000003, 0.5),CFrame.new(-185.991409, 1.50857735, -65.3999939, 0, -1, 0, 1, 0, -0, 0, 0, 1),sword,"Dark",Vector3.new(1, 1, 0.600000024),"Block","Brick",false,nil,0,Part,"Custom") | |
249 | Lite= Add.part("Mid gray",Vector3.new(0.400000066, 0.399999976, 0.399999976),CFrame.new(-185.991409, 1.50857735, -65.3999939, 0, -1, 0, 1, 0, -0, 0, 0, 1),sword,"Lite",Vector3.new(0.800000012, 0.800000012, 0.699999988),"Block","Brick",false,nil,0,Part,"Custom") | |
250 | BPart= Add.part("Black",Vector3.new(0.5, 0.399999976, 0.399999976),CFrame.new(-187.087418, 0.412563771, -65.3999939, 0.707106769, -0.70710665, 0, 0.70710665, 0.707106769, 0, 0, 0, 1),sword,"BPart",Vector3.new(0.300000012, 1, 0.800000012),"Block","Cylinder",false,nil,0,Part,"Custom") | |
251 | Dark= Add.part("Black",Vector3.new(0.300000042, 0.299999982, 0.399999976),CFrame.new(-186.132828, 1.36715674, -65.3999939, 0, -1, 0, 1, 0, -0, 0, 0, 1),sword,"Dark",Vector3.new(1, 1, 0.600000024),"Block","Brick",false,nil,0,Part,"Custom") | |
252 | Blade= Add.part("Medium stone grey",Vector3.new(1, 0.200000003, 0.399999976),CFrame.new(-185.461075, 1.68535447, -65.4199982, -0.707106948, 0.70710659, 4.49529054e-008, -0.70710659, -0.707106948, -1.68587405e-007, -8.74227553e-008, -1.50995817e-007, 1),sword,"Blade",Vector3.new(1, 0.5, 0.100000001),"Block","Wedge",false,nil,0,Part,"Custom") | |
253 | Blade= Add.part("Medium stone grey",Vector3.new(0.450000018, 0.200000003, 0.399999976),CFrame.new(-183.487625, 4.42047977, -65.4199982, -0.42261827, 0.906307817, 6.54755326e-008, -0.906307817, -0.42261827, -1.5063398e-007, -1.08849591e-007, -1.23001655e-007, 1),sword,"Blade",Vector3.new(1, 0.5, 0.100000001),"Block","Wedge",false,nil,0,Part,"Custom") | |
254 | Lite= Add.part("Mid gray",Vector3.new(0.300000042, 0.299999982, 0.399999976),CFrame.new(-186.132828, 1.36715674, -65.3999939, 0, -1, 0, 1, 0, -0, 0, 0, 1),sword,"Lite",Vector3.new(0.800000012, 0.800000012, 0.699999988),"Block","Brick",false,nil,0,Part,"Custom") | |
255 | Blade= Add.part("Medium stone grey",Vector3.new(0.900000036, 0.200000003, 0.399999976),CFrame.new(-184.824173, 2.3771975, -65.4199982, -0.642787755, 0.766044319, 4.49529054e-008, -0.766044319, -0.642787755, -1.68587405e-007, -1.00250247e-007, -1.42801824e-007, 1),sword,"Blade",Vector3.new(1, 0.5, 0.100000001),"Block","Wedge",false,nil,0,Part,"Custom") | |
256 | Blade= Add.part("Medium stone grey",Vector3.new(0.200000048, 0.400000006, 0.399999976),CFrame.new(-183.458023, 4.85696697, -65.3999939, -4.58588154e-008, 0.34202069, -0.939692378, -1.01666373e-008, 0.939692378, 0.34202069, 1, 2.52381778e-008, -3.96159798e-008),sword,"Blade",Vector3.new(0.400000006, 1, 0.5),"Block","Wedge",false,nil,0,Part,"Custom") | |
257 | Blade= Add.part("Medium stone grey",Vector3.new(0.900000036, 0.200000003, 0.399999976),CFrame.new(-184.28212, 3.08361006, -65.3799896, 0.57357651, 0.819151938, 1.44790121e-007, 0.819151938, -0.57357651, -6.87501966e-008, 2.67313585e-008, 1.58038603e-007, -1),sword,"Blade",Vector3.new(1, 0.5, 0.100000001),"Block","Wedge",false,nil,0,Part,"Custom") | |
258 | Blade= Add.part("Medium stone grey",Vector3.new(0.900000036, 0.200000003, 0.399999976),CFrame.new(-184.824173, 2.3771956, -65.3799896, 0.642787695, 0.766044378, 1.25616637e-007, 0.766044378, -0.642787695, -8.79236737e-008, 1.33913973e-008, 1.52744178e-007, -1),sword,"Blade",Vector3.new(1, 0.5, 0.100000001),"Block","Wedge",false,nil,0,Part,"Custom") | |
259 | Blade= Add.part("Medium stone grey",Vector3.new(1, 0.200000003, 0.399999976),CFrame.new(-185.461075, 1.68535447, -65.3799896, 0.707106829, 0.707106709, 1.06770145e-007, 0.707106709, -0.707106829, -1.06770166e-007, 0, 1.50995803e-007, -1),sword,"Blade",Vector3.new(1, 0.5, 0.100000001),"Block","Wedge",false,nil,0,Part,"Custom") | |
260 | Blade= Add.part("Medium stone grey",Vector3.new(0.5, 0.200000003, 0.399999976),CFrame.new(-183.40889, 4.83704281, -65.3799896, -0.0871555209, 0.99619472, 2.72493907e-007, 0.99619472, 0.0871555209, 5.89535674e-008, 3.49798697e-008, 2.76595131e-007, -1),sword,"Blade",Vector3.new(1, 0.5, 0.100000001),"Block","Wedge",false,nil,0,Part,"Custom") | |
261 | Blade= Add.part("Medium stone grey",Vector3.new(0.400000036, 0.200000003, 0.399999976),CFrame.new(-183.604263, 4.50388622, -65.3999939, 0.42261833, -0.906307757, 0, 0.906307757, 0.42261833, 0, 0, 0, 1),sword,"Blade",Vector3.new(1, 1, 0.200000003),"Block","Brick",false,nil,0,Part,"Custom") | |
262 | Handle= Add.part("Medium stone grey",Vector3.new(1.20000005, 0.399999976, 0.399999976),CFrame.new(-186.627823, 0.872184277, -65.3999939, 0.707106769, -0.70710665, 0, 0.70710665, 0.707106769, 0, 0, 0, 1),sword,"Handle",Vector3.new(1, 1, 0.600000024),"Block","Cylinder",false,nil,0,Part,"Custom") | |
263 | Blade= Add.part("Medium stone grey",Vector3.new(0.450000018, 0.200000003, 0.399999976),CFrame.new(-183.487625, 4.4204855, -65.3799896, 0.422614396, 0.906309605, 1.64295614e-007, 0.906309605, -0.422614396, -4.92447079e-008, 2.48027376e-008, 1.69714212e-007, -1),sword,"Blade",Vector3.new(1, 0.5, 0.100000001),"Block","Wedge",false,nil,0,Part,"Custom") | |
264 | Blade= Add.part("Medium stone grey",Vector3.new(0.900000036, 0.200000003, 0.399999976),CFrame.new(-184.930252, 2.48326516, -65.3999939, 0.642787695, -0.766044378, 0, 0.766044378, 0.642787695, 0, 0, 0, 1),sword,"Blade",Vector3.new(1, 1, 0.200000003),"Block","Brick",false,nil,0,Part,"Custom") | |
265 | Blade= Add.part("Medium stone grey",Vector3.new(0.900000036, 0.200000003, 0.399999976),CFrame.new(-184.28212, 3.08361387, -65.4199982, -0.57357657, 0.819151938, 4.49529622e-008, -0.819151938, -0.57357657, -1.6858732e-007, -1.12314666e-007, -1.33521056e-007, 1),sword,"Blade",Vector3.new(1, 0.5, 0.100000001),"Block","Wedge",false,nil,0,Part,"Custom") | |
266 | Blade= Add.part("Medium stone grey",Vector3.new(0.900000036, 0.200000003, 0.399999976),CFrame.new(-183.803696, 3.83458257, -65.4199982, -0.500000179, 0.866025329, 6.55408243e-008, -0.866025329, -0.500000179, -1.5046507e-007, -9.75361445e-008, -1.31992579e-007, 1),sword,"Blade",Vector3.new(1, 0.5, 0.100000001),"Block","Wedge",false,nil,0,Part,"Custom") | |
267 | Blade= Add.part("Medium stone grey",Vector3.new(0.5, 0.200000003, 0.399999976),CFrame.new(-183.40889, 4.83704853, -65.4199982, 0.0871553719, 0.99619472, 6.76225653e-008, -0.99619472, 0.0871553719, -1.49568123e-007, -1.54892646e-007, -5.43295755e-008, 1),sword,"Blade",Vector3.new(1, 0.5, 0.100000001),"Block","Wedge",false,nil,0,Part,"Custom") | |
268 | Core= Add.part("Bright red",Vector3.new(0.200000077, 0.200000003, 0.5),CFrame.new(-185.991409, 1.50857735, -65.3999939, 0, -1, 0, 1, 0, -0, 0, 0, 1),sword,"Core",Vector3.new(0.800000012, 0.800000012, 0.699999988),"Block","Brick",false,nil,0,Part,"Custom") | |
269 | Blade= Add.part("Medium stone grey",Vector3.new(0.900000036, 0.200000003, 0.399999976),CFrame.new(-184.388199, 3.18968129, -65.3999939, 0.57357651, -0.819151998, 0, 0.819151998, 0.57357651, 0, 0, 0, 1),sword,"Blade",Vector3.new(1, 1, 0.200000003),"Block","Brick",false,nil,0,Part,"Custom") | |
270 | hitbox= Add.part("Medium stone grey",Vector3.new(1, 3.46000004, 1),CFrame.new(-184.459076, 3.10561037, -65.4410172, 0.060511604, 0.598099828, -0.799133182, -0.0353691019, 0.801382124, 0.597104728, 0.997539937, -0.0078676939, 0.0696469769),sword,"hitbox",Vector3.new(1, 1, 1),"Block","Brick",false,nil,1,Part,"Brick") | |
271 | ||
272 | while not ra or not la or not t or not humanoid or not head or not ll or not rl or not hrp do | |
273 | wait() | |
274 | end | |
275 | hrpw = hrp:findFirstChild("RootJoint");lh = t:findFirstChild("Left Hip");rh = t:findFirstChild("Right Hip");rs = t:findFirstChild("Right Shoulder");ls = t:findFirstChild("Left Shoulder");neck = t:findFirstChild("Neck"); | |
276 | while not ls or not rs or not neck or not hrpw do | |
277 | wait() | |
278 | end | |
279 | co = hrpw.C0 | |
280 | moop = {} | |
281 | function Hit(p) | |
282 | if don then | |
283 | Damagefunc(p,Damag-5,Damag+5,math.random(10,30),"Normal") end | |
284 | if QHIT then | |
285 | if not checkintable(p.Parent, moop) then | |
286 | Damagefunc(p,Damag+5,Damag+15,math.random(10,30),"Normal"); | |
287 | table.insert(moop, p.Parent);else print("herena") end | |
288 | end | |
289 | end | |
290 | ||
291 | ||
292 | nu = sword:GetChildren() | |
293 | for i = 1, #nu do | |
294 | if nu[i].Name ~= "Handle" then | |
295 | if nu[i].Name == "Blade" or nu[i].Name == "hitbox" then | |
296 | nu[i].Touched:connect(Hit) | |
297 | end | |
298 | w = Instance.new("Weld", sword.Handle) | |
299 | w.Part0 = sword.Handle | |
300 | w.Part1 = nu[i] | |
301 | w.C0 = sword.Handle.CFrame:toObjectSpace(nu[i].CFrame) | |
302 | nu[i].Anchored = false | |
303 | end | |
304 | end | |
305 | sword.Handle.Anchored = false;sword.Parent = char | |
306 | function backweld() | |
307 | bw = weldIt(t,Handle,CFrame.new(1.15,-0.85,-1)*CFrame.Angles(math.rad(25),math.rad(-90),0),nil) | |
308 | return bw | |
309 | end | |
310 | ||
311 | backweld() | |
312 | ||
313 | function checkintable(chek, tabl) | |
314 | for i = 1, #tabl do | |
315 | if tabl[i] == check then | |
316 | return true | |
317 | end | |
318 | end | |
319 | return false | |
320 | end | |
321 | ------function of le splash------------- | |
322 | ||
323 | function splash() | |
324 | local blcf = hitbox.CFrame*CFrame.new(-.125,.2,0) | |
325 | if scfr and (hitbox.Position-scfr.p).magnitude > .1 then | |
326 | local h = 4.7 | |
327 | local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p) | |
328 | if a then game.Debris:AddItem(a,.1) end if b then game.Debris:AddItem(b,.1) end | |
329 | local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p) | |
330 | if a then game.Debris:AddItem(a,.1) end if b then game.Debris:AddItem(b,.1) end | |
331 | scfr = blcf | |
332 | elseif not scfr then | |
333 | scfr = blcf | |
334 | end | |
335 | end | |
336 | function rest(num) | |
337 | for i = 0, 1, 0.13 do | |
338 | if combo ~= num then | |
339 | return | |
340 | end | |
341 | normal(i) | |
342 | wait() | |
343 | end | |
344 | if combo ~= num then | |
345 | return | |
346 | end | |
347 | scfr=nil;anim = false;running=false;canslash=false;combo=4;runit() | |
348 | end | |
349 | -------------------------slashr------------------------------------------------------slashr------------------------------------------------------slashr----------------------------- | |
350 | slash ={ | |
351 | function() | |
352 | anim = true | |
353 | ||
354 | for i = 0, 1, 0.23 do | |
355 | animate("Toso",(co-Vector3.new(0,0.4,0)),0,math.rad(5),math.rad(170),i); | |
356 | animate("rr",CFrame.new(1.5,0.5,0),0,math.rad(95),math.rad(110),i);animate("lr",CFrame.new(-1.5,0.5,0),math.rad(-45),0,math.rad(-25),i) | |
357 | animate("bw",CFrame.new(0,-1,0),0,math.rad(90),0,i) | |
358 | animate("hr",CFrame.new(0,1,0),0,math.rad(-90),0,i) | |
359 | animate("reg",CFrame.new(0.5,-1.1,-0.65),math.rad(-15),0,0,i) | |
360 | animate("leg",CFrame.new(-0.5,-1.2,0),math.rad(-25),0,0,i) | |
361 | wait() | |
362 | end | |
363 | wait() | |
364 | don = true;attackdebounce = false;scfr = nil | |
365 | for i = 0, 1, 0.16 do | |
366 | wait() | |
367 | splash() | |
368 | animate("Toso",(co-Vector3.new(0,0,0)),0,math.rad(0),math.rad(20),i);animate("hr",CFrame.new(0,1,0),0,math.rad(-20),0,i) | |
369 | animate("reg",CFrame.new(0.5,-1.5,0),math.rad(0),0,0,i) | |
370 | animate("leg",CFrame.new(-0.5,-1.5,0),math.rad(0),0,0,i) | |
371 | animate("rr",CFrame.new(1.5,0.5,0),0,math.rad(-60),math.rad(110),i); | |
372 | end | |
373 | scfr = nil;don = false;canslash=true; | |
374 | rest(1) | |
375 | end, | |
376 | ||
377 | ||
378 | ||
379 | function() | |
380 | anim = true | |
381 | for i = 0, 1, 0.24 do | |
382 | animate("bw",CFrame.new(0,-1,0),math.rad(20),math.rad(90),math.rad(0),i) | |
383 | animate("Toso",(co-Vector3.new(0,0,0)),0,math.rad(0),math.rad(-50),i);animate("hr",CFrame.new(0,1,0),0,math.rad(10),0,i) | |
384 | animate("reg",CFrame.new(0.5,-1.5,0),math.rad(0),0,math.rad(10),i) | |
385 | animate("leg",CFrame.new(-0.5,-1.5,0),math.rad(0),0,0,i) | |
386 | animate("rr",CFrame.new(1.5,0.5,0),math.rad(90),math.rad(0),math.rad(110),i); | |
387 | wait() | |
388 | end | |
389 | wait();don = true;attackdebounce = false;scfr=nil; | |
390 | for i = 0, 1, 0.2 do | |
391 | wait() | |
392 | splash() | |
393 | animate("bw",CFrame.new(0,-1,0),math.rad(-60),math.rad(90),math.rad(0),i) | |
394 | animate("Toso",(co-Vector3.new(0,0.3,0)),math.rad(40),math.rad(0),math.rad(0),i);animate("hr",CFrame.new(0,1,0),math.rad(40),math.rad(10),0,i) | |
395 | animate("reg",CFrame.new(0.5,-1.2,-0.2),math.rad(10),0,math.rad(10),i) | |
396 | animate("leg",CFrame.new(-0.5,-1.2,-0.6),math.rad(30),0,0,i) | |
397 | animate("rr",CFrame.new(1.2,0.5,-0.3),math.rad(75),math.rad(0),math.rad(-40),i); | |
398 | end | |
399 | scfr = nil;don = false;canslash=true | |
400 | rest(2) | |
401 | end, | |
402 | function() | |
403 | anim = true; | |
404 | for i = 0, 1, 0.24 do | |
405 | wait(); | |
406 | animate("bw",CFrame.new(0,-1,0),math.rad(0),math.rad(90),math.rad(0),i) | |
407 | animate("Toso",(co-Vector3.new(0,0,0)),0,math.rad(0),math.rad(30),i);animate("hr",CFrame.new(0,1,0),0,math.rad(-30),0,i) | |
408 | animate("reg",CFrame.new(0.5,-1.5,0),math.rad(0),0,math.rad(15),i) | |
409 | animate("leg",CFrame.new(-0.5,-1.5,0),math.rad(0),0,math.rad(-15),i) | |
410 | animate("rr",CFrame.new(1,0.6,-0.25),math.rad(180),math.rad(40),math.rad(-70),i); | |
411 | end;don = true;attackdebounce = false;scfr=nil | |
412 | for i = 0, 1, 0.2 do | |
413 | wait() | |
414 | splash() | |
415 | animate("bw",CFrame.new(0,-1,0),math.rad(-40),math.rad(90),math.rad(0),i) | |
416 | animate("Toso",(co-Vector3.new(0,0,0)),0,math.rad(0),math.rad(-50),i);animate("hr",CFrame.new(0,1,0),0,math.rad(50),0,i) | |
417 | animate("reg",CFrame.new(0.5,-1.5,0),math.rad(20),0,math.rad(6),i) | |
418 | animate("leg",CFrame.new(-0.5,-1.5,0),math.rad(-10),0,math.rad(-10),i) | |
419 | animate("rr",CFrame.new(1.5,0.5,0),math.rad(0),math.rad(60),math.rad(50),i); | |
420 | end | |
421 | scfr = nil;don = false;canslash=true | |
422 | rest(3) | |
423 | end, | |
424 | function() | |
425 | anim = true | |
426 | for i = 0, 1, 0.24 do | |
427 | animate("bw",CFrame.new(0,-1,0),math.rad(-100),math.rad(90),math.rad(0),i) | |
428 | animate("Toso",(co-Vector3.new(0,0.6,0)),0,math.rad(0),math.rad(-40),i);animate("hr",CFrame.new(0,1,0),0,math.rad(-30),0,i) | |
429 | animate("reg",CFrame.new(0.5,-0.9,-0.5),math.rad(0),0,math.rad(15),i) | |
430 | animate("leg",CFrame.new(-0.5,-0.9,0.15),math.rad(-45),0,math.rad(0),i) | |
431 | animate("rr",CFrame.new(1.4,0.5,0),math.rad(0),math.rad(0),math.rad(75),i); | |
432 | wait() | |
433 | end;wait();don = true;attackdebounce = false;scfr=nil | |
434 | for i = 0, 1, 0.24 do | |
435 | wait();splash() | |
436 | animate("bw",CFrame.new(0,-1,0),math.rad(0),math.rad(90),math.rad(0),i) | |
437 | animate("Toso",(co-Vector3.new(0,0,0)),0,math.rad(0),math.rad(30),i);animate("hr",CFrame.new(0,1,0),0,math.rad(-30),0,i) | |
438 | animate("reg",CFrame.new(0.5,-1.5,0),math.rad(0),0,math.rad(15),i) | |
439 | animate("leg",CFrame.new(-0.5,-1.5,0),math.rad(0),0,math.rad(-15),i) | |
440 | animate("rr",CFrame.new(1,0.6,-0.25),math.rad(180),math.rad(40),math.rad(-70),i); | |
441 | end;scfr = nil;don = false;canslash=true;rest(4) | |
442 | end | |
443 | } | |
444 | -------------------------slashr------------------------------------------------------slashr------------------------------------------------------slashr----------------------------- | |
445 | ||
446 | combo = 4;canslash=false | |
447 | ||
448 | ||
449 | function clik() | |
450 | if not anim or canslash then | |
451 | canslash=false;scfr = nil | |
452 | if combo == 4 then | |
453 | combo=1;slash[1](); | |
454 | elseif combo == 1 then | |
455 | combo=2;slash[2]() | |
456 | elseif combo == 2 then | |
457 | combo=3;slash[3]() | |
458 | elseif combo == 3 then | |
459 | combo=4;slash[4]() | |
460 | end | |
461 | end | |
462 | end | |
463 | QHIT = false; | |
464 | skills = { | |
465 | function(mouse) | |
466 | anim = true;locanrun=true;canjump=false | |
467 | normal(1) | |
468 | mh = mouse.Hit.p | |
469 | x,y,z = (CFrame.new(char.Torso.Position,Vector3.new(mh.X,char.Torso.Position.Y,mh.Z))):toEulerAnglesXYZ() | |
470 | char.Torso.CFrame = CFrame.new(char.Torso.Position,Vector3.new(mh.X,char.Torso.Position.Y,mh.Z)) | |
471 | wait();QHIT = true | |
472 | for i = 0, 1, 0.333333 do | |
473 | animate("bw",CFrame.new(0,-1,0),math.rad(-90),math.rad(90),math.rad(0),i) | |
474 | animate("Toso",(co-Vector3.new(0,0.4,0)),0,math.rad(5),math.rad(-90),i);animate("hr",CFrame.new(0,1,0),math.rad(-10),math.rad(90),0,i) | |
475 | animate("rr",CFrame.new(1.2,0.5,-1),math.rad(90),math.rad(0),math.rad(-90),i); | |
476 | wait() | |
477 | end | |
478 | wait();moop={}; | |
479 | for i = 0, 1, 0.333333 do | |
480 | animate("bw",CFrame.new(0,-1,0),math.rad(-90),math.rad(90),math.rad(0),i) | |
481 | animate("Toso",(co-Vector3.new(0,0.4,0)),0,math.rad(5),math.rad(90),i); animate("hr",CFrame.new(0,1,0),math.rad(-10),math.rad(-70),0,i) | |
482 | animate("rr",CFrame.new(1.5,0.5,0),math.rad(90),math.rad(0),math.rad(90),i); | |
483 | wait() | |
484 | end;mufu={} | |
485 | wind1= Add.part("Institutional white",Vector3.new(4, 1.2, 1),(hitbox.CFrame-Vector3.new(0,1,0))*CFrame.Angles(math.rad(-10),0,math.rad(90)),sword,"wind",Vector3.new(1.6, 1.1, 1.1),"Block","Sphere",false,nil,0.69999998807907,Part,"Brick") | |
486 | wind2= Add.part("Really black",Vector3.new(4, 1.2, 1),(hitbox.CFrame-Vector3.new(0,1,0))*CFrame.Angles(math.rad(-10),0,math.rad(90)),sword,"wind",Vector3.new(1.6, 1.1, 1.1),"Block","Sphere",false,nil,0.60000002384186,Part,"Brick");wind2.Mesh.Offset = Vector3.new(0.4,0,0) | |
487 | wind3= Add.part("Medium stone grey",Vector3.new(4, 1.2, 1),(hitbox.CFrame-Vector3.new(0,1,0))*CFrame.Angles(math.rad(-10),0,math.rad(90)),sword,"wind",Vector3.new(1.6, 1.1, 1.1),"Block","Sphere",false,nil,0.5,Part,"Brick");wind3.Mesh.Offset = Vector3.new(0.6,0,0) | |
488 | wind1.CFrame = hitbox.CFrame*CFrame.Angles(math.rad(-10),0,math.rad(90))-Vector3.new(0,0.3,0);wind2.CFrame = hitbox.CFrame*CFrame.Angles(math.rad(-10),0,math.rad(90))-Vector3.new(0,0.3,0);wind3.CFrame = hitbox.CFrame*CFrame.Angles(math.rad(-10),0,math.rad(90))-Vector3.new(0,0.3,0) | |
489 | eff2 = Add.part("Medium stone grey", Vector3.new(), hitbox.CFrame*CFrame.Angles(1,1,1),char,"effect",Vector3.new(1,1,1),"Block","Brick",false,nil,0.4,Part,"Brick") | |
490 | eff1 = Add.part("Medium stone grey", Vector3.new(1,1,1), hitbox.CFrame*CFrame.Angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),char,"effect",Vector3.new(1,1,1),"Block","Brick",false,nil,0.4,Part,"Brick") | |
491 | eff3= Add.part("White",Vector3.new(1, 1, 1),hitbox.CFrame*CFrame.new(0,0,-1),char,"effect",Vector3.new(1.5, 1.5, 1),"Block","FileMesh",false,"http://www.roblox.com/asset/?id=3270017",0.8,Part,"Symmetric") | |
492 | eff4= Add.part("Black",Vector3.new(1, 1, 1),hitbox.CFrame*CFrame.new(0,0,-1.5),char,"effect",Vector3.new(1.25, 1.25, 1),"Block","FileMesh",false,"http://www.roblox.com/asset/?id=3270017",0.8,Part,"Symmetric") | |
493 | eff1.CFrame = hitbox.CFrame*CFrame.Angles(math.random(-360,360),math.random(-360,360),math.random(-360,360));eff2.CFrame = hitbox.CFrame*CFrame.Angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)) | |
494 | eff3.CFrame = (hitbox.CFrame*CFrame.new(0,-1,0))*CFrame.Angles(math.rad(90),0,0);eff4.CFrame=(hitbox.CFrame*CFrame.new(0,-1.5,0))*CFrame.Angles(math.rad(90),0,0) | |
495 | table.insert(mufu,wind1);table.insert(mufu,wind2);table.insert(mufu,wind3); | |
496 | coroutine.resume(coroutine.create(function(p1,p2,p3,p4,cf1) | |
497 | for i = 0,1,1/13 do | |
498 | p1.CFrame = (cf1*CFrame.new(0,3*i,-.5*i))*CFrame.Angles(math.rad(math.random(-400,400)),math.rad(math.random(-400,400)),math.rad(math.random(-400,400)));p1.Transparency=p1.Transparency+(0.6*(1/13)) | |
499 | p2.CFrame = (cf1*CFrame.new(0,3*i,-.5*i))*CFrame.Angles(math.rad(math.random(-400,400)),math.rad(math.random(-400,400)),math.rad(math.random(-400,400)));p2.Transparency=p2.Transparency+(0.6*(1/13)) | |
500 | p3.CFrame = (cf1*CFrame.new(0,-1+8*i,0.17-(8*(0.5/3))*i)*CFrame.Angles(math.rad(90),0,0));p3.Mesh.Scale = Vector3.new(1.5+1*i,1.5+1*i,1);p3.Transparency = 0.8+0.3*i | |
501 | p4.CFrame = (cf1*CFrame.new(0,-1.5+7.5*i,0.17-(7.5*(0.5/3))*i)*CFrame.Angles(math.rad(90),0,0));p4.Mesh.Scale = Vector3.new(1.25+1*i,1.25+1*i,1);p4.Transparency = 0.8+0.3*i | |
502 | wait(); | |
503 | end;p1.Parent=nil;p2.Parent=nil;p3.Parent=nil;p4.Parent=nil | |
504 | end),eff1,eff2,eff3,eff4,hitbox.CFrame) | |
505 | for x = 1, #mufu do | |
506 | coroutine.resume(coroutine.create(function(wind,hey,trans,mehx) | |
507 | for i = 0, 1, (1/13) do | |
508 | wind.Mesh.Scale = Vector3.new(hey.X+1*i,hey.Y-hey.Y*i,hey.Z-hey.Z*i) | |
509 | wind.Mesh.Offset = Vector3.new(mehx+1*i,0,0) | |
510 | wind.Transparency = trans+(1-trans)*i | |
511 | wait() | |
512 | end;wind.Parent=nil | |
513 | end),mufu[x],mufu[x].Mesh.Scale,mufu[x].Transparency,mufu[x].Mesh.Offset.X) | |
514 | end | |
515 | ||
516 | ||
517 | ||
518 | QHIT = false;locanrun=false;canjump=true;lerun=false | |
519 | anim = false; | |
520 | end, | |
521 | function() | |
522 | anim = true;canjump = false | |
523 | bodyp = Add.bp(t,"Stay",t.Position); | |
524 | for i = 0, 1, 1/7 do | |
525 | animate("bw",CFrame.new(0,-1,0),0,math.rad(90),0,i) | |
526 | animate("Toso",(co-Vector3.new(0,0.5,0)),math.rad(30),math.rad(0),math.rad(0),i) | |
527 | animate("hr",CFrame.new(0,1,0),math.rad(-10),math.rad(0),0,i) | |
528 | animate("rr",CFrame.new(1.5,0.5,0),math.rad(90),math.rad(35),math.rad(-25),i) | |
529 | animate("lr",CFrame.new(-1.5,0.5,0),math.rad(-15),0,math.rad(-45),i) | |
530 | animate("reg",CFrame.new(0.5,-1,-0.65),math.rad(25),0,0,i) | |
531 | animate("leg",CFrame.new(-0.5,-1.3,0),math.rad(5),0,0,i) | |
532 | wait() | |
533 | end;logic = Add.BG(hrp,hrp.CFrame) | |
534 | for i = 1, 10 do | |
535 | boost= Add.part("White",Vector3.new(1, 1, 1),t.CFrame*CFrame.new(0,0,-1),char,"effect",Vector3.new(3, 3, 3),"Block","FileMesh",false,"http://www.roblox.com/asset/?id=20329976",0.3,Part,"Symmetric") | |
536 | boost.CFrame = CFrame.new(t.Position-Vector3.new(0,1.2,0))*CFrame.Angles(0,math.rad(math.random(-360,360)),0) | |
537 | coroutine.resume(coroutine.create(function(mama) | |
538 | for i = 0, 1, 1/12 do | |
539 | mama.CFrame = mama.CFrame*CFrame.Angles(0,math.rad(math.random(-360,360)),0);mama.Transparency = 0.3+0.5*i;mama.Mesh.Scale = Vector3.new(3+1*i,3+1*i,3+1*i); | |
540 | wait() | |
541 | end;mama.Parent=nil | |
542 | end),boost) | |
543 | wait() | |
544 | end; | |
545 | ||
546 | for i = 0, 1, 1/7 do | |
547 | animate("bw",CFrame.new(0,-1,0),0,math.rad(90),0,i) | |
548 | animate("Toso",(co-Vector3.new(0,0,0)),math.rad(0),math.rad(0),math.rad(0),i) | |
549 | animate("hr",CFrame.new(0,1,0),math.rad(0),math.rad(0),0,i) | |
550 | animate("rr",CFrame.new(1.5,0.5,0),math.rad(0),math.rad(90),math.rad(90),i) | |
551 | animate("lr",CFrame.new(-1.5,0.5,0),math.rad(-15),0,math.rad(-45),i) | |
552 | animate("reg",CFrame.new(0.5,-1,-0),math.rad(0),0,math.rad(25),i) | |
553 | animate("leg",CFrame.new(-0.5,-1,0),math.rad(0),0,math.rad(-25),i) | |
554 | wait() | |
555 | end; | |
556 | ||
557 | ball = Add.part("White", Vector3.new(1,1,1), t.CFrame, char, "Effect", Vector3.new(20,20,20), "Block", "Sphere",false,nil,0.7,Part,"Custom")ball.Anchored = false | |
558 | anchor = Add.part("White",Vector3.new(5,5,5),t.CFrame,char,"anchor",Vector3.new(20,20,20),"Block","Sphere",false,nil,1,Part,"Custom");anchor.Anchored = false | |
559 | wind = Add.part("White",Vector3.new(5,5,5),t.CFrame,char,"anchor",Vector3.new(20,20,20),"Block","FileMesh",false,"http://www.roblox.com/asset/?id=1051557",0.6,Part,"Custom");wind.Anchored = false | |
560 | a=weldIt(t,anchor,CFrame.new(0,0,0),CFrame.new(0,0,0),nil);b=weldIt(t,wind,CFrame.new(0,0,0),CFrame.new(0,0,0),nil);c=weldIt(t,ball,CFrame.new(0,0,0),CFrame.new(0,0,0),nil) | |
561 | already = {};weldos={};lepeepz=checkdist(t,17);gage = b.C0 | |
562 | ||
563 | for i = 1, #lepeepz do | |
564 | if lepeepz[i] then | |
565 | haw = weldIt(anchor,lepeepz[i].Torso,anchor.CFrame:toObjectSpace(lepeepz[i].Torso.CFrame),nil,nil) | |
566 | table.insert(weldos,haw); | |
567 | end | |
568 | end | |
569 | for i = 0,1, 1/120 do | |
570 | if math.floor((i*120)%30) == 1 then | |
571 | for x = 1,#lepeepz do | |
572 | if lepeepz[x] and lepeepz[x]:findFirstChild("Humanoid") and lepeepz[x]:findFirstChild("Torso") then | |
573 | attackdebounce = false | |
574 | Damagefunc(lepeepz[x].Torso,(humanoid.MaxHealth/10),(humanoid.MaxHealth/10),math.random(10,30),"Normal") | |
575 | end | |
576 | end | |
577 | end | |
578 | if math.floor((i*120)%4) == 1 then | |
579 | lolbob = Add.part("White",Vector3.new(5,5,5),t.CFrame*CFrame.Angles(math.rad(math.random(-100,100)),math.rad(math.random(-100,100)),math.rad(math.random(-100,100))),char,"anchor",Vector3.new(2.5,2.5,2.5),"Block","FileMesh",false,"rbxassetid://168892432 ",0.4,Part,"Custom") | |
580 | lolbob.CFrame = t.CFrame*CFrame.Angles(0,math.rad(-360,360),0) | |
581 | coroutine.resume(coroutine.create(function(clone) | |
582 | for i = 0, 1, 0.1 do | |
583 | clone.Mesh.Scale = Vector3.new(2.5+5*i,2.5+5*i,2.5+5*i);clone.Transparency = 0.4+0.4*i | |
584 | wait() | |
585 | end;clone.Parent = nil | |
586 | end),lolbob) | |
587 | end | |
588 | animate("Toso",(co-Vector3.new(0,0,0)),math.rad(0),math.rad(0),math.rad((360*16)*i),i);b.C0 = gage*CFrame.Angles(0,math.rad(100*i),0);ball.Transparency = 0.6-0.4*i;wind.Transparency = 0.6-0.4*i | |
589 | for i = 1,#weldos do | |
590 | weldos[i].C0 = weldos[i].C0*CFrame.new(0,0.0625,0) | |
591 | end | |
592 | wait() | |
593 | end;logic.Parent=nil | |
594 | coroutine.resume(coroutine.create(function(a1,a2,a3,ws,w) | |
595 | for i = 0, 1, 0.1 do | |
596 | w.C0 = ws*CFrame.Angles(0,math.rad(100*i),0) | |
597 | a1.Mesh.Scale = Vector3.new(20+3*i,20+3*i,20+3*i);a1.Transparency = 0.2+0.8*i | |
598 | a2.Mesh.Scale = Vector3.new(20+3*i,20+3*i,20+3*i);a2.Transparency = 0.2+0.8*i | |
599 | wait() | |
600 | end;a1.Parent=nil;a2.Parent=nil;a3.Parent=nil; | |
601 | end),wind,ball,anchor,b.C0,b) | |
602 | for i = 1,#weldos do if weldos[i] then weldos[i].Parent = nil end end | |
603 | wait() | |
604 | anim = false;bodyp.Parent=nil;canjump=true; | |
605 | end, | |
606 | function() | |
607 | niye = sword:GetChildren();guard=true;br = BrickColor.new("Institutional white") | |
608 | if ss then | |
609 | br = BrickColor.new("Medium stone grey");guard = false | |
610 | end | |
611 | for i = 1,# niye do | |
612 | if niye[i].Name == "Blade" then | |
613 | niye[i].BrickColor = br;ss = guard | |
614 | end | |
615 | end | |
616 | end, | |
617 | function(bik,rotate) | |
618 | if not canboost then return end | |
619 | coroutine.resume(coroutine.create(function(ilan,ratat) | |
620 | yolo = Add.bp(hrp,"BOPOLS",hrp.Position);canboost=false; | |
621 | boosts= Add.part("White",Vector3.new(5,5,5),hrp.CFrame,char,"boom",Vector3.new(2.5,2.5,2.5),"Block","FileMesh",false,"http://www.roblox.com/asset/?id=20329976",0.4,Part,"Custom") | |
622 | boosts.CFrame = (t.CFrame-Vector3.new(0,1.5,0))*CFrame.Angles(0,0,math.rad(ratat)) | |
623 | coroutine.resume(coroutine.create(function(thing) | |
624 | print("yo") | |
625 | for i = 0, 1, 0.05 do | |
626 | thing.Mesh.Scale = Vector3.new(2.5+1*i,2.5+1*i,2.5+1*i);thing.Transparency = 0.4+0.5*i | |
627 | wait() | |
628 | end;thing.Parent=nil | |
629 | end),boosts) | |
630 | for i = 0, 1, 0.1 do | |
631 | yolo.position = (hrp.CFrame*CFrame.new(0,0,ilan)).p | |
632 | wait() | |
633 | end | |
634 | yolo.Parent = nil;canboost=true | |
635 | end),bik,rotate) | |
636 | end | |
637 | } | |
638 | function led(key, mouse) | |
639 | key = key:lower() | |
640 | if anim then return end | |
641 | if key == "z" then | |
642 | skills[1](mouse) | |
643 | elseif key == "x" then | |
644 | skills[2](mouse) | |
645 | elseif key == "r" then | |
646 | skills[3]() | |
647 | elseif key == "c" then | |
648 | skills[4](-15,120) | |
649 | elseif key == "v" then | |
650 | skills[4](10,-120) | |
651 | end | |
652 | end | |
653 | function normal(i) | |
654 | animate("bw",CFrame.new(0,-1,0),0,math.rad(90),0,i) | |
655 | animate("Toso",(co-Vector3.new(0,0.4,0)),0,math.rad(5),math.rad(90),i) | |
656 | animate("hr",CFrame.new(0,1,0),math.rad(-10),math.rad(-70),0,i) | |
657 | animate("rr",CFrame.new(1.5,0.5,0),math.rad(90),math.rad(115),math.rad(-25),i) | |
658 | animate("lr",CFrame.new(-1.5,0.5,0),math.rad(35),0,math.rad(-25),i) | |
659 | animate("reg",CFrame.new(0.5,-1.1,-0.65),math.rad(-15),0,0,i) | |
660 | animate("leg",CFrame.new(-0.5,-1.2,0),math.rad(-25),0,0,i) | |
661 | end | |
662 | function Equip(mouse) | |
663 | print("yup") | |
664 | if equip then return end | |
665 | while anim do wait() end | |
666 | rh.Parent=nil;rs.Parent=nil;lh.Parent=nil;neck.Parent=nil;ls.Parent=nil;rlw = weldIt(t,rl, CFrame.new(0.5,-1.5,0),CFrame.new(0,0.5,0));llw = weldIt(t,ll, CFrame.new(-0.5,-1.5,0),CFrame.new(0,0.5,0)); | |
667 | rw = weldIt(t,ra,CFrame.new(1.5,0.5,0),CFrame.new(0,0.5,0),nil);lw = weldIt(t,la,CFrame.new(-1.5,0.5,0),CFrame.new(0,0.5,0));nw = weldIt(t,head,CFrame.new(0, 1, 0),CFrame.new(0,-0.5,0)) | |
668 | anim = true | |
669 | bw.Parent = nil;running=false;idol=true; | |
670 | hw = weldIt(ra,Handle,CFrame.new(0,-1,0)*CFrame.Angles(0,math.rad(90),0),nil) | |
671 | for i = 0,1,0.1 do | |
672 | normal(i) | |
673 | wait(0.0001) | |
674 | end | |
675 | mouse.Button1Down:connect(clik) | |
676 | mouse.KeyDown:connect(function(k) led(k, mouse) end) | |
677 | equip = true;anim = false; | |
678 | end | |
679 | function unequip(mouse) | |
680 | if not equip then return end | |
681 | while anim do wait() end | |
682 | anim = true;ss=false | |
683 | for i = 0,1,0.1 do | |
684 | animate("Toso",co-Vector3.new(0,0.4-0.4*i,0),0,0,0,i) | |
685 | animate("hr",CFrame.new(0,1,0),0,0,0,i) | |
686 | animate("rr",CFrame.new(1.5,0.5,0),0,0,0,i) | |
687 | animate("lr",CFrame.new(-1.5,0.5,0),0,0,0,i) | |
688 | animate("reg",CFrame.new(0.5,-1.5,0),0,0,0,i) | |
689 | animate("leg",CFrame.new(-0.5,-1.5,0),0,0,0,i) | |
690 | wait(0.0001) | |
691 | end | |
692 | hw.Parent = nil;backweld() | |
693 | rw.Parent=nil;lw.Parent=nil;hrpw.C0 = co;rlw.Parent=nil;llw.Parent=nil;rh.Parent=t;lh.Parent=t;rs.Parent=t;ls.Parent=t;neck.Parent=t; | |
694 | equip=false;anim=false | |
695 | end | |
696 | canrun=false | |
697 | function runit() | |
698 | if(t.Velocity*Vector3.new(1, 0, 1)).magnitude > 2 and not anim and equip and fell then | |
699 | running = true; | |
700 | for i = 0, 1,(1/7) do | |
701 | if not anim and equip and running and fell then | |
702 | animate("bw",CFrame.new(0,-1,0),0,math.rad(90),0,i) | |
703 | animate("Toso",(co-Vector3.new(0,0.4,0)),0,math.rad(5),math.rad(80),i) | |
704 | animate("hr",CFrame.new(0,1,0),math.rad(0),math.rad(-80),0,i) | |
705 | animate("rr",CFrame.new(1.5,0.5,0),math.rad(90),math.rad(45),math.rad(-25),i) | |
706 | animate("lr",CFrame.new(-1.5,0.5,0),math.rad(-35),0,math.rad(-30),i) | |
707 | --[[animate("reg",CFrame.new(0.5,-1.1,0.2),math.rad(5),math.rad(-80),0,i) | |
708 | animate("leg",CFrame.new(-0.5,-1.2,-0.2),math.rad(-2),math.rad(-80),0,i)]] | |
709 | animate("reg",CFrame.new(0.6,-1.2,0),math.rad(5+35*math.cos((inf-7)/4)),math.rad(-40),0,i) | |
710 | animate("leg",CFrame.new(-0.6,-1.2,0),math.rad(-2-35*math.cos((inf-7)/4)),math.rad(-40),0,i) | |
711 | wait() | |
712 | else | |
713 | if hw then | |
714 | hw.C0 = CFrame.new(0,-1,0)*CFrame.Angles(0,math.rad(90),0) end | |
715 | break | |
716 | end | |
717 | end | |
718 | ||
719 | end | |
720 | end | |
721 | --[[function run(speed) | |
722 | if speed>0 then | |
723 | ||
724 | if (t.Velocity*Vector3.new(1, 0, 1)).magnitude > 2 then | |
725 | runit() | |
726 | end | |
727 | else | |
728 | running = false | |
729 | for i = 0, 1, 0.142 do | |
730 | if not anim and equip and not running then | |
731 | normal(i) | |
732 | wait() | |
733 | else | |
734 | if hw then | |
735 | hw.C0 = CFrame.new(0,-1,0)*CFrame.Angles(0,math.rad(90),0) end | |
736 | break | |
737 | end | |
738 | end | |
739 | idol = true | |
740 | end | |
741 | inf = 0 | |
742 | end]] | |
743 | ||
744 | ||
745 | ||
746 | ||
747 | --to[mem | |
748 | ||
749 | ||
750 | function Lerp(x,y,inc) return x + (y - x) * inc end | |
751 | ||
752 | function animate(mem,cfr,x,y,z,e) | |
753 | To[mem].X=Lerp(To[mem].X,x,e);To[mem].Y=Lerp(To[mem].Y,y,e);To[mem].Z=Lerp(To[mem].Z,z,e) | |
754 | To[mem].cf=(cfr-Vector3.new(cfr.X,cfr.Y,cfr.Z))+Vector3.new(Lerp(To[mem].cf.X,cfr.X,e),Lerp(To[mem].cf.Y,cfr.Y,e),Lerp(To[mem].cf.Z,cfr.Z,e)) | |
755 | end | |
756 | To={ | |
757 | rr={X=0;Y=0;Z=0;cf=CFrame.new(1.5,0.5,0)};bw={X=math.rad(5);Y=math.rad(90);Z=0;cf=CFrame.new(0,-1,0)};lr={X=0;Y=0;Z=0;cf=CFrame.new(-1.5,0.5,0)};hr={X=0;Y=0;Z=0;cf=CFrame.new(0,1.5,0)};leg={X=0;Y=0;Z=0;cf=CFrame.new(-0.5,-1,0)};reg={X=0;Y=0;Z=0;cf=CFrame.new(0.5,-1,0)};Toso={X=0;Y=0;Z=0;cf=co} | |
758 | } | |
759 | game:service'RunService'.RenderStepped:connect(function() | |
760 | if rw then rw.C0=To["rr"].cf*CFrame.Angles((To["rr"].X),(To["rr"].Y),(To["rr"].Z)); end | |
761 | if hw and equip then hw.C0=To["bw"].cf*CFrame.Angles((To["bw"].X),(To["bw"].Y),(To["bw"].Z)) end | |
762 | if lw then lw.C0=To["lr"].cf*CFrame.Angles((To["lr"].X),(To["lr"].Y),(To["lr"].Z));end | |
763 | if nw then nw.C0=To["hr"].cf*CFrame.Angles((To["hr"].X),To["hr"].Y,To["hr"].Z);end | |
764 | if rlw then rlw.C0=To["reg"].cf*CFrame.Angles(To["reg"].X,To["reg"].Y,To["reg"].Z);end | |
765 | if llw then llw.C0=To["leg"].cf*CFrame.Angles(To["leg"].X,To["leg"].Y,To["leg"].Z);end | |
766 | if hrpw then hrpw.C0=To["Toso"].cf*CFrame.Angles(To["Toso"].X,To["Toso"].Y,To["Toso"].Z) end | |
767 | end) | |
768 | function NoOutline(Part) | |
769 | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 | |
770 | end | |
771 | ---------------------1274182751856210985126509218u8071894718946189406194189410------------------------------------------- | |
772 | ---------------------1274182751856210985126509218u8071894718946189406194189410------------------------------------------- | |
773 | ---------------------1274182751856210985126509218u8071894718946189406194189410------------------------------------------- | |
774 | local ppart = Instance.new("Part") | |
775 | ppart.Material = "SmoothPlastic" | |
776 | ppart.TopSurface,ppart.BottomSurface = 0,0 | |
777 | ppart.FormFactor = "Custom" | |
778 | ppart.Size = Vector3.new(.2,.2,.2) | |
779 | ppart:BreakJoints() | |
780 | ppart.TopSurface = "SmoothNoOutlines" | |
781 | ppart.BottomSurface = "SmoothNoOutlines" | |
782 | ppart.RightSurface = "SmoothNoOutlines" | |
783 | ppart.LeftSurface = "SmoothNoOutlines" | |
784 | ppart.CanCollide = false | |
785 | ||
786 | local function CFrameFromTopBack(at, top, back) | |
787 | local right = top:Cross(back) | |
788 | return CFrame.new(at.x, at.y, at.z, | |
789 | right.x, top.x, back.x, | |
790 | right.y, top.y, back.y, | |
791 | right.z, top.z, back.z) | |
792 | end | |
793 | ||
794 | function Triangle(a, b, c) | |
795 | local edg1 = (c-a):Dot((b-a).unit) | |
796 | local edg2 = (a-b):Dot((c-b).unit) | |
797 | local edg3 = (b-c):Dot((a-c).unit) | |
798 | if edg1 <= (b-a).magnitude and edg1 >= 0 then | |
799 | a, b, c = a, b, c | |
800 | elseif edg2 <= (c-b).magnitude and edg2 >= 0 then | |
801 | a, b, c = b, c, a | |
802 | elseif edg3 <= (a-c).magnitude and edg3 >= 0 then | |
803 | a, b, c = c, a, b | |
804 | else | |
805 | assert(false, "unreachable") | |
806 | end | |
807 | ||
808 | local len1 = (c-a):Dot((b-a).unit) | |
809 | local len2 = (b-a).magnitude - len1 | |
810 | local width = (a + (b-a).unit*len1 - c).magnitude | |
811 | ||
812 | local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit) | |
813 | ||
814 | local list = {} | |
815 | ||
816 | if len1 > 0.01 then | |
817 | local w1 = Instance.new('WedgePart', m) | |
818 | w1.Material = "SmoothPlastic" | |
819 | w1.FormFactor = 'Custom' | |
820 | if Mode=="Unactive" then | |
821 | w1.BrickColor = ppart.BrickColor | |
822 | elseif Mode=="Hero" then | |
823 | w1.BrickColor = BrickColor.new("Bright blue") | |
824 | elseif Mode=="Infamous" then | |
825 | w1.BrickColor = BrickColor.new("Bright red") | |
826 | end | |
827 | w1.Transparency = ppart.Transparency | |
828 | w1.Reflectance = ppart.Reflectance | |
829 | w1.Material = ppart.Material | |
830 | w1.CanCollide = ppart.CanCollide | |
831 | NoOutline(w1) | |
832 | local sz = Vector3.new(0.2, width, len1) | |
833 | w1.Size = sz | |
834 | local sp = Instance.new("SpecialMesh",w1) | |
835 | sp.MeshType = "Wedge" | |
836 | sp.Scale = Vector3.new(0,1,1) * sz/w1.Size | |
837 | w1:BreakJoints() | |
838 | w1.Anchored = true | |
839 | w1.Parent = workspace | |
840 | w1.Transparency = 0.8 | |
841 | coroutine.resume(coroutine.create(function(Part) | |
842 | for i=0,1,0.1 do | |
843 | wait() | |
844 | Part.Transparency=Part.Transparency+0.02 | |
845 | end | |
846 | end),w1) | |
847 | w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2) | |
848 | table.insert(list,w1) | |
849 | end | |
850 | ||
851 | if len2 > 0.01 then | |
852 | local w2 = Instance.new('WedgePart', m) | |
853 | w2.Material = "SmoothPlastic" | |
854 | w2.FormFactor = 'Custom' | |
855 | if Mode=="Unactive" then | |
856 | w2.BrickColor = ppart.BrickColor | |
857 | elseif Mode=="Hero" then | |
858 | w2.BrickColor = BrickColor.new("Bright blue") | |
859 | elseif Mode=="Infamous" then | |
860 | w2.BrickColor = BrickColor.new("Bright red") | |
861 | end | |
862 | w2.Transparency = ppart.Transparency | |
863 | w2.Reflectance = ppart.Reflectance | |
864 | w2.Material = ppart.Material | |
865 | w2.CanCollide = ppart.CanCollide | |
866 | NoOutline(w2) | |
867 | local sz = Vector3.new(0.2, width, len2) | |
868 | w2.Size = sz | |
869 | local sp = Instance.new("SpecialMesh",w2) | |
870 | sp.MeshType = "Wedge" | |
871 | sp.Scale = Vector3.new(0,1,1) * sz/w2.Size | |
872 | w2:BreakJoints() | |
873 | w2.Anchored = true | |
874 | w2.Parent = workspace | |
875 | w2.Transparency = 0.8 | |
876 | coroutine.resume(coroutine.create(function(Part) | |
877 | for i=0,1,0.1 do | |
878 | wait() | |
879 | Part.Transparency=Part.Transparency+0.02 | |
880 | end | |
881 | end),w2) | |
882 | w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2) | |
883 | table.insert(list,w2) | |
884 | end | |
885 | return unpack(list) | |
886 | end | |
887 | ---------------------1274182751856210985126509218u8071894718946189406194189410------------------------------------------- | |
888 | ---------------------1274182751856210985126509218u8071894718946189406194189410------------------------------------------- | |
889 | ---------------------1274182751856210985126509218u8071894718946189406194189410------------------------------------------- | |
890 | ||
891 | ||
892 | ||
893 | ||
894 | ------------------------------ | |
895 | Damagefunc=function(hit,minim,maxim,knockback,Type,Property) | |
896 | if hit.Parent==nil then | |
897 | return | |
898 | end | |
899 | CPlayer=Bin | |
900 | h=hit.Parent:FindFirstChild("Humanoid") | |
901 | for _,v in pairs(hit.Parent:children()) do | |
902 | if v:IsA("Humanoid") then | |
903 | h=v | |
904 | end | |
905 | end | |
906 | if h~=nil and hit.Parent.Name~=char.Name and hit.Parent:FindFirstChild("Torso")~=nil then | |
907 | if attackdebounce == false then | |
908 | attackdebounce = true | |
909 | coroutine.resume(coroutine.create(function() | |
910 | wait(0.2) | |
911 | attackdebounce = false | |
912 | end)) | |
913 | ||
914 | c=Instance.new("ObjectValue") | |
915 | c.Name="creator" | |
916 | c.Value=game:service("Players").LocalPlayer | |
917 | c.Parent=h | |
918 | game:GetService("Debris"):AddItem(c,.5) | |
919 | Damage=math.random(minim,maxim) | |
920 | blocked=false | |
921 | block=hit.Parent:findFirstChild("Block") | |
922 | if block~=nil then | |
923 | if block.Value>0 then | |
924 | blocked=true | |
925 | block.Value=block.Value-1 | |
926 | print(block.Value) | |
927 | end | |
928 | end | |
929 | if blocked==false then | |
930 | print("NOOOOP") | |
931 | h.Health=h.Health-Damage | |
932 | showDamage(hit.Parent,Damage,.5,BrickColor:Red()) | |
933 | else | |
934 | print("NOOOOP") | |
935 | h.Health=h.Health-(Damage/2) | |
936 | showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue")) | |
937 | end | |
938 | if Type=="Knockdown" then | |
939 | hum=hit.Parent.Humanoid | |
940 | hum.PlatformStand=true | |
941 | coroutine.resume(coroutine.create(function(HHumanoid) | |
942 | wait(1) | |
943 | HHumanoid.PlatformStand=false | |
944 | end),hum) | |
945 | local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit | |
946 | print(angle) | |
947 | --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0) | |
948 | local bodvol=Instance.new("BodyVelocity") | |
949 | bodvol.velocity=angle*knockback | |
950 | bodvol.P=5000 | |
951 | bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003) | |
952 | bodvol.Parent=hit | |
953 | rl=Instance.new("BodyAngularVelocity") | |
954 | rl.P=3000 | |
955 | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 | |
956 | rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10)) | |
957 | rl.Parent=hit | |
958 | game:GetService("Debris"):AddItem(bodvol,.5) | |
959 | game:GetService("Debris"):AddItem(rl,.5) | |
960 | elseif Type=="Normal" then | |
961 | vp=Instance.new("BodyVelocity") | |
962 | vp.P=500 | |
963 | vp.maxForce=Vector3.new(math.huge,0,math.huge) | |
964 | if Rootpart then | |
965 | vp.velocity=RootPart.CFrame.lookVector*knockback+RootPart.Velocity/1.05 | |
966 | end | |
967 | if knockback>0 then | |
968 | vp.Parent=hit.Parent.Torso | |
969 | end | |
970 | game:GetService("Debris"):AddItem(vp,.5) | |
971 | elseif Type=="Up" then | |
972 | local bodyVelocity=Instance.new("BodyVelocity") | |
973 | bodyVelocity.velocity=vt(0,20,0) | |
974 | bodyVelocity.P=5000 | |
975 | bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003) | |
976 | bodyVelocity.Parent=hit | |
977 | game:GetService("Debris"):AddItem(bodyVelocity,.5) | |
978 | elseif Type=="Freeze" then | |
979 | BodPos=Instance.new("BodyPosition") | |
980 | BodPos.P=50000 | |
981 | BodPos.D=1000 | |
982 | BodPos.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
983 | BodPos.position=hit.Parent.Torso.Position | |
984 | BodPos.Parent=hit.Parent.Torso | |
985 | BodGy = it("BodyGyro") | |
986 | BodGy.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge | |
987 | BodGy.P = 20e+003 | |
988 | BodGy.Parent=hit.Parent.Torso | |
989 | BodGy.cframe = hit.Parent.Torso.CFrame | |
990 | hit.Parent.Torso.Anchored=true | |
991 | coroutine.resume(coroutine.create(function(Part) | |
992 | wait(1.5) | |
993 | Part.Anchored=false | |
994 | end),hit.Parent.Torso) | |
995 | game:GetService("Debris"):AddItem(BodPos,3) | |
996 | game:GetService("Debris"):AddItem(BodGy,3) | |
997 | end | |
998 | c=Instance.new("ObjectValue") | |
999 | c.Name="creator" | |
1000 | c.Value=Player | |
1001 | c.Parent=h | |
1002 | game:GetService("Debris"):AddItem(c,.5) | |
1003 | CRIT=false | |
1004 | hitDeb=true | |
1005 | AttackPos=6 | |
1006 | end | |
1007 | end | |
1008 | end | |
1009 | ||
1010 | showDamage=function(Char,Dealt,du,Color) | |
1011 | m=Instance.new("Model") | |
1012 | m.Name=tostring(Dealt) | |
1013 | h=Instance.new("Humanoid") | |
1014 | h.Health=0 | |
1015 | h.MaxHealth=0 | |
1016 | h.Parent=m | |
1017 | c=Instance.new("Part") | |
1018 | c.Transparency=0 | |
1019 | c.BrickColor=Color | |
1020 | c.Name="Head" | |
1021 | c.TopSurface=0 | |
1022 | c.BottomSurface=0 | |
1023 | c.formFactor="Plate" | |
1024 | c.Size=Vector3.new(1,.4,1) | |
1025 | ms=Instance.new("CylinderMesh") | |
1026 | ms.Scale=Vector3.new(.8,.8,.8) | |
1027 | if CRIT==true then | |
1028 | ms.Scale=Vector3.new(1,1.25,1) | |
1029 | end | |
1030 | ms.Parent=c | |
1031 | c.Reflectance=0 | |
1032 | Instance.new("BodyGyro").Parent=c | |
1033 | c.Parent=m | |
1034 | c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0)) | |
1035 | f=Instance.new("BodyPosition") | |
1036 | f.P=2000 | |
1037 | f.D=100 | |
1038 | f.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
1039 | f.position=c.Position+Vector3.new(0,3,0) | |
1040 | f.Parent=c | |
1041 | game:GetService("Debris"):AddItem(m,.5+du) | |
1042 | c.CanCollide=false | |
1043 | m.Parent=workspace | |
1044 | c.CanCollide=false | |
1045 | end | |
1046 | ||
1047 | function humang() | |
1048 | if not canjump then | |
1049 | humanoid.Jump = false | |
1050 | end | |
1051 | end | |
1052 | ||
1053 | function checkint(tabl,thing) | |
1054 | for i = 1,#tabl do | |
1055 | if tabl[i] == thing then | |
1056 | return true | |
1057 | end | |
1058 | end | |
1059 | return false | |
1060 | end | |
1061 | ------------------------------------------------------ | |
1062 | ||
1063 | --humanoid.Running:connect(run) | |
1064 | humanoid.Changed:connect(humang) | |
1065 | hb.Deselected:connect(unequip) | |
1066 | hb.Selected:connect(Equip) | |
1067 | ||
1068 | ||
1069 | function checkdist(Part,magni) | |
1070 | tabol = {} | |
1071 | for _,c in pairs(workspace:children()) do | |
1072 | local hum=c:findFirstChild("Humanoid") | |
1073 | if hum~=nil then | |
1074 | local head=c:findFirstChild("Torso") | |
1075 | if head~=nil then | |
1076 | local targ=head.Position-Part.Position | |
1077 | local mag=targ.magnitude | |
1078 | if mag<=magni and c.Name~=player.Name then | |
1079 | table.insert(tabol, c) | |
1080 | end | |
1081 | end | |
1082 | end | |
1083 | end | |
1084 | ||
1085 | return tabol | |
1086 | end | |
1087 | ||
1088 | ||
1089 | ||
1090 | inf = 0;lejump = false; | |
1091 | while true do | |
1092 | if inf == 1000 then | |
1093 | inf = 0 | |
1094 | end | |
1095 | if (t.Velocity*Vector3.new(1, 0, 1)).magnitude <= 2 and not anim and equip and (fell and (t.Velocity.Y <= 1 and t.Velocity.Y >= -1)) then | |
1096 | lerun=false;if rlw and hrpw and llw then | |
1097 | if lenormal then | |
1098 | for i = 0, 1, 0.2 do | |
1099 | if (t.Velocity*Vector3.new(1, 0, 1)).magnitude <= 2 and not anim and equip and (fell and (t.Velocity.Y <= 1 and t.Velocity.Y >= -1)) then | |
1100 | normal(i) | |
1101 | wait() | |
1102 | else | |
1103 | break | |
1104 | end | |
1105 | end | |
1106 | lenormal = false | |
1107 | end | |
1108 | animate("Toso",co-Vector3.new(0,0.4-0.2*math.cos(inf/23),0),0,math.rad(5),math.rad(90),1) | |
1109 | animate("reg",CFrame.new(0.5,-1.1-0.2*math.cos(inf/23),-0.65),math.rad(-15),0,0,1) | |
1110 | animate("leg",CFrame.new(-0.5,-1.2,0),math.rad(-25-15*(-1*math.cos(inf/23))),0,0,1) | |
1111 | animate("rr",CFrame.new(1.5,0.5,0),math.rad(90),math.rad(115),math.rad(-25+5*math.cos(inf/23)),1) | |
1112 | animate("lr",CFrame.new(-1.5,0.5,0),math.rad(35),0,math.rad(-25-10*math.cos(inf/23)),1) | |
1113 | end | |
1114 | elseif(t.Velocity*Vector3.new(1, 0, 1)).magnitude > 2 and not anim and equip and (fell and (t.Velocity.Y <= 1 and t.Velocity.Y >= -1)) or locanrun then | |
1115 | lenormal=true; | |
1116 | if not lerun and not locanrun then | |
1117 | runit() | |
1118 | lerun=true | |
1119 | end | |
1120 | animate("reg",CFrame.new(0.6,-1.2,0),math.rad(5+35*math.cos(inf/4)),math.rad(-40),0,1) | |
1121 | animate("leg",CFrame.new(-0.6,-1.2,0),math.rad(-2-35*math.cos(inf/4)),math.rad(-40),0,1) | |
1122 | elseif t.Velocity.Y > 1 and not anim and equip and not lejump then | |
1123 | lejump=true;lenormal=true;lerun=false | |
1124 | for i = 0, 1, 1/4 do | |
1125 | if not anim and equip and lejump then | |
1126 | animate("hr",CFrame.new(0,1,0),math.rad(15),math.rad(0),0,i) | |
1127 | animate("reg",CFrame.new(0.6,-1.2,0),math.rad(35),math.rad(-40),0,i) | |
1128 | animate("leg",CFrame.new(-0.6,-1.2,0),math.rad(-35),math.rad(-40),0,i) | |
1129 | animate("rr",CFrame.new(1.5,0.5,0),math.rad(90),math.rad(75),math.rad(-25),i) | |
1130 | animate("lr",CFrame.new(-1.5,0.5,0),math.rad(-35),0,math.rad(-30),i) | |
1131 | wait() | |
1132 | else | |
1133 | break | |
1134 | end | |
1135 | end | |
1136 | lejump=false | |
1137 | if t.Velocity.Y > 1 and not anim and equip and not lejump then | |
1138 | fell = false | |
1139 | end | |
1140 | elseif t.Velocity.Y < -1 and not anim and equip and not lejump and not crosh then | |
1141 | fell = false;lenormal=true;lerun=false | |
1142 | for i = 0, 1, 1/4 do | |
1143 | if not anim and equip and (crosh == nil or (crosh and crosh.CanCollide == false)) then | |
1144 | animate("hr",CFrame.new(0,1,0),math.rad(-5),math.rad(0),0,i) | |
1145 | animate("reg",CFrame.new(0.6,-1.2,0),math.rad(-25),math.rad(-40),0,i) | |
1146 | animate("leg",CFrame.new(-0.6,-1.2,0),math.rad(15),math.rad(-40),0,i) | |
1147 | animate("rr",CFrame.new(1.5,0.5,0),math.rad(90),math.rad(100),math.rad(-25),i) | |
1148 | animate("lr",CFrame.new(-1.5,0.5,0),math.rad(46),0,math.rad(-30),i) | |
1149 | wait() | |
1150 | else | |
1151 | print('break') | |
1152 | break | |
1153 | end | |
1154 | end | |
1155 | lejump = false | |
1156 | else | |
1157 | idol = true;lenormal=true;lerun=false | |
1158 | end | |
1159 | ||
1160 | ray = Ray.new(t.Position,(((t.CFrame*CFrame.new(0,-1.5,0)).p)-t.Position).unit*3) | |
1161 | crosh, endPoint = Workspace:FindPartOnRay(ray,char) | |
1162 | if (crosh) then | |
1163 | lejump=false | |
1164 | fell = true | |
1165 | end | |
1166 | if ss then | |
1167 | windy= Add.part("Institutional white",Vector3.new(4, 1.2, 1),(hitbox.CFrame),sword,"wind",Vector3.new(math.random(50,110)/100, 0.3, 0.3),"Block","Sphere",false,nil,0.69999998807907,Part,"Brick");windy.Anchored = false; windyweld=weldIt(hitbox,windy,CFrame.new(math.random(-100,100)/130,-2,math.random(-100,100)/130)*CFrame.Angles(0,0,math.rad(90)),nil,nil) | |
1168 | coroutine.resume(coroutine.create(function(w,was,cu) | |
1169 | for i = 0, 1, 0.2 do | |
1170 | was.C0 = cu+Vector3.new(0,4*i,0) | |
1171 | wait() | |
1172 | end;was.Parent=nil;w.Parent = nil;print("yomama") | |
1173 | end),windy,windyweld,windyweld.C0) | |
1174 | end | |
1175 | inf =inf+1 | |
1176 | wait() | |
1177 | end |