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 | print(" by shackluster ") | |
142 | ||
143 | ||
144 | wait(0.2) | |
145 | ||
146 | ||
147 | ||
148 | Player = game:GetService("Players").LocalPlayer | |
149 | PlayerGui = Player.PlayerGui | |
150 | Cam = workspace.CurrentCamera | |
151 | Backpack = Player.Backpack | |
152 | Character = Player.Character | |
153 | Humanoid = Character.Humanoid | |
154 | Mouse = Player:GetMouse() | |
155 | RootPart = Character["HumanoidRootPart"] | |
156 | Torso = Character["Torso"] | |
157 | Head = Character["Head"] | |
158 | RightArm = Character["Right Arm"] | |
159 | LeftArm = Character["Left Arm"] | |
160 | RightLeg = Character["Right Leg"] | |
161 | LeftLeg = Character["Left Leg"] | |
162 | RootJoint = RootPart["RootJoint"] | |
163 | Neck = Torso["Neck"] | |
164 | RightShoulder = Torso["Right Shoulder"] | |
165 | LeftShoulder = Torso["Left Shoulder"] | |
166 | RightHip = Torso["Right Hip"] | |
167 | LeftHip = Torso["Left Hip"] | |
168 | local sick = Instance.new("Sound",Character) | |
169 | - | sick.SoundId = "rbxassetid://1293238846" |
169 | + | sick.SoundId = "rbxassetid://245939390" |
170 | sick.Looped = true | |
171 | sick.Pitch = 1 | |
172 | sick.Volume = 50 | |
173 | sick:Play() | |
174 | local flange = Instance.new("FlangeSoundEffect", sick) | |
175 | flange.Depth = 1 | |
176 | flange.Mix = 1 | |
177 | flange.Rate = 2.4 | |
178 | ||
179 | IT = Instance.new | |
180 | CF = CFrame.new | |
181 | VT = Vector3.new | |
182 | RAD = math.rad | |
183 | C3 = Color3.new | |
184 | UD2 = UDim2.new | |
185 | BRICKC = BrickColor.new | |
186 | ANGLES = CFrame.Angles | |
187 | EULER = CFrame.fromEulerAnglesXYZ | |
188 | COS = math.cos | |
189 | ACOS = math.acos | |
190 | SIN = math.sin | |
191 | ASIN = math.asin | |
192 | ABS = math.abs | |
193 | MRANDOM = math.random | |
194 | FLOOR = math.floor | |
195 | ||
196 | --//=================================\\ | |
197 | --|| CUSTOMIZATION | |
198 | --\\=================================// | |
199 | ||
200 | ||
201 | Player_Size = 1 --Size of the player. | |
202 | Animation_Speed = 3 | |
203 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
204 | ||
205 | local Speed = 100 | |
206 | local Effects2 = {} | |
207 | ||
208 | ||
209 | ||
210 | --//=================================\\ | |
211 | --|| END OF CUSTOMIZATION | |
212 | --\\=================================// | |
213 | ||
214 | local function weldBetween(a, b) | |
215 | local weldd = Instance.new("ManualWeld") | |
216 | weldd.Part0 = a | |
217 | weldd.Part1 = b | |
218 | weldd.C0 = CFrame.new() | |
219 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
220 | weldd.Parent = a | |
221 | return weldd | |
222 | end | |
223 | ||
224 | --//=================================\\ | |
225 | --|| USEFUL VALUES | |
226 | --\\=================================// | |
227 | ||
228 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
229 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
230 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
231 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
232 | local CO1 = 0 | |
233 | local CO2 = 0 | |
234 | local CO3 = 0 | |
235 | local CO4 = 0 | |
236 | local CHANGEDEFENSE = 0 | |
237 | local CHANGEDAMAGE = 0 | |
238 | local CHANGEMOVEMENT = 0 | |
239 | local ANIM = "Idle" | |
240 | local ATTACK = false | |
241 | local EQUIPPED = false | |
242 | local HOLD = false | |
243 | local COMBO = 1 | |
244 | local LASTPOINT = nil | |
245 | local BLCF = nil | |
246 | local SCFR = nil | |
247 | local STAGGERHITANIM = false | |
248 | local STAGGERANIM = false | |
249 | local STUNANIM = false | |
250 | local CRITCHANCENUMBER = 0 | |
251 | local IDLENUMBER = 0 | |
252 | local DONUMBER = 0 | |
253 | local HANDIDLE = false | |
254 | local Rooted = false | |
255 | local SINE = 0 | |
256 | local CHANGE = 2 / Animation_Speed | |
257 | local WALKINGANIM = false | |
258 | local WALK = 0 | |
259 | local DISABLEJUMPING = false | |
260 | local ROBLOXIDLEANIMATION = IT("Animation") | |
261 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
262 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
263 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
264 | local ANIMATOR = Humanoid.Animator | |
265 | local ANIMATE = Character.Animate | |
266 | local UNANCHOR = true | |
267 | ||
268 | local SKILLTEXTCOLOR = C3(0,0,0) | |
269 | ||
270 | --//=================================\\ | |
271 | --\\=================================// | |
272 | ||
273 | ||
274 | --//=================================\\ | |
275 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
276 | --\\=================================// | |
277 | ||
278 | ArtificialHB = Instance.new("BindableEvent", script) | |
279 | ArtificialHB.Name = "ArtificialHB" | |
280 | ||
281 | script:WaitForChild("ArtificialHB") | |
282 | ||
283 | frame = Frame_Speed | |
284 | tf = 0 | |
285 | allowframeloss = false | |
286 | tossremainder = false | |
287 | lastframe = tick() | |
288 | script.ArtificialHB:Fire() | |
289 | ||
290 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
291 | tf = tf + s | |
292 | if tf >= frame then | |
293 | if allowframeloss then | |
294 | script.ArtificialHB:Fire() | |
295 | lastframe = tick() | |
296 | else | |
297 | for i = 1, math.floor(tf / frame) do | |
298 | script.ArtificialHB:Fire() | |
299 | end | |
300 | lastframe = tick() | |
301 | end | |
302 | if tossremainder then | |
303 | tf = 0 | |
304 | else | |
305 | tf = tf - frame * math.floor(tf / frame) | |
306 | end | |
307 | end | |
308 | end) | |
309 | ||
310 | --//=================================\\ | |
311 | --\\=================================// | |
312 | ||
313 | ||
314 | ||
315 | ||
316 | ||
317 | --//=================================\\ | |
318 | --|| SOME FUNCTIONS | |
319 | --\\=================================// | |
320 | ||
321 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
322 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
323 | end | |
324 | ||
325 | function PositiveAngle(NUMBER) | |
326 | if NUMBER >= 0 then | |
327 | NUMBER = 0 | |
328 | end | |
329 | return NUMBER | |
330 | end | |
331 | ||
332 | function NegativeAngle(NUMBER) | |
333 | if NUMBER <= 0 then | |
334 | NUMBER = 0 | |
335 | end | |
336 | return NUMBER | |
337 | end | |
338 | ||
339 | function Swait(NUMBER) | |
340 | if NUMBER == 0 or NUMBER == nil then | |
341 | ArtificialHB.Event:wait() | |
342 | else | |
343 | for i = 1, NUMBER do | |
344 | ArtificialHB.Event:wait() | |
345 | end | |
346 | end | |
347 | end | |
348 | ||
349 | function QuaternionFromCFrame(cf) | |
350 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
351 | local trace = m00 + m11 + m22 | |
352 | if trace > 0 then | |
353 | local s = math.sqrt(1 + trace) | |
354 | local recip = 0.5 / s | |
355 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
356 | else | |
357 | local i = 0 | |
358 | if m11 > m00 then | |
359 | i = 1 | |
360 | end | |
361 | if m22 > (i == 0 and m00 or m11) then | |
362 | i = 2 | |
363 | end | |
364 | if i == 0 then | |
365 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
366 | local recip = 0.5 / s | |
367 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
368 | elseif i == 1 then | |
369 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
370 | local recip = 0.5 / s | |
371 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
372 | elseif i == 2 then | |
373 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
374 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
375 | end | |
376 | end | |
377 | end | |
378 | ||
379 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
380 | local xs, ys, zs = x + x, y + y, z + z | |
381 | local wx, wy, wz = w * xs, w * ys, w * zs | |
382 | local xx = x * xs | |
383 | local xy = x * ys | |
384 | local xz = x * zs | |
385 | local yy = y * ys | |
386 | local yz = y * zs | |
387 | local zz = z * zs | |
388 | return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy)) | |
389 | end | |
390 | ||
391 | function QuaternionSlerp(a, b, t) | |
392 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
393 | local startInterp, finishInterp; | |
394 | if cosTheta >= 0.0001 then | |
395 | if (1 - cosTheta) > 0.0001 then | |
396 | local theta = ACOS(cosTheta) | |
397 | local invSinTheta = 1 / SIN(theta) | |
398 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
399 | finishInterp = SIN(t * theta) * invSinTheta | |
400 | else | |
401 | startInterp = 1 - t | |
402 | finishInterp = t | |
403 | end | |
404 | else | |
405 | if (1 + cosTheta) > 0.0001 then | |
406 | local theta = ACOS(-cosTheta) | |
407 | local invSinTheta = 1 / SIN(theta) | |
408 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
409 | finishInterp = SIN(t * theta) * invSinTheta | |
410 | else | |
411 | startInterp = t - 1 | |
412 | finishInterp = t | |
413 | end | |
414 | end | |
415 | return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp | |
416 | end | |
417 | ||
418 | function Clerp(a, b, t) | |
419 | local qa = {QuaternionFromCFrame(a)} | |
420 | local qb = {QuaternionFromCFrame(b)} | |
421 | local ax, ay, az = a.x, a.y, a.z | |
422 | local bx, by, bz = b.x, b.y, b.z | |
423 | local _t = 1 - t | |
424 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
425 | end | |
426 | ||
427 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
428 | local frame = IT("Frame") | |
429 | frame.BackgroundTransparency = TRANSPARENCY | |
430 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
431 | frame.Position = POSITION | |
432 | frame.Size = SIZE | |
433 | frame.BackgroundColor3 = COLOR | |
434 | frame.BorderColor3 = BORDERCOLOR | |
435 | frame.Name = NAME | |
436 | frame.Parent = PARENT | |
437 | return frame | |
438 | end | |
439 | ||
440 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
441 | local label = IT("TextLabel") | |
442 | label.BackgroundTransparency = 1 | |
443 | label.Size = UD2(1, 0, 1, 0) | |
444 | label.Position = UD2(0, 0, 0, 0) | |
445 | label.TextColor3 = TEXTCOLOR | |
446 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
447 | label.TextTransparency = TRANSPARENCY | |
448 | label.FontSize = TEXTFONTSIZE | |
449 | label.Font = TEXTFONT | |
450 | label.BorderSizePixel = BORDERSIZEPIXEL | |
451 | label.TextScaled = false | |
452 | label.Text = TEXT | |
453 | label.Name = NAME | |
454 | label.Parent = PARENT | |
455 | return label | |
456 | end | |
457 | ||
458 | function NoOutlines(PART) | |
459 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
460 | end | |
461 | ||
462 | ||
463 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
464 | local NEWWELD = IT(TYPE) | |
465 | NEWWELD.Part0 = PART0 | |
466 | NEWWELD.Part1 = PART1 | |
467 | NEWWELD.C0 = C0 | |
468 | NEWWELD.C1 = C1 | |
469 | NEWWELD.Parent = PARENT | |
470 | return NEWWELD | |
471 | end | |
472 | ||
473 | function CreateSound(ID, PARENT, VOLUME, PITCH) | |
474 | local NEWSOUND = nil | |
475 | coroutine.resume(coroutine.create(function() | |
476 | NEWSOUND = IT("Sound", PARENT) | |
477 | NEWSOUND.Volume = VOLUME | |
478 | NEWSOUND.Pitch = PITCH | |
479 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
480 | Swait() | |
481 | NEWSOUND:play() | |
482 | game:GetService("Debris"):AddItem(NEWSOUND, 10) | |
483 | end)) | |
484 | return NEWSOUND | |
485 | end | |
486 | ||
487 | function CFrameFromTopBack(at, top, back) | |
488 | local right = top:Cross(back) | |
489 | return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z) | |
490 | end | |
491 | ||
492 | --//=================================\\ | |
493 | --|| SPEECH | |
494 | --\\=================================// | |
495 | ||
496 | local speak = Instance.new("Sound",Head) | |
497 | speak.SoundId = "rbxassetid://418252437" | |
498 | speak.Volume = 4 | |
499 | ||
500 | function chatfunc(text,waitt) | |
501 | local chat = coroutine.wrap(function() | |
502 | if Character:FindFirstChild("TalkingBillBoard")~= nil then | |
503 | Character:FindFirstChild("TalkingBillBoard").Parent = nil | |
504 | end | |
505 | local naeeym2 = Instance.new("BillboardGui",Character) | |
506 | naeeym2.Size = UDim2.new(0,100,0,40) | |
507 | naeeym2.StudsOffset = Vector3.new(0,2,0) | |
508 | naeeym2.Adornee = Character.Head | |
509 | naeeym2.Name = "TalkingBillBoard" | |
510 | naeeym2.AlwaysOnTop = true | |
511 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
512 | tecks2.BackgroundTransparency = 1 | |
513 | tecks2.BorderSizePixel = 0 | |
514 | tecks2.Text = "" | |
515 | tecks2.Font = "Fantasy" | |
516 | tecks2.TextSize = 30 | |
517 | tecks2.TextStrokeTransparency = 1 | |
518 | tecks2.TextColor3 = SKILLTEXTCOLOR | |
519 | tecks2.TextStrokeColor3 = Color3.new(0,0,0) | |
520 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
521 | for i = 1,string.len(text),1 do | |
522 | if naeeym2.Parent ~= nil then | |
523 | tecks2.Text = string.sub(text,1,i) | |
524 | speak.PlaybackSpeed = (math.random(8,9)/10) | |
525 | speak:Play() | |
526 | Swait(3) | |
527 | end | |
528 | end | |
529 | wait(waitt) | |
530 | coroutine.resume(coroutine.create(function() | |
531 | for i = 1, 10 do | |
532 | tecks2.TextTransparency = tecks2.TextTransparency + 0.1 | |
533 | Swait() | |
534 | end | |
535 | naeeym2:Destroy() | |
536 | end)) | |
537 | end) | |
538 | chat() | |
539 | end | |
540 | ||
541 | --//=================================\\ | |
542 | --|| DAMAGING | |
543 | --\\=================================// | |
544 | ||
545 | function glassified(hit) | |
546 | local GOLDNAMES = {"glass","glass","glass","glass"} | |
547 | hit.Anchored = false | |
548 | hit.CanCollide = true | |
549 | hit.Parent = workspace | |
550 | hit.Name = GOLDNAMES[MRANDOM(1,#GOLDNAMES)] | |
551 | - | hit.Material = "Glass" |
551 | + | hit.Material = "ForceField" |
552 | hit.Transparency = 0.4 | |
553 | - | hit.BrickColor = BRICKC("Navy blue") |
553 | + | hit.BrickColor = BRICKC("Phosph. White") |
554 | if hit:FindFirstChildOfClass("SpecialMesh") then | |
555 | local mesh = hit:FindFirstChildOfClass("SpecialMesh") | |
556 | mesh.TextureId = "" | |
557 | end | |
558 | if hit:FindFirstChildOfClass("Decal") then | |
559 | local mesh = hit:FindFirstChildOfClass("Decal") | |
560 | mesh:remove() | |
561 | end | |
562 | if hit.ClassName == "MeshPart" then | |
563 | hit.TextureID = "" | |
564 | end | |
565 | if hit.ClassName == "UnionOperation" then | |
566 | hit.UsePartColor = true | |
567 | end | |
568 | end | |
569 | ||
570 | function turntoglass(hit) | |
571 | if hit.Parent ~= Character then | |
572 | if hit.Parent ~= workspace then | |
573 | print("Glassified") | |
574 | local body = hit.Parent:GetChildren() | |
575 | for part = 1, #body do | |
576 | local child = body[part] | |
577 | if child.ClassName == "Part" or child.ClassName == "MeshPart" or child.ClassName == "UnionOperation" then | |
578 | if child.Name == "Head" then | |
579 | - | CreateSound("3964634254", child, 2, 1) |
579 | + | CreateSound("533427376", child, 2, 1) |
580 | end | |
581 | glassified(child) | |
582 | elseif child.ClassName == "Accessory" or child.ClassName == "Hat" then | |
583 | if child:FindFirstChild("Handle") then | |
584 | glassified(child.Handle) | |
585 | end | |
586 | end | |
587 | end | |
588 | else | |
589 | glassified(hit) | |
590 | end | |
591 | end | |
592 | end | |
593 | ||
594 | --//=================================\\ | |
595 | --|| ATTACK FUNCTIONS AND STUFF | |
596 | --\\=================================// | |
597 | ||
598 | local hit = Torso.Touched:Connect(function(hit) | |
599 | if hit.Parent:FindFirstChild("Humanoid") then | |
600 | turntoglass(hit) | |
601 | end | |
602 | end) | |
603 | local hit = RightArm.Touched:Connect(function(hit) | |
604 | if hit.Parent:FindFirstChild("Humanoid") then | |
605 | turntoglass(hit) | |
606 | end | |
607 | end) | |
608 | local hit = LeftArm.Touched:Connect(function(hit) | |
609 | if hit.Parent:FindFirstChild("Humanoid") then | |
610 | turntoglass(hit) | |
611 | end | |
612 | end) | |
613 | local hit = RightLeg.Touched:Connect(function(hit) | |
614 | if hit.Parent:FindFirstChild("Humanoid") then | |
615 | turntoglass(hit) | |
616 | end | |
617 | end) | |
618 | local hit = LeftLeg.Touched:Connect(function(hit) | |
619 | if hit.Parent:FindFirstChild("Humanoid") then | |
620 | turntoglass(hit) | |
621 | end | |
622 | end) | |
623 | local hit = Head.Touched:Connect(function(hit) | |
624 | if hit.Parent:FindFirstChild("Humanoid") then | |
625 | turntoglass(hit) | |
626 | end | |
627 | end) | |
628 | ||
629 | ||
630 | ||
631 | ||
632 | --//=================================\\ | |
633 | --|| ASSIGN THINGS TO KEYS | |
634 | --\\=================================// | |
635 | ||
636 | function KeyDown(Key) | |
637 | if Key == "r" and ATTACK == false then | |
638 | - | chatfunc("Sample text",100) |
638 | + | chatfunc("muahahaha",100) |
639 | Swait(150) | |
640 | - | chatfunc("Sample text",5) |
640 | + | chatfunc("ahahahaha",5) |
641 | Swait(150) | |
642 | - | chatfunc("Sample text",1) |
642 | + | chatfunc("heaheheheahahaha",1) |
643 | Swait(45) | |
644 | - | chatfunc("Sample text",1) |
644 | + | chatfunc("hehehehe",1) |
645 | end | |
646 | if Key == "t" and ATTACK == false then | |
647 | - | CreateSound("179555500", Head, 2, 1) |
647 | + | CreateSound("546410481", Head, 2, 1) |
648 | Swait(5) | |
649 | - | chatfunc("yeet",5) |
649 | + | chatfunc("hahaha",5) |
650 | Swait(50) | |
651 | - | chatfunc("yeet yeet",3) |
651 | + | chatfunc("ima spook u real good",3) |
652 | Swait(75) | |
653 | - | chatfunc("yeet yeet yeet",10) |
653 | + | chatfunc(">:)",10) |
654 | end | |
655 | if Key == "f" and ATTACK == false then | |
656 | sick:Stop() | |
657 | - | CreateSound("196096298", Head, 2, 1) |
657 | + | CreateSound("181758125", Head, 2, 1) |
658 | local Speed = 300 | |
659 | Swait(350) | |
660 | sick:Play() | |
661 | local Speed = 100 | |
662 | attack = false | |
663 | end | |
664 | end | |
665 | ||
666 | function KeyUp(Key) | |
667 | end | |
668 | ||
669 | Mouse.KeyDown:connect(function(NEWKEY) | |
670 | KeyDown(NEWKEY) | |
671 | end) | |
672 | Mouse.KeyUp:connect(function(NEWKEY) | |
673 | KeyUp(NEWKEY) | |
674 | end) | |
675 | ||
676 | ||
677 | --//=================================\\ | |
678 | --\\=================================// | |
679 | ||
680 | ||
681 | function unanchor() | |
682 | if UNANCHOR == true then | |
683 | g = Character:GetChildren() | |
684 | for i = 1, #g do | |
685 | if g[i].ClassName == "Part" then | |
686 | g[i].Anchored = false | |
687 | end | |
688 | end | |
689 | end | |
690 | end | |
691 | ||
692 | ||
693 | --//=================================\\ | |
694 | --|| WRAP THE WHOLE SCRIPT UP | |
695 | --\\=================================// | |
696 | ||
697 | ||
698 | Humanoid.Changed:connect(function(Jump) | |
699 | if Jump == "Jump" and (Disable_Jump == true or DISABLEJUMPING == true) then | |
700 | Humanoid.Jump = false | |
701 | end | |
702 | end) | |
703 | Rooted = true | |
704 | ANIMATE.Parent = nil | |
705 | local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION) | |
706 | IDLEANIMATION:Play() | |
707 | Swait() | |
708 | Rooted = false | |
709 | ||
710 | local loop = 0 | |
711 | ||
712 | while true do | |
713 | Swait() | |
714 | SINE = SINE + CHANGE | |
715 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
716 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
717 | local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position) | |
718 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character) | |
719 | local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16) | |
720 | if ATTACK == false then | |
721 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size + 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
722 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
723 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
724 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
725 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0 * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
726 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0 * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
727 | end | |
728 | if #Effects2>0 then | |
729 | for e=1,#Effects2 do | |
730 | if Effects2[e]~=nil then | |
731 | local Thing=Effects2[e] | |
732 | if Thing~=nil then | |
733 | local Part=Thing[1] | |
734 | local Mode=Thing[2] | |
735 | local Delay=Thing[3] | |
736 | local IncX=Thing[4] | |
737 | local IncY=Thing[5] | |
738 | local IncZ=Thing[6] | |
739 | local Part2=Thing[8] | |
740 | if Thing[1].Transparency<=1 then | |
741 | if Thing[2]=="Block1" then | |
742 | Thing[1].CFrame=Part2.CFrame | |
743 | Mesh=Thing[1].Mesh | |
744 | Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6]) | |
745 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
746 | elseif Thing[2]=="Cylinder" then | |
747 | Mesh=Thing[1].Mesh | |
748 | Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6]) | |
749 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
750 | elseif Thing[2]=="Blood" then | |
751 | Mesh=Thing[7] | |
752 | Thing[1].CFrame=Thing[1].CFrame*CF(0,.5,0) | |
753 | Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6]) | |
754 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
755 | elseif Thing[2]=="Elec" then | |
756 | Mesh=Thing[1].Mesh | |
757 | Mesh.Scale=Mesh.Scale+VT(Thing[7],Thing[8],Thing[9]) | |
758 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
759 | elseif Thing[2]=="Disappear" then | |
760 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
761 | end | |
762 | else | |
763 | Part.Parent=nil | |
764 | table.remove(Effects2,e) | |
765 | end | |
766 | end | |
767 | end | |
768 | end | |
769 | end | |
770 | unanchor() | |
771 | Humanoid.MaxHealth = "inf" | |
772 | Humanoid.Health = "inf" | |
773 | if Rooted == false then | |
774 | Disable_Jump = false | |
775 | Humanoid.WalkSpeed = Speed | |
776 | elseif Rooted == true then | |
777 | Disable_Jump = true | |
778 | Humanoid.WalkSpeed = 1 | |
779 | end | |
780 | if target ~= nil then | |
781 | loop = loop + 1 | |
782 | if loop == 35 then | |
783 | if target:FindFirstChild("HumanoidRootPart") then | |
784 | CreateSound("161164363", target.HumanoidRootPart, 10, 1.1) | |
785 | end | |
786 | loop = 0 | |
787 | end | |
788 | end | |
789 | end | |
790 | ||
791 | --//=================================\\ | |
792 | --\\=================================// | |
793 | ||
794 | ||
795 | ||
796 | ||
797 | ||
798 | --//====================================================\\-- | |
799 | --|| END OF SCRIPT | |
800 | --\\====================================================//-- |