SHOW:
|
|
- or go back to the newest paste.
1 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
2 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
3 | local RealPlayer = Player | |
4 | do print("FE Compatibility code by Mokiros");InternalData = {}InternalData.RealOwner = owner;InternalData.RealObjs = {};InternalData.SoundLoudness = {};local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c()}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;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end,__call=function(self,...)local t=rawget(self,"_RealService")if t then return t(...)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 self[t]end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;x.RunService=v({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")setmetatable(x,{__index=function(self,t)return r:GetService(t)or typeof(r[t])=="function"and function(m,...)return r[t](r,...)end or r[t]end,__newindex=s.__newindex,__call=s.__call})game,owner=x,x.Players.LocalPlayer | |
5 | script.Parent = InternalData.RealOwner.Character | |
6 | local Event = Instance.new("RemoteEvent");Event.Name = "UserInput";InternalData.Event = Event | |
7 | local function createObject (connections, index) | |
8 | local proxy = newproxy (true);local meta = getmetatable (proxy); | |
9 | local runbind = function (self, i, ...) connections[i]:Fire (...); end; | |
10 | while (#connections > 0) do connections[table.remove(connections, 1)] = Instance.new ('BindableEvent');end; | |
11 | meta.__index = function (self, i) | |
12 | if (i == 'TriggerEvent') then return runbind end; | |
13 | return connections[i] and connections[i].Event or index[i]; | |
14 | end; | |
15 | meta.__newindex = index;meta.__metatable = false;return proxy | |
16 | end; | |
17 | local Mouse = createObject({"KeyUp","KeyDown","Button1Down","Button1Up"},{["Target"] = nil;["Hit"] = CFrame.new()}) | |
18 | local UserInputService = createObject({"InputBegan","InputEnded"},{}) | |
19 | local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...) | |
20 | self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil | |
21 | end};ContextActionService.UnBindAction = ContextActionService.BindAction | |
22 | Event.OnServerEvent:Connect(function(FiredBy,Input) | |
23 | if FiredBy ~= InternalData.RealOwner then return end | |
24 | if Input.MouseEvent then | |
25 | Mouse.Target = Input.Target;Mouse.Hit = Input.Hit | |
26 | elseif Input.Sound then | |
27 | if InternalData.SoundLoudness[Input.Sound] then InternalData.SoundLoudness[Input.Sound] = Input.Loudness end | |
28 | else | |
29 | local Begin = Input.UserInputState == Enum.UserInputState.Begin | |
30 | if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TriggerEvent(Begin and "Button1Down" or "Button1Up") end | |
31 | for _,Action in pairs(ContextActionService.Actions) do | |
32 | for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end | |
33 | end | |
34 | Mouse:TriggerEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower());UserInputService:TriggerEvent(Begin and "InputBegan" or "InputEnded",Input,false) | |
35 | end | |
36 | end) | |
37 | InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService | |
38 | Event.Parent = NLS([[ | |
39 | local Player = owner; | |
40 | local Sounds = {}; | |
41 | local Event = script:WaitForChild("UserInput"); | |
42 | local UserInputService = game:GetService("UserInputService"); | |
43 | local Mouse = Player:GetMouse(); | |
44 | local Input = function(Input,gameProcessedEvent) | |
45 | if gameProcessedEvent then return end | |
46 | Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState}) | |
47 | end | |
48 | Event.OnClientEvent:connect(function(Args) | |
49 | if Args[1] == "NewSound" then table.insert(Sounds,Args[2]) end | |
50 | end) | |
51 | UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input) | |
52 | local Hit,Target | |
53 | while wait(1/30) do | |
54 | for x,Sound in pairs(Sounds) do | |
55 | if Sound.Parent then Event:FireServer({["Sound"]=Sound,["Loudness"]=Sound.PlaybackLoudness}) end | |
56 | end | |
57 | if Hit ~= Mouse.Hit or Target ~= Mouse.Target then | |
58 | Hit = Mouse.Hit;Target = Mouse.Target; | |
59 | Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit}) | |
60 | end | |
61 | end | |
62 | ]],InternalData.RealOwner.Character) | |
63 | end | |
64 | InternalData.NewOwner = setmetatable({},{ | |
65 | __index = function (self,Index) | |
66 | local Type = type(InternalData.RealOwner[Index]) | |
67 | if Type == "function" then | |
68 | if Index:lower() == "getmouse" or Index:lower() == "mouse" then | |
69 | return function (self)return InternalData["Mouse"] end | |
70 | end | |
71 | return function (self,...)return InternalData.RealOwner[Index](InternalData.RealOwner,...) end | |
72 | elseif Index == "FakePlayer" then | |
73 | return true | |
74 | end | |
75 | return InternalData.RealOwner[Index] | |
76 | end; | |
77 | __tostring = function(self) return tostring(InternalData.RealOwner) end | |
78 | }) | |
79 | --LoadLibrary("RbxUtility").Create | |
80 | InternalData.LoadLibrary = LoadLibrary;LoadLibrary = function(Library) | |
81 | if Library == "RbxUtility" then | |
82 | return setmetatable({},{ | |
83 | __tostring = function() return "RbxUtility" end; | |
84 | __index = function(self, Index) | |
85 | if Index:lower() == "create" then | |
86 | return function(Type) | |
87 | return function(Data) | |
88 | Data = Data or {} | |
89 | local Inst = Instance.new(Type) | |
90 | for x,y in pairs(Data) do | |
91 | if InternalData.RealObjs[y] then y = InternalData.RealObjs[y] end | |
92 | if y == owner then y = InternalData.RealOwner end | |
93 | Inst[x] = y | |
94 | end | |
95 | return Inst | |
96 | end | |
97 | end | |
98 | end | |
99 | return InternalData.LoadLibrary(Library)[Index] | |
100 | end | |
101 | }) | |
102 | end | |
103 | return InternalData.LoadLibrary(Library) | |
104 | end | |
105 | InternalData.RealInstance = Instance;Instance = setmetatable({},{ | |
106 | __index = function (self,Index) | |
107 | if Index:lower() == 'new' then | |
108 | return function (Type, Parent) | |
109 | if Parent == owner then Parent = InternalData.RealOwner end | |
110 | if InternalData.RealObjs[Parent] then Parent = InternalData.RealObjs[Parent] end | |
111 | local Real = InternalData.RealInstance.new(Type,Parent) | |
112 | if not Type then return end | |
113 | if Type == "BillboardGui" then | |
114 | local ToReturn = setmetatable({},{ | |
115 | __index = function (self,Index) | |
116 | if type(Real[Index]) == "function" then | |
117 | if Index:lower() == "clone" then | |
118 | return function (self) | |
119 | local Real = Real:Clone() | |
120 | local ToReturn = setmetatable({RealObject = Real},{ | |
121 | __index = function (self,Index) | |
122 | if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end | |
123 | return Real[Index] | |
124 | end; | |
125 | __newindex = function (self,Index,Value) | |
126 | if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end | |
127 | if Value == owner then Value = InternalData.RealOwner end | |
128 | Real[Index] = Value | |
129 | end; | |
130 | __tostring = function(self) return tostring(Real) end; | |
131 | }) | |
132 | InternalData.RealObjs[ToReturn] = Real;return ToReturn; | |
133 | end | |
134 | end | |
135 | return function (self,...) return Real[Index](Real,...)end | |
136 | end | |
137 | return Real[Index] | |
138 | end; | |
139 | __newindex = function (self,Index,Value) | |
140 | if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end | |
141 | if Value == owner then Value = InternalData.RealOwner end | |
142 | Real[Index] = Value | |
143 | end; | |
144 | __tostring = function(self) return tostring(Real) end; | |
145 | }) | |
146 | InternalData.RealObjs[ToReturn] = Real;return ToReturn; | |
147 | elseif Type:lower() == "sound" then | |
148 | Real.Parent = owner.Character; | |
149 | local ToReturn = setmetatable({RealObject = Real},{ | |
150 | __index = function (self,Index) | |
151 | if Index:lower() == "playbackloudness" then | |
152 | return InternalData.SoundLoudness[Real] or 0 | |
153 | elseif type(Real[Index]) == "function" then | |
154 | if Index:lower() == "clone" then | |
155 | return function (self) | |
156 | local Real = Real:Clone() | |
157 | local ToReturn = setmetatable({},{ | |
158 | __index = function (self,Index) | |
159 | if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end | |
160 | return Real[Index] | |
161 | end; | |
162 | __newindex = function (self,Index,Value) | |
163 | if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end | |
164 | if Value == owner then Value = InternalData.RealOwner end | |
165 | Real[Index] = Value | |
166 | end; | |
167 | __tostring = function(self) return tostring(Real) end; | |
168 | }) | |
169 | InternalData.RealObjs[ToReturn] = Real;return ToReturn; | |
170 | end | |
171 | end | |
172 | return function (self,...) return Real[Index](Real,...)end | |
173 | end | |
174 | return Real[Index] | |
175 | end; | |
176 | __newindex = function (self,Index,Value) | |
177 | if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end | |
178 | if Value == owner then Value = InternalData.RealOwner end | |
179 | Real[Index] = Value | |
180 | end; | |
181 | __tostring = function(self) return tostring(Real) end; | |
182 | }) | |
183 | InternalData.RealObjs[ToReturn] = Real;InternalData.SoundLoudness[Real] = 0;repeat wait() until InternalData.Event.Parent InternalData.Event:FireClient(InternalData.RealOwner,{"NewSound",Real}) return ToReturn; | |
184 | else | |
185 | local ToReturn = setmetatable({RealObject = Real},{ | |
186 | __index = function (self,Index) | |
187 | if type(Real[Index]) == "function" then | |
188 | if Index:lower() == "clone" then | |
189 | return function (self) | |
190 | local Real = Real:Clone() | |
191 | local ToReturn = setmetatable({},{ | |
192 | __index = function (self,Index) | |
193 | if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end | |
194 | return Real[Index] | |
195 | end; | |
196 | __newindex = function (self,Index,Value) | |
197 | if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end | |
198 | if Value == owner then Value = InternalData.RealOwner end | |
199 | Real[Index] = Value | |
200 | end; | |
201 | __tostring = function(self) return tostring(Real) end; | |
202 | }) | |
203 | InternalData.RealObjs[ToReturn] = Real;return ToReturn; | |
204 | end | |
205 | end | |
206 | return function (self,...) return Real[Index](Real,...)end | |
207 | end | |
208 | return Real[Index] | |
209 | end; | |
210 | __newindex = function (self,Index,Value) | |
211 | if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end | |
212 | if Value == owner then Value = InternalData.RealOwner end | |
213 | Real[Index] = Value | |
214 | end; | |
215 | __tostring = function(self) return tostring(Real) end; | |
216 | }) | |
217 | InternalData.RealObjs[ToReturn] = Real;return ToReturn; | |
218 | end | |
219 | end | |
220 | end | |
221 | return InternalData.RealInstance[Index] | |
222 | end; | |
223 | __tostring = function(self) return tostring(InternalData.RealInstance) end; | |
224 | }); | |
225 | InternalData.RealGame = game;game = setmetatable({},{ | |
226 | __index = function (self,Index) | |
227 | if InternalData.RealGame[Index] then | |
228 | local Type = type(InternalData.RealGame[Index]) | |
229 | if Type == "function" then | |
230 | if Index:lower() == "getservice" or Index:lower() == "service" then | |
231 | return function (self,Service) | |
232 | local FakeServices = { | |
233 | ["players"] = function() | |
234 | return setmetatable({},{ | |
235 | __index = function (self2,Index2) | |
236 | local RealService = InternalData.RealGame:GetService(Service) | |
237 | local Type2 = type(RealService[Index2]) | |
238 | if Type2 == "function" then | |
239 | return function (self,...) return RealService[Index2](RealService,...)end | |
240 | else | |
241 | if Index2:lower() == "localplayer" then return InternalData.NewOwner end | |
242 | return RealService[Index2] | |
243 | end | |
244 | end; | |
245 | __tostring = function(self) return tostring(InternalData.RealGame:GetService(Service)) end | |
246 | }) | |
247 | end; | |
248 | ["contextactionservice"] = function() return InternalData["ContextActionService"] end; | |
249 | ["userinputservice"] = function() return InternalData["UserInputService"] end; | |
250 | ["debris"] = function() | |
251 | return setmetatable({},{ | |
252 | __index = function(self2,Index2) | |
253 | local RealService = InternalData.RealGame:GetService(Service) | |
254 | local Type2 = type(RealService[Index2]) | |
255 | if Type2 == "function" then | |
256 | if Index2:lower() == "additem" then | |
257 | return function (self,Item,Time) | |
258 | if InternalData.RealObjs[Item] then Item = InternalData.RealObjs[Item] end | |
259 | return RealService:AddItem(Item,Time) | |
260 | end | |
261 | end | |
262 | return function (self,...) return RealService[Index2](RealService,...) end | |
263 | end | |
264 | return RealService[Index2] | |
265 | end; | |
266 | __tostring = function(self) return tostring(InternalData.RealGame:GetService("Debris")) end | |
267 | }) | |
268 | end; | |
269 | ["runservice"] = function() | |
270 | return setmetatable({},{ | |
271 | __index = function(self2,Index2) | |
272 | local RealService = InternalData.RealGame:GetService(Service) | |
273 | local Type2 = type(RealService[Index2]) | |
274 | if Type2 == "function" then | |
275 | return function (self,...) return RealService[Index2](RealService,...) end | |
276 | else | |
277 | local RunServices = { | |
278 | ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return InternalData.RealGame:GetService("RunService").Stepped:Connect(Function) end end; | |
279 | ["renderstepped"] = function() return RealService["Stepped"] end | |
280 | } | |
281 | if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end | |
282 | return RealService[Index2] | |
283 | end | |
284 | end; | |
285 | __tostring = function(self) return tostring(InternalData.RealGame:GetService("RunService")) end | |
286 | }) | |
287 | end | |
288 | } | |
289 | if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end | |
290 | return InternalData.RealGame:GetService(Service) | |
291 | end | |
292 | end | |
293 | return function (self,...) return InternalData.RealGame[Index](InternalData.RealGame,...) end | |
294 | else | |
295 | if game:GetService(Index) then return game:GetService(Index) end | |
296 | return InternalData.RealGame[Index] | |
297 | end | |
298 | end | |
299 | return nil | |
300 | end; | |
301 | __tostring = function(self) return tostring(InternalData.game) end | |
302 | });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete!") | |
303 | ||
304 | ---Converted By basstracker1970 | |
305 | ---Orginal Script By Huge_Nazo | |
306 | --Converted with ttyyuu12345's model to script plugin v4 | |
307 | ||
308 | --Converted with ttyyuu12345's model to script plugin v4 | |
309 | function sandbox(var,func) | |
310 | local env = getfenv(func) | |
311 | local newenv = setmetatable({},{ | |
312 | __index = function(self,k) | |
313 | if k=="script" then | |
314 | return var | |
315 | else | |
316 | return env[k] | |
317 | end | |
318 | end, | |
319 | }) | |
320 | setfenv(func,newenv) | |
321 | return func | |
322 | end | |
323 | cors = {} | |
324 | mas = Instance.new("Model",game:GetService("Lighting")) | |
325 | Part0 = Instance.new("Part") | |
326 | SurfaceGui1 = Instance.new("SurfaceGui") | |
327 | TextLabel2 = Instance.new("TextLabel") | |
328 | TextLabel3 = Instance.new("TextLabel") | |
329 | TextLabel4 = Instance.new("TextLabel") | |
330 | LocalScript5 = Instance.new("LocalScript") | |
331 | SurfaceGui6 = Instance.new("SurfaceGui") | |
332 | TextLabel7 = Instance.new("TextLabel") | |
333 | TextLabel8 = Instance.new("TextLabel") | |
334 | TextLabel9 = Instance.new("TextLabel") | |
335 | LocalScript10 = Instance.new("LocalScript") | |
336 | BlockMesh11 = Instance.new("BlockMesh") | |
337 | Script12 = Instance.new("Script") | |
338 | Part0.Name = "HealthBar" | |
339 | Part0.Parent = mas | |
340 | Part0.Material = Enum.Material.Slate | |
341 | Part0.BrickColor = BrickColor.new("Fossil") | |
342 | Part0.CanCollide = false | |
343 | Part0.Size = Vector3.new(2, 0.400000006, 0.200000003) | |
344 | Part0.CFrame = CFrame.new(-39, 5.80001211, -46, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
345 | Part0.Color = Color3.new(0.623529, 0.631373, 0.67451) | |
346 | Part0.Position = Vector3.new(-39, 5.80001211, -46) | |
347 | Part0.Color = Color3.new(0.623529, 0.631373, 0.67451) | |
348 | SurfaceGui1.Name = "FrontHealth" | |
349 | SurfaceGui1.Parent = Part0 | |
350 | SurfaceGui1.CanvasSize = Vector2.new(200, 50) | |
351 | TextLabel2.Name = "Border2" | |
352 | TextLabel2.Parent = SurfaceGui1 | |
353 | TextLabel2.Size = UDim2.new(1, 0, 1, 0) | |
354 | TextLabel2.Text = "" | |
355 | TextLabel2.Active = true | |
356 | TextLabel2.BackgroundColor3 = Color3.new(1, 0, 0) | |
357 | TextLabel2.BorderColor3 = Color3.new(0.223529, 0.223529, 0.223529) | |
358 | TextLabel2.BorderSizePixel = 13 | |
359 | TextLabel2.ZIndex = 2 | |
360 | TextLabel2.Font = Enum.Font.SourceSans | |
361 | TextLabel2.FontSize = Enum.FontSize.Size14 | |
362 | TextLabel3.Name = "Border1" | |
363 | TextLabel3.Parent = SurfaceGui1 | |
364 | TextLabel3.Size = UDim2.new(1, 0, 1, 0) | |
365 | TextLabel3.Text = "" | |
366 | TextLabel3.Active = true | |
367 | TextLabel3.BackgroundColor3 = Color3.new(1, 0, 0) | |
368 | TextLabel3.BorderColor3 = Color3.new(0.313726, 0.313726, 0.313726) | |
369 | TextLabel3.BorderSizePixel = 15 | |
370 | TextLabel3.Font = Enum.Font.SourceSans | |
371 | TextLabel3.FontSize = Enum.FontSize.Size14 | |
372 | TextLabel4.Name = "Health" | |
373 | TextLabel4.Parent = SurfaceGui1 | |
374 | TextLabel4.Size = UDim2.new(1, 0, 1, 0) | |
375 | TextLabel4.Text = "" | |
376 | TextLabel4.Active = true | |
377 | TextLabel4.BackgroundColor3 = Color3.new(0, 1, 0) | |
378 | TextLabel4.BorderColor3 = Color3.new(0.392157, 0.392157, 0.392157) | |
379 | TextLabel4.BorderSizePixel = 0 | |
380 | TextLabel4.ZIndex = 3 | |
381 | TextLabel4.Font = Enum.Font.SourceSans | |
382 | TextLabel4.FontSize = Enum.FontSize.Size14 | |
383 | LocalScript5.Name = "HealthScript" | |
384 | LocalScript5.Parent = TextLabel4 | |
385 | table.insert(cors,sandbox(LocalScript5,function() | |
386 | local Humanoid = script.Parent.Parent.Parent.Parent.Humanoid | |
387 | local HealthMath = Humanoid.Health / (Humanoid.MaxHealth) | |
388 | ||
389 | -- script.Parent:TweenSize(UDim2.new(HealthMath,0,1,0), "Out", "Shine", .5) | |
390 | ||
391 | Humanoid.HealthChanged:connect(function() | |
392 | ||
393 | local HealthMath = Humanoid.Health / (Humanoid.MaxHealth) | |
394 | script.Parent:TweenSize(UDim2.new(HealthMath,0,1,0), Enum.EasingDirection.Out, Enum.EasingStyle.Bounce, 0.1) | |
395 | ||
396 | ||
397 | end) | |
398 | ||
399 | end)) | |
400 | SurfaceGui6.Name = "BackHealth" | |
401 | SurfaceGui6.Parent = Part0 | |
402 | SurfaceGui6.Face = Enum.NormalId.Back | |
403 | SurfaceGui6.CanvasSize = Vector2.new(200, 50) | |
404 | TextLabel7.Name = "Border2" | |
405 | TextLabel7.Parent = SurfaceGui6 | |
406 | TextLabel7.Size = UDim2.new(1, 0, 1, 0) | |
407 | TextLabel7.Text = "" | |
408 | TextLabel7.Active = true | |
409 | TextLabel7.BackgroundColor3 = Color3.new(1, 0, 0) | |
410 | TextLabel7.BorderColor3 = Color3.new(0.223529, 0.223529, 0.223529) | |
411 | TextLabel7.BorderSizePixel = 13 | |
412 | TextLabel7.ZIndex = 2 | |
413 | TextLabel7.Font = Enum.Font.SourceSans | |
414 | TextLabel7.FontSize = Enum.FontSize.Size14 | |
415 | TextLabel8.Name = "Border1" | |
416 | TextLabel8.Parent = SurfaceGui6 | |
417 | TextLabel8.Size = UDim2.new(1, 0, 1, 0) | |
418 | TextLabel8.Text = "" | |
419 | TextLabel8.Active = true | |
420 | TextLabel8.BackgroundColor3 = Color3.new(1, 0, 0) | |
421 | TextLabel8.BorderColor3 = Color3.new(0.313726, 0.313726, 0.313726) | |
422 | TextLabel8.BorderSizePixel = 15 | |
423 | TextLabel8.Font = Enum.Font.SourceSans | |
424 | TextLabel8.FontSize = Enum.FontSize.Size14 | |
425 | TextLabel9.Name = "Health" | |
426 | TextLabel9.Parent = SurfaceGui6 | |
427 | TextLabel9.Size = UDim2.new(1, 0, 1, 0) | |
428 | TextLabel9.Text = "" | |
429 | TextLabel9.Active = true | |
430 | TextLabel9.BackgroundColor3 = Color3.new(0, 1, 0) | |
431 | TextLabel9.BorderColor3 = Color3.new(0.392157, 0.392157, 0.392157) | |
432 | TextLabel9.BorderSizePixel = 0 | |
433 | TextLabel9.ZIndex = 3 | |
434 | TextLabel9.Font = Enum.Font.SourceSans | |
435 | TextLabel9.FontSize = Enum.FontSize.Size14 | |
436 | LocalScript10.Name = "HealthScript" | |
437 | LocalScript10.Parent = TextLabel9 | |
438 | table.insert(cors,sandbox(LocalScript10,function() | |
439 | local Humanoid = script.Parent.Parent.Parent.Parent.Humanoid | |
440 | local HealthMath = Humanoid.Health / (Humanoid.MaxHealth) | |
441 | ||
442 | -- script.Parent:TweenSize(UDim2.new(HealthMath,0,1,0), "Out", "Shine", .5) | |
443 | ||
444 | Humanoid.HealthChanged:connect(function() | |
445 | ||
446 | local HealthMath = Humanoid.Health / (Humanoid.MaxHealth) | |
447 | script.Parent:TweenSize(UDim2.new(HealthMath,0,1,0), Enum.EasingDirection.Out, Enum.EasingStyle.Bounce, 0.1) | |
448 | ||
449 | ||
450 | end) | |
451 | ||
452 | end)) | |
453 | BlockMesh11.Parent = Part0 | |
454 | BlockMesh11.Scale = Vector3.new(1.14999998, 1.62, 1) | |
455 | BlockMesh11.Scale = Vector3.new(1.14999998, 1.62, 1) | |
456 | Script12.Name = "FloatAboveHead" | |
457 | Script12.Parent = Part0 | |
458 | table.insert(cors,sandbox(Script12,function() | |
459 | wait(0.01) | |
460 | local weld = Instance.new("Weld", script.Parent) | |
461 | weld.Part0 = script.Parent.Parent.Head | |
462 | weld.Part1 = script.Parent | |
463 | weld.C0 = script.Parent.Parent.Head.CFrame:inverse() | |
464 | weld.C1 = (script.Parent.Parent.Head.CFrame + Vector3.new(0,2,0)):inverse() | |
465 | end)) | |
466 | for i,v in pairs(mas:GetChildren()) do | |
467 | v.Parent = game:GetService("Players").LocalPlayer.Character | |
468 | pcall(function() v:MakeJoints() end) | |
469 | end | |
470 | mas:Destroy() | |
471 | for i,v in pairs(cors) do | |
472 | spawn(function() | |
473 | pcall(v) | |
474 | end) | |
475 | end | |
476 | ||
477 | function sandbox(var,func) | |
478 | local env = getfenv(func) | |
479 | local newenv = setmetatable({},{ | |
480 | __index = function(self,k) | |
481 | if k=="script" then | |
482 | return var | |
483 | else | |
484 | return env[k] | |
485 | end | |
486 | end, | |
487 | }) | |
488 | setfenv(func,newenv) | |
489 | return func | |
490 | end | |
491 | cors = {} | |
492 | mas = Instance.new("Model",game:GetService("Lighting")) | |
493 | Tool0 = Instance.new("Tool") | |
494 | StringValue1 = Instance.new("StringValue") | |
495 | Folder2 = Instance.new("Folder") | |
496 | NumberValue3 = Instance.new("NumberValue") | |
497 | LocalScript4 = Instance.new("LocalScript") | |
498 | NumberValue5 = Instance.new("NumberValue") | |
499 | LocalScript6 = Instance.new("LocalScript") | |
500 | NumberValue7 = Instance.new("NumberValue") | |
501 | LocalScript8 = Instance.new("LocalScript") | |
502 | ScreenGui9 = Instance.new("ScreenGui") | |
503 | Frame10 = Instance.new("Frame") | |
504 | TextLabel11 = Instance.new("TextLabel") | |
505 | LocalScript12 = Instance.new("LocalScript") | |
506 | TextLabel13 = Instance.new("TextLabel") | |
507 | LocalScript14 = Instance.new("LocalScript") | |
508 | TextLabel15 = Instance.new("TextLabel") | |
509 | LocalScript16 = Instance.new("LocalScript") | |
510 | LocalScript17 = Instance.new("LocalScript") | |
511 | NumberValue18 = Instance.new("NumberValue") | |
512 | Script19 = Instance.new("Script") | |
513 | Folder20 = Instance.new("Folder") | |
514 | NumberValue21 = Instance.new("NumberValue") | |
515 | Script22 = Instance.new("Script") | |
516 | NumberValue23 = Instance.new("NumberValue") | |
517 | Script24 = Instance.new("Script") | |
518 | Folder25 = Instance.new("Folder") | |
519 | Animation26 = Instance.new("Animation") | |
520 | Animation27 = Instance.new("Animation") | |
521 | Animation28 = Instance.new("Animation") | |
522 | Animation29 = Instance.new("Animation") | |
523 | Animation30 = Instance.new("Animation") | |
524 | Animation31 = Instance.new("Animation") | |
525 | Folder32 = Instance.new("Folder") | |
526 | ParticleEmitter33 = Instance.new("ParticleEmitter") | |
527 | ParticleEmitter34 = Instance.new("ParticleEmitter") | |
528 | Script35 = Instance.new("Script") | |
529 | Part36 = Instance.new("Part") | |
530 | Script37 = Instance.new("Script") | |
531 | Script38 = Instance.new("Script") | |
532 | Part39 = Instance.new("Part") | |
533 | Sound40 = Instance.new("Sound") | |
534 | Sound41 = Instance.new("Sound") | |
535 | SpecialMesh42 = Instance.new("SpecialMesh") | |
536 | Sound43 = Instance.new("Sound") | |
537 | Sound44 = Instance.new("Sound") | |
538 | Folder45 = Instance.new("Folder") | |
539 | Script46 = Instance.new("Script") | |
540 | ScreenGui47 = Instance.new("ScreenGui") | |
541 | Frame48 = Instance.new("Frame") | |
542 | TextLabel49 = Instance.new("TextLabel") | |
543 | LocalScript50 = Instance.new("LocalScript") | |
544 | TextLabel51 = Instance.new("TextLabel") | |
545 | LocalScript52 = Instance.new("LocalScript") | |
546 | TextLabel53 = Instance.new("TextLabel") | |
547 | TextLabel54 = Instance.new("TextLabel") | |
548 | TextLabel55 = Instance.new("TextLabel") | |
549 | TextLabel56 = Instance.new("TextLabel") | |
550 | Tool0.Name = "Sword" | |
551 | Tool0.Parent = mas | |
552 | Tool0.TextureId = "rbxgameasset://Images/meleeicon" | |
553 | Tool0.GripForward = Vector3.new(0.999995828, -3.05171125e-05, 0.00287951133) | |
554 | Tool0.GripPos = Vector3.new(-3.63797881e-11, -1.44320107, 3.99325017e-12) | |
555 | Tool0.GripRight = Vector3.new(-0.00287950388, 3.05180438e-05, 0.999995828) | |
556 | Tool0.GripUp = Vector3.new(3.06048642e-05, 1, -3.04300429e-05) | |
557 | Tool0.ToolTip = "[Sword]" | |
558 | ||
559 | Tool0.CanBeDropped = false | |
560 | StringValue1.Name = "WeaponType" | |
561 | StringValue1.Parent = Tool0 | |
562 | StringValue1.Value = "Melee" | |
563 | Folder2.Name = "Stats" | |
564 | Folder2.Parent = Tool0 | |
565 | NumberValue3.Name = "Defense" | |
566 | NumberValue3.Parent = Folder2 | |
567 | NumberValue3.Value = 1 | |
568 | LocalScript4.Parent = NumberValue3 | |
569 | LocalScript4.Disabled = true | |
570 | table.insert(cors,sandbox(LocalScript4,function() | |
571 | local val = script.Parent | |
572 | local plr = game.Players.LocalPlayer | |
573 | local char = workspace:WaitForChild(plr.Name) | |
574 | local hum = char:WaitForChild("Humanoid") | |
575 | ||
576 | while true do | |
577 | val.Value = char.Defense.Value | |
578 | wait() | |
579 | end | |
580 | end)) | |
581 | NumberValue5.Name = "Power" | |
582 | NumberValue5.Parent = Folder2 | |
583 | LocalScript6.Parent = NumberValue5 | |
584 | LocalScript6.Disabled = true | |
585 | table.insert(cors,sandbox(LocalScript6,function() | |
586 | local val = script.Parent | |
587 | local plr = game.Players.LocalPlayer | |
588 | local char = workspace:WaitForChild(plr.Name) | |
589 | local hum = char:WaitForChild("Humanoid") | |
590 | ||
591 | while true do | |
592 | val.Value = char.Power.Value | |
593 | wait() | |
594 | end | |
595 | end)) | |
596 | NumberValue7.Name = "Speed" | |
597 | NumberValue7.Parent = Folder2 | |
598 | LocalScript8.Parent = NumberValue7 | |
599 | LocalScript8.Disabled = true | |
600 | table.insert(cors,sandbox(LocalScript8,function() | |
601 | local val = script.Parent | |
602 | local plr = game.Players.LocalPlayer | |
603 | local char = workspace:WaitForChild(plr.Name) | |
604 | local hum = char:WaitForChild("Humanoid") | |
605 | ||
606 | while true do | |
607 | val.Value = math.floor(hum.WalkSpeed/16*10)/10 | |
608 | wait() | |
609 | end | |
610 | end)) | |
611 | ScreenGui9.Name = "StatGui" | |
612 | ScreenGui9.Parent = Tool0 | |
613 | Frame10.Name = "Stats" | |
614 | Frame10.Parent = ScreenGui9 | |
615 | Frame10.Size = UDim2.new(0.150000006, 1, 0.150000006, 1) | |
616 | Frame10.Style = Enum.FrameStyle.RobloxRound | |
617 | Frame10.Position = UDim2.new(0.845000029, 0, 0.845000029, 0) | |
618 | Frame10.BackgroundColor3 = Color3.new(1, 1, 1) | |
619 | Frame10.BorderSizePixel = 0 | |
620 | TextLabel11.Name = "Power" | |
621 | TextLabel11.Parent = Frame10 | |
622 | TextLabel11.Size = UDim2.new(0.333000004, 1, 1, 1) | |
623 | TextLabel11.Text = "Pow:(#)" | |
624 | TextLabel11.BackgroundColor3 = Color3.new(1, 0.333333, 0) | |
625 | TextLabel11.BorderSizePixel = 0 | |
626 | TextLabel11.Font = Enum.Font.ArialBold | |
627 | TextLabel11.FontSize = Enum.FontSize.Size14 | |
628 | TextLabel11.TextColor3 = Color3.new(1, 1, 1) | |
629 | TextLabel11.TextScaled = true | |
630 | TextLabel11.TextStrokeTransparency = 0 | |
631 | TextLabel11.TextWrapped = true | |
632 | LocalScript12.Parent = TextLabel11 | |
633 | table.insert(cors,sandbox(LocalScript12,function() | |
634 | local tg = script.Parent | |
635 | local plr = game.Players.LocalPlayer | |
636 | local char = workspace:WaitForChild(plr.Name) | |
637 | local hum = char:WaitForChild("Humanoid") | |
638 | ||
639 | while true do | |
640 | tg.Text = ("Pow:("..tostring(char:WaitForChild("Sword").Stats.Power.Value)..")") | |
641 | wait() | |
642 | end | |
643 | ||
644 | end)) | |
645 | TextLabel13.Name = "Defense" | |
646 | TextLabel13.Parent = Frame10 | |
647 | TextLabel13.Size = UDim2.new(0.333000004, 1, 1, 1) | |
648 | TextLabel13.Text = "Def:(#)" | |
649 | TextLabel13.Position = UDim2.new(0.333000004, 0, 0, 0) | |
650 | TextLabel13.BackgroundColor3 = Color3.new(0, 0.666667, 1) | |
651 | TextLabel13.BorderSizePixel = 0 | |
652 | TextLabel13.Font = Enum.Font.ArialBold | |
653 | TextLabel13.FontSize = Enum.FontSize.Size14 | |
654 | TextLabel13.TextColor3 = Color3.new(1, 1, 1) | |
655 | TextLabel13.TextScaled = true | |
656 | TextLabel13.TextStrokeTransparency = 0 | |
657 | TextLabel13.TextWrapped = true | |
658 | LocalScript14.Parent = TextLabel13 | |
659 | table.insert(cors,sandbox(LocalScript14,function() | |
660 | local tg = script.Parent | |
661 | local plr = game.Players.LocalPlayer | |
662 | local char = workspace:WaitForChild(plr.Name) | |
663 | local hum = char:WaitForChild("Humanoid") | |
664 | ||
665 | while true do | |
666 | tg.Text = ("Def:("..tostring(char:WaitForChild("Sword").Stats.Defense.Value)..")") | |
667 | wait() | |
668 | end | |
669 | ||
670 | end)) | |
671 | TextLabel15.Name = "Speed" | |
672 | TextLabel15.Parent = Frame10 | |
673 | TextLabel15.Size = UDim2.new(0.333000004, 1, 1, 1) | |
674 | TextLabel15.Text = "Spd:(#)" | |
675 | TextLabel15.Position = UDim2.new(0.666000009, 0, 0, 0) | |
676 | TextLabel15.BackgroundColor3 = Color3.new(1, 1, 0) | |
677 | TextLabel15.BorderSizePixel = 0 | |
678 | TextLabel15.Font = Enum.Font.ArialBold | |
679 | TextLabel15.FontSize = Enum.FontSize.Size14 | |
680 | TextLabel15.TextColor3 = Color3.new(1, 1, 1) | |
681 | TextLabel15.TextScaled = true | |
682 | TextLabel15.TextStrokeTransparency = 0 | |
683 | TextLabel15.TextWrapped = true | |
684 | LocalScript16.Parent = TextLabel15 | |
685 | table.insert(cors,sandbox(LocalScript16,function() | |
686 | local tg = script.Parent | |
687 | local plr = game.Players.LocalPlayer | |
688 | local char = workspace:WaitForChild(plr.Name) | |
689 | local hum = char:WaitForChild("Humanoid") | |
690 | ||
691 | while true do | |
692 | tg.Text = ("Spd:("..tostring(char:WaitForChild("Sword").Stats.Speed.Value)..")") | |
693 | wait() | |
694 | end | |
695 | ||
696 | ||
697 | end)) | |
698 | LocalScript17.Name = "ToolScript" | |
699 | LocalScript17.Parent = Tool0 | |
700 | table.insert(cors,sandbox(LocalScript17,function() | |
701 | local tool = script.Parent | |
702 | local plr = game.Players.LocalPlayer | |
703 | local char = workspace:WaitForChild(plr.Name) | |
704 | local hum = char:WaitForChild("Humanoid") | |
705 | local r = game:service("RunService") | |
706 | local isclicking = false | |
707 | local Clicknumb = 1 -- this needs to be here | |
708 | local mouse = plr:GetMouse() | |
709 | local CanCast = 1 | |
710 | ||
711 | function Equipped() | |
712 | print('Equipped') | |
713 | local gooey = tool.StatGui:Clone() | |
714 | gooey.Parent = plr.PlayerGui | |
715 | ||
716 | tool.Stats.Power.LocalScript.Disabled = false | |
717 | tool.Stats.Defense.LocalScript.Disabled = false | |
718 | tool.Stats.Speed.LocalScript.Disabled = false | |
719 | ||
720 | local gooey2 = tool.SkillGui:Clone() | |
721 | gooey2.Parent = plr.PlayerGui | |
722 | gooey2.Skills.XSkill.LocalScript.Disabled = false | |
723 | gooey2.Skills.ZSkill.LocalScript.Disabled = false | |
724 | ||
725 | end | |
726 | ||
727 | function UnEquipped() | |
728 | print('UnEquipped') | |
729 | ||
730 | plr.PlayerGui.StatGui:Destroy() | |
731 | plr.PlayerGui.SkillGui:Destroy() | |
732 | tool.Stats.Power.LocalScript.Disabled = true | |
733 | tool.Stats.Defense.LocalScript.Disabled = true | |
734 | tool.Stats.Speed.LocalScript.Disabled = true | |
735 | ||
736 | end | |
737 | ||
738 | function Attack1() | |
739 | CanCast = 0 | |
740 | if tool.Enabled == true then return end | |
741 | local anim1 = tool.Animations.Slash1 | |
742 | local example = hum:LoadAnimation(anim1) | |
743 | example:Play(0,1,1) | |
744 | tool.Handle.S1:Play() | |
745 | tool.Hitbox.Damage.Disabled = false | |
746 | wait(.45) | |
747 | tool.Hitbox.Damage.Disabled = true | |
748 | CanCast = 1 | |
749 | end | |
750 | tool.Handle.Touched:connect(function(hit) | |
751 | if hit.Parent:FindFirstChild("Humanoid") then | |
752 | hit.Parent.Humanoid:TakeDamage(5) | |
753 | end | |
754 | end) | |
755 | ||
756 | function Attack2() | |
757 | CanCast = 0 | |
758 | if tool.Enabled == true then return end | |
759 | local anim2 = tool.Animations.Slash2 | |
760 | local example = hum:LoadAnimation(anim2) | |
761 | example:Play(0,1,1) | |
762 | tool.Handle.S1:Play() | |
763 | tool.Hitbox.Damage.Disabled = false | |
764 | wait(.45) | |
765 | tool.Hitbox.Damage.Disabled = true | |
766 | CanCast = 1 | |
767 | end | |
768 | ||
769 | function Attack3() | |
770 | CanCast = 0 | |
771 | if tool.Enabled == true then return end | |
772 | local anim3 = tool.Animations.Spin | |
773 | local example = hum:LoadAnimation(anim3) | |
774 | example:Play(0,1,1) | |
775 | ||
776 | wait(.6) | |
777 | tool.Handle.S2:Play() | |
778 | tool.Hitbox.Damage.Disabled = false | |
779 | wait(.15) | |
780 | tool.Hitbox.Damage.Disabled = true | |
781 | CanCast = 1 | |
782 | end | |
783 | ||
784 | local lastattack = 0 | |
785 | tool.Enabled = true | |
786 | ||
787 | function Activated() | |
788 | ||
789 | if not tool.Enabled then | |
790 | return | |
791 | end | |
792 | ||
793 | tool.Enabled = false | |
794 | ||
795 | local character = tool.Parent; | |
796 | local humanoid = character.Humanoid | |
797 | if humanoid == nil then | |
798 | print("No humanoid!") | |
799 | return | |
800 | end | |
801 | ||
802 | local t = r.Stepped:wait() | |
803 | if script.Timer.Value == 0 then | |
804 | Clicknumb = 1 | |
805 | end | |
806 | ||
807 | if Clicknumb == 1 then -- copy all this, change the functions for attacks. | |
808 | Clicknumb = 2 | |
809 | Attack1() | |
810 | wait(0.05) | |
811 | script.Timer.Value = 2.5 | |
812 | elseif Clicknumb == 2 then | |
813 | Clicknumb = 3 | |
814 | Attack2() | |
815 | wait(0.05) | |
816 | script.Timer.Value = 2.5 | |
817 | elseif Clicknumb == 3 then | |
818 | Clicknumb = 1 | |
819 | Attack3() | |
820 | wait(0.05) | |
821 | script.Timer.Value = 2.5 | |
822 | end -- thats about it. | |
823 | ||
824 | ||
825 | lastattack = t | |
826 | ||
827 | tool.Enabled = true | |
828 | ||
829 | end | |
830 | ||
831 | function UnActivated() | |
832 | ||
833 | end | |
834 | ||
835 | -- KEY SKILLS -------------------------------------------------------------------------- | |
836 | function KeyDown(key) | |
837 | key = key:lower() | |
838 | local casting = false | |
839 | if CanCast == 1 then | |
840 | if tool.Parent ~= plr.Backpack then | |
841 | ||
842 | if (key == "z") then -- Z : Kick | |
843 | if casting == false then | |
844 | casting = true | |
845 | if script.Cooldowns.Z.Value == 0 then | |
846 | script.Cooldowns.Z.Value = 1.5 | |
847 | tool.Enabled = false | |
848 | ||
849 | local kick = tool.Animations.Kick | |
850 | local example = hum:LoadAnimation(kick) | |
851 | example:Play(0,1,2) | |
852 | tool.Handle.S3:Play() | |
853 | local dmgclone = tool.ExtraScripts.DamageFEO:Clone() | |
854 | dmgclone.Parent = char["Right Leg"] | |
855 | dmgclone.Disabled = false | |
856 | ||
857 | hum.WalkSpeed = hum.WalkSpeed - 16 | |
858 | ||
859 | wait(.45) | |
860 | dmgclone:Remove() | |
861 | hum.WalkSpeed = hum.WalkSpeed + 16 | |
862 | ||
863 | end | |
864 | casting = false | |
865 | tool.Enabled = true | |
866 | end | |
867 | end | |
868 | ||
869 | if (key == "x") then -- X : Lunge | |
870 | if casting == false then | |
871 | casting = true | |
872 | if script.Cooldowns.X.Value == 0 then | |
873 | script.Cooldowns.X.Value = 12 | |
874 | tool.Enabled = false | |
875 | ||
876 | local lunge = tool.Animations.Lunge | |
877 | local example2 = hum:LoadAnimation(lunge) | |
878 | ||
879 | local charge = tool.Animations.Charge | |
880 | local example3 = hum:LoadAnimation(charge) | |
881 | ||
882 | local PEClone1 = tool.ParticleEmitters.Shine:Clone() | |
883 | PEClone1.Parent = tool.Hitbox | |
884 | char.Humanoid.WalkSpeed = hum.WalkSpeed - 16 | |
885 | char.Humanoid.JumpPower = hum.JumpPower - 50 | |
886 | ||
887 | tool.Handle.S4:Play() | |
888 | example3:Play(0,1,0.25) | |
889 | PEClone1.Enabled = true | |
890 | wait(2) | |
891 | PEClone1.Enabled = false | |
892 | PEClone1:Destroy() | |
893 | tool.Hitbox.Damage2.Disabled = false | |
894 | example2:Play(0,1,1) | |
895 | local PEClone2 = tool.ParticleEmitters.Smoke:Clone() | |
896 | PEClone2.Parent = tool.Handle | |
897 | PEClone2.Enabled = true | |
898 | ||
899 | local motor = Instance.new("BodyVelocity", char.HumanoidRootPart) | |
900 | ||
901 | motor.Velocity = char.HumanoidRootPart.CFrame.lookVector*60 | |
902 | motor.MaxForce = Vector3.new(math.huge,math.huge,math.huge) | |
903 | ||
904 | ||
905 | for i = 1,5 do | |
906 | ||
907 | local effect = tool.Handle:Clone() | |
908 | effect.Parent = workspace | |
909 | effect.Name = "Effect" | |
910 | effect.Mesh.Scale = effect.Mesh.Scale * 1.25 | |
911 | effect.S1:Destroy() ; effect.S2:Destroy() ; effect.S3:Destroy() | |
912 | effect.Mesh.TextureId = "" | |
913 | effect.BrickColor = char.Torso.BrickColor | |
914 | effect.Transparency = .4 | |
915 | effect.CanCollide = false | |
916 | effect.Anchored = true | |
917 | effect.Rotation = tool.Handle.Rotation | |
918 | wait(.2) ; effect:Remove() | |
919 | end | |
920 | ||
921 | motor:Destroy() | |
922 | PEClone2:Destroy() | |
923 | tool.Hitbox.Damage2.Disabled = true | |
924 | char.Humanoid.WalkSpeed = hum.WalkSpeed + 16 | |
925 | char.Humanoid.JumpPower = hum.JumpPower + 50 | |
926 | wait(.1) | |
927 | ||
928 | end | |
929 | end | |
930 | casting = false | |
931 | tool.Enabled = true | |
932 | end | |
933 | ||
934 | end | |
935 | ||
936 | end | |
937 | end | |
938 | -- KEY SKILLS -------------------------------------------------------------------------- | |
939 | tool.Equipped:connect(Equipped) | |
940 | tool.Unequipped:connect(UnEquipped) | |
941 | tool.Activated:connect(Activated) | |
942 | tool.Deactivated:connect(UnActivated) | |
943 | mouse.KeyDown:connect(KeyDown) | |
944 | end)) | |
945 | NumberValue18.Name = "Timer" | |
946 | NumberValue18.Parent = LocalScript17 | |
947 | Script19.Parent = NumberValue18 | |
948 | table.insert(cors,sandbox(Script19,function() | |
949 | while true do | |
950 | wait(0.5) | |
951 | if script.Parent.Value >= 0.5 then | |
952 | script.Parent.Value = script.Parent.Value - 0.5 | |
953 | end | |
954 | end | |
955 | end)) | |
956 | Folder20.Name = "Cooldowns" | |
957 | Folder20.Parent = LocalScript17 | |
958 | NumberValue21.Name = "Z" | |
959 | NumberValue21.Parent = Folder20 | |
960 | Script22.Parent = NumberValue21 | |
961 | table.insert(cors,sandbox(Script22,function() | |
962 | while true do | |
963 | wait(0.5) | |
964 | if script.Parent.Value >= 0.5 then | |
965 | script.Parent.Value = script.Parent.Value - 0.5 | |
966 | end | |
967 | end | |
968 | end)) | |
969 | NumberValue23.Name = "X" | |
970 | NumberValue23.Parent = Folder20 | |
971 | Script24.Parent = NumberValue23 | |
972 | table.insert(cors,sandbox(Script24,function() | |
973 | while true do | |
974 | wait(0.5) | |
975 | if script.Parent.Value >= 0.5 then | |
976 | script.Parent.Value = script.Parent.Value - 0.5 | |
977 | end | |
978 | end | |
979 | end)) | |
980 | Folder25.Name = "Animations" | |
981 | Folder25.Parent = Tool0 | |
982 | Animation26.Name = "Slash1" | |
983 | Animation26.Parent = Folder25 | |
984 | Animation26.AnimationId = "rbxassetid://186934753" | |
985 | Animation27.Name = "Slash2" | |
986 | Animation27.Parent = Folder25 | |
987 | Animation27.AnimationId = "rbxassetid://186934753" | |
988 | Animation28.Name = "Spin" | |
989 | Animation28.Parent = Folder25 | |
990 | Animation28.AnimationId = "https://www.roblox.com/item.aspx?id=452321869" | |
991 | Animation29.Name = "Kick" | |
992 | Animation29.Parent = Folder25 | |
993 | Animation29.AnimationId = "https://www.roblox.com/item.aspx?id=428420299" | |
994 | Animation30.Name = "Charge" | |
995 | Animation30.Parent = Folder25 | |
996 | Animation30.AnimationId = "https://www.roblox.com/item.aspx?id=437820400" | |
997 | Animation31.Name = "Lunge" | |
998 | Animation31.Parent = Folder25 | |
999 | Animation31.AnimationId = "rbxassetid://186934753" | |
1000 | Folder32.Name = "ParticleEmitters" | |
1001 | Folder32.Parent = Tool0 | |
1002 | ParticleEmitter33.Name = "Shine" | |
1003 | ParticleEmitter33.Parent = Folder32 | |
1004 | ParticleEmitter33.Transparency = NumberSequence.new(1,1,0.31874996423721,0.5,0) | |
1005 | ParticleEmitter33.Rotation = NumberRange.new(-360, 360) | |
1006 | ParticleEmitter33.Size = NumberSequence.new(3,3,0) | |
1007 | ParticleEmitter33.Color = ColorSequence.new(Color3.new(1, 1, 0.498039),Color3.new(1, 0.803922, 0.482353)) | |
1008 | ParticleEmitter33.Enabled = false | |
1009 | ParticleEmitter33.LightEmission = 0.44999998807907 | |
1010 | ParticleEmitter33.Texture = "http://www.roblox.com/asset/?id=244221535" | |
1011 | ParticleEmitter33.Lifetime = NumberRange.new(0.40000000596046, 0.40000000596046) | |
1012 | ParticleEmitter33.Rate = 40 | |
1013 | ParticleEmitter33.RotSpeed = NumberRange.new(-300, 300) | |
1014 | ParticleEmitter33.Speed = NumberRange.new(0, 0) | |
1015 | ParticleEmitter33.Color = ColorSequence.new(Color3.new(1, 1, 0.498039),Color3.new(1, 0.803922, 0.482353)) | |
1016 | ParticleEmitter34.Name = "Smoke" | |
1017 | ParticleEmitter34.Parent = Folder32 | |
1018 | ParticleEmitter34.Transparency = NumberSequence.new(0,1) | |
1019 | ParticleEmitter34.Rotation = NumberRange.new(-360, 360) | |
1020 | ParticleEmitter34.Color = ColorSequence.new(Color3.new(0.184314, 0.184314, 0.184314),Color3.new(0.368627, 0.368627, 0.368627),Color3.new(0.207843, 0.207843, 0.207843),Color3.new(0.262745, 0.262745, 0.262745),Color3.new(0.454902, 0.454902, 0.454902)) | |
1021 | ParticleEmitter34.Enabled = false | |
1022 | ParticleEmitter34.Texture = "http://www.roblox.com/asset/?id=290833005" | |
1023 | ParticleEmitter34.Acceleration = Vector3.new(0, 3, 0) | |
1024 | ParticleEmitter34.Lifetime = NumberRange.new(2, 2) | |
1025 | ParticleEmitter34.Rate = 30 | |
1026 | ParticleEmitter34.RotSpeed = NumberRange.new(-300, 300) | |
1027 | ParticleEmitter34.Speed = NumberRange.new(2, 2) | |
1028 | ParticleEmitter34.VelocitySpread = 180 | |
1029 | ParticleEmitter34.Color = ColorSequence.new(Color3.new(0.184314, 0.184314, 0.184314),Color3.new(0.368627, 0.368627, 0.368627),Color3.new(0.207843, 0.207843, 0.207843),Color3.new(0.262745, 0.262745, 0.262745),Color3.new(0.454902, 0.454902, 0.454902)) | |
1030 | Script35.Name = "UltimateWeld" | |
1031 | Script35.Parent = Tool0 | |
1032 | table.insert(cors,sandbox(Script35,function() | |
1033 | --DO NOT USE BOTH WELDING SCRIPTS PROVIDED BY THIS MODEL | |
1034 | --The regular script is recommended | |
1035 | ||
1036 | ||
1037 | ||
1038 | --[[ | |
1039 | Prevents welds from breaking/transforming when player uses the tool | |
1040 | This recreates the EXACT weld every time | |
1041 | This also prevents lag build up by clearing old welds, the tradition weld script just keeps making new | |
1042 | ones, which can lead to weapons have crazy amounts of welds that dont work (I saw 6000 in a weapon once) | |
1043 | ]] | |
1044 | ||
1045 | --[[Usage | |
1046 | 1. Remove Old welding script (optional, only if updating a weapon and that weapon does not rely on that script) | |
1047 | 2. Anchor all parts of tool and put inside of a tool object | |
1048 | 3. Place this script in that tool (make sure you do this AFTER step 2, otherwise it may fail) | |
1049 | 4. Treat like normal tool, nothing special has to be done with it | |
1050 | ]] | |
1051 | ||
1052 | --[[The local script included in this model can only be used if | |
1053 | 1. The weapon is being placed in the players backpack first (i.e. the weapon is in starterpack and moves to player backpack) | |
1054 | OR | |
1055 | 2. The weapon is previously welded (weapon can be placed in workspace and picked up then) | |
1056 | ]] | |
1057 | repeat wait() until script.Parent:FindFirstChild("Handle") | |
1058 | local welds={} | |
1059 | function ClearOldWelds(tbl) | |
1060 | for _,v in pairs(tbl) do | |
1061 | if v:IsA('Weld') then | |
1062 | v:Destroy() | |
1063 | end | |
1064 | end | |
1065 | end | |
1066 | ||
1067 | function Equipped() | |
1068 | local handle=script.Parent:FindFirstChild('Handle') | |
1069 | if not handle then return end | |
1070 | local tble=handle:GetChildren() | |
1071 | for _,v in pairs(script.Parent:GetChildren()) do | |
1072 | if v:IsA('BasePart') and v~=handle then | |
1073 | local c1 | |
1074 | for _1,v1 in pairs(welds) do | |
1075 | if _1==v then | |
1076 | c1=v1 | |
1077 | break | |
1078 | end | |
1079 | end | |
1080 | if not c1 then | |
1081 | welds[v]=v.CFrame:inverse()*handle.CFrame | |
1082 | v.Anchored=false | |
1083 | c1=welds[v] | |
1084 | end | |
1085 | local weld=Instance.new('Weld') | |
1086 | weld.Part0=handle | |
1087 | weld.Part1=v | |
1088 | weld.C0=CFrame.new() | |
1089 | weld.C1=c1 | |
1090 | weld.Parent=handle | |
1091 | end | |
1092 | end | |
1093 | ClearOldWelds(tble) | |
1094 | handle.Anchored=false | |
1095 | end | |
1096 | Equipped() | |
1097 | script.Parent.Equipped:connect(Equipped) | |
1098 | ||
1099 | --Made by DonnyTheDemented | |
1100 | ||
1101 | end)) | |
1102 | Part36.Name = "Hitbox" | |
1103 | Part36.Parent = Tool0 | |
1104 | Part36.Transparency = 1 | |
1105 | Part36.Rotation = Vector3.new(0, 90, 0) | |
1106 | Part36.Anchored = true | |
1107 | Part36.CanCollide = false | |
1108 | Part36.Size = Vector3.new(1, 4.29999971, 1) | |
1109 | Part36.CFrame = CFrame.new(-20.0999966, 24.1000004, -3.899997, 3.05180438e-05, -3.05171161e-05, 1, -3.05171106e-05, 1, 3.05180438e-05, -1, -3.05180438e-05, 3.05171125e-05) | |
1110 | Part36.Position = Vector3.new(-20.0999966, 24.1000004, -3.899997) | |
1111 | Part36.Orientation = Vector3.new(0, 90, 0) | |
1112 | Script37.Name = "Damage" | |
1113 | Script37.Parent = Part36 | |
1114 | Script37.Disabled = true | |
1115 | table.insert(cors,sandbox(Script37,function() | |
1116 | ---local examp = require(game.Workspace.DamageFunc) | |
1117 | local tool = script.Parent.Parent | |
1118 | local debounce = false | |
1119 | ||
1120 | function OnTouch(hit) | |
1121 | local i = math.random(10,26) | |
1122 | local human = hit.Parent:FindFirstChild("Monster") | |
1123 | if (human ~= nil ) then | |
1124 | if debounce == false then | |
1125 | debounce = true | |
1126 | examp.SubtractionHealth(human,i,human.Parent.Defense.Value,tool.Stats.Power.Value,tool.Parent) | |
1127 | script.Disabled = true | |
1128 | end | |
1129 | end | |
1130 | end | |
1131 | ||
1132 | script.Parent.Touched:connect(OnTouch) | |
1133 | end)) | |
1134 | Script38.Name = "Damage2" | |
1135 | Script38.Parent = Part36 | |
1136 | Script38.Disabled = true | |
1137 | table.insert(cors,sandbox(Script38,function() | |
1138 | ---local examp = require(game.Workspace.DamageFunc) | |
1139 | local tool = script.Parent.Parent | |
1140 | local debounce = false | |
1141 | ||
1142 | function OnTouch(hit) | |
1143 | local i = math.random(20,50) | |
1144 | local human = hit.Parent:FindFirstChild("Monster") | |
1145 | if (human ~= nil ) then | |
1146 | if debounce == false then | |
1147 | debounce = true | |
1148 | examp.SubtractionHealth(human,i,human.Parent.Defense.Value,tool.Stats.Power.Value,tool.Parent) | |
1149 | end | |
1150 | end | |
1151 | end | |
1152 | ||
1153 | script.Parent.Touched:connect(OnTouch) | |
1154 | end)) | |
1155 | Part39.Name = "Handle" | |
1156 | Part39.Parent = Tool0 | |
1157 | Part39.BrickColor = BrickColor.new("Smoky grey") | |
1158 | Part39.Rotation = Vector3.new(0, 90, 0) | |
1159 | Part39.CanCollide = false | |
1160 | Part39.Size = Vector3.new(0.5, 4.4000001, 0.5) | |
1161 | Part39.CFrame = CFrame.new(-20.0999279, 24.2000103, -3.89998746, 3.92483344e-08, -9.88477041e-07, 1, -1.4239723e-05, 1, 9.88477609e-07, -1, -1.4239723e-05, 3.92342585e-08) | |
1162 | Part39.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
1163 | Part39.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
1164 | Part39.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
1165 | Part39.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
1166 | Part39.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
1167 | Part39.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
1168 | Part39.Color = Color3.new(0.356863, 0.364706, 0.411765) | |
1169 | Part39.Position = Vector3.new(-20.0999279, 24.2000103, -3.89998746) | |
1170 | Part39.Orientation = Vector3.new(0, 90, 0) | |
1171 | Part39.Color = Color3.new(0.356863, 0.364706, 0.411765) | |
1172 | Sound40.Name = "S1" | |
1173 | Sound40.Parent = Part39 | |
1174 | Sound40.Pitch = 1.1000000238419 | |
1175 | Sound40.SoundId = "rbxasset://sounds//swordslash.wav" | |
1176 | Sound40.Volume = 0.25 | |
1177 | Sound41.Name = "S2" | |
1178 | Sound41.Parent = Part39 | |
1179 | Sound41.Pitch = 1.1000000238419 | |
1180 | Sound41.SoundId = "rbxasset://sounds//swordlunge.wav" | |
1181 | Sound41.Volume = 0.25 | |
1182 | SpecialMesh42.Parent = Part39 | |
1183 | SpecialMesh42.MeshId = "http://www.roblox.com/asset/?id=94746028" | |
1184 | SpecialMesh42.Scale = Vector3.new(1.20000005, 1.20000005, 1.20000005) | |
1185 | SpecialMesh42.TextureId = "http://www.roblox.com/asset/?ID=94746105" | |
1186 | SpecialMesh42.MeshType = Enum.MeshType.FileMesh | |
1187 | SpecialMesh42.Scale = Vector3.new(1.20000005, 1.20000005, 1.20000005) | |
1188 | Sound43.Name = "S4" | |
1189 | Sound43.Parent = Part39 | |
1190 | Sound43.Pitch = 0.55000001192093 | |
1191 | Sound43.SoundId = "http://www.roblox.com/asset/?id=2101137" | |
1192 | Sound43.Volume = 0.25 | |
1193 | Sound44.Name = "S3" | |
1194 | Sound44.Parent = Part39 | |
1195 | Sound44.Pitch = 0.89999997615814 | |
1196 | Sound44.SoundId = "rbxasset://sounds/swoosh.wav" | |
1197 | Sound44.Volume = 0.25 | |
1198 | Folder45.Name = "ExtraScripts" | |
1199 | Folder45.Parent = Tool0 | |
1200 | Script46.Name = "DamageFEO" | |
1201 | Script46.Parent = Folder45 | |
1202 | Script46.Disabled = true | |
1203 | table.insert(cors,sandbox(Script46,function() | |
1204 | -- Damage script F.E.O( For External Object ) | |
1205 | -- Basically if you want to make damage on a arm, leg, head, etc. | |
1206 | ---local examp = require(game.Workspace.DamageFunc) | |
1207 | local tool = script.Parent.Parent | |
1208 | local debounce = false | |
1209 | ||
1210 | function OnTouch(hit) | |
1211 | local i = math.random(5,20) | |
1212 | local human = hit.Parent:FindFirstChild("Monster") | |
1213 | if (human ~= nil ) then | |
1214 | if debounce == false then | |
1215 | debounce = true | |
1216 | human.PlatformStand = true | |
1217 | examp.SubtractionHealth(human,i,human.Parent.Defense.Value,script.Parent.Parent.Sword.Stats.Power.Value,script.Parent.Parent) | |
1218 | script.Disabled = true | |
1219 | end | |
1220 | end | |
1221 | end | |
1222 | ||
1223 | script.Parent.Touched:connect(OnTouch) | |
1224 | end)) | |
1225 | ScreenGui47.Name = "SkillGui" | |
1226 | ScreenGui47.Parent = Tool0 | |
1227 | Frame48.Name = "Skills" | |
1228 | Frame48.Parent = ScreenGui47 | |
1229 | Frame48.Size = UDim2.new(0.150000006, 1, 0.125, 1) | |
1230 | Frame48.Style = Enum.FrameStyle.RobloxRound | |
1231 | Frame48.Position = UDim2.new(0.845000029, 0, 0.625, 0) | |
1232 | Frame48.BackgroundColor3 = Color3.new(1, 1, 1) | |
1233 | Frame48.BorderSizePixel = 0 | |
1234 | TextLabel49.Name = "ZSkill" | |
1235 | TextLabel49.Parent = Frame48 | |
1236 | TextLabel49.Size = UDim2.new(0.5, 0, 1, 1) | |
1237 | TextLabel49.Text = "" | |
1238 | TextLabel49.BackgroundColor3 = Color3.new(0.333333, 1, 0) | |
1239 | TextLabel49.BorderSizePixel = 0 | |
1240 | TextLabel49.Font = Enum.Font.ArialBold | |
1241 | TextLabel49.FontSize = Enum.FontSize.Size14 | |
1242 | TextLabel49.TextColor3 = Color3.new(1, 1, 1) | |
1243 | TextLabel49.TextScaled = true | |
1244 | TextLabel49.TextStrokeTransparency = 0 | |
1245 | TextLabel49.TextWrapped = true | |
1246 | LocalScript50.Parent = TextLabel49 | |
1247 | LocalScript50.Disabled = true | |
1248 | table.insert(cors,sandbox(LocalScript50,function() | |
1249 | max = 1 | |
1250 | cd = 1 | |
1251 | local tg = script.Parent | |
1252 | local plr = game.Players.LocalPlayer | |
1253 | local char = workspace:WaitForChild(plr.Name) | |
1254 | local hum = char:WaitForChild("Humanoid") | |
1255 | wait() | |
1256 | for _, child in pairs(char:GetChildren()) do | |
1257 | if child.ClassName == 'Tool' then | |
1258 | tool = child | |
1259 | end | |
1260 | end | |
1261 | ||
1262 | while true do | |
1263 | if tool.ToolScript.Cooldowns.Z.Value > max then max = tool.ToolScript.Cooldowns.Z.Value | |
1264 | end | |
1265 | tg.Size = UDim2.new((( 0.5 / max ) * ( max - tool.ToolScript.Cooldowns.Z.Value)),0,1,1) | |
1266 | if tool.ToolScript.Cooldowns.Z.Value == 0 and cd == 0 then | |
1267 | cd = 1 | |
1268 | script.Parent.Parent.ZF.BackgroundTransparency = 0.8 | |
1269 | wait() | |
1270 | script.Parent.Parent.ZF.BackgroundTransparency = 0.6 | |
1271 | wait() | |
1272 | script.Parent.Parent.ZF.BackgroundTransparency = 0.4 | |
1273 | wait() | |
1274 | script.Parent.Parent.ZF.BackgroundTransparency = 0.2 | |
1275 | wait() | |
1276 | script.Parent.Parent.ZF.BackgroundTransparency = 0.0 | |
1277 | wait() | |
1278 | script.Parent.Parent.ZF.BackgroundTransparency = 0.2 | |
1279 | wait() | |
1280 | script.Parent.Parent.ZF.BackgroundTransparency = 0.4 | |
1281 | wait() | |
1282 | script.Parent.Parent.ZF.BackgroundTransparency = 0.6 | |
1283 | wait() | |
1284 | script.Parent.Parent.ZF.BackgroundTransparency = 0.8 | |
1285 | wait() | |
1286 | script.Parent.Parent.ZF.BackgroundTransparency = 1 | |
1287 | else if tool.ToolScript.Cooldowns.Z.Value ~= 0 then | |
1288 | cd = 0 | |
1289 | end | |
1290 | end | |
1291 | wait() | |
1292 | end | |
1293 | ||
1294 | ||
1295 | end)) | |
1296 | TextLabel51.Name = "XSkill" | |
1297 | TextLabel51.Parent = Frame48 | |
1298 | TextLabel51.Size = UDim2.new(0.5, 0, 1, 1) | |
1299 | TextLabel51.Text = "" | |
1300 | TextLabel51.Position = UDim2.new(0.5, 0, 0, 0) | |
1301 | TextLabel51.BackgroundColor3 = Color3.new(0, 0.666667, 1) | |
1302 | TextLabel51.BorderSizePixel = 0 | |
1303 | TextLabel51.Font = Enum.Font.ArialBold | |
1304 | TextLabel51.FontSize = Enum.FontSize.Size14 | |
1305 | TextLabel51.TextColor3 = Color3.new(1, 1, 1) | |
1306 | TextLabel51.TextScaled = true | |
1307 | TextLabel51.TextStrokeTransparency = 0 | |
1308 | TextLabel51.TextWrapped = true | |
1309 | LocalScript52.Parent = TextLabel51 | |
1310 | LocalScript52.Disabled = true | |
1311 | table.insert(cors,sandbox(LocalScript52,function() | |
1312 | max = 1 | |
1313 | cd = 1 | |
1314 | local tg = script.Parent | |
1315 | local plr = game.Players.LocalPlayer | |
1316 | local char = workspace:WaitForChild(plr.Name) | |
1317 | local hum = char:WaitForChild("Humanoid") | |
1318 | wait() | |
1319 | for _, child in pairs(char:GetChildren()) do | |
1320 | if child.ClassName == 'Tool' then | |
1321 | tool = child | |
1322 | end | |
1323 | end | |
1324 | ||
1325 | while true do | |
1326 | if tool.ToolScript.Cooldowns.X.Value > max then max = tool.ToolScript.Cooldowns.X.Value | |
1327 | end | |
1328 | tg.Size = UDim2.new((( 0.5 / max ) * ( max - tool.ToolScript.Cooldowns.X.Value)),0,1,1) | |
1329 | if tool.ToolScript.Cooldowns.X.Value == 0 and cd == 0 then | |
1330 | cd = 1 | |
1331 | script.Parent.Parent.XF.BackgroundTransparency = 0.8 | |
1332 | wait() | |
1333 | script.Parent.Parent.XF.BackgroundTransparency = 0.6 | |
1334 | wait() | |
1335 | script.Parent.Parent.XF.BackgroundTransparency = 0.4 | |
1336 | wait() | |
1337 | script.Parent.Parent.XF.BackgroundTransparency = 0.2 | |
1338 | wait() | |
1339 | script.Parent.Parent.XF.BackgroundTransparency = 0.0 | |
1340 | wait() | |
1341 | script.Parent.Parent.XF.BackgroundTransparency = 0.2 | |
1342 | wait() | |
1343 | script.Parent.Parent.XF.BackgroundTransparency = 0.4 | |
1344 | wait() | |
1345 | script.Parent.Parent.XF.BackgroundTransparency = 0.6 | |
1346 | wait() | |
1347 | script.Parent.Parent.XF.BackgroundTransparency = 0.8 | |
1348 | wait() | |
1349 | script.Parent.Parent.XF.BackgroundTransparency = 1 | |
1350 | else if tool.ToolScript.Cooldowns.X.Value ~= 0 then | |
1351 | cd = 0 | |
1352 | end | |
1353 | end | |
1354 | wait() | |
1355 | end | |
1356 | ||
1357 | ||
1358 | end)) | |
1359 | TextLabel53.Name = "X" | |
1360 | TextLabel53.Parent = Frame48 | |
1361 | TextLabel53.Transparency = 1 | |
1362 | TextLabel53.Size = UDim2.new(0.5, 0, 1, 1) | |
1363 | TextLabel53.Text = "X" | |
1364 | TextLabel53.Position = UDim2.new(0.5, 0, 0, 0) | |
1365 | TextLabel53.BackgroundColor3 = Color3.new(0, 0.666667, 1) | |
1366 | TextLabel53.BackgroundTransparency = 1 | |
1367 | TextLabel53.BorderSizePixel = 0 | |
1368 | TextLabel53.Font = Enum.Font.ArialBold | |
1369 | TextLabel53.FontSize = Enum.FontSize.Size14 | |
1370 | TextLabel53.TextColor3 = Color3.new(1, 1, 1) | |
1371 | TextLabel53.TextScaled = true | |
1372 | TextLabel53.TextStrokeTransparency = 0 | |
1373 | TextLabel53.TextWrapped = true | |
1374 | TextLabel54.Name = "Z" | |
1375 | TextLabel54.Parent = Frame48 | |
1376 | TextLabel54.Transparency = 1 | |
1377 | TextLabel54.Size = UDim2.new(0.5, 0, 1, 1) | |
1378 | TextLabel54.Text = "Z" | |
1379 | TextLabel54.BackgroundColor3 = Color3.new(0.333333, 1, 0) | |
1380 | TextLabel54.BackgroundTransparency = 1 | |
1381 | TextLabel54.BorderSizePixel = 0 | |
1382 | TextLabel54.Font = Enum.Font.ArialBold | |
1383 | TextLabel54.FontSize = Enum.FontSize.Size14 | |
1384 | TextLabel54.TextColor3 = Color3.new(1, 1, 1) | |
1385 | TextLabel54.TextScaled = true | |
1386 | TextLabel54.TextStrokeTransparency = 0 | |
1387 | TextLabel54.TextWrapped = true | |
1388 | TextLabel55.Name = "ZF" | |
1389 | TextLabel55.Parent = Frame48 | |
1390 | TextLabel55.Transparency = 1 | |
1391 | TextLabel55.Size = UDim2.new(0.5, 0, 1, 1) | |
1392 | TextLabel55.Text = "" | |
1393 | TextLabel55.BackgroundColor3 = Color3.new(1, 1, 1) | |
1394 | TextLabel55.BackgroundTransparency = 1 | |
1395 | TextLabel55.BorderSizePixel = 0 | |
1396 | TextLabel55.Font = Enum.Font.ArialBold | |
1397 | TextLabel55.FontSize = Enum.FontSize.Size14 | |
1398 | TextLabel55.TextColor3 = Color3.new(1, 1, 1) | |
1399 | TextLabel55.TextScaled = true | |
1400 | TextLabel55.TextStrokeTransparency = 0 | |
1401 | TextLabel55.TextWrapped = true | |
1402 | TextLabel56.Name = "XF" | |
1403 | TextLabel56.Parent = Frame48 | |
1404 | TextLabel56.Transparency = 1 | |
1405 | TextLabel56.Size = UDim2.new(0.5, 0, 1, 1) | |
1406 | TextLabel56.Text = "" | |
1407 | TextLabel56.Position = UDim2.new(0.5, 0, 0, 0) | |
1408 | TextLabel56.BackgroundColor3 = Color3.new(1, 1, 1) | |
1409 | TextLabel56.BackgroundTransparency = 1 | |
1410 | TextLabel56.BorderSizePixel = 0 | |
1411 | TextLabel56.ZIndex = 4 | |
1412 | TextLabel56.Font = Enum.Font.ArialBold | |
1413 | TextLabel56.FontSize = Enum.FontSize.Size14 | |
1414 | TextLabel56.TextColor3 = Color3.new(1, 1, 1) | |
1415 | TextLabel56.TextScaled = true | |
1416 | TextLabel56.TextStrokeTransparency = 0 | |
1417 | TextLabel56.TextWrapped = true | |
1418 | for i,v in pairs(mas:GetChildren()) do | |
1419 | v.Parent = game:GetService("Players").LocalPlayer.Backpack | |
1420 | pcall(function() v:MakeJoints() end) | |
1421 | end | |
1422 | mas:Destroy() | |
1423 | for i,v in pairs(cors) do | |
1424 | spawn(function() | |
1425 | pcall(v) | |
1426 | end) | |
1427 | end |