SHOW:
|
|
- or go back to the newest paste.
1 | - | -- BurnLegion strikes again! |
1 | + | --https://github.com/Mokiros/roblox-FE-compatibility |
2 | - | -- wongxd, this is why you DON'T goto Voidacity's |
2 | + | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end |
3 | - | -- SLPM has been absent, so I've taken it upon myself to make something |
3 | + | local Player,Mouse,mouse,UserInputService,ContextActionService = owner |
4 | local RealPlayer = Player | |
5 | - | -------------------------------------------------------- |
5 | + | do print("FE Compatibility code by Mokiros")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(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("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 typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end |
6 | -------------------|| | |
7 | - | pls = game:GetService'Players' |
7 | + | --------------------\\ |
8 | - | rs = game:GetService'RunService' |
8 | + | --||||||||||]]]]]]]]]\\ |
9 | - | uinps = game:GetService'UserInputService' |
9 | + | ---------------------\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ |
10 | - | lp = pls.LocalPlayer |
10 | + | --EDIT BY INFINITEONEWITHDANK NAME OF SCRIPT: TERRA WARRIOR PROTECTOR OF THE PLANET EARTH|]]>> |
11 | - | mouse = lp:GetMouse() |
11 | + | ---------------------//////////////////////////////////////////////////////////////////////// |
12 | - | c = lp.Character |
12 | + | --||||||||||]]]]]]]]]// |
13 | - | human = c.Humanoid |
13 | + | --------------------// |
14 | - | human.MaxHealth = 50 |
14 | + | -------------------|| |
15 | - | wait() |
15 | + | local Player = game:GetService("Players").nutta1258 |
16 | - | human.Health = 50 |
16 | + | local Mouse,mouse,UserInputService,ContextActionService |
17 | - | c.Health:Destroy() |
17 | + | do |
18 | script.Parent = Player.Character | |
19 | - | -------------------------------------------------------- |
19 | + | local CAS = {Actions={}} |
20 | local Event = Instance.new("RemoteEvent") | |
21 | - | Debounces = { |
21 | + | Event.Name = "UserInput_Event" |
22 | - | AnimationCycles = 0; |
22 | + | Event.Parent = Player.Character |
23 | - | FPS = 0; |
23 | + | local fakeEvent = function() |
24 | - | scalingDamage = false; |
24 | + | local t = {_fakeEvent=true} |
25 | - | damageLevel = 0; |
25 | + | t.Connect = function(self,f)self.Function=f end |
26 | - | attackNumber = 0; |
26 | + | t.connect = t.Connect |
27 | - | isAttacking = false; |
27 | + | return t |
28 | - | isMoving = false; |
28 | + | end |
29 | - | isSprinting = false; |
29 | + | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} |
30 | - | isBoosting = false; |
30 | + | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} |
31 | - | isPassive = false; |
31 | + | function CAS:BindAction(name,fun,touch,...) |
32 | - | isTyping = false; |
32 | + | CAS.Actions[name] = {Name=name,Function=fun,Keys={...}} |
33 | - | } |
33 | + | end |
34 | function CAS:UnbindAction(name) | |
35 | - | -------------------------------------------------------- |
35 | + | CAS.Actions[name] = nil |
36 | end | |
37 | - | numLerp = function(start, goal, alpha) |
37 | + | local function te(self,ev,...) |
38 | - | return(((goal - start) * alpha) + start) |
38 | + | local t = m[ev] |
39 | if t and t._fakeEvent and t.Function then | |
40 | t.Function(...) | |
41 | - | CFrameZero = function() |
41 | + | end |
42 | - | return CFrame.new(Vector3.new()) |
42 | + | end |
43 | m.TrigEvent = te | |
44 | UIS.TrigEvent = te | |
45 | - | rad = function(value) |
45 | + | Event.OnServerEvent:Connect(function(plr,io) |
46 | - | return math.rad(value) |
46 | + | if plr~=Player then return end |
47 | if io.isMouse then | |
48 | m.Target = io.Target | |
49 | - | CFAngles = function(Vector) |
49 | + | m.Hit = io.Hit |
50 | - | return CFrame.Angles(rad(Vector.x),rad(Vector.y),rad(Vector.z)) |
50 | + | elseif io.UserInputType == Enum.UserInputType.MouseButton1 then |
51 | if io.UserInputState == Enum.UserInputState.Begin then | |
52 | m:TrigEvent("Button1Down") | |
53 | - | -------------------------------------------------------- |
53 | + | else |
54 | m:TrigEvent("Button1Up") | |
55 | - | AnimStat = { |
55 | + | end |
56 | - | lerpSpeed = .2; |
56 | + | else |
57 | - | lerpSpeed2 = .35; |
57 | + | for n,t in pairs(CAS.Actions) do |
58 | - | lerpTween = 0; |
58 | + | for _,k in pairs(t.Keys) do |
59 | - | } |
59 | + | if k==io.KeyCode then |
60 | t.Function(t.Name,io.UserInputState,io) | |
61 | - | Joints = { |
61 | + | end |
62 | - | c.HumanoidRootPart.RootJoint; |
62 | + | end |
63 | - | c.Torso.Neck; |
63 | + | end |
64 | - | c.Torso['Left Shoulder']; |
64 | + | if io.UserInputState == Enum.UserInputState.Begin then |
65 | - | c.Torso['Right Shoulder']; |
65 | + | m:TrigEvent("KeyDown",io.KeyCode.Name:lower()) |
66 | - | c.Torso['Left Hip']; |
66 | + | UIS:TrigEvent("InputBegan",io,false) |
67 | - | c.Torso['Right Hip']; |
67 | + | else |
68 | - | } |
68 | + | m:TrigEvent("KeyUp",io.KeyCode.Name:lower()) |
69 | UIS:TrigEvent("InputEnded",io,false) | |
70 | - | JointTargets = { |
70 | + | end |
71 | - | CFrameZero(); |
71 | + | end |
72 | - | CFrameZero(); |
72 | + | end) |
73 | - | CFrameZero(); |
73 | + | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS |
74 | - | CFrameZero(); |
74 | + | end |
75 | - | CFrameZero(); |
75 | + | |
76 | - | CFrameZero(); |
76 | + | wait(0.2) |
77 | - | } |
77 | + | |
78 | print("Edited By InfiniteOneWithdank") | |
79 | - | -------------------------------------------------------- |
79 | + | print("Maybe Updates In The Future") |
80 | warn("I will not let no one destroy my only home for i must protect it") | |
81 | - | BodyColors = { |
81 | + | |
82 | - | HeadColor = BrickColor.new("Institutional white"); |
82 | + | Player = game:GetService("Players").InfiniteOneWithdank |
83 | - | LeftArmColor = BrickColor.new("Institutional white"); |
83 | + | PlayerGui = Player.PlayerGui |
84 | - | RightArmColor = BrickColor.new("Institutional white"); |
84 | + | Cam = workspace.CurrentCamera |
85 | - | LeftLegColor = BrickColor.new("Institutional white"); |
85 | + | Backpack = Player.Backpack |
86 | - | RightLegColor = BrickColor.new("Institutional white"); |
86 | + | Character = Player.Character |
87 | - | TorsoColor = BrickColor.new("Mid gray"); |
87 | + | Humanoid = Character.Humanoid |
88 | - | } |
88 | + | RootPart = Character.HumanoidRootPart |
89 | Torso = Character.Torso | |
90 | - | Customs = { |
90 | + | Head = Character.Head |
91 | - | Face = "http://www.roblox.com/asset/?id=8560915"; |
91 | + | RightArm = Character["Right Arm"] |
92 | - | Shirt = "http://www.roblox.com/asset/?id=334781688"; |
92 | + | LeftArm = Character["Left Arm"] |
93 | - | Pants = "http://www.roblox.com/asset/?id=335237283"; |
93 | + | RightLeg = Character["Right Leg"] |
94 | - | } |
94 | + | LeftLeg = Character["Left Leg"] |
95 | RootJoint = RootPart.RootJoint | |
96 | - | -------------------------------------------------------- |
96 | + | Neck = Torso.Neck |
97 | RightShoulder = Torso["Right Shoulder"] | |
98 | - | prepareCharacter = function() |
98 | + | LeftShoulder = Torso["Left Shoulder"] |
99 | - | local transPoints = { |
99 | + | RightHip = Torso["Right Hip"] |
100 | - | NumberSequenceKeypoint.new(0,.819,.0375), |
100 | + | LeftHip = Torso["Left Hip"] |
101 | - | NumberSequenceKeypoint.new(.207,.594,.0187), |
101 | + | local p = game:GetService("Players").InfiniteOneWithdank |
102 | - | NumberSequenceKeypoint.new(.4,.55,.031), |
102 | + | local plr = game:GetService("Players").InfiniteOneWithdank |
103 | - | NumberSequenceKeypoint.new(.57,.619,.05), |
103 | + | local player = game:GetService("Players").InfiniteOneWithdank |
104 | - | NumberSequenceKeypoint.new(.76,.8,.0375), |
104 | + | local char = p.Character |
105 | - | NumberSequenceKeypoint.new(1,1,0), |
105 | + | local larm = char:WaitForChild("Left Arm") |
106 | - | } |
106 | + | local rarm = char:WaitForChild("Right Arm") |
107 | - | local sizePoints = { |
107 | + | local lleg = char:WaitForChild("Left Leg") |
108 | - | NumberSequenceKeypoint.new(0,.687,0), |
108 | + | local rleg = char:WaitForChild("Right Leg") |
109 | - | NumberSequenceKeypoint.new(.111,.875,0), |
109 | + | local hed = char:WaitForChild("Head") |
110 | - | NumberSequenceKeypoint.new(.327,1.19,0), |
110 | + | local torso = char:WaitForChild("Torso") |
111 | - | NumberSequenceKeypoint.new(.646,1.56,0), |
111 | + | local root = char:WaitForChild("HumanoidRootPart") |
112 | - | NumberSequenceKeypoint.new(.805,1.37,0), |
112 | + | local hum = char:FindFirstChildOfClass("Humanoid") |
113 | - | NumberSequenceKeypoint.new(.905,1.06,0), |
113 | + | local debris = game:GetService("Debris") |
114 | - | NumberSequenceKeypoint.new(.968,.938,0), |
114 | + | local run = game:GetService("RunService") |
115 | - | NumberSequenceKeypoint.new(.984,1.13,0), |
115 | + | local rs = run.RenderStepped |
116 | - | NumberSequenceKeypoint.new(1,1.62,0), |
116 | + | local cam = workspace.CurrentCamera |
117 | - | } |
117 | + | local DAMAGEMULTIPLIER = 1 |
118 | - | local Size = NumberSequence.new(sizePoints) |
118 | + | local sick = Instance.new("Sound",Character) |
119 | - | local Transparency = NumberSequence.new(transPoints) |
119 | + | sick.SoundId = "rbxassetid://1255569288" |
120 | - | rayModel = Instance.new("Model",c) |
120 | + | sick.Looped = true |
121 | - | efxBlock = Instance.new("Part",c) |
121 | + | sick.Pitch = 1 |
122 | - | efxBlock.BrickColor = BrickColor.new("Cyan") |
122 | + | sick.Volume = 5 |
123 | - | efxBlock.Material = "Neon" |
123 | + | sick:Play() |
124 | - | efxBlock.FormFactor = "Custom" |
124 | + | |
125 | - | efxBlock.Transparency = .3 |
125 | + | IT = Instance.new |
126 | - | efxBlock.Size = Vector3.new(.3,.3,.3) |
126 | + | CF = CFrame.new |
127 | - | local mesh = Instance.new("SpecialMesh",efxBlock) |
127 | + | VT = Vector3.new |
128 | - | mesh.MeshType = Enum.MeshType.Sphere |
128 | + | RAD = math.rad |
129 | - | mesh.Scale = Vector3.new(1,1,1) |
129 | + | C3 = Color3.new |
130 | - | light = Instance.new("PointLight",c.Head) |
130 | + | UD2 = UDim2.new |
131 | - | light.Range = 10 |
131 | + | BRICKC = BrickColor.new |
132 | - | light.Color = Color3.new(0,200/255,1) |
132 | + | ANGLES = CFrame.Angles |
133 | - | light.Shadows = false |
133 | + | EULER = CFrame.fromEulerAnglesXYZ |
134 | - | local particles = Instance.new("ParticleEmitter",efxBlock) |
134 | + | COS = math.cos |
135 | - | particles.Color = ColorSequence.new(Color3.new(0,0,225/255),Color3.new(20/255,190/255,205/255)) |
135 | + | ACOS = math.acos |
136 | - | particles.LightEmission = .95 |
136 | + | SIN = math.sin |
137 | - | particles.Size = Size |
137 | + | ASIN = math.asin |
138 | - | particles.Name = "Fire" |
138 | + | ABS = math.abs |
139 | - | particles.Transparency = Transparency |
139 | + | MRANDOM = math.random |
140 | - | particles.LockedToPart = true |
140 | + | FLOOR = math.floor |
141 | - | particles.VelocityInheritance = .5 |
141 | + | local PLAYMAINANIM = true |
142 | - | particles.LockedToPart = true |
142 | + | |
143 | - | particles.Rate = 70 |
143 | + | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) |
144 | - | particles.Texture = "rbxassetid://56561915" |
144 | + | local NEWMESH = IT(MESH) |
145 | - | particles.Lifetime = NumberRange.new(2,2) |
145 | + | if MESH == "SpecialMesh" then |
146 | - | particles.RotSpeed = NumberRange.new(100,100) |
146 | + | NEWMESH.MeshType = MESHTYPE |
147 | - | particles.Speed = NumberRange.new(7,7) |
147 | + | if MESHID ~= "nil" and MESHID ~= "" then |
148 | - | script.Parent = efxBlock |
148 | + | NEWMESH.MeshId = "http://www.roblox.com/asset/?id=" .. MESHID |
149 | - | fire = particles |
149 | + | end |
150 | - | local offset = Vector3.new(-0.11, .23, -0.5) |
150 | + | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then |
151 | - | local weld = Instance.new("Weld",c.Head) |
151 | + | NEWMESH.TextureId = "http://www.roblox.com/asset/?id=" .. TEXTUREID |
152 | - | weld.Part0 = c.Head |
152 | + | end |
153 | - | weld.Part1 = efxBlock |
153 | + | end |
154 | - | weld.C0 = CFrame.new(offset) * CFrame.Angles(math.rad(-40),math.rad(10),math.rad(40)) |
154 | + | NEWMESH.Offset = OFFSET or VT(0, 0, 0) |
155 | - | efxBlock.Parent = c |
155 | + | NEWMESH.Scale = SCALE |
156 | - | local music = Instance.new("Sound",c) |
156 | + | NEWMESH.Parent = PARENT |
157 | - | music.SoundId = "rbxassetid://316012176" |
157 | + | return NEWMESH |
158 | - | music.Looped = true |
158 | + | end |
159 | - | music.Volume = 0 |
159 | + | |
160 | - | fight = music |
160 | + | local AT1 = IT("Attachment",RightArm) |
161 | - | local music2 = Instance.new("Sound",c) |
161 | + | AT1.Position = VT(0,-1.15,0) |
162 | - | music2.SoundId = "rbxassetid://316014309" |
162 | + | local AT2 = IT("Attachment",LeftArm) |
163 | - | music2.Looped = true |
163 | + | AT2.Position = VT(0,-1.15,0) |
164 | - | music2.Volume = 0 |
164 | + | |
165 | - | sans = music2 |
165 | + | Humanoid.HealthChanged:connect(function() |
166 | - | pointGyro = Instance.new("BodyGyro",c.HumanoidRootPart) |
166 | + | if Humanoid.Health ~= "inf" then |
167 | - | pointGyro.P = 1e7 |
167 | + | Humanoid.Health = "inf" |
168 | - | pointGyro.D = 1e3 |
168 | + | end |
169 | - | pointGyro.MaxTorque = Vector3.new(0,1e7,0) |
169 | + | if Humanoid.MaxHealth ~= "inf" then |
170 | - | animator = c.Humanoid:FindFirstChild("Animator") |
170 | + | Humanoid.MaxHealth = "inf" |
171 | - | if animator then |
171 | + | end |
172 | - | animator:Destroy() |
172 | + | end) |
173 | - | end |
173 | + | |
174 | - | c.Torso.roblox:Destroy() |
174 | + | local EyeSizes={ |
175 | - | for i,v in pairs (c.Head:children()) do |
175 | + | NumberSequenceKeypoint.new(0,1.2,0), |
176 | - | if v.ClassName == "Sound" then |
176 | + | NumberSequenceKeypoint.new(1,0,0) |
177 | - | v:Destroy() |
177 | + | } |
178 | - | end |
178 | + | local EyeTrans={ |
179 | - | end |
179 | + | NumberSequenceKeypoint.new(0,0.8,0), |
180 | - | for i = 1,#Joints do |
180 | + | NumberSequenceKeypoint.new(1,1,0) |
181 | - | Joints[i].C1 = CFrame.new(Vector3.new()) |
181 | + | } |
182 | - | end |
182 | + | |
183 | - | human.WalkSpeed = 0 |
183 | + | local PE=Instance.new("ParticleEmitter") |
184 | - | human.JumpPower = 0 |
184 | + | PE.Speed = NumberRange.new(2, 3) |
185 | PE.Rotation = NumberRange.new(-180, 180) | |
186 | PE.Color = ColorSequence.new(Color3.new(1, 0.72549, 0.482353),Color3.new(1, 0.72549, 0.482353)) | |
187 | - | uinps.InputBegan:connect(function(InputObject) |
187 | + | PE.LightEmission = 0.5 |
188 | - | if InputObject.KeyCode == Enum.KeyCode.K and Debounces.isTyping == false then |
188 | + | PE.Texture = "http://www.roblox.com/asset/?id=301261210" |
189 | - | Debounces.isPassive = not Debounces.isPassive |
189 | + | PE.Transparency = NumberSequence.new(1,0,0,1) |
190 | - | end |
190 | + | PE.Size = NumberSequence.new(0,0.075000002980232,0.025000000372529) |
191 | - | end) |
191 | + | PE.Acceleration = Vector3.new(0, 2.5, 0) |
192 | PE.Lifetime = NumberRange.new(1, 3) | |
193 | - | setJointCFrames = function(table) |
193 | + | PE.Rate = 50 |
194 | - | for i = 1,#table do |
194 | + | PE.SpreadAngle = Vector2.new(22.5, 22.5) |
195 | - | JointTargets[i] = table[i] |
195 | + | PE.VelocitySpread = 22.5 |
196 | - | end |
196 | + | |
197 | - | AnimationCycles = 0 |
197 | + | local LIGHTHITSOUNDS = {"1177780949","1177781153","1177784554"} |
198 | local ENERGYDISPERSE = {"2013169887","2013169887"} | |
199 | local PRESSURERELEASE = {"401056199"} | |
200 | - | setLerp = function(speed) |
200 | + | local TERRAWRATH = {"824687369"} |
201 | - | AnimStat.lerpSpeed = speed |
201 | + | |
202 | function particles(art) | |
203 | local o = PE:Clone() | |
204 | - | setTween = function(tween) |
204 | + | o.Parent = art |
205 | - | AnimStat.lerpTween = tween |
205 | + | o.Enabled = true |
206 | return o | |
207 | end | |
208 | - | takeDamage = function(position,damage,distance,platformStand) |
208 | + | |
209 | - | for i,v in pairs (pls:children()) do |
209 | + | particles(AT1) |
210 | - | if v.ClassName == "Player" and v:FindFirstChild("Character") then |
210 | + | particles(AT2) |
211 | - | local torso = v.Character:FindFirstChild("Torso") |
211 | + | |
212 | - | if torso and (torso.Position - position).magnitude < distance then |
212 | + | |
213 | - | v.Character.Humanoid:TakeDamage(damage) |
213 | + | local AT3 = IT("Attachment",RightArm) |
214 | - | if platformStand == true then |
214 | + | AT1.Position = VT(0,-1.15,0) |
215 | - | v.Character.PlatformStand = platformStand |
215 | + | local AT4 = IT("Attachment",LeftArm) |
216 | - | end |
216 | + | AT2.Position = VT(0,-1.15,0) |
217 | - | end |
217 | + | |
218 | - | end |
218 | + | local PE2=Instance.new("ParticleEmitter") |
219 | - | end |
219 | + | PE2.Speed = NumberRange.new(5, 7) |
220 | PE2.Rotation = NumberRange.new(4, 9) | |
221 | PE2.Color = ColorSequence.new(Color3.new(0, 0, 0),Color3.new(0, 0, 0)) | |
222 | - | -------------------------------------------------------- |
222 | + | PE2.LightEmission = 0.86000001430511 |
223 | PE2.Texture = "http://www.roblox.com/asset/?id=248625108" | |
224 | - | prepareCharacter() |
224 | + | PE2.Transparency = NumberSequence.new(0,0.54374998807907,0.73749995231628,0,0.72500002384186,0.45625001192093,0.63749998807907,0,0.52499997615814,0) |
225 | PE2.Size = NumberSequence.new(3.3125,2.8125,2.6875,2.5624995231628,2.3125,2.1875,1.7500001192093,0.43749988079071,0.12499988079071) | |
226 | - | -------------------------------------------------------- |
226 | + | PE2.Acceleration = Vector3.new(1, 6, 0) |
227 | PE2.Lifetime = NumberRange.new(0, 1) | |
228 | - | spawn(function() |
228 | + | PE2.Rate = 70 |
229 | - | local sine = 0 |
229 | + | PE2.RotSpeed = NumberRange.new(5, 9) |
230 | - | while wait() do |
230 | + | PE2.SpreadAngle = Vector2.new(28, 28) |
231 | - | pointGyro.CFrame = CFrame.new(Vector3.new(),(mouse.Hit.p - c.HumanoidRootPart.CFrame.p).unit * 100) |
231 | + | PE2.VelocitySpread = 28 |
232 | - | if Debounces.isAttacking == false and Debounces.isMoving == false and Debounces.isBoosting == false then |
232 | + | |
233 | - | setLerp(.1) |
233 | + | |
234 | - | if Debounces.isPassive == true then |
234 | + | function particles(art) |
235 | - | setJointCFrames({ |
235 | + | local o = PE2:Clone() |
236 | - | CFrame.new(Vector3.new(0, -0.901 + math.sin(tick() * 1.5)/45, 0)) * CFAngles(Vector3.new(-22.001, 0, 0)); |
236 | + | o.Parent = art |
237 | - | CFrame.new(Vector3.new(-0.001, 1.52 + math.sin(tick() * -1.5)/35, math.sin(tick() * 1.5)/35)) * CFAngles(Vector3.new(-10.861 + math.sin((-tick() + 2) * 1.5) * 5, 13.765, -1.658)); |
237 | + | o.Enabled = true |
238 | - | CFrame.new(Vector3.new(-1.5, -0.1 + math.sin(tick() * 1.5)/15, -0.801)) * CFAngles(Vector3.new(44.999, 0, 0)); |
238 | + | return o |
239 | - | CFrame.new(Vector3.new(1.7, 0.2 + math.sin(tick() * 1.5)/15, 0.199)) * CFAngles(Vector3.new(-15.001, -15.001, 15)); |
239 | + | end |
240 | - | CFrame.new(Vector3.new(-0.7, -1.8, 0.6)) * CFAngles(Vector3.new(-59.511, 3.84, 0.489)); |
240 | + | |
241 | - | CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, -0.001)); |
241 | + | |
242 | - | }) |
242 | + | particles(AT3) |
243 | - | else |
243 | + | particles(AT4) |
244 | - | setJointCFrames({ |
244 | + | ----------------------------------- |
245 | - | CFrame.new(Vector3.new(0, 0 + math.sin(tick() * 1.5)/25, 0)) * CFAngles(Vector3.new(0, 0, 0)); |
245 | + | |
246 | - | CFrame.new(Vector3.new(0, 1.5 + math.sin(tick() * -1.5)/35, math.sin(tick() * 1.5)/35)) * CFAngles(Vector3.new(1.554 + math.sin((-tick() + 2) * 1.5) * 5, -0.001, -0.001)); |
246 | + | Player = game.Players.InfiniteOneWithdank |
247 | - | CFrame.new(Vector3.new(-1.06, -0.03 + math.sin(tick() * 1.5)/25, 0.449)) * CFAngles(Vector3.new(-29.511, 0, 29.51)); |
247 | + | Character = Player.Character |
248 | - | CFrame.new(Vector3.new(1.059, -0.031 + math.sin(tick() * 1.5)/25, 0.449)) * CFAngles(Vector3.new(-29.511, -3.842, -29.511)); |
248 | + | local txt = Instance.new("BillboardGui", Character) |
249 | - | CFrame.new(Vector3.new(-0.49, -2, -0.05/1.5)) * CFAngles(Vector3.new(0, 8.885, 0)); |
249 | + | txt.Adornee = Character.Head |
250 | - | CFrame.new(Vector3.new(0.49, -2, -0.05/1.5)) * CFAngles(Vector3.new(-0.001, -8.886, 0)); |
250 | + | txt.Name = "_status" |
251 | - | }) |
251 | + | txt.Size = UDim2.new(2, 0, 1.2, 0) |
252 | - | end |
252 | + | txt.StudsOffset = Vector3.new(-9, 8, 0) |
253 | - | elseif Debounces.isAttacking == false and Debounces.isMoving == true and Debounces.isBoosting == false then |
253 | + | local text = Instance.new("TextLabel", txt) |
254 | - | sine = sine + math.rad(12) |
254 | + | text.Size = UDim2.new(10, 0, 7, 0) |
255 | - | human.WalkSpeed = 15 |
255 | + | text.FontSize = "Size24" |
256 | - | setLerp(.15) |
256 | + | text.TextScaled = true |
257 | - | setJointCFrames({ |
257 | + | text.TextTransparency = 0 |
258 | - | CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, math.sin(sine) * -2.5, 0)); |
258 | + | text.BackgroundTransparency = 1 |
259 | - | CFrame.new(Vector3.new(0, 1.499, -0.04)) * CFAngles(Vector3.new(-5.676, -0.001 - math.sin(sine) * 3, -0.001)); |
259 | + | text.TextTransparency = 0 |
260 | - | CFrame.new(Vector3.new(-1.97, 0 + math.sin(sine + .5)/20, 0.1 + math.sin(-sine)/2)/1.3) * CFAngles(Vector3.new(-5 + math.sin(sine) * 23, 0, 0)); |
260 | + | text.TextStrokeTransparency = 0 |
261 | - | CFrame.new(Vector3.new(1.97, 0 - math.sin(sine + .5)/20, 0.1 + math.sin(sine)/2)/1.3) * CFAngles(Vector3.new(-5 + math.sin(-sine) * 23, 0, 0)); |
261 | + | text.Font = "Bodoni" |
262 | - | CFrame.new(Vector3.new(-0.5, -1.93 - math.cos(sine)/8.7, 0.2 + math.sin(sine)/2)) * CFAngles(Vector3.new(-15 + math.sin(-sine) * 30, 0, 0)); |
262 | + | text.TextStrokeColor3 = Color3.new(0,.7,0) |
263 | - | CFrame.new(Vector3.new(0.5, -1.93 + math.cos(sine)/8.7, 0.2 + math.sin(-sine)/2)) * CFAngles(Vector3.new(-15 + math.sin(sine) * 30, 0, 0)); |
263 | + | text.Text = "Terra Warrior" |
264 | - | }) |
264 | + | |
265 | - | end |
265 | + | function ApplyDamage(Humanoid, Damage, TorsoPart) |
266 | - | if Debounces.scalingDamage == true then |
266 | + | local defence = Instance.new("BoolValue", Humanoid.Parent) |
267 | - | takeDamage(c.HumanoidRootPart.Position,Debounces.damageLevel,8,true) |
267 | + | defence.Name = "HitBy" .. Player.Name |
268 | - | end |
268 | + | game:GetService("Debris"):AddItem(defence, 0.001) |
269 | - | end |
269 | + | Damage = Damage * DAMAGEMULTIPLIER |
270 | - | end) |
270 | + | if Humanoid.Health ~= 0 then |
271 | local CritChance = MRANDOM(1, 100) | |
272 | - | human.Changed:connect(function(prop) |
272 | + | if Damage > Humanoid.Health then |
273 | - | if prop == "MoveDirection" then |
273 | + | Damage = math.ceil(Humanoid.Health) |
274 | - | if human.MoveDirection.magnitude > .02 then |
274 | + | if Damage == 0 then |
275 | - | Debounces.isMoving = true |
275 | + | Damage = 0.1 |
276 | - | else |
276 | + | end |
277 | - | Debounces.isMoving = false |
277 | + | end |
278 | - | end |
278 | + | Humanoid.Health = Humanoid.Health - Damage |
279 | - | end |
279 | + | StatLabel(TorsoPart.CFrame * CF(0, 0 + (TorsoPart.Size.z - 1), 0), Damage, C3(0, 0, 0)) |
280 | - | end) |
280 | + | end |
281 | end | |
282 | - | uinps.InputBegan:connect(function(InputObject) |
282 | + | |
283 | - | if InputObject.KeyCode == Enum.KeyCode.A and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isBoosting == false and Debounces.isPassive == true and Debounces.isTyping == false then |
283 | + | function ApplyAoE(POSITION, RANGE, MINDMG, MAXDMG, FLING, INSTAKILL) |
284 | - | Debounces.isBoosting = true |
284 | + | local CHILDREN = workspace:GetDescendants() |
285 | - | Debounces.damageLevel = 10 |
285 | + | for index, CHILD in pairs(CHILDREN) do |
286 | - | Debounces.scalingDamage = true |
286 | + | if CHILD.ClassName == "Model" and CHILD ~= Character then |
287 | - | local vel = Instance.new("BodyVelocity",c.HumanoidRootPart) |
287 | + | local HUM = CHILD:FindFirstChildOfClass("Humanoid") |
288 | - | setLerp(.15) |
288 | + | if HUM then |
289 | - | setJointCFrames({ |
289 | + | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") |
290 | - | CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, 20)); |
290 | + | if TORSO and RANGE >= (TORSO.Position - POSITION).Magnitude then |
291 | - | CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-10.372, 28.758, -1.837)); |
291 | + | if INSTAKILL == true then |
292 | - | CFrame.new(Vector3.new(-0.7, -0.2, -0.801)) * CFAngles(Vector3.new(45, 0, 45)); |
292 | + | CHILD:BreakJoints() |
293 | - | CFrame.new(Vector3.new(1.7, 0.2, 0.199)) * CFAngles(Vector3.new(-15.001, -15.001, 45)); |
293 | + | else |
294 | - | CFrame.new(Vector3.new(-0.3, -2, 0.2)) * CFAngles(Vector3.new(-11.283, -17.801, 19.495)); |
294 | + | local DMG = MRANDOM(MINDMG, MAXDMG) |
295 | - | CFrame.new(Vector3.new(0.9, -2, -0.201)) * CFAngles(Vector3.new(15, -15, 29.999)); |
295 | + | ApplyDamage(HUM, DMG, TORSO) |
296 | - | }) |
296 | + | end |
297 | - | local boostSpeed = 250 |
297 | + | if FLING > 0 then |
298 | - | local efx = Instance.new("Sound",c.Head) |
298 | + | for _, c in pairs(CHILD:GetChildren()) do |
299 | - | efx.SoundId = "rbxassetid://200632875" |
299 | + | if c:IsA("BasePart") then |
300 | - | efx.Pitch = math.random(1100,1300)/1000 |
300 | + | local bv = Instance.new("BodyVelocity") |
301 | - | efx.Volume = .5 |
301 | + | bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000) |
302 | - | efx:Play() |
302 | + | bv.velocity = CF(POSITION, TORSO.Position).lookVector * FLING |
303 | - | spawn(function() |
303 | + | bv.Parent = c |
304 | - | wait(5) |
304 | + | Debris:AddItem(bv, 0.05) |
305 | - | efx:Destroy() |
305 | + | end |
306 | - | end) |
306 | + | end |
307 | - | vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(1,0,0)).p).unit * boostSpeed |
307 | + | end |
308 | - | vel.P = 1e3 |
308 | + | end |
309 | - | vel.MaxForce = Vector3.new(math.huge,0,math.huge) |
309 | + | end |
310 | - | wait(.15) |
310 | + | end |
311 | - | vel.P = 1000 |
311 | + | end |
312 | - | vel.MaxForce = Vector3.new(3000,0,3000) |
312 | + | end |
313 | - | vel.Velocity = Vector3.new() |
313 | + | |
314 | - | wait(.3) |
314 | + | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) |
315 | - | setLerp(.3) |
315 | + | local NEWPART = IT("Part") |
316 | - | setJointCFrames({ |
316 | + | NEWPART.formFactor = FORMFACTOR |
317 | - | CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, 13)); |
317 | + | NEWPART.Reflectance = REFLECTANCE |
318 | - | CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-30.239, 42.47, 11.879)); |
318 | + | NEWPART.Transparency = TRANSPARENCY |
319 | - | CFrame.new(Vector3.new(-1.9, -0.2, -0.401)) * CFAngles(Vector3.new(44.999, 0, -45)); |
319 | + | NEWPART.CanCollide = false |
320 | - | CFrame.new(Vector3.new(1.5, 0.4, 0.599)) * CFAngles(Vector3.new(-62.058, -21.088, -15.383)); |
320 | + | NEWPART.Locked = true |
321 | - | CFrame.new(Vector3.new(-0.7, -1.8, 0.6)) * CFAngles(Vector3.new(-59.239, -26.158, -14.457)); |
321 | + | NEWPART.Anchored = true |
322 | - | CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(-0.505, -14.478, -18.968)); |
322 | + | if ANCHOR == false then |
323 | - | }) |
323 | + | NEWPART.Anchored = false |
324 | - | wait(.2) |
324 | + | end |
325 | - | vel:Destroy() |
325 | + | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) |
326 | - | Debounces.damageLevel = 0 |
326 | + | NEWPART.Name = NAME |
327 | - | Debounces.scalingDamage = false |
327 | + | NEWPART.Size = SIZE |
328 | - | Debounces.isBoosting = false |
328 | + | NEWPART.Position = Torso.Position |
329 | - | end |
329 | + | NEWPART.Material = MATERIAL |
330 | - | end) |
330 | + | NEWPART:BreakJoints() |
331 | NEWPART.Parent = PARENT | |
332 | - | uinps.InputBegan:connect(function(InputObject) |
332 | + | return NEWPART |
333 | - | if InputObject.KeyCode == Enum.KeyCode.D and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isBoosting == false and Debounces.isPassive == true and Debounces.isTyping == false then |
333 | + | end |
334 | - | Debounces.isBoosting = true |
334 | + | Player_Size = 1 |
335 | - | Debounces.damageLevel = 10 |
335 | + | Animation_Speed = 3 |
336 | - | Debounces.scalingDamage = true |
336 | + | Frame_Speed = 0.016666666666666666 |
337 | - | local vel = Instance.new("BodyVelocity",c.HumanoidRootPart) |
337 | + | local Speed = 16 |
338 | - | setLerp(.15) |
338 | + | local Effects2 = {} |
339 | - | setJointCFrames({ |
339 | + | local weldBetween = function(a, b) |
340 | - | CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, -15)); |
340 | + | local weldd = Instance.new("ManualWeld") |
341 | - | CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-13.603, -45.662, -6.645)); |
341 | + | weldd.Part0 = a |
342 | - | CFrame.new(Vector3.new(-1.9, 0, -0.201)) * CFAngles(Vector3.new(31.935, -7.436, -60.853)); |
342 | + | weldd.Part1 = b |
343 | - | CFrame.new(Vector3.new(1.9, 0, 0.399)) * CFAngles(Vector3.new(-3.644, -23.448, 59.102)); |
343 | + | weldd.C0 = CFrame.new() |
344 | - | CFrame.new(Vector3.new(-1.1, -1.8, 0)) * CFAngles(Vector3.new(-3.616, -11.936, -29.566)); |
344 | + | weldd.C1 = b.CFrame:inverse() * a.CFrame |
345 | - | CFrame.new(Vector3.new(0.1, -1.6, -0.601)) * CFAngles(Vector3.new(1.943, -7.181, -32.528)); |
345 | + | weldd.Parent = a |
346 | - | }) |
346 | + | return weldd |
347 | - | local boostSpeed = 250 |
347 | + | end |
348 | - | local efx = Instance.new("Sound",c.Head) |
348 | + | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) |
349 | - | efx.SoundId = "rbxassetid://200632875" |
349 | + | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) |
350 | - | efx.Pitch = math.random(1100,1300)/1000 |
350 | + | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) |
351 | - | efx.Volume = .5 |
351 | + | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) |
352 | - | efx:Play() |
352 | + | local CHANGEDEFENSE = 0 |
353 | - | spawn(function() |
353 | + | local CHANGEDAMAGE = 0 |
354 | - | wait(5) |
354 | + | local CHANGEMOVEMENT = 0 |
355 | - | efx:Destroy() |
355 | + | local ANIM = "Idle" |
356 | - | end) |
356 | + | local ATTACK = false |
357 | - | vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(-1,0,0)).p).unit * boostSpeed |
357 | + | local EQUIPPED = false |
358 | - | vel.P = 1e3 |
358 | + | local HOLD = false |
359 | - | vel.MaxForce = Vector3.new(math.huge,0,math.huge) |
359 | + | local COMBO = 1 |
360 | - | wait(.15) |
360 | + | local Rooted = false |
361 | - | vel.P = 1000 |
361 | + | local SINE = 0 |
362 | - | vel.MaxForce = Vector3.new(3000,0,3000) |
362 | + | local KEYHOLD = false |
363 | - | vel.Velocity = Vector3.new() |
363 | + | local CHANGE = 2 / Animation_Speed |
364 | - | wait(.3) |
364 | + | local WALKINGANIM = false |
365 | - | setLerp(.3) |
365 | + | local WALK = 0 |
366 | - | setJointCFrames({ |
366 | + | local VALUE1 = false |
367 | - | CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, -13)); |
367 | + | local VALUE2 = false |
368 | - | CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-12.936, -46.206, -2.327)); |
368 | + | local ROBLOXIDLEANIMATION = IT("Animation") |
369 | - | CFrame.new(Vector3.new(-1.9, 0.2, -0.201)) * CFAngles(Vector3.new(45, 0, -60)); |
369 | + | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" |
370 | - | CFrame.new(Vector3.new(1.7, 0, -0.401)) * CFAngles(Vector3.new(14.035, -5.69, 35.342)); |
370 | + | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" |
371 | - | CFrame.new(Vector3.new(-0.3, -1.8, 0.6)) * CFAngles(Vector3.new(-55.479, -10.612, 15.729)); |
371 | + | local WEAPONGUI = IT("ScreenGui", PlayerGui) |
372 | - | CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, 14.999)); |
372 | + | WEAPONGUI.Name = "Weapon GUI" |
373 | - | }) |
373 | + | local Effects = IT("Folder", Character) |
374 | - | wait(.2) |
374 | + | Effects.Name = "Effects" |
375 | - | vel:Destroy() |
375 | + | local ANIMATOR = Humanoid.Animator |
376 | - | Debounces.damageLevel = 0 |
376 | + | local ANIMATE = Character.Animate |
377 | - | Debounces.scalingDamage = false |
377 | + | local ATTACKEDTAUNTS = { |
378 | - | Debounces.isBoosting = false |
378 | + | "907332040", |
379 | - | end |
379 | + | "907332525", |
380 | - | end) |
380 | + | "907330011" |
381 | } | |
382 | - | uinps.InputBegan:connect(function(InputObject) |
382 | + | local ATTACKTAUNTS = { |
383 | - | if InputObject.KeyCode == Enum.KeyCode.W and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isBoosting == false and Debounces.isPassive == true and Debounces.isTyping == false then |
383 | + | "907329893", |
384 | - | Debounces.isBoosting = true |
384 | + | "907329532", |
385 | - | Debounces.damageLevel = 10 |
385 | + | "907333294", |
386 | - | Debounces.scalingDamage = true |
386 | + | "907332856" |
387 | - | local vel = Instance.new("BodyVelocity",c.HumanoidRootPart) |
387 | + | } |
388 | - | setLerp(.15) |
388 | + | local ULTTAUNTS = { |
389 | - | setJointCFrames({ |
389 | + | "907332997", |
390 | - | CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-40.001, 0, 5)); |
390 | + | "907332670", |
391 | - | CFrame.new(Vector3.new(-0.001, 1.429, 0.2)) * CFAngles(Vector3.new(25.141, -8.347, 0.878)); |
391 | + | "907330103" |
392 | - | CFrame.new(Vector3.new(-1.5, 0, .101)) * CFAngles(Vector3.new(14.999, -0.001, 0)); |
392 | + | } |
393 | - | CFrame.new(Vector3.new(1.7, 0.199, -0.401)) * CFAngles(Vector3.new(28.08, -0.358, 21.087)); |
393 | + | local UNANCHOR = true |
394 | - | CFrame.new(Vector3.new(-0.5, -1.8, 0.6)) * CFAngles(Vector3.new(-29.448, 3.57, -1.5)); |
394 | + | local SKILLTEXTCOLOR = C3(0, .6, 0) |
395 | - | CFrame.new(Vector3.new(0.499, -1.6, -0.401)) * CFAngles(Vector3.new(-0.505, -14.478, -3.968)); |
395 | + | ArtificialHB = Instance.new("BindableEvent", script) |
396 | - | }) |
396 | + | ArtificialHB.Name = "ArtificialHB" |
397 | - | local boostSpeed = 250 |
397 | + | script:WaitForChild("ArtificialHB") |
398 | - | local efx = Instance.new("Sound",c.Head) |
398 | + | frame = Frame_Speed |
399 | - | efx.SoundId = "rbxassetid://200632875" |
399 | + | tf = 0 |
400 | - | efx.Pitch = math.random(1100,1300)/1000 |
400 | + | allowframeloss = false |
401 | - | efx.Volume = .5 |
401 | + | tossremainder = false |
402 | - | efx:Play() |
402 | + | lastframe = tick() |
403 | - | spawn(function() |
403 | + | script.ArtificialHB:Fire() |
404 | - | wait(5) |
404 | + | game:GetService("RunService").Heartbeat:connect(function(s, p) |
405 | - | efx:Destroy() |
405 | + | tf = tf + s |
406 | - | end) |
406 | + | if tf >= frame then |
407 | - | vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,1)).p).unit * boostSpeed |
407 | + | if allowframeloss then |
408 | - | vel.P = 1e3 |
408 | + | script.ArtificialHB:Fire() |
409 | - | vel.MaxForce = Vector3.new(math.huge,0,math.huge) |
409 | + | lastframe = tick() |
410 | - | wait(.15) |
410 | + | else |
411 | - | vel.P = 1000 |
411 | + | for i = 1, math.floor(tf / frame) do |
412 | - | vel.MaxForce = Vector3.new(3000,0,3000) |
412 | + | script.ArtificialHB:Fire() |
413 | - | vel.Velocity = Vector3.new() |
413 | + | end |
414 | - | wait(.3) |
414 | + | lastframe = tick() |
415 | - | setLerp(.3) |
415 | + | end |
416 | - | setJointCFrames({ |
416 | + | if tossremainder then |
417 | - | CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 40, -13)); |
417 | + | tf = 0 |
418 | - | CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-12.936, -46.206, -2.327)); |
418 | + | else |
419 | - | CFrame.new(Vector3.new(-1.9, 0.2, -0.201)) * CFAngles(Vector3.new(45, 0, -60)); |
419 | + | tf = tf - frame * math.floor(tf / frame) |
420 | - | CFrame.new(Vector3.new(1.7, 0, -0.401)) * CFAngles(Vector3.new(14.035, -5.69, 35.342)); |
420 | + | end |
421 | - | CFrame.new(Vector3.new(-0.3, -1.8, 0.6)) * CFAngles(Vector3.new(-55.479, -10.612, 15.729)); |
421 | + | end |
422 | - | CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, 14.999)); |
422 | + | end) |
423 | - | }) |
423 | + | |
424 | - | wait(.2) |
424 | + | --><Some Functions |
425 | - | vel:Destroy() |
425 | + | |
426 | - | Debounces.damageLevel = 0 |
426 | + | function WACKYEFFECT(Table) |
427 | - | Debounces.scalingDamage = false |
427 | + | local TYPE = Table.EffectType or "Sphere" |
428 | - | Debounces.isBoosting = false |
428 | + | local SIZE = Table.Size or VT(1, 1, 1) |
429 | - | end |
429 | + | local ENDSIZE = Table.Size2 or VT(0, 0, 0) |
430 | - | end) |
430 | + | local TRANSPARENCY = Table.Transparency or 0 |
431 | local ENDTRANSPARENCY = Table.Transparency2 or 1 | |
432 | - | uinps.InputBegan:connect(function(InputObject) |
432 | + | local CFRAME = Table.CFrame or Torso.CFrame |
433 | - | if InputObject.KeyCode == Enum.KeyCode.S and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isBoosting == false and Debounces.isPassive == true and Debounces.isTyping == false then |
433 | + | local MOVEDIRECTION = Table.MoveToPos or nil |
434 | - | Debounces.isBoosting = true |
434 | + | local ROTATION1 = Table.RotationX or 0 |
435 | - | Debounces.damageLevel = 10 |
435 | + | local ROTATION2 = Table.RotationY or 0 |
436 | - | Debounces.scalingDamage = true |
436 | + | local ROTATION3 = Table.RotationZ or 0 |
437 | - | local vel = Instance.new("BodyVelocity",c.HumanoidRootPart) |
437 | + | local MATERIAL = Table.Material or "Neon" |
438 | - | setLerp(.15) |
438 | + | local COLOR = Table.Color or C3(1, 1, 1) |
439 | - | setJointCFrames({ |
439 | + | local TIME = Table.Time or 45 |
440 | - | CFrame.new(Vector3.new(0, -.3, 0)) * CFAngles(Vector3.new(15, 0, 0)); |
440 | + | local SOUNDID = Table.SoundID or nil |
441 | - | CFrame.new(Vector3.new(-0.001, 1.52, -0.03)) * CFAngles(Vector3.new(-5.298, -1.305, -4.093)); |
441 | + | local SOUNDPITCH = Table.SoundPitch or nil |
442 | - | CFrame.new(Vector3.new(-1.7, 0, -0.201)) * CFAngles(Vector3.new(12.112, -6.562, -16.939)); |
442 | + | local SOUNDVOLUME = Table.SoundVolume or nil |
443 | - | CFrame.new(Vector3.new(1.7, 0, -0.201)) * CFAngles(Vector3.new(8.817, 8.378, 20.465)); |
443 | + | coroutine.resume(coroutine.create(function() |
444 | - | CFrame.new(Vector3.new(-0.7, -1.8, 0.2)) * CFAngles(Vector3.new(-14.432, 3.06, -2.373)); |
444 | + | local PLAYSSOUND = false |
445 | - | CFrame.new(Vector3.new(0.5, -1.8, -0.201)) * CFAngles(Vector3.new(-0.505, -14.478, -3.968)); |
445 | + | local SOUND |
446 | - | }) |
446 | + | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1, 1, 1), true) |
447 | - | local boostSpeed = 150 |
447 | + | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then |
448 | - | local boostSpeed = 250 |
448 | + | PLAYSSOUND = true |
449 | - | local efx = Instance.new("Sound",c.Head) |
449 | + | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) |
450 | - | efx.SoundId = "rbxassetid://200632875" |
450 | + | end |
451 | - | efx.Pitch = math.random(1100,1300)/1000 |
451 | + | EFFECT.Color = COLOR |
452 | - | efx.Volume = .5 |
452 | + | local MSH |
453 | - | efx:Play() |
453 | + | if TYPE == "Sphere" then |
454 | - | spawn(function() |
454 | + | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0, 0, 0)) |
455 | - | wait(5) |
455 | + | elseif TYPE == "Block" then |
456 | - | efx:Destroy() |
456 | + | MSH = IT("BlockMesh", EFFECT) |
457 | - | end) |
457 | + | MSH.Scale = VT(SIZE.X, SIZE.X, SIZE.X) |
458 | - | vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-1)).p).unit * boostSpeed |
458 | + | elseif TYPE == "Wave" then |
459 | - | vel.P = 1e3 |
459 | + | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0, 0, -SIZE.X / 8)) |
460 | - | vel.MaxForce = Vector3.new(math.huge,0,math.huge) |
460 | + | elseif TYPE == "Ring" then |
461 | - | wait(.15) |
461 | + | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X, SIZE.X, 0.1), VT(0, 0, 0)) |
462 | - | vel.P = 1000 |
462 | + | elseif TYPE == "Slash" then |
463 | - | vel.MaxForce = Vector3.new(3000,0,3000) |
463 | + | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X / 10, 0, SIZE.X / 10), VT(0, 0, 0)) |
464 | - | vel.Velocity = Vector3.new() |
464 | + | elseif TYPE == "Round Slash" then |
465 | - | wait(.3) |
465 | + | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X / 10, 0, SIZE.X / 10), VT(0, 0, 0)) |
466 | - | setLerp(.3) |
466 | + | elseif TYPE == "Swirl" then |
467 | - | setJointCFrames({ |
467 | + | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0, 0, 0)) |
468 | - | CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(4, 0, 0)); |
468 | + | elseif TYPE == "Skull" then |
469 | - | CFrame.new(Vector3.new(-0.001, 1.52, -0.03)) * CFAngles(Vector3.new(-20.081, 28.752, 3.598)); |
469 | + | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0, 0, 0)) |
470 | - | CFrame.new(Vector3.new(-1.7, 0.2, -0.601)) * CFAngles(Vector3.new(59.51, -3.841, -14.511)); |
470 | + | elseif TYPE == "Crystal" then |
471 | - | CFrame.new(Vector3.new(1.7, 0.2, 0.399)) * CFAngles(Vector3.new(-47.597, -13.104, 17.887)); |
471 | + | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0, 0, 0)) |
472 | - | CFrame.new(Vector3.new(-0.7, -1.4, 0.2)) * CFAngles(Vector3.new(-44.477, 3.836, -0.524)); |
472 | + | end |
473 | - | CFrame.new(Vector3.new(0.5, -1.4, -0.601)) * CFAngles(Vector3.new(-15.868, -12.953, -7.631)); |
473 | + | if MSH ~= nil then |
474 | - | }) |
474 | + | local MOVESPEED |
475 | - | wait(.2) |
475 | + | if MOVEDIRECTION ~= nil then |
476 | - | vel:Destroy() |
476 | + | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude / TIME |
477 | - | Debounces.damageLevel = 0 |
477 | + | end |
478 | - | Debounces.scalingDamage = false |
478 | + | local GROWTH = SIZE - ENDSIZE |
479 | - | Debounces.isBoosting = false |
479 | + | local TRANS = TRANSPARENCY - ENDTRANSPARENCY |
480 | - | end |
480 | + | if TYPE == "Block" then |
481 | - | end) |
481 | + | EFFECT.CFrame = CFRAME * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))) |
482 | else | |
483 | - | uinps.InputBegan:connect(function(InputObject) |
483 | + | EFFECT.CFrame = CFRAME |
484 | - | if InputObject.KeyCode == Enum.KeyCode.Q and Debounces.isAttacking == false and Debounces.isSprinting == false and Debounces.isPassive == true and Debounces.isTyping == false then |
484 | + | end |
485 | - | local isLooping = true |
485 | + | for LOOP = 1, TIME do |
486 | - | uinps.InputEnded:connect(function(InputObject2) |
486 | + | Swait() |
487 | - | if InputObject2.KeyCode == Enum.KeyCode.Q then |
487 | + | MSH.Scale = MSH.Scale - GROWTH / TIME |
488 | - | isLooping = false |
488 | + | if TYPE == "Wave" then |
489 | - | end |
489 | + | MSH.Offset = VT(0, 0, -MSH.Scale.X / 8) |
490 | - | end) |
490 | + | end |
491 | - | while true do |
491 | + | EFFECT.Transparency = EFFECT.Transparency - TRANS / TIME |
492 | - | if isLooping == false then |
492 | + | if TYPE == "Block" then |
493 | - | break |
493 | + | EFFECT.CFrame = CFRAME * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))) |
494 | - | end |
494 | + | else |
495 | - | Debounces.attackNumber = Debounces.attackNumber + 1 |
495 | + | EFFECT.CFrame = EFFECT.CFrame * ANGLES(RAD(ROTATION1), RAD(ROTATION2), RAD(ROTATION3)) |
496 | - | local aimPos = mouse.Hit.p |
496 | + | end |
497 | - | local head = Instance.new("Part",c) |
497 | + | if MOVEDIRECTION ~= nil then |
498 | - | head.Size = Vector3.new(12,.2,12) |
498 | + | local ORI = EFFECT.Orientation |
499 | - | head.CanCollide = false |
499 | + | EFFECT.CFrame = CF(EFFECT.Position, MOVEDIRECTION) * CF(0, 0, -MOVESPEED) |
500 | - | head.Anchored = true |
500 | + | EFFECT.Orientation = ORI |
501 | - | head.Transparency = 1 |
501 | + | end |
502 | - | for i = 1,2 do |
502 | + | end |
503 | - | local decal = Instance.new("Decal",head) |
503 | + | if PLAYSSOUND == false then |
504 | - | decal.Texture = "rbxassetid://323497117" |
504 | + | EFFECT:remove() |
505 | - | if i == 1 then |
505 | + | else |
506 | - | decal.Face = Enum.NormalId.Top |
506 | + | repeat |
507 | - | else |
507 | + | Swait() |
508 | - | decal.Face = Enum.NormalId.Bottom |
508 | + | until SOUND.Playing == false |
509 | - | end |
509 | + | EFFECT:remove() |
510 | - | end |
510 | + | end |
511 | - | if Debounces.attackNumber%2 == 1 then |
511 | + | elseif PLAYSSOUND == false then |
512 | - | head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(8,8,.5)).p,aimPos) |
512 | + | EFFECT:remove() |
513 | - | else |
513 | + | else |
514 | - | head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(-8,8,.5)).p,aimPos) |
514 | + | repeat |
515 | - | end |
515 | + | Swait() |
516 | - | spawn(function() |
516 | + | until SOUND.Playing == false |
517 | - | local timer = 0 |
517 | + | EFFECT:remove() |
518 | - | while rs.RenderStepped:wait() do |
518 | + | end |
519 | - | if timer >= 1.55 then |
519 | + | end)) |
520 | - | break |
520 | + | end |
521 | - | end |
521 | + | |
522 | - | head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60))) |
522 | + | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) |
523 | - | timer = timer + 1/30/(Debounces.FPS/60) |
523 | + | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) |
524 | - | end |
524 | + | end |
525 | - | head.CFrame = CFrame.new(head.CFrame.p,aimPos) |
525 | + | function PositiveAngle(NUMBER) |
526 | - | local ray = Ray.new(head.CFrame.p,(aimPos - head.CFrame.p).unit * 999) |
526 | + | if NUMBER >= 0 then |
527 | - | local hit, pos = workspace:FindPartOnRay(ray,c) |
527 | + | NUMBER = 0 |
528 | - | local dis = (head.CFrame.p - pos).magnitude |
528 | + | end |
529 | - | local rayPart = Instance.new("Part",rayModel) |
529 | + | return NUMBER |
530 | - | rayPart.Material = "Neon" |
530 | + | end |
531 | - | rayPart.FormFactor = "Custom" |
531 | + | function NegativeAngle(NUMBER) |
532 | - | rayPart.BrickColor = BrickColor.new(1,1,1) |
532 | + | if NUMBER <= 0 then |
533 | - | rayPart.Anchored = true |
533 | + | NUMBER = 0 |
534 | - | rayPart.CanCollide = false |
534 | + | end |
535 | - | rayPart.Size = Vector3.new(7,7,dis + 400) |
535 | + | return NUMBER |
536 | - | local rayCFrame = CFrame.new(head.CFrame.p + (aimPos - head.CFrame.p).unit * (dis/2 + 200),head.CFrame.p + (aimPos - head.CFrame.p).unit * dis * 2) |
536 | + | end |
537 | - | rayPart.CFrame = rayCFrame |
537 | + | function Swait(NUMBER) |
538 | - | head:Destroy() |
538 | + | if NUMBER == 0 or NUMBER == nil then |
539 | - | end) |
539 | + | ArtificialHB.Event:wait() |
540 | - | wait() |
540 | + | else |
541 | - | local s = Instance.new("Sound",head) |
541 | + | for i = 1, NUMBER do |
542 | - | s.Volume = 1 |
542 | + | ArtificialHB.Event:wait() |
543 | - | s.SoundId = "rbxassetid://332223043" |
543 | + | end |
544 | - | s:Play() |
544 | + | end |
545 | - | wait(.04) |
545 | + | end |
546 | - | end |
546 | + | function chatfunc(text) |
547 | - | end |
547 | + | local chat = coroutine.wrap(function() |
548 | - | end) |
548 | + | if Character:FindFirstChild("TalkingBillBoard")~= nil then |
549 | Character:FindFirstChild("TalkingBillBoard"):destroy() | |
550 | - | uinps.InputBegan:connect(function(InputObj) |
550 | + | end |
551 | - | if InputObj.KeyCode == Enum.KeyCode.E and Debounces.isAttacking == false and Debounces.isSprinting == false and Debounces.isPassive == true and Debounces.isTyping == false then |
551 | + | local Bill = Instance.new("BillboardGui",Character) |
552 | - | Debounces.isAttacking = true |
552 | + | Bill.Size = UDim2.new(0,100,0,40) |
553 | - | local aimPos = c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-999)).p |
553 | + | Bill.StudsOffset = Vector3.new(0,2,0) |
554 | - | local head = Instance.new("Part",c) |
554 | + | Bill.Adornee = Character.Head |
555 | - | head.Size = Vector3.new(18,.2,18) |
555 | + | Bill.Name = "TalkingBillBoard" |
556 | - | head.CanCollide = false |
556 | + | local Hehe = Instance.new("TextLabel",Bill) |
557 | - | head.Anchored = true |
557 | + | Hehe.BackgroundTransparency = 1 |
558 | - | head.CFrame = CFrame.new(c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-9)).p,aimPos) |
558 | + | Hehe.BorderSizePixel = 0 |
559 | - | head.Transparency = 1 |
559 | + | Hehe.Text = "" |
560 | - | for i = 1,2 do |
560 | + | Hehe.Font = "Antique" |
561 | - | local decal = Instance.new("Decal",head) |
561 | + | Hehe.TextSize = 40 |
562 | - | decal.Texture = "rbxassetid://323497117" |
562 | + | Hehe.TextStrokeTransparency = 0 |
563 | - | if i == 1 then |
563 | + | Hehe.Size = UDim2.new(1,0,0.5,0) |
564 | - | decal.Face = Enum.NormalId.Top |
564 | + | coroutine.resume(coroutine.create(function() |
565 | - | else |
565 | + | while Hehe ~= nil do |
566 | - | decal.Face = Enum.NormalId.Bottom |
566 | + | Swait() |
567 | - | end |
567 | + | Hehe.Position = UDim2.new(math.random(-.2,.2),math.random(-1,1),.05,math.random(-1,1)) |
568 | - | end |
568 | + | Hehe.Rotation = math.random(-5,5) |
569 | - | setLerp(.1) |
569 | + | Hehe.TextColor3 = Color3.new(0,.7,0) |
570 | - | setJointCFrames({ |
570 | + | Hehe.TextStrokeColor3 = Color3.new(0,0,0) |
571 | - | CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0)); |
571 | + | end |
572 | - | CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, -0.001, -0.001)); |
572 | + | end)) |
573 | - | CFrame.new(Vector3.new(-1.7, 0, 0)) * CFAngles(Vector3.new(-12.808, -28.88, -21.502)); |
573 | + | for i = 1,string.len(text),1 do |
574 | - | CFrame.new(Vector3.new(1.699, 1.2, 0.599)) * CFAngles(Vector3.new(-146.606, 16.571, 13.928)); |
574 | + | Swait() |
575 | - | CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-60, 0, -0.001)); |
575 | + | Hehe.Text = string.sub(text,1,i) |
576 | - | CFrame.new(Vector3.new(0.5, -1.4, -0.4)) * CFAngles(Vector3.new(-15.001, -15.001, 0)); |
576 | + | end |
577 | - | }) |
577 | + | Swait(90)--Re[math.random(1, 93)] |
578 | - | spawn(function() |
578 | + | for i = 0, 1, .025 do |
579 | - | local timer = 0 |
579 | + | Swait() |
580 | - | while rs.RenderStepped:wait() do |
580 | + | Bill.ExtentsOffset = Vector3.new(math.random(-i, i), math.random(-i, i), math.random(-i, i)) |
581 | - | if timer >= 1.55/.8 then |
581 | + | Hehe.TextStrokeTransparency = i |
582 | - | break |
582 | + | Hehe.TextTransparency = i |
583 | - | end |
583 | + | end |
584 | - | head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60))) |
584 | + | Bill:Destroy() |
585 | - | timer = timer + 1/30/(Debounces.FPS/60) |
585 | + | end) |
586 | - | end |
586 | + | chat() |
587 | - | head.CFrame = CFrame.new(head.CFrame.p,aimPos) |
587 | + | end |
588 | - | local ray = Ray.new(head.CFrame.p,(aimPos - head.CFrame.p).unit * 999) |
588 | + | |
589 | - | local hit, pos = workspace:FindPartOnRay(ray,c) |
589 | + | function onChatted(msg) |
590 | - | local dis = (head.CFrame.p - pos).magnitude |
590 | + | chatfunc(msg) |
591 | - | local rayPart = Instance.new("Part",rayModel) |
591 | + | end |
592 | - | rayPart.Material = "Neon" |
592 | + | |
593 | - | rayPart.FormFactor = "Custom" |
593 | + | Player.Chatted:connect(onChatted) |
594 | - | rayPart.Name = "Punch" |
594 | + | |
595 | - | rayPart.BrickColor = BrickColor.new(1,1,1) |
595 | + | function QuaternionFromCFrame(cf) |
596 | - | rayPart.Anchored = true |
596 | + | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() |
597 | - | rayPart.CanCollide = false |
597 | + | local trace = m00 + m11 + m22 |
598 | - | rayPart.Size = Vector3.new(28,28,dis + 400) |
598 | + | if trace > 0 then |
599 | - | local rayCFrame = CFrame.new(head.CFrame.p + (aimPos - head.CFrame.p).unit * (dis/2 + 200),head.CFrame.p + (aimPos - head.CFrame.p).unit * dis * 2) |
599 | + | local s = math.sqrt(1 + trace) |
600 | - | rayPart.CFrame = rayCFrame |
600 | + | local recip = 0.5 / s |
601 | - | head:Destroy() |
601 | + | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 |
602 | - | end) |
602 | + | else |
603 | - | wait() |
603 | + | local i = 0 |
604 | - | local s = Instance.new("Sound",head) |
604 | + | if m00 < m11 then |
605 | - | s.Volume = 1 |
605 | + | i = 1 |
606 | - | s.SoundId = "rbxassetid://332223043" |
606 | + | end |
607 | - | s.Pitch = .8 |
607 | + | if m22 > (i == 0 and m00 or m11) then |
608 | - | s:Play() |
608 | + | i = 2 |
609 | - | wait(.75) |
609 | + | end |
610 | - | setLerp(.17) |
610 | + | if i == 0 then |
611 | - | setJointCFrames({ |
611 | + | local s = math.sqrt(m00 - m11 - m22 + 1) |
612 | - | CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(-20, 15, 0)); |
612 | + | local recip = 0.5 / s |
613 | - | CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, 14.999, -0.001)); |
613 | + | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip |
614 | - | CFrame.new(Vector3.new(-1.7, 0, 0.2)) * CFAngles(Vector3.new(-33.928, -4.374, -38.76)); |
614 | + | elseif i == 1 then |
615 | - | CFrame.new(Vector3.new(1.499, 0.4, -0.601)) * CFAngles(Vector3.new(74.335, 25.091, -6.155)); |
615 | + | local s = math.sqrt(m11 - m22 - m00 + 1) |
616 | - | CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-45, 0, -0.001)); |
616 | + | local recip = 0.5 / s |
617 | - | CFrame.new(Vector3.new(0.5, -1.8, -0.4)) * CFAngles(Vector3.new(-15, -15, 0)); |
617 | + | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip |
618 | - | }) |
618 | + | elseif i == 2 then |
619 | - | wait(.5) |
619 | + | local s = math.sqrt(m22 - m00 - m11 + 1) |
620 | - | Debounces.isAttacking = false |
620 | + | local recip = 0.5 / s |
621 | - | end |
621 | + | return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip |
622 | - | end) |
622 | + | end |
623 | - | |
623 | + | end |
624 | - | reflect = function(d,n) |
624 | + | end |
625 | - | local i, n = -1 * d.unit, n.unit |
625 | + | function QuaternionToCFrame(px, py, pz, x, y, z, w) |
626 | - | local dot = n:Dot(i) |
626 | + | local xs, ys, zs = x + x, y + y, z + z |
627 | - | return 2*dot*n - i |
627 | + | local wx, wy, wz = w * xs, w * ys, w * zs |
628 | local xx = x * xs | |
629 | local xy = x * ys | |
630 | - | makeReflectionBeam = function(pos,look,isCrit) |
630 | + | local xz = x * zs |
631 | - | local ray = Ray.new(pos,look) |
631 | + | local yy = y * ys |
632 | - | local hit,hitpos,norm = workspace:FindPartOnRay(ray,c) |
632 | + | local yz = y * zs |
633 | - | local e = Instance.new("Part",rayModel) |
633 | + | local zz = z * zs |
634 | - | e.Anchored = true |
634 | + | 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)) |
635 | - | e.CanCollide = false |
635 | + | end |
636 | - | e.BrickColor = BrickColor.new("White") |
636 | + | function QuaternionSlerp(a, b, t) |
637 | - | e.Material = "Neon" |
637 | + | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] |
638 | - | e.FormFactor = "Custom" |
638 | + | local startInterp, finishInterp |
639 | - | e.Size = Vector3.new(6,6,(pos - hitpos).magnitude) |
639 | + | if cosTheta >= 1.0E-4 then |
640 | - | if isCrit == true then |
640 | + | if 1 - cosTheta > 1.0E-4 then |
641 | - | e.Size = Vector3.new(16,16,(pos - hitpos).magnitude) |
641 | + | local theta = ACOS(cosTheta) |
642 | - | e.Name = "Punch" |
642 | + | local invSinTheta = 1 / SIN(theta) |
643 | - | end |
643 | + | startInterp = SIN((1 - t) * theta) * invSinTheta |
644 | - | e.CFrame = CFrame.new(pos + (hitpos - pos)/2, pos) |
644 | + | finishInterp = SIN(t * theta) * invSinTheta |
645 | - | local e = Instance.new("Sound",c) |
645 | + | else |
646 | - | if isCrit == true then |
646 | + | startInterp = 1 - t |
647 | - | e.Volume = .5 |
647 | + | finishInterp = t |
648 | - | else |
648 | + | end |
649 | - | e.Volume = .3 |
649 | + | elseif 1 + cosTheta > 1.0E-4 then |
650 | - | e.Pitch = 1.5 |
650 | + | local theta = ACOS(-cosTheta) |
651 | - | end |
651 | + | local invSinTheta = 1 / SIN(theta) |
652 | - | e.SoundId = "rbxassetid://200632875" |
652 | + | startInterp = SIN((t - 1) * theta) * invSinTheta |
653 | - | e:Play() |
653 | + | finishInterp = SIN(t * theta) * invSinTheta |
654 | - | spawn(function() |
654 | + | else |
655 | - | wait(6) |
655 | + | startInterp = t - 1 |
656 | - | e:Destroy() |
656 | + | finishInterp = t |
657 | - | end) |
657 | + | end |
658 | - | wait(.05) |
658 | + | 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 |
659 | - | if hit ~= nil then |
659 | + | end |
660 | - | newDir = reflect(look.unit,norm,isCrit) |
660 | + | function Clerp(a, b, t) |
661 | - | makeReflectionBeam(hitpos,newDir * 999,isCrit) |
661 | + | local qa = { |
662 | - | end |
662 | + | QuaternionFromCFrame(a) |
663 | } | |
664 | local qb = { | |
665 | - | uinps.InputBegan:connect(function(InputObject) |
665 | + | QuaternionFromCFrame(b) |
666 | - | if InputObject.KeyCode == Enum.KeyCode.Q and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isPassive == true and Debounces.isTyping == false then |
666 | + | } |
667 | - | local isLooping = true |
667 | + | local ax, ay, az = a.x, a.y, a.z |
668 | - | uinps.InputEnded:connect(function(InputObject2) |
668 | + | local bx, by, bz = b.x, b.y, b.z |
669 | - | if InputObject2.KeyCode == Enum.KeyCode.Q then |
669 | + | local _t = 1 - t |
670 | - | isLooping = false |
670 | + | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) |
671 | - | end |
671 | + | end |
672 | - | end) |
672 | + | |
673 | - | while true do |
673 | + | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) |
674 | - | if isLooping == false then |
674 | + | local frame = IT("Frame") |
675 | - | break |
675 | + | frame.BackgroundTransparency = TRANSPARENCY |
676 | - | end |
676 | + | frame.BorderSizePixel = BORDERSIZEPIXEL |
677 | - | Debounces.attackNumber = Debounces.attackNumber + 1 |
677 | + | frame.Position = POSITION |
678 | - | local aimPos = mouse.Hit.p |
678 | + | frame.Size = SIZE |
679 | - | local head = Instance.new("Part",c) |
679 | + | frame.BackgroundColor3 = COLOR |
680 | - | head.Size = Vector3.new(12,.2,12) |
680 | + | frame.BorderColor3 = BORDERCOLOR |
681 | - | head.CanCollide = false |
681 | + | frame.Name = NAME |
682 | - | head.Anchored = true |
682 | + | frame.Parent = PARENT |
683 | - | head.Transparency = 1 |
683 | + | return frame |
684 | - | for i = 1,2 do |
684 | + | end |
685 | - | local decal = Instance.new("Decal",head) |
685 | + | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) |
686 | - | decal.Texture = "rbxassetid://323497117" |
686 | + | local label = IT("TextLabel") |
687 | - | if i == 1 then |
687 | + | label.BackgroundTransparency = 1 |
688 | - | decal.Face = Enum.NormalId.Top |
688 | + | label.Size = UD2(1, 0, 1, 0) |
689 | - | else |
689 | + | label.Position = UD2(0, 0, 0, 0) |
690 | - | decal.Face = Enum.NormalId.Bottom |
690 | + | label.TextColor3 = TEXTCOLOR |
691 | - | end |
691 | + | label.TextStrokeTransparency = STROKETRANSPARENCY |
692 | - | end |
692 | + | label.TextTransparency = TRANSPARENCY |
693 | - | if Debounces.attackNumber%2 == 1 then |
693 | + | label.FontSize = TEXTFONTSIZE |
694 | - | head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(8,8,.5)).p,aimPos) |
694 | + | label.Font = TEXTFONT |
695 | - | else |
695 | + | label.BorderSizePixel = BORDERSIZEPIXEL |
696 | - | head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(-8,8,.5)).p,aimPos) |
696 | + | label.TextScaled = false |
697 | - | end |
697 | + | label.Text = TEXT |
698 | - | spawn(function() |
698 | + | label.Name = NAME |
699 | - | local timer = 0 |
699 | + | label.Parent = PARENT |
700 | - | while rs.RenderStepped:wait() do |
700 | + | return label |
701 | - | if timer >= 1.55 then |
701 | + | end |
702 | - | break |
702 | + | function NoOutlines(PART) |
703 | - | end |
703 | + | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 |
704 | - | head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60))) |
704 | + | end |
705 | - | timer = timer + 1/30/(Debounces.FPS/60) |
705 | + | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) |
706 | - | end |
706 | + | local NEWWELD = IT(TYPE) |
707 | - | head.CFrame = CFrame.new(head.CFrame.p,aimPos) |
707 | + | NEWWELD.Part0 = PART0 |
708 | - | head:Destroy() |
708 | + | NEWWELD.Part1 = PART1 |
709 | - | makeReflectionBeam(head.CFrame.p,(head.CFrame.p - aimPos).unit * -999,false) |
709 | + | NEWWELD.C0 = C0 |
710 | - | end) |
710 | + | NEWWELD.C1 = C1 |
711 | - | |
711 | + | NEWWELD.Parent = PARENT |
712 | - | wait() |
712 | + | return NEWWELD |
713 | - | local s = Instance.new("Sound",head) |
713 | + | end |
714 | - | s.Volume = 1 |
714 | + | local S = IT("Sound") |
715 | - | s.SoundId = "rbxassetid://332223043" |
715 | + | function CreateSound(ID, PARENT, VOLUME, PITCH) |
716 | - | s.Pitch = 1.02 |
716 | + | local NEWSOUND |
717 | - | s:Play() |
717 | + | coroutine.resume(coroutine.create(function() |
718 | - | wait(.2) |
718 | + | NEWSOUND = S:Clone() |
719 | - | end |
719 | + | NEWSOUND.Parent = PARENT |
720 | - | end |
720 | + | NEWSOUND.Volume = VOLUME |
721 | - | end) |
721 | + | NEWSOUND.Pitch = PITCH |
722 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id=" .. ID | |
723 | - | uinps.InputBegan:connect(function(InputObj) |
723 | + | Swait() |
724 | - | if InputObj.KeyCode == Enum.KeyCode.E and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isPassive == true and Debounces.isTyping == false then |
724 | + | NEWSOUND:play() |
725 | - | Debounces.isAttacking = true |
725 | + | game:GetService("Debris"):AddItem(NEWSOUND, 10) |
726 | - | local aimPos = c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-999)).p |
726 | + | end)) |
727 | - | local head = Instance.new("Part",c) |
727 | + | return NEWSOUND |
728 | - | head.Size = Vector3.new(18,.2,18) |
728 | + | end |
729 | - | head.CanCollide = false |
729 | + | function CFrameFromTopBack(at, top, back) |
730 | - | head.Anchored = true |
730 | + | local right = top:Cross(back) |
731 | - | head.CFrame = CFrame.new(c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-9)).p,aimPos) |
731 | + | 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) |
732 | - | head.Transparency = 1 |
732 | + | end |
733 | - | for i = 1,2 do |
733 | + | |
734 | - | local decal = Instance.new("Decal",head) |
734 | + | function CreateWave(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW) |
735 | - | decal.Texture = "rbxassetid://323497117" |
735 | + | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, Color3.fromRGB(CR,CG,CB), "Effect", VT(0,0,0)) |
736 | - | if i == 1 then |
736 | + | local mesh = IT("SpecialMesh",wave) |
737 | - | decal.Face = Enum.NormalId.Top |
737 | + | mesh.MeshType = "FileMesh" |
738 | - | else |
738 | + | mesh.MeshId = "http://www.roblox.com/asset/?id=20329976" |
739 | - | decal.Face = Enum.NormalId.Bottom |
739 | + | mesh.Scale = SIZE |
740 | - | end |
740 | + | mesh.Offset = VT(0,0,-SIZE.X/8) |
741 | - | end |
741 | + | wave.CFrame = CFRAME |
742 | - | setLerp(.1) |
742 | + | coroutine.resume(coroutine.create(function(PART) |
743 | - | setJointCFrames({ |
743 | + | for i = 1, WAIT do |
744 | - | CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0)); |
744 | + | Swait() |
745 | - | CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, -0.001, -0.001)); |
745 | + | mesh.Scale = mesh.Scale + GROW |
746 | - | CFrame.new(Vector3.new(-1.7, 0, 0)) * CFAngles(Vector3.new(-12.808, -28.88, -21.502)); |
746 | + | mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) |
747 | - | CFrame.new(Vector3.new(1.699, 1.2, 0.599)) * CFAngles(Vector3.new(-146.606, 16.571, 13.928)); |
747 | + | if DOESROT == true then |
748 | - | CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-60, 0, -0.001)); |
748 | + | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) |
749 | - | CFrame.new(Vector3.new(0.5, -1.4, -0.4)) * CFAngles(Vector3.new(-15.001, -15.001, 0)); |
749 | + | end |
750 | - | }) |
750 | + | wave.Transparency = wave.Transparency + (0.5/WAIT) |
751 | - | spawn(function() |
751 | + | if wave.Transparency > 0.99 then |
752 | - | local timer = 0 |
752 | + | wave:remove() |
753 | - | while rs.RenderStepped:wait() do |
753 | + | end |
754 | - | if timer >= 1.55/.8 then |
754 | + | end |
755 | - | break |
755 | + | end)) |
756 | - | end |
756 | + | end |
757 | - | head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60))) |
757 | + | function CreateRing(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW) |
758 | - | timer = timer + 1/30/(Debounces.FPS/60) |
758 | + | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0)) |
759 | - | end |
759 | + | local mesh = IT("SpecialMesh",wave) |
760 | - | head.CFrame = CFrame.new(head.CFrame.p,aimPos) |
760 | + | mesh.MeshType = "FileMesh" |
761 | - | head:Destroy() |
761 | + | mesh.MeshId = "http://www.roblox.com/asset/?id=3270017" |
762 | - | makeReflectionBeam(head.CFrame.p,(head.CFrame.p - aimPos).unit * -999,true) |
762 | + | mesh.Scale = SIZE |
763 | - | end) |
763 | + | mesh.Offset = VT(0,0,0) |
764 | - | wait() |
764 | + | wave.CFrame = CFRAME |
765 | - | local s = Instance.new("Sound",head) |
765 | + | coroutine.resume(coroutine.create(function(PART) |
766 | - | s.Volume = 2 |
766 | + | for i = 1, WAIT do |
767 | - | s.SoundId = "rbxassetid://332223043" |
767 | + | Swait() |
768 | - | s.Pitch = .8 |
768 | + | mesh.Scale = mesh.Scale + GROW |
769 | - | s:Play() |
769 | + | if DOESROT == true then |
770 | - | wait(.75) |
770 | + | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) |
771 | - | setLerp(.17) |
771 | + | end |
772 | - | setJointCFrames({ |
772 | + | wave.Transparency = wave.Transparency + (0.5/WAIT) |
773 | - | CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(-20, 15, 0)); |
773 | + | if wave.Transparency > 0.99 then |
774 | - | CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, 14.999, -0.001)); |
774 | + | wave:remove() |
775 | - | CFrame.new(Vector3.new(-1.7, 0, 0.2)) * CFAngles(Vector3.new(-33.928, -4.374, -38.76)); |
775 | + | end |
776 | - | CFrame.new(Vector3.new(1.499, 0.4, -0.601)) * CFAngles(Vector3.new(74.335, 25.091, -6.155)); |
776 | + | end |
777 | - | CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-45, 0, -0.001)); |
777 | + | end)) |
778 | - | CFrame.new(Vector3.new(0.5, -1.8, -0.4)) * CFAngles(Vector3.new(-15, -15, 0)); |
778 | + | end |
779 | - | }) |
779 | + | function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW) |
780 | - | wait(.5) |
780 | + | local wave = CreatePart(3, Effects, "Neon", 0, 0, Color3.fromRGB(CR,CG,CB), "Effect", VT(1,1,1), true) |
781 | - | Debounces.isAttacking = false |
781 | + | local mesh = IT("SpecialMesh",wave) |
782 | - | end |
782 | + | mesh.MeshType = "Sphere" |
783 | - | end) |
783 | + | mesh.Scale = SIZE |
784 | mesh.Offset = VT(0,0,0) | |
785 | - | uinps.InputBegan:connect(function(InputObj) |
785 | + | wave.CFrame = CFRAME |
786 | - | if InputObj.KeyCode == Enum.KeyCode.Slash then |
786 | + | coroutine.resume(coroutine.create(function(PART) |
787 | - | local finishEvent = nil |
787 | + | for i = 1, WAIT do |
788 | - | Debounces.isTyping = true |
788 | + | Swait() |
789 | - | finishEvent = uinps.InputBegan:connect(function(InputObj) |
789 | + | mesh.Scale = mesh.Scale + GROW |
790 | - | if InputObj.KeyCode == Enum.KeyCode.Return or InputObj.UserInputType == Enum.UserInputType.MouseButton1 then |
790 | + | wave.Transparency = wave.Transparency + (1/WAIT) |
791 | - | Debounces.isTyping = false |
791 | + | if wave.Transparency > 0.99 then |
792 | - | finishEvent:disconnect() |
792 | + | wave:remove() |
793 | - | end |
793 | + | end |
794 | - | end) |
794 | + | end |
795 | - | end |
795 | + | end)) |
796 | - | end) |
796 | + | end |
797 | function Slice(KIND, SIZE, WAIT, CFRAME, COLOR, GROW) | |
798 | - | uinps.InputBegan:connect(function(InputObj) |
798 | + | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(1, 1, 1), true) |
799 | - | if InputObj.KeyCode == Enum.KeyCode.LeftShift then |
799 | + | local mesh |
800 | - | Debounces.isSprinting = true |
800 | + | if KIND == "Base" then |
801 | - | end |
801 | + | mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0, SIZE / 10, SIZE / 10), VT(0, 0, 0)) |
802 | - | end) |
802 | + | elseif KIND == "Thin" then |
803 | mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662586858", "", VT(SIZE / 10, 0, SIZE / 10), VT(0, 0, 0)) | |
804 | - | uinps.InputEnded:connect(function(InputObj) |
804 | + | elseif KIND == "Round" then |
805 | - | if InputObj.KeyCode == Enum.KeyCode.LeftShift then |
805 | + | mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662585058", "", VT(SIZE / 10, 0, SIZE / 10), VT(0, 0, 0)) |
806 | - | Debounces.isSprinting = false |
806 | + | end |
807 | - | end |
807 | + | wave.CFrame = CFRAME |
808 | - | end) |
808 | + | coroutine.resume(coroutine.create(function(PART) |
809 | for i = 1, WAIT do | |
810 | - | rs.RenderStepped:connect(function() |
810 | + | Swait() |
811 | - | Debounces.FPS = 1/rs.RenderStepped:wait() |
811 | + | mesh.Scale = mesh.Scale + GROW / 10 |
812 | - | local FPSLerp = AnimStat.lerpSpeed/(Debounces.FPS/60) |
812 | + | wave.Transparency = wave.Transparency + 0.5 / WAIT |
813 | - | if Debounces.isPassive == false then |
813 | + | if wave.Transparency > 0.99 then |
814 | - | fire.Enabled = false |
814 | + | wave:remove() |
815 | - | light.Range = 0 |
815 | + | end |
816 | - | fight:Pause() |
816 | + | end |
817 | - | sans:Resume() |
817 | + | end)) |
818 | - | efxBlock.Transparency = 1 |
818 | + | end |
819 | - | else |
819 | + | function Crystsal(KIND, SIZE, WAIT, CFRAME, COLOR, GROW) |
820 | - | fire.Enabled = true |
820 | + | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(1, 1, 1), true) |
821 | - | light.Range = 10 |
821 | + | local mesh |
822 | - | fight:Resume() |
822 | + | if KIND == "Base" then |
823 | - | sans:Pause() |
823 | + | mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0, SIZE / 10, SIZE / 10), VT(0, 0, 0)) |
824 | - | efxBlock.Transparency = 0 |
824 | + | elseif KIND == "Thin" then |
825 | - | end |
825 | + | mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "9756362", "", VT(SIZE / 10, 0, SIZE / 10), VT(0, 0, 0)) |
826 | - | for i,v in pairs (rayModel:children()) do |
826 | + | elseif KIND == "Round" then |
827 | - | if v.Transparency >= 1 then |
827 | + | mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "9756362", "", VT(SIZE / 10, 0, SIZE / 10), VT(0, 0, 0)) |
828 | - | v:Destroy() |
828 | + | end |
829 | - | else |
829 | + | wave.CFrame = CFRAME |
830 | - | v.CanCollide = true |
830 | + | coroutine.resume(coroutine.create(function(PART) |
831 | - | local parts = v:GetTouchingParts() |
831 | + | for i = 1, WAIT do |
832 | - | v.CanCollide = false |
832 | + | Swait() |
833 | - | for i = 1,#parts do |
833 | + | mesh.Scale = mesh.Scale + GROW / 10 |
834 | - | if parts[i].Parent:FindFirstChild("Humanoid") and parts[i].Parent ~= c and v.Name ~= "Punch" then |
834 | + | wave.Transparency = wave.Transparency + 0.5 / WAIT |
835 | - | parts[i].Parent.Humanoid:TakeDamage(.5/(Debounces.FPS/60)) |
835 | + | if wave.Transparency > 0.99 then |
836 | - | elseif parts[i].Parent:FindFirstChild("Humanoid") and parts[i].Parent ~= c and v.Name == "Punch" then |
836 | + | wave:remove() |
837 | - | parts[i].Parent.Humanoid:TakeDamage(3.1/(Debounces.FPS/60)) |
837 | + | end |
838 | - | end |
838 | + | end |
839 | - | end |
839 | + | end)) |
840 | - | v.Size = v.Size + Vector3.new(1/(Debounces.FPS/60),1/(Debounces.FPS/60),0) |
840 | + | end |
841 | - | v.Transparency = v.Transparency + .05/(Debounces.FPS/60) |
841 | + | function AddChildrenToTable(FROM, PARENT, DIST, TABLE) |
842 | - | end |
842 | + | for _, c in pairs(PARENT:GetChildren()) do |
843 | - | end |
843 | + | if c.ClassName == "Model" then |
844 | - | for i = 1,#Joints do |
844 | + | if c ~= Character and c:FindFirstChildOfClass("Humanoid") and (c:FindFirstChild("Torso") or c:FindFirstChild("UpperTorso")) then |
845 | - | Joints[i].C0 = Joints[i].C0:lerp(JointTargets[i], FPSLerp) |
845 | + | local HUMANOID = c:FindFirstChildOfClass("Humanoid") |
846 | - | end |
846 | + | local TORSO = c:FindFirstChild("Torso") or c:FindFirstChild("UpperTorso") |
847 | - | local sineval = math.sin(tick() * 2) * 3 |
847 | + | if DIST > (TORSO.Position - FROM).Magnitude then |
848 | - | fire.Acceleration = Vector3.new(sineval,1,sineval) |
848 | + | table.insert(TABLE, c) |
849 | - | light.Brightness = math.sin(math.cos(tick() * 2) * 1.5) |
849 | + | end |
850 | - | end) |
850 | + | AddChildrenToTable(FROM, c, DIST, TABLE) |
851 | elseif c.ClassName == "Folder" then | |
852 | AddChildrenToTable(FROM, c, DIST, TABLE) | |
853 | end | |
854 | end | |
855 | end | |
856 | end | |
857 | function MakeForm(PART, TYPE) | |
858 | if TYPE == "Cyl" then | |
859 | local MSH = IT("CylinderMesh", PART) | |
860 | elseif TYPE == "Ball" then | |
861 | local MSH = IT("SpecialMesh", PART) | |
862 | MSH.MeshType = "Sphere" | |
863 | elseif TYPE == "Wedge" then | |
864 | local MSH = IT("SpecialMesh", PART) | |
865 | MSH.MeshType = "Wedge" | |
866 | end | |
867 | end | |
868 | function FireArc(Part, ToLocation, AmountOfTime, Height, DoesCourontine) | |
869 | if DoesCourontine == false then | |
870 | local Direction = CF(Part.Position, ToLocation) | |
871 | local Distance = (Part.Position - ToLocation).magnitude | |
872 | for i = 1, AmountOfTime do | |
873 | Swait() | |
874 | Part.CFrame = Direction * CF(0, AmountOfTime / 200 + (AmountOfTime / Height - i * 2 / Height), -Distance / AmountOfTime) | |
875 | Direction = Part.CFrame | |
876 | end | |
877 | Part:remove() | |
878 | elseif DoesCourontine == true then | |
879 | coroutine.resume(coroutine.create(function() | |
880 | local Direction = CF(Part.Position, ToLocation) | |
881 | local Distance = (Part.Position - ToLocation).magnitude | |
882 | for i = 1, AmountOfTime do | |
883 | Swait() | |
884 | Part.CFrame = Direction * CF(0, AmountOfTime / 200 + (AmountOfTime / Height - i * 2 / Height), -Distance / AmountOfTime) | |
885 | Direction = Part.CFrame | |
886 | end | |
887 | Part:remove() | |
888 | end)) | |
889 | end | |
890 | end | |
891 | function CheckTableForString(Table, String) | |
892 | for i, v in pairs(Table) do | |
893 | if string.find(string.lower(String), string.lower(v)) then | |
894 | return true | |
895 | end | |
896 | end | |
897 | return false | |
898 | end | |
899 | function CheckIntangible(Hit) | |
900 | local ProjectileNames = { | |
901 | "Water", | |
902 | "Arrow", | |
903 | "Projectile", | |
904 | "Effect", | |
905 | "Rail", | |
906 | "Lightning", | |
907 | "Bullet" | |
908 | } | |
909 | if Hit and Hit.Parent and (not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid") then | |
910 | return true | |
911 | end | |
912 | return false | |
913 | end | |
914 | Debris = game:GetService("Debris") | |
915 | function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit) | |
916 | local Direction = CFrame.new(StartPos, Vec).lookVector | |
917 | local Ignore = type(Ignore) == "table" and Ignore or {Ignore} | |
918 | local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore) | |
919 | if RayHit and CheckIntangible(RayHit) then | |
920 | if DelayIfHit then | |
921 | wait() | |
922 | end | |
923 | RayHit, RayPos, RayNormal = CastZapRay(RayPos + Vec * 0.01, Vec, Length - (StartPos - RayPos).magnitude, Ignore, DelayIfHit) | |
924 | end | |
925 | return RayHit, RayPos, RayNormal | |
926 | end | |
927 | ||
928 | --><Misc And Some Stuff | |
929 | ||
930 | --gay rainbow stuff by davodio | |
931 | ||
932 | local cR=255 | |
933 | local cG=0 | |
934 | local cB=0 | |
935 | local flg5=1 local omgidk=1 | |
936 | local add=10.5 | |
937 | game:GetService('RunService').Heartbeat:connect(function() | |
938 | if omgidk>10000 then omgidk=0 end | |
939 | omgidk=omgidk+1 | |
940 | if cR>=255 then flg5=1 end | |
941 | if cG>=255 then flg5=2 end | |
942 | if cB>=255 then flg5=3 end | |
943 | if flg5==1 then cR=cR-add cG=cG+add end | |
944 | if flg5==2 then cG=cG-add cB=cB+add end | |
945 | if flg5==3 then cB=cB-add cR=cR+add end | |
946 | end) | |
947 | ||
948 | function turnto(position) | |
949 | RootPart.CFrame = CFrame.new(RootPart.CFrame.p, VT(position.X, RootPart.Position.Y, position.Z)) * CFrame.new(0, 0, 0) | |
950 | end | |
951 | ||
952 | local Particle = IT("ParticleEmitter",nil) | |
953 | Particle.Enabled = false | |
954 | Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)}) | |
955 | Particle.LightEmission = 0.5 | |
956 | Particle.Rate = 150 | |
957 | Particle.ZOffset = 0.2 | |
958 | Particle.Rotation = NumberRange.new(-180, 180) | |
959 | Particle.RotSpeed = NumberRange.new(-180, 180) | |
960 | Particle.Texture = "http://www.roblox.com/asset/?id=304437537" | |
961 | Particle.Color = ColorSequence.new(C3(255,128,0),C3(0,155,0),C3(255,255,0),C3(0,255,0),C3(0,255,255),C3(0,0,255),C3(191,0,255),C3(255,0,191)) | |
962 | ||
963 | --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false}) | |
964 | function ParticleEmitter(Table) | |
965 | local PRTCL = Particle:Clone() | |
966 | local Speed = Table.Speed or 5 | |
967 | local Drag = Table.Drag or 0 | |
968 | local Size1 = Table.Size1 or 1 | |
969 | local Size2 = Table.Size2 or 5 | |
970 | local Lifetime1 = Table.Lifetime1 or 1 | |
971 | local Lifetime2 = Table.Lifetime2 or 1.5 | |
972 | local Parent = Table.Parent or Torso | |
973 | local Emit = Table.Emit or 100 | |
974 | local Offset = Table.Offset or 360 | |
975 | local Acel = Table.Acel or VT(0,0,0) | |
976 | local Enabled = Table.Enabled or false | |
977 | PRTCL.Parent = Parent | |
978 | PRTCL.Size = NumberSequence.new(Size1,Size2) | |
979 | PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2) | |
980 | PRTCL.Speed = NumberRange.new(Speed) | |
981 | PRTCL.VelocitySpread = Offset | |
982 | PRTCL.Drag = Drag | |
983 | PRTCL.Acceleration = Acel | |
984 | if Enabled == false then | |
985 | PRTCL:Emit(Emit) | |
986 | Debris:AddItem(PRTCL,Lifetime2) | |
987 | else | |
988 | PRTCL.Enabled = true | |
989 | end | |
990 | return PRTCL | |
991 | end | |
992 | ||
993 | --ParticleEmitter({Speed = 0.5, Drag = 0, Size1 = 10, Size2 = 0, Lifetime1 = 0.8, Lifetime2 = 0.9, Parent = RightArm, Emit = 100, Offset = 360, Enabled = true, Acel = VT(13,19,18)}) | |
994 | --ParticleEmitter({Speed = 0.5, Drag = 0, Size1 = 10, Size2 = 0, Lifetime1 = 0.8, Lifetime2 = 0.9, Parent = LeftArm, Emit = 100, Offset = 360, Enabled = true, Acel = VT(13,19,18)}) | |
995 | ||
996 | local SKILLTEXTCOLOR = C3(0,.6,0) | |
997 | local SKILLFONT = "Bodoni" | |
998 | local SKILLTEXTSIZE = 7 | |
999 | Humanoid.Died:connect(function() | |
1000 | Humanoid.Parent = nil | |
1001 | Humanoid.MaxHealth = "inf" | |
1002 | Humanoid.Health = "inf" | |
1003 | refit() | |
1004 | Humanoid.Parent = Character | |
1005 | CreateSound(ATTACKEDTAUNTS[MRANDOM(1, #ATTACKEDTAUNTS)], Head, 10, 0.9) | |
1006 | for i = 1, 5 do | |
1007 | Slice("Round", 0.6, 35, CF(Torso.Position) * ANGLES(RAD(MRANDOM(-18, 18)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-18, 18))), "New Yeller", VT(0.1, 0, 0.1)) | |
1008 | end | |
1009 | killnearesta(Torso.Position, 25, 180) | |
1010 | end) | |
1011 | local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame") | |
1012 | local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.86, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame") | |
1013 | local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.82, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame") | |
1014 | local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.78, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame") | |
1015 | local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.74, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame") | |
1016 | local SKILL6FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.70, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 6 Frame") | |
1017 | local SKILL7FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.66, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 7 Frame") | |
1018 | local SKILL8FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.62, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 8 Frame") | |
1019 | local SKILL9FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.58, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 9 Frame") | |
1020 | local SKILL10FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.54, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 10 Frame") | |
1021 | local SKILL11FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.1, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 11 Frame") | |
1022 | ||
1023 | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 255, 255, 0, "Text 1") | |
1024 | local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 255, 255, 0, "Text 2") | |
1025 | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 255, 255, 0, "Text 3") | |
1026 | local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 255, 255, 0, "Text 4") | |
1027 | local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 255, 255, 0, "Text 5") | |
1028 | local SKILL6TEXT = CreateLabel(SKILL6FRAME, "[Q]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 255, 255, 0, "Text 6") | |
1029 | local SKILL7TEXT = CreateLabel(SKILL7FRAME, "[T]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 255, 255, 0, "Text 7") | |
1030 | local SKILL8TEXT = CreateLabel(SKILL8FRAME, "[E]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 255, 255, 0, "Text 8") | |
1031 | local SKILL9TEXT = CreateLabel(SKILL9FRAME, "[R]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 255, 255, 0, "Text 9") | |
1032 | local SKILL10TEXT = CreateLabel(SKILL10FRAME, "[F]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 255, 255, 0, "Text 10") | |
1033 | local SKILL11TEXT = CreateLabel(SKILL11FRAME, "Terra Warrior By InfiniteOneWithdank", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 255, 255, 0, "Text 11") | |
1034 | function StatLabel(CFRAME, TEXT, COLOR) | |
1035 | local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT()) | |
1036 | STATPART.CFrame = CF(CFRAME.p, CFRAME.p + VT(MRANDOM(-5, 5), MRANDOM(0, 5), MRANDOM(-5, 5))) | |
1037 | local BODYGYRO = IT("BodyGyro", STATPART) | |
1038 | game:GetService("Debris"):AddItem(STATPART, 5) | |
1039 | local BILLBOARDGUI = Instance.new("BillboardGui", STATPART) | |
1040 | BILLBOARDGUI.Adornee = STATPART | |
1041 | BILLBOARDGUI.Size = UD2(2.5, 0, 2.5, 0) | |
1042 | BILLBOARDGUI.StudsOffset = VT(-2, 2, 0) | |
1043 | BILLBOARDGUI.AlwaysOnTop = false | |
1044 | local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI) | |
1045 | TEXTLABEL.BackgroundTransparency = 1 | |
1046 | TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0) | |
1047 | TEXTLABEL.Text = TEXT | |
1048 | TEXTLABEL.Font = SKILLFONT | |
1049 | TEXTLABEL.FontSize = "Size42" | |
1050 | TEXTLABEL.TextColor3 = COLOR | |
1051 | TEXTLABEL.TextStrokeTransparency = 0 | |
1052 | TEXTLABEL.TextScaled = true | |
1053 | TEXTLABEL.TextWrapped = true | |
1054 | coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL) | |
1055 | for i = 1, 50 do | |
1056 | Swait() | |
1057 | STATPART.CFrame = STATPART.CFrame * CF(0, 0, -0.2) | |
1058 | TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + 0.02 | |
1059 | TEXTLABEL.TextStrokeTransparency = TEXTLABEL.TextTransparency | |
1060 | end | |
1061 | THEPART.Parent = nil | |
1062 | end), STATPART, TEXTLABEL) | |
1063 | end | |
1064 | ||
1065 | --><Attack Stuffs B | |
1066 | ||
1067 | function killnearesta(position, range, maxstrength) | |
1068 | for i, v in ipairs(workspace:GetChildren()) do | |
1069 | local body = v:GetChildren() | |
1070 | for part = 1, #body do | |
1071 | if (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character and range > (body[part].Position - position).Magnitude then | |
1072 | if v.ClassName == "Model" then | |
1073 | v:BreakJoints() | |
1074 | end | |
1075 | local bv = Instance.new("BodyVelocity") | |
1076 | bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000) | |
1077 | bv.velocity = CF(position, body[part].Position).lookVector * maxstrength | |
1078 | bv.Parent = body[part] | |
1079 | Debris:AddItem(bv, 0.2) | |
1080 | end | |
1081 | end | |
1082 | if v.ClassName == "Part" and v.Anchored == false and range > (v.Position - position).Magnitude then | |
1083 | v.Velocity = CFrame.new(position, v.Position).lookVector * 5 * maxstrength | |
1084 | end | |
1085 | end | |
1086 | end | |
1087 | ||
1088 | function Petrify(Foe) | |
1089 | local STONEMODEL = IT("Model", Effects) | |
1090 | local CHILDREN = Foe:GetDescendants() | |
1091 | for index, CHILD in pairs(CHILDREN) do | |
1092 | if CHILD:IsA("BasePart") and CHILD.Parent.ClassName ~= "Folder" then | |
1093 | CHILD.Parent = STONEMODEL | |
1094 | CHILD.Material = "Neon" | |
1095 | coroutine.resume(coroutine.create(function() | |
1096 | while true do | |
1097 | Swait() | |
1098 | CHILD.Color = Color3.fromRGB(cR,cG,cB) | |
1099 | end | |
1100 | end)) | |
1101 | if CHILD:FindFirstChildOfClass("SpecialMesh") then | |
1102 | local mesh = CHILD:FindFirstChildOfClass("SpecialMesh") | |
1103 | mesh.TextureId = "" | |
1104 | end | |
1105 | if CHILD:FindFirstChildOfClass("Decal") then | |
1106 | local mesh = CHILD:FindFirstChildOfClass("Decal") | |
1107 | mesh:remove() | |
1108 | end | |
1109 | if CHILD.ClassName == "MeshPart" then | |
1110 | CHILD.TextureID = "" | |
1111 | end | |
1112 | if CHILD.ClassName == "UnionOperation" then | |
1113 | CHILD.UsePartColor = true | |
1114 | end | |
1115 | CHILD.CanCollide = true | |
1116 | end | |
1117 | end | |
1118 | Debris:AddItem(STONEMODEL, 5) | |
1119 | end | |
1120 | ||
1121 | function Rainbowify(model,collide) | |
1122 | local RAINBOWMODEL = IT("Model", Effects) | |
1123 | local PARTS = model:GetChildren() | |
1124 | for index, part in pairs(PARTS) do | |
1125 | if part:IsA("Part") and part.Parent.ClassName ~= "Folder" then | |
1126 | part.Parent = RAINBOWMODEL | |
1127 | coroutine.resume(coroutine.create(function() | |
1128 | while true do | |
1129 | Swait() | |
1130 | part.Color = Color3.fromRGB(cR,cG,cB) | |
1131 | end | |
1132 | end)) | |
1133 | if collide == true then | |
1134 | part.CanCollide = true | |
1135 | else | |
1136 | part.CanCollide = false | |
1137 | end | |
1138 | end | |
1139 | end | |
1140 | Debris:AddItem(RAINBOWMODEL, 1e9999) | |
1141 | end | |
1142 | ||
1143 | function Charge(TIME,GYRO) | |
1144 | local SND = CreateSound(ENERGYSOUND,Torso,6,TIME,false) | |
1145 | local G = nil | |
1146 | if GYRO == true then | |
1147 | G = IT("BodyGyro",RootPart) | |
1148 | G.D = 250 | |
1149 | G.P = 200000 | |
1150 | G.MaxTorque = VT(math.huge,math.huge,math.huge) | |
1151 | end | |
1152 | for i=0, TIME, 0.1 / Animation_Speed do | |
1153 | Swait() | |
1154 | if G then | |
1155 | G.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
1156 | end | |
1157 | WACKYEFFECT({TIME = 25, EffectType = "Sphere", Size = VT(1.2,1.2,1.2), Size2 = VT(0,0,0), Transparency = 0.5, Transparency2 = 1, CFrame = BasePart.CFrame, MoveToPos = BasePart.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,-4).p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1158 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1159 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1160 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
1161 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
1162 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1163 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1164 | end | |
1165 | SND:remove() | |
1166 | if G then | |
1167 | return G | |
1168 | end | |
1169 | end | |
1170 | ||
1171 | function ApplyAoE2(POSITION,RANGE,ow) | |
1172 | local CHILDREN = workspace:GetDescendants() | |
1173 | for index, CHILD in pairs(CHILDREN) do | |
1174 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
1175 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1176 | if HUM then | |
1177 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1178 | if TORSO then | |
1179 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
1180 | if ow == true then | |
1181 | Petrify(CHILD) | |
1182 | else | |
1183 | CHILD:BreakJoints() | |
1184 | end | |
1185 | end | |
1186 | end | |
1187 | end | |
1188 | end | |
1189 | end | |
1190 | end | |
1191 | ||
1192 | function yeetus() | |
1193 | print("this aint done boi") | |
1194 | end | |
1195 | ||
1196 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
1197 | local DIRECTION = CF(StartPos,EndPos).lookVector | |
1198 | return Raycast(StartPos, DIRECTION, Distance, Ignore) | |
1199 | end | |
1200 | ||
1201 | function SpawnTrail(FROM,TO,BIG) | |
1202 | local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really black", "Trail", VT(0,0,0)) | |
1203 | MakeForm(TRAIL,"Sphere") | |
1204 | local DIST = (FROM - TO).Magnitude | |
1205 | if BIG == true then | |
1206 | TRAIL.Size = VT(0.35,DIST,0.35) | |
1207 | else | |
1208 | TRAIL.Size = VT(0.55,DIST,0.55) | |
1209 | end | |
1210 | TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0)) | |
1211 | coroutine.resume(coroutine.create(function() | |
1212 | for i = 1, 5 do | |
1213 | Swait() | |
1214 | TRAIL.Transparency = TRAIL.Transparency + 0.1 | |
1215 | end | |
1216 | TRAIL:remove() | |
1217 | end)) | |
1218 | end | |
1219 | ||
1220 | local PE3=Instance.new("ParticleEmitter",nil) | |
1221 | PE3.LightEmission=.8 | |
1222 | PE3.Color = ColorSequence.new(BRICKC("Bright Green").Color) | |
1223 | coroutine.resume(coroutine.create(function() | |
1224 | while true do | |
1225 | Swait() | |
1226 | PE.Color = ColorSequence.new(Color3.fromRGB(cR,cG,cB)) | |
1227 | end | |
1228 | end)) | |
1229 | PE3.Size=NumberSequence.new(EyeSizes) | |
1230 | PE3.Transparency=NumberSequence.new(EyeTrans) | |
1231 | PE3.Lifetime=NumberRange.new(0.35,1.5) | |
1232 | PE3.Rotation=NumberRange.new(0,360) | |
1233 | PE3.Rate=999 | |
1234 | PE3.VelocitySpread = 10000 | |
1235 | PE3.Acceleration = Vector3.new(0,0,0) | |
1236 | PE3.Drag = 5 | |
1237 | PE3.Speed = NumberRange.new(0,0,0) | |
1238 | PE3.Texture="http://www.roblox.com/asset/?id=1509406387" | |
1239 | PE3.ZOffset = -0 | |
1240 | PE3.Name = "PE" | |
1241 | PE3.Enabled = false | |
1242 | ||
1243 | function particles2(art) | |
1244 | local PARTICLES = PE3:Clone() | |
1245 | PARTICLES.Parent = art | |
1246 | end | |
1247 | ||
1248 | function Dustify(v) | |
1249 | v:BreakJoints() | |
1250 | for _, c in pairs(v:GetChildren()) do | |
1251 | if c:IsA("BasePart") then | |
1252 | if c.Transparency < 1 then | |
1253 | if c:FindFirstChildOfClass("Decal") then | |
1254 | c:FindFirstChildOfClass("Decal"):remove() | |
1255 | end | |
1256 | particles2(c) | |
1257 | c.PE.Enabled = true | |
1258 | c.Parent = Effects | |
1259 | c.CanCollide = false | |
1260 | c.Material = "Neon" | |
1261 | c.Color = C3(0,1,0) | |
1262 | c.Transparency = 1 | |
1263 | local grav = Instance.new("BodyPosition",c) | |
1264 | grav.P = 20000 | |
1265 | grav.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
1266 | grav.position = c.Position + VT(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)) | |
1267 | grav.Name = "GravityForce" | |
1268 | coroutine.resume(coroutine.create(function() | |
1269 | for i = 1, 20 do | |
1270 | Swait() | |
1271 | c.Transparency = c.Transparency + 1/20 | |
1272 | end | |
1273 | c.PE.Enabled = false | |
1274 | Debris:AddItem(c,3) | |
1275 | end)) | |
1276 | end | |
1277 | end | |
1278 | end | |
1279 | end | |
1280 | ||
1281 | function killnearest(position,range,maxstrength,direction) | |
1282 | for i,v in ipairs(workspace:GetChildren()) do | |
1283 | local body = v:GetChildren() | |
1284 | for part = 1, #body do | |
1285 | if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
1286 | if(body[part].Position - position).Magnitude < range then | |
1287 | if v.ClassName == "Model" then | |
1288 | --v:BreakJoints() | |
1289 | end | |
1290 | local POS = position | |
1291 | coroutine.resume(coroutine.create(function() | |
1292 | body[part].Anchored = true | |
1293 | body[part].Parent = Effects | |
1294 | body[part].CanCollide = true | |
1295 | local SIZE = body[part].Size | |
1296 | body[part].Material = "Neon" | |
1297 | CreateSound("2013169887", body[part], 2, MRANDOM(7, 12) / 10) | |
1298 | for i = 1, 75 do | |
1299 | Swait() | |
1300 | body[part].Color = Color3.fromRGB(cR,cG,cB) | |
1301 | end | |
1302 | coroutine.resume(coroutine.create(function() | |
1303 | while true do | |
1304 | Swait() | |
1305 | body[part].Color = Color3.fromRGB(cR,cG,cB) | |
1306 | body[part]:BreakJoints() | |
1307 | end | |
1308 | end)) | |
1309 | body[part].Anchored = false | |
1310 | body[part]:BreakJoints() | |
1311 | body[part].Velocity = direction.lookVector*maxstrength | |
1312 | wait(3.7) | |
1313 | body[part]:Destroy() | |
1314 | end)) | |
1315 | end | |
1316 | end | |
1317 | end | |
1318 | if v.ClassName == "Part" then | |
1319 | if v.Anchored == false and (v.Position - position).Magnitude < range then | |
1320 | local POS = position | |
1321 | coroutine.resume(coroutine.create(function() | |
1322 | v.Anchored = true | |
1323 | v.Parent = Effects | |
1324 | local SIZE = v.Size | |
1325 | v.Material = "Neon" | |
1326 | CreateSound("2013169887", v, 2, MRANDOM(7, 12) / 10) | |
1327 | for i = 1, 75 do | |
1328 | Swait() | |
1329 | v.Color = Color3.fromRGB(cR,cG,cB) | |
1330 | end | |
1331 | coroutine.resume(coroutine.create(function() | |
1332 | while true do | |
1333 | Swait() | |
1334 | v.Color = Color3.fromRGB(cR,cG,cB) | |
1335 | end | |
1336 | end)) | |
1337 | v.Anchored = false | |
1338 | v.Velocity = direction.lookVector*maxstrength | |
1339 | wait(3.7) | |
1340 | v:Destroy() | |
1341 | end)) | |
1342 | end | |
1343 | end | |
1344 | end | |
1345 | end | |
1346 | ||
1347 | local SIZE = 1 | |
1348 | ||
1349 | local Weapon = IT("Model") | |
1350 | Weapon.Name = "Adds" | |
1351 | ||
1352 | local TT = Instance.new("Part") | |
1353 | TT.Parent = Weapon | |
1354 | TT.Transparency = 1 | |
1355 | TT.Size = Vector3.new(1, 1, 1) | |
1356 | TT.CFrame = char.Torso.CFrame | |
1357 | TT.CanCollide = false | |
1358 | TT.Color = Color3.new(255,255,255) | |
1359 | TT.TopSurface = "Smooth" | |
1360 | TT.BottomSurface = "Smooth" | |
1361 | ||
1362 | function Duster() | |
1363 | ATTACK = true | |
1364 | Rooted = true | |
1365 | if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then | |
1366 | local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") | |
1367 | local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso") | |
1368 | if TORSO then | |
1369 | local GYRO = IT("BodyGyro", RootPart) | |
1370 | GYRO.D = 750 | |
1371 | GYRO.P = 2000 | |
1372 | GYRO.MaxTorque = VT(0, 40000, 0) | |
1373 | for i = 0, 0.3, 0.1 / Animation_Speed do | |
1374 | Swait() | |
1375 | WACKYEFFECT({ | |
1376 | Time = 5, | |
1377 | EffectType = "Round Slash", | |
1378 | Size = VT(0, 0, 0), | |
1379 | Size2 = VT(0.01, 0, 0.01), | |
1380 | Transparency = 0.5, | |
1381 | Transparency2 = 1, | |
1382 | CFrame = CF(TT.Position) * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))), | |
1383 | MoveToPos = nil, | |
1384 | RotationX = MRANDOM(-50, 50) / 10, | |
1385 | RotationY = MRANDOM(-50, 50) / 10, | |
1386 | RotationZ = MRANDOM(-50, 50) / 10, | |
1387 | Material = "Neon", | |
1388 | Color = C3(1, 0, 0), | |
1389 | SoundID = nil, | |
1390 | SoundPitch = nil, | |
1391 | SoundVolume = nil | |
1392 | }) | |
1393 | GYRO.cframe = CF(RootPart.Position, TORSO.Position) | |
1394 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1395 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*SIZE) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1396 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1397 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1398 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1399 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-25), RAD(12)) * ANGLES(RAD(125 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1.5 / Animation_Speed) | |
1400 | if ANIM == "Idle" then | |
1401 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1402 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1403 | elseif ANIM == "Walk" then | |
1404 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1405 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1406 | elseif ANIM == "Jump" or ANIM == "Fall" then | |
1407 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
1408 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
1409 | end | |
1410 | end | |
1411 | GYRO:remove() | |
1412 | for i = 0.4, 15 do | |
1413 | WACKYEFFECT({ | |
1414 | Time = MRANDOM(15, 85), | |
1415 | EffectType = "Round Slash", | |
1416 | Size = VT(0, 0, 0), | |
1417 | Size2 = VT(0.3, 0, 0.3), | |
1418 | Transparency = 0.5, | |
1419 | Transparency2 = 1, | |
1420 | CFrame = CF(TORSO.Position) * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))), | |
1421 | MoveToPos = nil, | |
1422 | RotationX = MRANDOM(-50, 50) / 10, | |
1423 | RotationY = MRANDOM(-50, 50) / 10, | |
1424 | RotationZ = MRANDOM(-50, 50) / 10, | |
1425 | Material = "Neon", | |
1426 | Color = C3(255, 255, 255), | |
1427 | SoundID = nil, | |
1428 | SoundPitch = nil, | |
1429 | SoundVolume = nil | |
1430 | }) | |
1431 | end | |
1432 | local bv = Instance.new("BodyVelocity") | |
1433 | bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000) | |
1434 | bv.velocity = CF(Torso.Position, TORSO.Position).lookVector * 5 | |
1435 | bv.Parent = TORSO | |
1436 | Debris:AddItem(bv, 0.05) | |
1437 | CreateSound("539792706", TORSO, 10, 1) | |
1438 | Dustify(HUM.Parent) | |
1439 | CreateSound("2231214507", Torso, 10, 1) | |
1440 | for i = 0, 0.25, 0.1 / Animation_Speed do | |
1441 | Swait() | |
1442 | WACKYEFFECT({ | |
1443 | Time = 5, | |
1444 | EffectType = "Round Slash", | |
1445 | Size = VT(0, 0, 0), | |
1446 | Size2 = VT(0.01, 0, 0.01), | |
1447 | Transparency = 0.5, | |
1448 | Transparency2 = 1, | |
1449 | CFrame = CF(TT.Position) * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))), | |
1450 | MoveToPos = nil, | |
1451 | RotationX = MRANDOM(-50, 50) / 10, | |
1452 | RotationY = MRANDOM(-50, 50) / 10, | |
1453 | RotationZ = MRANDOM(-50, 50) / 10, | |
1454 | Material = "Neon", | |
1455 | Color = C3(255, 255, 255), | |
1456 | SoundID = nil, | |
1457 | SoundPitch = nil, | |
1458 | SoundVolume = nil | |
1459 | }) | |
1460 | GYRO.cframe = CF(RootPart.Position, TORSO.Position) | |
1461 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1462 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*SIZE) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1463 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1464 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1465 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1466 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, 0.5) * ANGLES(RAD(0), RAD(-45), RAD(12)) * ANGLES(RAD(45 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed) | |
1467 | if ANIM == "Idle" then | |
1468 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1469 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1470 | elseif ANIM == "Walk" then | |
1471 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1472 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1473 | elseif ANIM == "Jump" or ANIM == "Fall" then | |
1474 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
1475 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
1476 | end | |
1477 | end | |
1478 | end | |
1479 | end | |
1480 | ATTACK = false | |
1481 | Rooted = false | |
1482 | end | |
1483 | ||
1484 | function ApplyDamage2(Humanoid,Damage,CritRate,CritMultiplier) | |
1485 | local defence = Instance.new("BoolValue",Humanoid.Parent) | |
1486 | defence.Name = ("HitBy"..Player.Name) | |
1487 | game:GetService("Debris"):AddItem(defence, 0.5) | |
1488 | Humanoid.Health = Humanoid.Health - Damage | |
1489 | if Humanoid.Parent:FindFirstChild("Head") then | |
1490 | StatLabel("Normal", Humanoid.Parent.Head.CFrame * CF(0, 0 + (Humanoid.Parent.Head.Size.z - 1), 0), Damage, C3(0, 0, 0)) | |
1491 | end | |
1492 | end | |
1493 | ||
1494 | ||
1495 | function AoEDamage(position,radius,min,max,maxstrength,critrate,critmultiplier,CanBeDodgedByJumping) | |
1496 | local dmg = math.random(min,max) | |
1497 | for i,v in ipairs(workspace:GetChildren()) do | |
1498 | if v:FindFirstChild("HitBy"..Player.Name) == nil then | |
1499 | local body = v:GetChildren() | |
1500 | for part = 1, #body do | |
1501 | if(v:FindFirstChild("HitBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
1502 | if(body[part].Position - position).Magnitude < radius then | |
1503 | if v.ClassName == "Model" then | |
1504 | if v:FindFirstChildOfClass("Humanoid") then | |
1505 | if CanBeDodgedByJumping == true then | |
1506 | if body[part].Position.Y < position.Y+5 then | |
1507 | ApplyDamage2(v:FindFirstChildOfClass("Humanoid"),dmg,critrate,critmultiplier) | |
1508 | end | |
1509 | else | |
1510 | ApplyDamage2(v:FindFirstChildOfClass("Humanoid"),dmg,critrate,critmultiplier) | |
1511 | end | |
1512 | local bv = Instance.new("BodyVelocity") | |
1513 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
1514 | bv.velocity = RootPart.CFrame.lookVector*maxstrength | |
1515 | bv.Parent = body[part] | |
1516 | Debris:AddItem(bv,0.2) | |
1517 | end | |
1518 | end | |
1519 | end | |
1520 | end | |
1521 | end | |
1522 | end | |
1523 | if v:FindFirstChild("HitBy"..Player.Name) then | |
1524 | v:FindFirstChild("HitBy"..Player.Name):remove() | |
1525 | end | |
1526 | end | |
1527 | end | |
1528 | ||
1529 | function Oblivion() | |
1530 | ATTACK = true | |
1531 | Rooted = true | |
1532 | for i=0, 2, 0.1 / Animation_Speed do | |
1533 | Swait() | |
1534 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1535 | --Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(-0.02, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(25), RAD(0)), 1 / Animation_Speed) | |
1536 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.5, -0.45) * ANGLES(RAD(110), RAD(0), RAD(-80)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1537 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1, 0.15, -0.45) * ANGLES(RAD(80), RAD(0), RAD(80)) * ANGLES(RAD(0), RAD(45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1538 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1539 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1540 | end | |
1541 | for i=0, 0.5, 0.1 / Animation_Speed do | |
1542 | Swait() | |
1543 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.2, 0) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1544 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1545 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.75,0) * ANGLES(RAD(0), RAD(0), RAD(85)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1546 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.75, 0) * ANGLES(RAD(0), RAD(0), RAD(-85)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1547 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(-15)), 0.5 / Animation_Speed) | |
1548 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(15)), 0.5 / Animation_Speed) | |
1549 | end | |
1550 | for i = 1, 75 do | |
1551 | Swait() | |
1552 | MagicSphere(VT(0.5,0.5,5),50,CF(Torso.CFrame*CF(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)).p,Torso.Position),"Really red",VT(-0.005,-0.005,0.03),0) | |
1553 | end | |
1554 | CreateSound(LIGHTHITSOUNDS[MRANDOM(1,#LIGHTHITSOUNDS)], Torso, 10, 0.5) | |
1555 | CreateSound(LIGHTHITSOUNDS[MRANDOM(1,#LIGHTHITSOUNDS)], Torso, 10, 0.5) | |
1556 | ApplyAoE4(Torso.Position, 100, 0, 0, 0, true) | |
1557 | CreateSound(ENERGYDISPERSE[MRANDOM(1,#ENERGYDISPERSE)], Torso, 10, 0.5) | |
1558 | CreateSound(ENERGYDISPERSE[MRANDOM(1,#ENERGYDISPERSE)], Torso, 10, 0.5) | |
1559 | MagicSphere(VT(0,0,0),25,Torso.CFrame,"Really red",VT(5,5,5)) | |
1560 | MagicSphere(VT(0,0,0),50,Torso.CFrame,"Lime green",VT(2.5,2.5,2.5)) | |
1561 | MagicSphere(VT(0,0.2,0),30,Torso.CFrame*ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360))),"Really black",VT(6,0,6)) | |
1562 | MagicSphere(VT(0,0.2,0),30,Torso.CFrame*ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360))),"Pearl",VT(6,0,6)) | |
1563 | ATTACK = false | |
1564 | Rooted = false | |
1565 | end | |
1566 | ||
1567 | local Terra = CreatePart(3, nil, "Neon", 0, 0, BRICKC("New Yeller"), "TerA", VT(1.2,1.2,1.2), true) | |
1568 | Terra.Color = C3(0,.6,0) | |
1569 | ||
1570 | function brougay() | |
1571 | CreateSound(137463716, RightArm, 8, MRANDOM(7,13)/10, false) | |
1572 | for i=0, 1, 0.1 / Animation_Speed do | |
1573 | Swait() | |
1574 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1575 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1576 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
1577 | --LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
1578 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1579 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1580 | end | |
1581 | local HIT,POS = CastProperRay(RightArm.Position,Mouse.Hit.p,1000,Character) | |
1582 | local BEAM = CreatePart(3, Effects, "Neon", 0, 0, BRICKC("Bright green"), "Beam", VT(0,0,0), true) | |
1583 | BEAM.Color = Terra.Color | |
1584 | MakeForm(BEAM,"Cyl") | |
1585 | local DIST = (RightArm.Position - POS).Magnitude | |
1586 | BEAM.Size = VT(0,DIST,0) | |
1587 | BEAM.CFrame = CF(RightArm.Position,POS)*CF(0,0,-DIST/2) * ANGLES(RAD(90), RAD(0), RAD(0)) | |
1588 | if HIT ~= nil then | |
1589 | if HIT.Parent.ClassName == "Model" then | |
1590 | if HIT.Parent:FindFirstChildOfClass("Humanoid") then | |
1591 | if HIT.Parent:FindFirstChildOfClass("Humanoid").Health > 0 then | |
1592 | local HED = HIT.Parent:FindFirstChild("Head") | |
1593 | if HED and MRANDOM(1,15) == 1 then | |
1594 | CreateSound(2231214507, HED, 4, MRANDOM(9,11)/10, false) | |
1595 | end | |
1596 | Dustify(HIT.Parent) | |
1597 | end | |
1598 | end | |
1599 | end | |
1600 | end | |
1601 | for i = 1, 15 do | |
1602 | Swait() | |
1603 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1604 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1605 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
1606 | --LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
1607 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1608 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1609 | BEAM.Size = BEAM.Size + VT(0.25,0,0.25) | |
1610 | BEAM.Transparency = BEAM.Transparency + 1/15 | |
1611 | end | |
1612 | BEAM:remove() | |
1613 | end | |
1614 | ||
1615 | function CreateSwirl(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW) | |
1616 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, Color3.fromRGB(CR,CG,CB), "Effect", VT(0,0,0)) | |
1617 | local mesh = IT("SpecialMesh",wave) | |
1618 | mesh.MeshType = "FileMesh" | |
1619 | mesh.MeshId = "http://www.roblox.com/asset/?id=1051557" | |
1620 | mesh.Scale = SIZE | |
1621 | wave.CFrame = CFRAME | |
1622 | coroutine.resume(coroutine.create(function(PART) | |
1623 | for i = 1, WAIT do | |
1624 | Swait() | |
1625 | mesh.Scale = mesh.Scale + GROW | |
1626 | mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
1627 | if DOESROT == true then | |
1628 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
1629 | end | |
1630 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
1631 | if wave.Transparency > 0.99 then | |
1632 | wave:remove() | |
1633 | end | |
1634 | end | |
1635 | end)) | |
1636 | end | |
1637 | ||
1638 | function stoopid() | |
1639 | ATTACK = true | |
1640 | Rooted = true | |
1641 | for i=0, 1, 0.1 / Animation_Speed do | |
1642 | Swait() | |
1643 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.3, 0) * ANGLES(RAD(0), RAD(0), RAD(-75)), 0.6 / Animation_Speed) | |
1644 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(75)), 0.6 / Animation_Speed) | |
1645 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed) | |
1646 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 0.1 / Animation_Speed) | |
1647 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1648 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1649 | end | |
1650 | for i=0, 0.4, 0.1 / Animation_Speed do | |
1651 | Swait() | |
1652 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -1, -0.3) * ANGLES(RAD(75), RAD(0), RAD(75)), 1 / Animation_Speed) | |
1653 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-75)), 1/ Animation_Speed) | |
1654 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1655 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1656 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.01) * ANGLES(RAD(75), RAD(25), RAD(0)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1657 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1658 | end | |
1659 | CreateSound(TERRAWRATH[MRANDOM(1,#TERRAWRATH)], Torso, 10, 1) | |
1660 | local BEAM = CreatePart(3, Effects, "Neon", 0, 0, "Bright green", "Beam", VT(0,0,0)) | |
1661 | local BEAM2 = CreatePart(3, Effects, "Neon", 0, 0, "Really black", "Beam", VT(0,0,0)) | |
1662 | MakeForm(BEAM,"Ball") | |
1663 | MakeForm(BEAM2,"Ball") | |
1664 | BEAM.CFrame = CF(RootPart.Position) | |
1665 | BEAM2.CFrame = CF(RootPart.Position) | |
1666 | for i=1, 100 do | |
1667 | Swait() | |
1668 | BEAM.Size = BEAM.Size + VT(0.7,8,0.7) | |
1669 | BEAM2.Size = BEAM2.Size + VT(2,2,2) | |
1670 | ApplyAoE2(BEAM2.Position,BEAM2.Size.Z/2,5,5,15,true) | |
1671 | BEAM.CFrame = CF(RootPart.Position) | |
1672 | BEAM2.CFrame = CF(RootPart.Position) | |
1673 | WACKYEFFECT({TIME = 5+i, EffectType = "Ring", Size = BEAM2.Size*1.15, Size2 = VT(0,BEAM.Size.Y,0), Transparency = 0.8, Transparency2 = 1, CFrame = BEAM.CFrame * ANGLES(RAD(0), RAD(i*5), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = i/8, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1674 | end | |
1675 | WACKYEFFECT({TIME = 75, EffectType = "Crystal", Size = BEAM.Size, Size2 = VT(0,BEAM.Size.Y,0), Transparency = 0, Transparency2 = 0, CFrame = BEAM.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1676 | WACKYEFFECT({TIME = 75, EffectType = "Sphere", Size = BEAM2.Size, Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 0.6, CFrame = BEAM2.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1677 | WACKYEFFECT({TIME = 75, EffectType = "Ring", Size = BEAM2.Size, Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 0.6, CFrame = BEAM2.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1678 | ApplyAoE4(Torso.Position, 9999, 0, 0, 0, true) | |
1679 | BEAM2:remove() | |
1680 | BEAM:remove() | |
1681 | ATTACK = false | |
1682 | Rooted = false | |
1683 | end | |
1684 | ||
1685 | local SIZE = 1 | |
1686 | ||
1687 | function CreateRing2(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW) | |
1688 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0)) | |
1689 | local mesh = IT("SpecialMesh",wave) | |
1690 | mesh.MeshType = "FileMesh" | |
1691 | mesh.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
1692 | mesh.Scale = SIZE | |
1693 | mesh.Offset = VT(0,0,0) | |
1694 | wave.CFrame = CFRAME | |
1695 | coroutine.resume(coroutine.create(function(PART) | |
1696 | for i = 1, WAIT do | |
1697 | Swait() | |
1698 | mesh.Scale = mesh.Scale + GROW | |
1699 | if DOESROT == true then | |
1700 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
1701 | end | |
1702 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
1703 | if wave.Transparency > 0.99 then | |
1704 | wave:remove() | |
1705 | end | |
1706 | end | |
1707 | end)) | |
1708 | end | |
1709 | ||
1710 | ||
1711 | function ApplyAoE4(POSITION, RANGE, MINDMG, MAXDMG, FLING, ow) | |
1712 | local CHILDREN = workspace:GetDescendants() | |
1713 | for index, CHILD in pairs(CHILDREN) do | |
1714 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
1715 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1716 | if HUM then | |
1717 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1718 | if TORSO and RANGE >= (TORSO.Position - POSITION).Magnitude then | |
1719 | if ow == true then | |
1720 | Petrify(CHILD) | |
1721 | else | |
1722 | local DMG = MRANDOM(MINDMG, MAXDMG) | |
1723 | ApplyDamage(HUM, DMG, TORSO) | |
1724 | end | |
1725 | if FLING > 0 then | |
1726 | for _, c in pairs(CHILD:GetChildren()) do | |
1727 | if c:IsA("BasePart") then | |
1728 | local bv = Instance.new("BodyVelocity") | |
1729 | bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000) | |
1730 | bv.velocity = CF(POSITION, TORSO.Position).lookVector * FLING | |
1731 | bv.Parent = c | |
1732 | Debris:AddItem(bv, 0.05) | |
1733 | end | |
1734 | end | |
1735 | end | |
1736 | end | |
1737 | end | |
1738 | end | |
1739 | end | |
1740 | end | |
1741 | ||
1742 | function MagicSphere3(SIZE,WAIT,CFRAME,COLOR,GROW) | |
1743 | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true) | |
1744 | local mesh = IT("SpecialMesh",wave) | |
1745 | mesh.MeshType = "Sphere" | |
1746 | mesh.Scale = SIZE | |
1747 | mesh.Offset = VT(0,0,0) | |
1748 | wave.CFrame = CFRAME | |
1749 | coroutine.resume(coroutine.create(function(PART) | |
1750 | for i = 1, WAIT do | |
1751 | Swait() | |
1752 | mesh.Scale = mesh.Scale + GROW | |
1753 | wave.Transparency = wave.Transparency + (1/WAIT) | |
1754 | if wave.Transparency > 0.99 then | |
1755 | wave:remove() | |
1756 | end | |
1757 | end | |
1758 | end)) | |
1759 | end | |
1760 | ||
1761 | local Weapon = IT("Model") | |
1762 | Weapon.Name = "Adds" | |
1763 | ||
1764 | local Eon = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Eon", VT(0.1,0.1,0.1),false) | |
1765 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Eon, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1766 | ||
1767 | function ApplyAoE3(POSITION,RANGE,BRUTAL,ICE) | |
1768 | local CHILDREN = workspace:GetDescendants() | |
1769 | for index, CHILD in pairs(CHILDREN) do | |
1770 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
1771 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1772 | if HUM then | |
1773 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1774 | if TORSO then | |
1775 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
1776 | if BRUTAL == true then | |
1777 | Petrify(CHILD) | |
1778 | end | |
1779 | end | |
1780 | end | |
1781 | end | |
1782 | end | |
1783 | end | |
1784 | end | |
1785 | ||
1786 | function NothingPersonal() | |
1787 | ATTACK = true | |
1788 | Rooted = true | |
1789 | local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 25*SIZE, Character) | |
1790 | coroutine.resume(coroutine.create(function() | |
1791 | WACKYEFFECT({Time = 60, EffectType = "Wave", Size = VT(12,0.55,12)*SIZE, Size2 = VT(12,0.55,12), Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 6}) | |
1792 | Swait(10) | |
1793 | WACKYEFFECT({Time = 60, EffectType = "Crystal", Size = VT(0.8,0.88,0.8), Size2 = VT(0.5,4,0.5), Transparency = 0, Transparency2 = 1, CFrame = Head.CFrame*CF(0.4, 0.2, -0.8), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 743521450, SoundPitch = 1.15, SoundVolume = 6}) | |
1794 | WACKYEFFECT({Time = 60, EffectType = "Skull", Size = VT(0.88,0.8,0.8), Size2 = VT(4,0.5,0.5), Transparency = 0, Transparency2 = 1, CFrame = Head.CFrame*CF(0.4, 0.2, -0.8), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 743521450, SoundPitch = 0.95, SoundVolume = 6}) | |
1795 | Swait(57) | |
1796 | WACKYEFFECT({Time = 150, EffectType = "Wave", Size = VT(12,0.55,12)*SIZE, Size2 = VT(12,0.55,12), Transparency = 1, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 1259054947, SoundPitch = 1, SoundVolume = 6}) | |
1797 | Swait(6.5) | |
1798 | for i=0, 1, 0.1 / Animation_Speed do | |
1799 | WACKYEFFECT({Time = 85, EffectType = "Crystal", Size = VT(8,8,8)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Really black".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1800 | end | |
1801 | end)) | |
1802 | for i=0, 1.5, 0.1 / Animation_Speed do | |
1803 | Swait() | |
1804 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.5, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1805 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.25*SIZE) - 1)) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1806 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0) * ANGLES(RAD(20), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1807 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.5*SIZE, 0) * ANGLES(RAD(20), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1808 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-15), RAD(83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1809 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-15), RAD(-83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1810 | end | |
1811 | CreateRing2(VT(0,0,0),false,0,45,RootPart.CFrame*ANGLES(RAD(90),RAD(0),RAD(0)),"Really black",VT(100,100,100)) | |
1812 | CreateSound("1137548130", Effects, 10, 1) | |
1813 | MagicSphere3(VT(0,0,0),45,Torso.CFrame,"Maroon",VT(500,500,500)) | |
1814 | ApplyAoE4(Torso.Position, 9999, 0, 0, 0, true) | |
1815 | for i=0, 0.4, 0.1 / Animation_Speed do | |
1816 | Swait() | |
1817 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.5, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1818 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.25*SIZE) - 1)) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1819 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0) * ANGLES(RAD(0), RAD(50), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1820 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.5*SIZE, 0) * ANGLES(RAD(0), RAD(-50), RAD(-90)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1821 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-15), RAD(83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1822 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-15), RAD(-83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1823 | end | |
1824 | CreateRing2(VT(0,0,0),false,0,45,RootPart.CFrame*ANGLES(RAD(90),RAD(0),RAD(0)),"Really black",VT(100,100,100)) | |
1825 | CreateSound("1137548130", Effects, 10, 1) | |
1826 | MagicSphere3(VT(0,0,0),45,Torso.CFrame,"Maroon",VT(500,500,500)) | |
1827 | ApplyAoE4(Torso.Position, 9999, 0, 0, 0, true) | |
1828 | for i=0, 1, 0.1 / Animation_Speed do | |
1829 | Swait() | |
1830 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(10), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1831 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.25*SIZE) - 1)) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1832 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.2*SIZE, 0.5*SIZE, -0.7) * ANGLES(RAD(0), RAD(170), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1833 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.2*SIZE, 0.5*SIZE, -0.7) * ANGLES(RAD(0), RAD(-170), RAD(-90)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1834 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(10), RAD(83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1835 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(10), RAD(-83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1836 | end | |
1837 | CreateRing2(VT(0,0,0),false,0,45,RootPart.CFrame*ANGLES(RAD(90),RAD(0),RAD(0)),"Really black",VT(100,100,100)) | |
1838 | CreateSound("1137548130", Effects, 10, 1) | |
1839 | MagicSphere3(VT(0,0,0),45,Torso.CFrame,"Maroon",VT(500,500,500)) | |
1840 | ApplyAoE4(Torso.Position, 9999, 0, 0, 0, true) | |
1841 | for i=0, 5, 0.1 / Animation_Speed do | |
1842 | Swait() | |
1843 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1844 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1845 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
1846 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
1847 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 2 / Animation_Speed) | |
1848 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 2 / Animation_Speed) | |
1849 | CreateSound(155202884, Torso, 6, 1, false) | |
1850 | WACKYEFFECT({ | |
1851 | Time = 85, | |
1852 | EffectType = "Sphere", | |
1853 | Size = VT(0.2,0.2,0.2), | |
1854 | Size2 = VT(0, 1000, 0), | |
1855 | Transparency = 0.5, | |
1856 | Transparency2 = 1, | |
1857 | CFrame = Eon.CFrame * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))), | |
1858 | MoveToPos = nil, | |
1859 | RotationX = MRANDOM(-50, 50) / 10, | |
1860 | RotationY = MRANDOM(-50, 50) / 10, | |
1861 | RotationZ = MRANDOM(-50, 50) / 10, | |
1862 | Material = "Neon", | |
1863 | Color = C3(0,.7,0), | |
1864 | SoundID = nil, | |
1865 | SoundPitch = nil, | |
1866 | SoundVolume = nil | |
1867 | }) | |
1868 | end | |
1869 | local HITFLOOR, HITPOS = Raycast(VT(0,250,0), (CF(Eon.Position, Eon.Position + VT(0, -1, 0))).lookVector, 500, Character) | |
1870 | CreateSound("1368598393", Effects, 10, 1) | |
1871 | for i=0, 2, 0.1 / Animation_Speed do | |
1872 | Swait() | |
1873 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1874 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1875 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(-75)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
1876 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(75)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
1877 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1878 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1879 | WACKYEFFECT({ | |
1880 | Time = 15, | |
1881 | EffectType = "Sphere", | |
1882 | Size = VT(4, 4, 4), | |
1883 | Size2 = VT(0, 0, 0), | |
1884 | Transparency = 1, | |
1885 | Transparency2 = 0, | |
1886 | CFrame = CF(Eon.Position) * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))) * CF(0, 0, 35), | |
1887 | MoveToPos = Eon.Position, | |
1888 | RotationX = 0, | |
1889 | RotationY = 0, | |
1890 | RotationZ = 0, | |
1891 | Material = "Neon", | |
1892 | Color = C3(1, 0, 0), | |
1893 | SoundID = nil, | |
1894 | SoundPitch = nil, | |
1895 | SoundVolume = nil | |
1896 | }) | |
1897 | end | |
1898 | WACKYEFFECT({ | |
1899 | Time = 15, | |
1900 | EffectType = "Sphere", | |
1901 | Size = VT(4, 4, 4), | |
1902 | Size2 = VT(0, 0, 0), | |
1903 | Transparency = 1, | |
1904 | Transparency2 = 0, | |
1905 | CFrame = CF(Eon.Position) * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))) * CF(0, 0, 35), | |
1906 | MoveToPos = Eon.Position, | |
1907 | RotationX = 0, | |
1908 | RotationY = 0, | |
1909 | RotationZ = 0, | |
1910 | Material = "Neon", | |
1911 | Color = C3(1, 0, 0), | |
1912 | SoundID = nil, | |
1913 | SoundPitch = nil, | |
1914 | SoundVolume = nil | |
1915 | }) | |
1916 | local CORE = CreatePart(3, Effects, "Cobblestone", 0, 0, BRICKC("Lime Green"), "CORE", VT(10,10,10)) | |
1917 | MakeForm(CORE, "Ball") | |
1918 | CORE.CFrame = Eon.CFrame | |
1919 | local AURA = CreatePart(3, Effects, "Neon", 0, 0.7, BRICKC("Earth Green"), "AURA", VT(10.1,10.1,10.1)) | |
1920 | MakeForm(AURA, "Ball") | |
1921 | AURA.CFrame = Eon.CFrame | |
1922 | local AURA1 = CreatePart(3, Effects, "Neon", 0, 0.8, BRICKC("Bright green"), "AURA1", VT(12,12,12)) | |
1923 | MakeForm(AURA1, "Ball") | |
1924 | AURA1.CFrame = Eon.CFrame | |
1925 | CreateSound("1368583274", Effects, 10, 1) | |
1926 | for i=0, 6, 0.1 / Animation_Speed do | |
1927 | Swait() | |
1928 | local CFRAME = CF(Torso.Position)*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))) | |
1929 | MagicSphere(VT(0,0,0),15,CFRAME,C3(0,.7,0),VT(0.1,0.1,55)) | |
1930 | MagicSphere(VT(0,0,0),15,CFRAME,C3(0,.7,0),VT(2,2,2)) | |
1931 | MagicSphere(VT(0.1,0.1,0.1),15,CFRAME,C3(0,.7,0),VT(0.1,0.1,55)) | |
1932 | WACKYEFFECT({ | |
1933 | Time = 15, | |
1934 | EffectType = "Sphere", | |
1935 | Size = VT(4, 4, 4), | |
1936 | Size2 = VT(0, 0, 0), | |
1937 | Transparency = 1, | |
1938 | Transparency2 = 0, | |
1939 | CFrame = CF(Eon.Position) * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))) * CF(0, 0, 35), | |
1940 | MoveToPos = Eon.Position, | |
1941 | RotationX = 0, | |
1942 | RotationY = 0, | |
1943 | RotationZ = 0, | |
1944 | Material = "Neon", | |
1945 | Color = C3(1, 0, 0), | |
1946 | SoundID = nil, | |
1947 | SoundPitch = nil, | |
1948 | SoundVolume = nil | |
1949 | }) | |
1950 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1951 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1952 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(-75)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
1953 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(75)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
1954 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1955 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1956 | end | |
1957 | Swait(175) | |
1958 | CreateSound("1368605755", Effects, 10, 1) | |
1959 | CreateSound("1368637781", Effects, 10, 1) | |
1960 | MagicSphere(VT(0,0,0),45,Torso.CFrame,C3(0,.6,0),VT(5,5,5)) | |
1961 | for i=0, 1, 0.1 / Animation_Speed do | |
1962 | Swait() | |
1963 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-25), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1964 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1965 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-60), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
1966 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-60), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
1967 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-50)), 2 / Animation_Speed) | |
1968 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(50)), 2 / Animation_Speed) | |
1969 | end | |
1970 | CORE.Size = VT(10 + 0.3 * COS(SINE / 4), 10 + 0.3 * COS(SINE / 4), 10 + 0.3 * COS(SINE / 4)) | |
1971 | AURA.Size = VT(10.1 + 0.4 * COS(SINE / 4), 10.1 + 0.4 * COS(SINE / 4), 10.1 + 0.4 * COS(SINE / 4)) | |
1972 | AURA1.Size = VT(12 + 0.09 * COS(SINE / 4), 12 + 0.09 * COS(SINE / 4), 12 + 0.09 * COS(SINE / 4)) | |
1973 | ApplyAoE3(CORE.Position, 15,true,false) | |
1974 | ATTACK = false | |
1975 | Rooted = false | |
1976 | end | |
1977 | ||
1978 | function PressureControl() | |
1979 | ATTACK = true | |
1980 | Rooted = false | |
1981 | CreateSound(PRESSURERELEASE[MRANDOM(1,#PRESSURERELEASE)], Torso, 10, 1) | |
1982 | for i=0, 0.05, 0.1 / Animation_Speed do | |
1983 | Swait() | |
1984 | turnto(Mouse.Hit.p) | |
1985 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.65 - 0.03 * SIN(SINE / 12), 0) * ANGLES(RAD(140), RAD(0), RAD(-45)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1986 | repeat | |
1987 | for i=0, 0.05, 0.1 / Animation_Speed do | |
1988 | Swait() | |
1989 | turnto(Mouse.Hit.p) | |
1990 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.65 - 0.03 * SIN(SINE / 12), 0) * ANGLES(RAD(150), RAD(0), RAD(-45)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1991 | local HIT,POS = CastProperRay(LeftArm.Position, Mouse.Hit.p, 1000, Character) | |
1992 | if HIT ~= nil then | |
1993 | if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then | |
1994 | Dustify(HIT.Parent) | |
1995 | end | |
1996 | WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(100,0,100), Size2 = VT(6,6.5,6), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,LeftArm.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(0,.4,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) | |
1997 | WACKYEFFECT({Time = 25, EffectType = "Crystal", Size = VT(100,0,100), Size2 = VT(6,6.5,6), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,LeftArm.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,.4,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) | |
1998 | for i=0, 0.05, 0.1 / Animation_Speed do | |
1999 | Swait() | |
2000 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.65 - 0.03 * SIN(SINE / 12), 0) * ANGLES(RAD(150), RAD(0), RAD(-45)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2001 | end | |
2002 | end | |
2003 | end | |
2004 | until KEYHOLD == false | |
2005 | ATTACK = false | |
2006 | Rooted = false | |
2007 | end | |
2008 | end | |
2009 | ||
2010 | function RainbowBeam() | |
2011 | ATTACK = true | |
2012 | Rooted = false | |
2013 | VALUE2 = true | |
2014 | local GYRO = IT("BodyGyro", RootPart) | |
2015 | GYRO.D = 20 | |
2016 | GYRO.P = 4000 | |
2017 | GYRO.MaxTorque = VT(0, 40000, 0) | |
2018 | local POS = RootPart.Position + VT(0, 25, 0) | |
2019 | CreateSound("1371567007", Effects, 35, MRANDOM(9, 10) / 10) | |
2020 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2021 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2022 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
2023 | --LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
2024 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2025 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2026 | coroutine.resume(coroutine.create(function() | |
2027 | local E = 0 | |
2028 | repeat | |
2029 | E = E + 5 | |
2030 | GYRO.CFrame = CF(RootPart.Position, Mouse.Hit.p) | |
2031 | Swait() | |
2032 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2033 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2034 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
2035 | --LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
2036 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2037 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2038 | until ATTACK == false | |
2039 | GYRO:remove() | |
2040 | end)) | |
2041 | for i = 1, 50 do | |
2042 | Swait() | |
2043 | end | |
2044 | for i = 1, 25 do | |
2045 | Swait() | |
2046 | WACKYEFFECT({ | |
2047 | Time = 15, | |
2048 | EffectType = "Skull", | |
2049 | Size = VT(4, 4, 4), | |
2050 | Size2 = VT(0, 0, 0), | |
2051 | Transparency = 1, | |
2052 | Transparency2 = 0, | |
2053 | CFrame = CF(RightArm.Position) * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))) * CF(0, 0, 35), | |
2054 | MoveToPos = RightArm.Position, | |
2055 | RotationX = 0, | |
2056 | RotationY = 0, | |
2057 | RotationZ = 0, | |
2058 | Material = "Neon", | |
2059 | Color = C3(1, 0, 0), | |
2060 | SoundID = nil, | |
2061 | SoundPitch = nil, | |
2062 | SoundVolume = nil | |
2063 | }) | |
2064 | end | |
2065 | local LOOP = 0 | |
2066 | local BEAMO = CreatePart(3, Effects, "Neon", 0, 0, BRICKC("Lime green"), "Beamo", VT(0,0,0)) | |
2067 | MakeForm(BEAMO, "Ball") | |
2068 | local BEAM = CreatePart(3, Effects, "Neon", 0, 0, BRICKC("Really red"), "Beam", VT(0, 0, 0), true) | |
2069 | MakeForm(BEAM, "Cyl") | |
2070 | repeat | |
2071 | local DISTANCE = (RightArm.Position - Mouse.Hit.p).Magnitude | |
2072 | if DISTANCE < 2000 then | |
2073 | BEAMO.Size = VT(3 + 1 * COS(SINE / 4), 3 + 1 * COS(SINE / 4), 3 + 1 * COS(SINE / 4)) | |
2074 | BEAMO.CFrame = CF(RightArm.Position) | |
2075 | BEAM.Size = VT(2 + 1 * COS(SINE / 4), DISTANCE, 2 + 1 * COS(SINE / 4)) | |
2076 | BEAM.CFrame = CF(RightArm.Position, Mouse.Hit.p) * CF(0, 0, -DISTANCE / 2) * ANGLES(RAD(90), RAD(0), RAD(0)) | |
2077 | killnearest(Mouse.Hit.p,14,156,RootPart.CFrame) | |
2078 | WACKYEFFECT({ | |
2079 | Time = 35, | |
2080 | EffectType = "Sphere", | |
2081 | Size = VT(6 + 2 * COS(SINE / 4), 6 + 2 * COS(SINE / 4), 6 + 2 * COS(SINE / 4)) * 2, | |
2082 | Size2 = VT(5, 75, 5), | |
2083 | Transparency = 0, | |
2084 | Transparency2 = 1, | |
2085 | CFrame = CF(Mouse.Hit.p) * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))), | |
2086 | MoveToPos = nil, | |
2087 | RotationX = 0, | |
2088 | RotationY = 0, | |
2089 | RotationZ = 0, | |
2090 | Material = "Neon", | |
2091 | Color = C3(1, 0, 0), | |
2092 | SoundID = nil, | |
2093 | SoundPitch = MRANDOM(9, 12) / 10, | |
2094 | SoundVolume = 10 | |
2095 | }) | |
2096 | WACKYEFFECT({TIME = 25, EffectType = "Sphere", Size = VT(1.5,1.5,1.5), Size2 = VT(0,0,0), Transparency = 0.5, Transparency2 = 1, CFrame = RightArm.CFrame, MoveToPos = RightArm.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,-6).p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2097 | Swait() | |
2098 | LOOP = LOOP + 1 | |
2099 | end | |
2100 | until KEYHOLD == false and LOOP >= 35 or DISTANCE >= 2000 | |
2101 | coroutine.resume(coroutine.create(function() | |
2102 | for i = 1, 15 do | |
2103 | Swait() | |
2104 | BEAM.Size = BEAM.Size - VT(0.1, 0, 0.1) | |
2105 | BEAMO.Size = BEAMO.Size - VT(0.1, 0.1, 0.1) | |
2106 | BEAM.Transparency = BEAM.Transparency + 0.06666666666666667 | |
2107 | BEAMO.Transparency = BEAMO.Transparency + 0.06666666666666667 | |
2108 | end | |
2109 | BEAM:remove() | |
2110 | BEAMO:remove() | |
2111 | end)) | |
2112 | ATTACK = false | |
2113 | Rooted = false | |
2114 | VALUE2 = false | |
2115 | end | |
2116 | ||
2117 | local BODY = {} | |
2118 | for _, c in pairs(Character:GetDescendants()) do | |
2119 | if c:IsA("BasePart") and c.Name ~= "Handle" then | |
2120 | if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then | |
2121 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
2122 | end | |
2123 | table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency,c.Size,c.Name}) | |
2124 | elseif c:IsA("JointInstance") then | |
2125 | table.insert(BODY,{c,c.Parent,nil,nil,nil,nil,nil}) | |
2126 | end | |
2127 | end | |
2128 | ||
2129 | function Teleport() | |
2130 | ATTACK = true | |
2131 | Rooted = false | |
2132 | for i=0, 0.5, 0.1 / Animation_Speed do | |
2133 | Swait() | |
2134 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2135 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-25), RAD(12)) * ANGLES(RAD(125 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1.5 / Animation_Speed) | |
2136 | end | |
2137 | for e = 1, #BODY do | |
2138 | if BODY[e] ~= nil then | |
2139 | local STUFF = BODY[e] | |
2140 | local PART = STUFF[1] | |
2141 | if PART:IsA("BasePart") and PART ~= RootPart and PART.Name ~= "FaceGradient" and PART.Name ~= "Hair" and PART.Transparency ~= 1 then | |
2142 | local PRT = PART:Clone() | |
2143 | PRT.Anchored = true | |
2144 | PRT.CanCollide = false | |
2145 | PRT.Material = "Neon" | |
2146 | PRT.Color = C3(0,0,0) | |
2147 | PRT.Name = "WarpEffect" | |
2148 | PRT.Parent = Effects | |
2149 | PRT.CFrame = PART.CFrame | |
2150 | PRT:BreakJoints() | |
2151 | if PRT:FindFirstChildOfClass("Sound") then | |
2152 | PRT:FindFirstChildOfClass("Sound"):remove() | |
2153 | end | |
2154 | if PRT:FindFirstChildOfClass("Decal") then | |
2155 | PRT:FindFirstChildOfClass("Decal"):remove() | |
2156 | end | |
2157 | coroutine.resume(coroutine.create(function() | |
2158 | for i = 1, 100 do | |
2159 | Swait() | |
2160 | PRT.Transparency = PRT.Transparency + 1/100 | |
2161 | end | |
2162 | PRT:remove() | |
2163 | end)) | |
2164 | end | |
2165 | end | |
2166 | end | |
2167 | CreateSound(289556450, Torso, 10, 1) | |
2168 | local POS = RootPart.Orientation | |
2169 | RootPart.CFrame = CF(Mouse.Hit.p+VT(0,6,0)) | |
2170 | RootPart.Orientation = POS | |
2171 | RootJoint.Parent = RootPart | |
2172 | for i=0, 0.5, 0.1 / Animation_Speed do | |
2173 | Swait() | |
2174 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2175 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-15), RAD(12)) * ANGLES(RAD(175 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2.5 / Animation_Speed) | |
2176 | end | |
2177 | for i=0, 0.1, 0.1 / Animation_Speed do | |
2178 | Swait() | |
2179 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, 0.5) * ANGLES(RAD(0), RAD(-45), RAD(12)) * ANGLES(RAD(45 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed) | |
2180 | end | |
2181 | ATTACK = false | |
2182 | Rooted = false | |
2183 | end | |
2184 | ||
2185 | local DECAL = IT("Decal") | |
2186 | function MakeRing() | |
2187 | local RING = CreatePart(3, Effects, "Neon", 0, 1, BRICKC("Pearl"), "MagicRing", VT(0, 0, 0), true) | |
2188 | local MSH = IT("BlockMesh", RING) | |
2189 | local TOP = DECAL:Clone() | |
2190 | local BOTTOM = DECAL:Clone() | |
2191 | TOP.Parent = RING | |
2192 | BOTTOM.Parent = RING | |
2193 | TOP.Face = "Top" | |
2194 | BOTTOM.Face = "Bottom" | |
2195 | TOP.Texture = "http://www.roblox.com/asset/?id=647661410" | |
2196 | BOTTOM.Texture = "http://www.roblox.com/asset/?id=647661410" | |
2197 | local function REMOVE() | |
2198 | coroutine.resume(coroutine.create(function() | |
2199 | local SIZE = MSH.Scale.X | |
2200 | for i = 1, 35 do | |
2201 | Swait() | |
2202 | MSH.Scale = MSH.Scale - VT(SIZE, 0, SIZE) / 60 | |
2203 | TOP.Transparency = TOP.Transparency + 0.02857142857142857 | |
2204 | BOTTOM.Transparency = BOTTOM.Transparency + 0.02857142857142857 | |
2205 | RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(-5), RAD(0)) | |
2206 | end | |
2207 | RING:remove() | |
2208 | end)) | |
2209 | end | |
2210 | return RING, MSH, REMOVE | |
2211 | end | |
2212 | ||
2213 | function ThanosShoe(POSITION,RANGE,ISGAY) | |
2214 | local CHILDREN = workspace:GetDescendants() | |
2215 | for index, CHILD in pairs(CHILDREN) do | |
2216 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
2217 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
2218 | if HUM then | |
2219 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
2220 | if TORSO then | |
2221 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
2222 | if ISGAY == true then | |
2223 | Petrify(CHILD) | |
2224 | else | |
2225 | if ISGAY == "Gravity" then | |
2226 | HUM.PlatformStand = true | |
2227 | if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then | |
2228 | local grav = Instance.new("BodyPosition",TORSO) | |
2229 | grav.D = 15 | |
2230 | grav.P = 20000 | |
2231 | grav.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
2232 | grav.position = TORSO.Position | |
2233 | grav.Name = "V3BanishForce"..Player.Name | |
2234 | else | |
2235 | TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0) | |
2236 | TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25)) | |
2237 | end | |
2238 | else | |
2239 | HUM.PlatformStand = false | |
2240 | end | |
2241 | end | |
2242 | elseif ISGAY == "Gravity" then | |
2243 | if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then | |
2244 | TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove() | |
2245 | HUM.PlatformStand = false | |
2246 | end | |
2247 | end | |
2248 | end | |
2249 | end | |
2250 | end | |
2251 | end | |
2252 | end | |
2253 | ||
2254 | function PlanetaryDevastation() | |
2255 | ATTACK = true | |
2256 | Rooted = true | |
2257 | chatfunc("This Is The Power Of My Core.") | |
2258 | local SIZE = 1 | |
2259 | local GYRO = IT("BodyGyro", RootPart) | |
2260 | GYRO.D = 20 | |
2261 | GYRO.P = 4000 | |
2262 | GYRO.MaxTorque = VT(0, 40000, 0) | |
2263 | local RING, MESH, DELET = MakeRing() | |
2264 | local HITFLOOR, HITPOS = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 15, Character) | |
2265 | RING.CFrame = CF(HITPOS) | |
2266 | for i = 0, 0.6, 0.1 / Animation_Speed do | |
2267 | GYRO.CFrame = CF(RootPart.Position, Mouse.Hit.p) | |
2268 | Swait() | |
2269 | MESH.Scale = MESH.Scale + VT(53, 0, 53) | |
2270 | RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0)) | |
2271 | WACKYEFFECT({TIME = 15, EffectType = "Block", Size = VT(3,3,3)/3, Size2 = VT(1,1,1)/3, Transparency = 0.5, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1.3,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5}) | |
2272 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(-25 - 4 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2273 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-45), RAD(12)) * ANGLES(RAD(125 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2.5 / Animation_Speed) | |
2274 | end | |
2275 | local BLASTS = {675172759} | |
2276 | coroutine.resume(coroutine.create(function() | |
2277 | local CFRAME = RootPart.CFrame | |
2278 | for i = 1, 100 do | |
2279 | CFRAME = CFRAME * CF(0, 0, -35) | |
2280 | do | |
2281 | local HITFLOOR, HITPOS = Raycast(CFRAME.p, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 15, Character) | |
2282 | if HITFLOOR then | |
2283 | Swait() | |
2284 | do | |
2285 | local OFFSET = CFRAME * CF(MRANDOM(-25, 25), 0, 0) | |
2286 | coroutine.resume(coroutine.create(function() | |
2287 | local RING, MESH, DELET = MakeRing() | |
2288 | RING.CFrame = CF(OFFSET.p.X, HITPOS.Y, OFFSET.p.Z) | |
2289 | for i = 1, 25 do | |
2290 | Swait() | |
2291 | MESH.Scale = MESH.Scale + VT(42, 0, 42) | |
2292 | RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0)) | |
2293 | end | |
2294 | ThanosShoe(RING.Position, 65, true) | |
2295 | local TURN = ANGLES(RAD(0), RAD(MRANDOM(0, 360)), RAD(0)) * ANGLES(RAD(MRANDOM(0, 25)), RAD(0), RAD(0)) | |
2296 | WACKYEFFECT({ | |
2297 | Time = 25, | |
2298 | EffectType = "Sphere", | |
2299 | Size = VT(22, 22, 22), | |
2300 | Size2 = VT(85, 85, 85), | |
2301 | Transparency = 0, | |
2302 | Transparency2 = 1, | |
2303 | CFrame = CF(RING.Position), | |
2304 | MoveToPos = nil, | |
2305 | RotationX = 0, | |
2306 | RotationY = 0, | |
2307 | RotationZ = 0, | |
2308 | Material = "Neon", | |
2309 | Color = C3(0, 0, 0), | |
2310 | SoundID = BLASTS[MRANDOM(1, #BLASTS)], | |
2311 | SoundPitch = MRANDOM(9, 12) / 10, | |
2312 | SoundVolume = 10 | |
2313 | }) | |
2314 | for e = 1, 3 do | |
2315 | WACKYEFFECT({ | |
2316 | EffectType = "Wave", | |
2317 | Size = VT(25, 0, 25), | |
2318 | Size2 = VT(40, 0, 40) + VT(e * 6, e / 5, e * 6), | |
2319 | Transparency = 0, | |
2320 | Transparency2 = 1, | |
2321 | CFrame = CF(RING.Position) * ANGLES(RAD(0), RAD(72 * i), RAD(0)), | |
2322 | MoveToPos = nil, | |
2323 | RotationX = 0, | |
2324 | RotationY = 3, | |
2325 | RotationZ = 0, | |
2326 | Material = "Neon", | |
2327 | Color = C3(0, 0, 0), | |
2328 | SoundID = nil, | |
2329 | SoundPitch = nil, | |
2330 | SoundVolume = nil | |
2331 | }) | |
2332 | WACKYEFFECT({ | |
2333 | Time = 35, | |
2334 | EffectType = "Sphere", | |
2335 | Size = VT(22, 45, 22), | |
2336 | Size2 = VT(25, 45 + e * 75, 25), | |
2337 | Transparency = 0, | |
2338 | Transparency2 = 1, | |
2339 | CFrame = CF(RING.Position) * TURN, | |
2340 | MoveToPos = nil, | |
2341 | RotationX = 0, | |
2342 | RotationY = 0, | |
2343 | RotationZ = 0, | |
2344 | Material = "Neon", | |
2345 | Color = C3(0, 0, 0), | |
2346 | SoundID = nil, | |
2347 | SoundPitch = MRANDOM(9, 12) / 10, | |
2348 | SoundVolume = 10 | |
2349 | }) | |
2350 | end | |
2351 | wait(0.3) | |
2352 | DELET() | |
2353 | end)) | |
2354 | end | |
2355 | end | |
2356 | end | |
2357 | end | |
2358 | end)) | |
2359 | Rooted = false | |
2360 | DELET() | |
2361 | GYRO:remove() | |
2362 | ATTACK = false | |
2363 | Rooted = false | |
2364 | end | |
2365 | ||
2366 | function Taunt() | |
2367 | ATTACK = true | |
2368 | Rooted = false | |
2369 | CreateSound(907331575, Torso, 6, 1, false) | |
2370 | chatfunc("You Have No One Left.") | |
2371 | ATTACK = false | |
2372 | Rooted = false | |
2373 | end | |
2374 | ||
2375 | --><Assign Things To Keys | |
2376 | ||
2377 | function MouseDown(Mouse) | |
2378 | if ATTACK == false then | |
2379 | end | |
2380 | end | |
2381 | function MouseUp(Mouse) | |
2382 | HOLD = false | |
2383 | end | |
2384 | function KeyDown(Key) | |
2385 | KEYHOLD = true | |
2386 | if Key == "z" and ATTACK == false then | |
2387 | stoopid() | |
2388 | end | |
2389 | if Key == "b" and ATTACK == false then | |
2390 | NothingPersonal() | |
2391 | end | |
2392 | if Key == "c" and ATTACK == false then | |
2393 | Duster() | |
2394 | end | |
2395 | if Key == "v" and ATTACK == false then | |
2396 | Oblivion() | |
2397 | end | |
2398 | if Key == "x" and ATTACK == false then | |
2399 | PressureControl() | |
2400 | end | |
2401 | if Key == "q" and ATTACK == false then | |
2402 | RainbowBeam() | |
2403 | end | |
2404 | if Key == "t" and ATTACK == false then | |
2405 | Taunt() | |
2406 | end | |
2407 | if Key == "e" and ATTACK == false then | |
2408 | brougay() | |
2409 | end | |
2410 | if Key == "r" and ATTACK == false then | |
2411 | PlanetaryDevastation() | |
2412 | end | |
2413 | if Key == "f" and ATTACK == false then | |
2414 | Teleport() | |
2415 | end | |
2416 | end | |
2417 | function KeyUp(Key) | |
2418 | KEYHOLD = false | |
2419 | end | |
2420 | Mouse.Button1Down:connect(function(NEWKEY) | |
2421 | MouseDown(NEWKEY) | |
2422 | end) | |
2423 | Mouse.Button1Up:connect(function(NEWKEY) | |
2424 | MouseUp(NEWKEY) | |
2425 | end) | |
2426 | Mouse.KeyDown:connect(function(NEWKEY) | |
2427 | KeyDown(NEWKEY) | |
2428 | end) | |
2429 | Mouse.KeyUp:connect(function(NEWKEY) | |
2430 | KeyUp(NEWKEY) | |
2431 | end) | |
2432 | ||
2433 | --><:Thinking: | |
2434 | function unanchor() | |
2435 | if UNANCHOR == true then | |
2436 | g = Character:GetChildren() | |
2437 | for i = 1, #g do | |
2438 | if g[i].ClassName == "Part" then | |
2439 | g[i].Anchored = false | |
2440 | end | |
2441 | end | |
2442 | end | |
2443 | end | |
2444 | ||
2445 | --><Wrap The Script | |
2446 | function refit() | |
2447 | RootJoint.Parent = RootPart | |
2448 | Neck.Parent = Torso | |
2449 | RightShoulder.Parent = Torso | |
2450 | LeftShoulder.Parent = Torso | |
2451 | RightHip.Parent = Torso | |
2452 | LeftHip.Parent = Torso | |
2453 | RootPart.Parent = Character | |
2454 | LeftArm.Parent = Character | |
2455 | RightArm.Parent = Character | |
2456 | RightLeg.Parent = Character | |
2457 | LeftLeg.Parent = Character | |
2458 | Torso.Parent = Character | |
2459 | Head.Parent = Character | |
2460 | end | |
2461 | Humanoid.Changed:connect(function(Jump) | |
2462 | if Jump == "Jump" and Disable_Jump == true then | |
2463 | Humanoid.Jump = false | |
2464 | end | |
2465 | end) | |
2466 | Humanoid.HipHeight = 2 | |
2467 | local FF = IT("ForceField", Character) | |
2468 | FF.Visible = false | |
2469 | Speed = 45 | |
2470 | CreateSound("907332997", Head, 10, 0.9) | |
2471 | while true do | |
2472 | Swait() | |
2473 | ANIMATE.Parent = nil | |
2474 | local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION) | |
2475 | IDLEANIMATION:Play() | |
2476 | SINE = SINE + CHANGE | |
2477 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
2478 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
2479 | local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position) | |
2480 | local HITFLOOR, HITPOS, NORMAL = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 7 * Player_Size, Character) | |
2481 | if ATTACK == false then | |
2482 | if TORSOVELOCITY < 1 then | |
2483 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.45 * COS(SINE / 12)) * ANGLES(RAD(7 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 1 * SIN(SINE / 12))), 1 / Animation_Speed) | |
2484 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
2485 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0 - 7.5 * SIN(SINE / 12)), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(12 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2486 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.5, 0.3) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.3 / Animation_Speed) | |
2487 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 + 0.15 * COS(SINE / 12), -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2488 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5 + 0.25 * COS(SINE / 12), -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2489 | elseif TORSOVELOCITY > 1 then | |
2490 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(25 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
2491 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-25 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
2492 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-25), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(25 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2493 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.5, 0.3) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.3 / Animation_Speed) | |
2494 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2495 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2496 | end | |
2497 | end | |
2498 | if VALUE2 == false then | |
2499 | Slice("Thin", 0.1, 5, Torso.CFrame * CF(0, -1.1, 0) * ANGLES(RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180))), C3(0, .7, 0), VT(-0.15, 0, -0.15)) | |
2500 | Slice("Thin", 0.1, 5, Torso.CFrame * CF(0, -1.1, 0) * ANGLES(RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180))), C3(0, .7, 0), VT(-0.15, 0, -0.15)) | |
2501 | Crystsal("Thin", 0.1, 5, RightArm.CFrame * CF(0, -1.1, 0) * ANGLES(RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180))), C3(0, .7, 0), VT(-0.445, 0, -0.445)) | |
2502 | Crystsal("Thin", 0.1, 5, LeftArm.CFrame * CF(0, -1.1, 0) * ANGLES(RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180))), C3(0, .7, 0), VT(-0.445, 0, -0.445)) | |
2503 | end | |
2504 | unanchor() | |
2505 | Humanoid.MaxHealth = "inf" | |
2506 | Humanoid.Health = "inf" | |
2507 | if Rooted == false then | |
2508 | Disable_Jump = false | |
2509 | Humanoid.WalkSpeed = Speed | |
2510 | elseif Rooted == true then | |
2511 | Disable_Jump = true | |
2512 | Humanoid.WalkSpeed = 0 | |
2513 | end | |
2514 | for _, c in pairs(Character:GetChildren()) do | |
2515 | if c.ClassName == "Part" then | |
2516 | c.Material = "Neon" | |
2517 | if c:FindFirstChildOfClass("ParticleEmitter") then | |
2518 | c:FindFirstChildOfClass("ParticleEmitter"):remove() | |
2519 | end | |
2520 | end | |
2521 | end | |
2522 | FF.Parent = Character | |
2523 | sick.Parent = Character | |
2524 | refit() | |
2525 | script.Parent = WEAPONGUI | |
2526 | Character.Parent = workspace | |
2527 | Humanoid.PlatformStand = false | |
2528 | Humanoid.Name = "protector of the earth" | |
2529 | for _, c in pairs(game.Players:GetChildren()) do | |
2530 | if c.Character ~= nil and c.Character.Parent ~= workspace and c.Character.Parent ~= nil then | |
2531 | c.Character:BreakJoints() | |
2532 | end | |
2533 | end | |
2534 | Humanoid.DisplayDistanceType = "None" | |
2535 | end | |
2536 | ||
2537 | -------------------|| | |
2538 | --------------------\\ | |
2539 | --||||||||||]]]]]]]]]\\ | |
2540 | ---------------------\\\\\\\\\\\\\\\\\\\\ | |
2541 | --END OF EDIT BY INFINITEONEWITHDANK|]]>> | |
2542 | ---------------------//////////////////// | |
2543 | --||||||||||]]]]]]]]]// | |
2544 | --------------------// | |
2545 | -------------------|| |