SHOW:
|
|
- or go back to the newest paste.
1 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
2 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
3 | do | |
4 | print("FE Compatibility code by Mokiros | Translated to FE by iPxter") | |
5 | script.Parent = Player.Character | |
6 | ||
7 | --RemoteEvent for communicating | |
8 | local Event = Instance.new("RemoteEvent") | |
9 | Event.Name = "UserInput_Event" | |
10 | ||
11 | --Fake event to make stuff like Mouse.KeyDown work | |
12 | local function fakeEvent() | |
13 | local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end} | |
14 | t.connect = t.Connect | |
15 | return t | |
16 | end | |
17 | ||
18 | --Creating fake input objects with fake variables | |
19 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
20 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
21 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
22 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
23 | end} | |
24 | --Merged 2 functions into one by checking amount of arguments | |
25 | CAS.UnbindAction = CAS.BindAction | |
26 | ||
27 | --This function will trigger the events that have been :Connect()'ed | |
28 | local function te(self,ev,...) | |
29 | local t = m[ev] | |
30 | if t and t._fakeEvent and t.Function then | |
31 | t.Function(...) | |
32 | end | |
33 | end | |
34 | m.TrigEvent = te | |
35 | UIS.TrigEvent = te | |
36 | ||
37 | Event.OnServerEvent:Connect(function(plr,io) | |
38 | if plr~=Player then return end | |
39 | if io.isMouse then | |
40 | m.Target = io.Target | |
41 | m.Hit = io.Hit | |
42 | else | |
43 | local b = io.UserInputState == Enum.UserInputState.Begin | |
44 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
45 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
46 | end | |
47 | for _,t in pairs(CAS.Actions) do | |
48 | for _,k in pairs(t.Keys) do | |
49 | if k==io.KeyCode then | |
50 | t.Function(t.Name,io.UserInputState,io) | |
51 | end | |
52 | end | |
53 | end | |
54 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
55 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
56 | end | |
57 | end) | |
58 | Event.Parent = NLS([==[ | |
59 | local Player = game:GetService("Players").LocalPlayer | |
60 | local Event = script:WaitForChild("UserInput_Event") | |
61 | ||
62 | local UIS = game:GetService("UserInputService") | |
63 | local input = function(io,a) | |
64 | if a then return end | |
65 | --Since InputObject is a client-side instance, we create and pass table instead | |
66 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}) | |
67 | end | |
68 | UIS.InputBegan:Connect(input) | |
69 | UIS.InputEnded:Connect(input) | |
70 | ||
71 | local Mouse = Player:GetMouse() | |
72 | local h,t | |
73 | --Give the server mouse data 30 times every second, but only if the values changed | |
74 | --If player is not moving their mouse, client won't fire events | |
75 | while wait(1/30) do | |
76 | if h~=Mouse.Hit or t~=Mouse.Target then | |
77 | h,t=Mouse.Hit,Mouse.Target | |
78 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
79 | end | |
80 | end]==],Player.Character) | |
81 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
82 | end | |
83 | wait() | |
84 | local plr = owner | |
85 | print('Local User is '..plr.Name) | |
86 | local char = plr.Character | |
87 | local hum = char.Humanoid | |
88 | local hed = char.Head | |
89 | local root = char.HumanoidRootPart | |
90 | local rootj = root.RootJoint | |
91 | local tors = char.Torso | |
92 | local ra = char["Right Arm"] | |
93 | local la = char["Left Arm"] | |
94 | local rl = char["Right Leg"] | |
95 | local ll = char["Left Leg"] | |
96 | local neck = tors["Neck"] | |
97 | local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
98 | local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0) | |
99 | local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0) | |
100 | local maincolor = BrickColor.new("Institutional white") | |
101 | ------------------------------------------------------- | |
102 | --.-- | |
103 | ------------------------------------------------------- | |
104 | ||
105 | ||
106 | ff = Instance.new("ForceField",char) | |
107 | ff.Visible = false | |
108 | hum.Name = "Base" | |
109 | hum.MaxHealth = 1.0E298 | |
110 | hum.Health = 1.0E298 | |
111 | game:GetService("RunService"):BindToRenderStep("Bbae", 0, function() | |
112 | if hum.Health > 0.1 and hum.Health < 1.0E298 then | |
113 | hum.MaxHealth = 1.0E298 | |
114 | hum.Health = 1.0E298 | |
115 | end | |
116 | end) | |
117 | ------------------------------------------------------- | |
118 | --End Whitelist and Invincibility-- | |
119 | ------------------------------------------------------- | |
120 | function MagicBlock(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
121 | local prt = part(3, char, 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
122 | prt.Anchored = true | |
123 | prt.Material = "Neon" | |
124 | prt.CFrame = cframe | |
125 | prt.CFrame = prt.CFrame * Euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
126 | local msh = mesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
127 | game:GetService("Debris"):AddItem(prt, 5) | |
128 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
129 | for i = 0, 1, delay do | |
130 | swait() | |
131 | Part.CFrame = Part.CFrame * Euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
132 | Part.Transparency = i | |
133 | Mesh.Scale = Mesh.Scale + Vector3.new(x3, y3, z3) | |
134 | end | |
135 | Part.Parent = nil | |
136 | end), prt, msh) | |
137 | end | |
138 | ||
139 | ||
140 | function MagicShockAlt(brickcolor, cframe, x1, y1, x3, y3, delay, rottype) | |
141 | local prt = part(3, char, 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
142 | prt.Anchored = true | |
143 | prt.Material = "Neon" | |
144 | prt.CFrame = cframe | |
145 | local msh = mesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, 0.01)) | |
146 | game:GetService("Debris"):AddItem(prt, 5) | |
147 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
148 | local rtype = rottype | |
149 | for i = 0, 1, delay do | |
150 | swait() | |
151 | if rtype == 1 then | |
152 | prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1) | |
153 | elseif rtype == 2 then | |
154 | prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1) | |
155 | end | |
156 | prt.Transparency = i | |
157 | Mesh.Scale = Mesh.Scale + Vector3.new(x3, y3, 0) | |
158 | end | |
159 | Part.Parent = nil | |
160 | end), prt, msh) | |
161 | end | |
162 | ||
163 | ------------------------------------------------------- | |
164 | --Start Good Stuff-- | |
165 | ------------------------------------------------------- | |
166 | cam = game.Workspace.CurrentCamera | |
167 | CF = CFrame.new | |
168 | angles = CFrame.Angles | |
169 | attack = false | |
170 | Euler = CFrame.fromEulerAnglesXYZ | |
171 | Rad = math.rad | |
172 | IT = Instance.new | |
173 | BrickC = BrickColor.new | |
174 | Cos = math.cos | |
175 | Acos = math.acos | |
176 | Sin = math.sin | |
177 | Asin = math.asin | |
178 | Abs = math.abs | |
179 | Mrandom = math.random | |
180 | Floor = math.floor | |
181 | ------------------------------------------------------- | |
182 | --End Good Stuff-- | |
183 | ------------------------------------------------------- | |
184 | necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
185 | RSH, LSH = nil, nil | |
186 | RW = Instance.new("Weld") | |
187 | LW = Instance.new("Weld") | |
188 | RH = tors["Right Hip"] | |
189 | LH = tors["Left Hip"] | |
190 | RSH = tors["Right Shoulder"] | |
191 | LSH = tors["Left Shoulder"] | |
192 | RSH.Parent = nil | |
193 | LSH.Parent = nil | |
194 | RW.Name = "RW" | |
195 | RW.Part0 = tors | |
196 | RW.C0 = CF(1.5, 0.5, 0) | |
197 | RW.C1 = CF(0, 0.5, 0) | |
198 | RW.Part1 = ra | |
199 | RW.Parent = tors | |
200 | LW.Name = "LW" | |
201 | LW.Part0 = tors | |
202 | LW.C0 = CF(-1.5, 0.5, 0) | |
203 | LW.C1 = CF(0, 0.5, 0) | |
204 | LW.Part1 = la | |
205 | LW.Parent = tors | |
206 | Effects = {} | |
207 | ------------------------------------------------------- | |
208 | --Start HeartBeat-- | |
209 | ------------------------------------------------------- | |
210 | ArtificialHB = Instance.new("BindableEvent", script) | |
211 | ArtificialHB.Name = "Heartbeat" | |
212 | script:WaitForChild("Heartbeat") | |
213 | ||
214 | frame = 1 / 60 | |
215 | tf = 0 | |
216 | allowframeloss = false | |
217 | tossremainder = false | |
218 | ||
219 | ||
220 | lastframe = tick() | |
221 | script.Heartbeat:Fire() | |
222 | ||
223 | ||
224 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
225 | tf = tf + s | |
226 | if tf >= frame then | |
227 | if allowframeloss then | |
228 | script.Heartbeat:Fire() | |
229 | lastframe = tick() | |
230 | else | |
231 | for i = 1, math.floor(tf / frame) do | |
232 | script.Heartbeat:Fire() | |
233 | end | |
234 | lastframe = tick() | |
235 | end | |
236 | if tossremainder then | |
237 | tf = 0 | |
238 | else | |
239 | tf = tf - frame * math.floor(tf / frame) | |
240 | end | |
241 | end | |
242 | end) | |
243 | ||
244 | -------------- | |
245 | --[[ | |
246 | Thanks for using Build-To-Lua by jarredbcv. | |
247 | ]]-- | |
248 | ||
249 | New = function(Object, Parent, Name, Data) | |
250 | local Object = Instance.new(Object) | |
251 | for Index, Value in pairs(Data or {}) do | |
252 | Object[Index] = Value | |
253 | end | |
254 | Object.Parent = Parent | |
255 | Object.Name = Name | |
256 | return Object | |
257 | end | |
258 | ||
259 | Gaunty = New("Model",char,"Gaunty",{}) | |
260 | Handle = New("Part",Gaunty,"Handle",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.Metal,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(1, 1.26999998, 1),CFrame = CFrame.new(-5.67319345, 3.02064276, -77.6615906, 0.999894261, 0.010924357, 0.00963267777, -0.0110270018, 0.999882579, 0.0106679145, -0.00951499958, -0.0107729975, 0.999897003),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),}) | |
261 | Mesh = New("BlockMesh",Handle,"Mesh",{Scale = Vector3.new(1.03999996, 1, 1.03999996),}) | |
262 | NeonPart = New("Part",Gaunty,"NeonPart",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.13999987, 0.109999999, 0.109999999),CFrame = CFrame.new(-5.82765579, 3.62595344, -77.6579285, -4.74974513e-08, -6.18456397e-10, 1.0000006, -5.58793545e-09, 1.0000006, -1.5279511e-10, -1.0000006, 4.65661287e-09, -4.00468707e-08),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),}) | |
263 | mot = New("Motor",NeonPart,"mot",{Part0 = NeonPart,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08),C1 = CFrame.new(-0.161155701, 0.603512526, 0.00862884521, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
264 | NeonPart = New("Part",Gaunty,"NeonPart",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.13999987, 0.109999999, 0.109999999),CFrame = CFrame.new(-6.13765526, 3.62595367, -77.6579285, -4.74974513e-08, -6.18456397e-10, 1.0000006, -5.58793545e-09, 1.0000006, -1.5279511e-10, -1.0000006, 4.65661287e-09, -4.00468707e-08),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),}) | |
265 | mot = New("Motor",NeonPart,"mot",{Part0 = NeonPart,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08),C1 = CFrame.new(-0.471122265, 0.600126028, 0.00564575195, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
266 | NeonPart = New("Part",Gaunty,"NeonPart",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.13999987, 0.109999999, 0.109999999),CFrame = CFrame.new(-5.5176549, 3.62595415, -77.6579285, -4.74974513e-08, -6.18456397e-10, 1.0000006, -5.58793545e-09, 1.0000006, -1.5279511e-10, -1.0000006, 4.65661287e-09, -4.00468707e-08),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),}) | |
267 | mot = New("Motor",NeonPart,"mot",{Part0 = NeonPart,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08),C1 = CFrame.new(0.148812294, 0.606899738, 0.0116195679, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
268 | NeonPart = New("Part",Gaunty,"NeonPart",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.13999987, 0.109999999, 0.109999999),CFrame = CFrame.new(-5.21765471, 3.62595463, -77.6579285, -4.74974513e-08, -6.18456397e-10, 1.0000006, -5.58793545e-09, 1.0000006, -1.5279511e-10, -1.0000006, 4.65661287e-09, -4.00468707e-08),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),}) | |
269 | mot = New("Motor",NeonPart,"mot",{Part0 = NeonPart,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08),C1 = CFrame.new(0.448780537, 0.610177517, 0.014503479, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
270 | NeonPart = New("Part",Gaunty,"NeonPart",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.13999987, 0.109999999, 0.109999999),CFrame = CFrame.new(-6.13765526, 2.53595448, -77.6579285, -4.74974513e-08, -6.18456397e-10, 1.0000006, -5.58793545e-09, 1.0000006, -1.5279511e-10, -1.0000006, 4.65661287e-09, -4.00468707e-08),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),}) | |
271 | mot = New("Motor",NeonPart,"mot",{Part0 = NeonPart,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08),C1 = CFrame.new(-0.459102631, -0.489744425, -0.00598144531, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
272 | NeonPart = New("Part",Gaunty,"NeonPart",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.13999987, 0.109999999, 0.109999999),CFrame = CFrame.new(-5.82765627, 2.53595448, -77.6579285, -4.74974513e-08, -6.18456397e-10, 1.0000006, -5.58793545e-09, 1.0000006, -1.5279511e-10, -1.0000006, 4.65661287e-09, -4.00468707e-08),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),}) | |
273 | mot = New("Motor",NeonPart,"mot",{Part0 = NeonPart,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08),C1 = CFrame.new(-0.149136543, -0.486357927, -0.00299835205, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
274 | NeonPart = New("Part",Gaunty,"NeonPart",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.13999987, 0.109999999, 0.109999999),CFrame = CFrame.new(-5.51765537, 2.53595448, -77.6579361, -4.74974513e-08, -6.18456397e-10, 1.0000006, -5.58793545e-09, 1.0000006, -1.5279511e-10, -1.0000006, 4.65661287e-09, -4.00468707e-08),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),}) | |
275 | mot = New("Motor",NeonPart,"mot",{Part0 = NeonPart,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08),C1 = CFrame.new(0.160831451, -0.48297143, -1.52587891e-05, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
276 | NeonPart = New("Part",Gaunty,"NeonPart",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.13999987, 0.109999999, 0.109999999),CFrame = CFrame.new(-5.21765566, 2.53595424, -77.6579361, -4.74974513e-08, -6.18456397e-10, 1.0000006, -5.58793545e-09, 1.0000006, -1.5279511e-10, -1.0000006, 4.65661287e-09, -4.00468707e-08),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),}) | |
277 | mot = New("Motor",NeonPart,"mot",{Part0 = NeonPart,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08),C1 = CFrame.new(0.460799217, -0.479694128, 0.00286865234, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
278 | Part = New("Part",Gaunty,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.Metal,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(1.07999992, 0.279999971, 1.06999993),CFrame = CFrame.new(-5.66865063, 3.64553881, -77.6613617, 0.999894857, 0.0109243635, 0.00963268708, -0.0110270083, 0.999883175, 0.0106679257, -0.00951500144, -0.0107729994, 0.999897599),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),}) | |
279 | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(1.03999996, 1, 1.03999996),}) | |
280 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),C1 = CFrame.new(-0.00235080719, 0.624869347, 0.00694274902, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
281 | NeonPart = New("Part",Gaunty,"NeonPart",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(1.08999991, 0.0599999577, 1.07999992),CFrame = CFrame.new(-5.66490126, 3.73544312, -77.6652145, 0.999894857, 0.0109243635, 0.00963268708, -0.0110270083, 0.999883175, 0.0106679257, -0.00951500144, -0.0107729994, 0.999897599),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),}) | |
282 | Mesh = New("BlockMesh",NeonPart,"Mesh",{Scale = Vector3.new(1.03999996, 1, 1.03999996),}) | |
283 | mot = New("Motor",NeonPart,"mot",{Part0 = NeonPart,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),C1 = CFrame.new(0.000443935394, 0.714845657, 0.00408172607, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
284 | NeonPart = New("Part",Gaunty,"NeonPart",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(1.08999991, 0.0599999577, 1.07999992),CFrame = CFrame.new(-5.66480446, 3.52554965, -77.65522, 0.999894857, 0.0109243635, 0.00963268708, -0.0110270083, 0.999883175, 0.0106679257, -0.00951500144, -0.0107729994, 0.999897599),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),}) | |
285 | Mesh = New("BlockMesh",NeonPart,"Mesh",{Scale = Vector3.new(1.03999996, 1, 1.03999996),}) | |
286 | mot = New("Motor",NeonPart,"mot",{Part0 = NeonPart,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),C1 = CFrame.new(0.00275993347, 0.504870415, 0.0118331909, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
287 | Part = New("Part",Gaunty,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.Metal,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(1.07999992, 0.279999971, 1.06999993),CFrame = CFrame.new(-5.6686511, 2.55553746, -77.6613541, 0.999894857, 0.0109243635, 0.00963268708, -0.0110270083, 0.999883175, 0.0106679257, -0.00951500144, -0.0107729994, 0.999897599),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),}) | |
288 | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(1.03999996, 1, 1.03999996),}) | |
289 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),C1 = CFrame.new(0.00966835022, -0.465003252, -0.00468444824, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
290 | NeonPart = New("Part",Gaunty,"NeonPart",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(1.08999991, 0.0599999577, 1.07999992),CFrame = CFrame.new(-5.66490126, 2.64544272, -77.6652145, 0.999894857, 0.0109243635, 0.00963268708, -0.0110270083, 0.999883175, 0.0106679257, -0.00951500144, -0.0107729994, 0.999897599),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),}) | |
291 | Mesh = New("BlockMesh",NeonPart,"Mesh",{Scale = Vector3.new(1.03999996, 1, 1.03999996),}) | |
292 | mot = New("Motor",NeonPart,"mot",{Part0 = NeonPart,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),C1 = CFrame.new(0.0124630928, -0.375026226, -0.00754547119, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
293 | NeonPart = New("Part",Gaunty,"NeonPart",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(1.08999991, 0.0599999577, 1.07999992),CFrame = CFrame.new(-5.66480494, 2.43554902, -77.65522, 0.999894857, 0.0109243635, 0.00963268708, -0.0110270083, 0.999883175, 0.0106679257, -0.00951500144, -0.0107729994, 0.999897599),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),}) | |
294 | Mesh = New("BlockMesh",NeonPart,"Mesh",{Scale = Vector3.new(1.03999996, 1, 1.03999996),}) | |
295 | mot = New("Motor",NeonPart,"mot",{Part0 = NeonPart,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),C1 = CFrame.new(0.0147790909, -0.585001707, 0.000205993652, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
296 | NeonPart = New("Part",Gaunty,"NeonPart",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.12999988, 0.109999999, 0.109999999),CFrame = CFrame.new(-5.67265606, 3.62595463, -78.1079407, 1.0000006, -6.18456397e-10, 3.7252903e-09, -6.18456397e-10, 1.0000006, 4.65661287e-09, 3.7252903e-09, 4.65661287e-09, 1.0000006),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),}) | |
297 | mot = New("Motor",NeonPart,"mot",{Part0 = NeonPart,Part1 = Handle,C1 = CFrame.new(-0.0018901825, 0.61005497, -0.439842224, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
298 | NeonPart = New("Part",Gaunty,"NeonPart",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.12999988, 0.109999999, 0.109999999),CFrame = CFrame.new(-5.67265606, 3.62595558, -77.8179321, 1.0000006, -6.18456397e-10, 3.7252903e-09, -6.18456397e-10, 1.0000006, 4.65661287e-09, 3.7252903e-09, 4.65661287e-09, 1.0000006),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),}) | |
299 | mot = New("Motor",NeonPart,"mot",{Part0 = NeonPart,Part1 = Handle,C1 = CFrame.new(-0.00464963913, 0.606931448, -0.149864197, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
300 | NeonPart = New("Part",Gaunty,"NeonPart",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.13999987, 0.109999999, 0.109999999),CFrame = CFrame.new(-5.66765547, 3.62595606, -77.4879303, 1.0000006, -6.18456397e-10, 3.7252903e-09, -6.18456397e-10, 1.0000006, 4.65661287e-09, 3.7252903e-09, 4.65661287e-09, 1.0000006),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),}) | |
301 | mot = New("Motor",NeonPart,"mot",{Part0 = NeonPart,Part1 = Handle,C1 = CFrame.new(-0.00278997421, 0.603431463, 0.180152893, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
302 | NeonPart = New("Part",Gaunty,"NeonPart",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.13999987, 0.109999999, 0.109999999),CFrame = CFrame.new(-5.66765547, 3.62595654, -77.1979294, 1.0000006, -6.18456397e-10, 3.7252903e-09, -6.18456397e-10, 1.0000006, 4.65661287e-09, 3.7252903e-09, 4.65661287e-09, 1.0000006),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),}) | |
303 | mot = New("Motor",NeonPart,"mot",{Part0 = NeonPart,Part1 = Handle,C1 = CFrame.new(-0.00554895401, 0.600307703, 0.470123291, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
304 | NeonPart = New("Part",Gaunty,"NeonPart",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.13999987, 0.109999999, 0.109999999),CFrame = CFrame.new(-5.66765547, 2.53595638, -77.1979294, 1.0000006, -6.18456397e-10, 3.7252903e-09, -6.18456397e-10, 1.0000006, 4.65661287e-09, 3.7252903e-09, 4.65661287e-09, 1.0000006),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),}) | |
305 | mot = New("Motor",NeonPart,"mot",{Part0 = NeonPart,Part1 = Handle,C1 = CFrame.new(0.0064702034, -0.489563704, 0.458496094, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
306 | NeonPart = New("Part",Gaunty,"NeonPart",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.13999987, 0.109999999, 0.109999999),CFrame = CFrame.new(-5.66765547, 2.53595614, -77.4879303, 1.0000006, -6.18456397e-10, 3.7252903e-09, -6.18456397e-10, 1.0000006, 4.65661287e-09, 3.7252903e-09, 4.65661287e-09, 1.0000006),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),}) | |
307 | mot = New("Motor",NeonPart,"mot",{Part0 = NeonPart,Part1 = Handle,C1 = CFrame.new(0.00922966003, -0.486439705, 0.168525696, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
308 | NeonPart = New("Part",Gaunty,"NeonPart",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.12999988, 0.109999999, 0.109999999),CFrame = CFrame.new(-5.67265558, 2.53595638, -77.8179245, 1.0000006, -6.18456397e-10, 3.7252903e-09, -6.18456397e-10, 1.0000006, 4.65661287e-09, 3.7252903e-09, 4.65661287e-09, 1.0000006),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),}) | |
309 | mot = New("Motor",NeonPart,"mot",{Part0 = NeonPart,Part1 = Handle,C1 = CFrame.new(0.00736999512, -0.482939243, -0.161483765, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
310 | NeonPart = New("Part",Gaunty,"NeonPart",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.12999988, 0.109999999, 0.109999999),CFrame = CFrame.new(-5.67265606, 2.53595614, -78.1079254, 1.0000006, -6.18456397e-10, 3.7252903e-09, -6.18456397e-10, 1.0000006, 4.65661287e-09, 3.7252903e-09, 4.65661287e-09, 1.0000006),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),}) | |
311 | mot = New("Motor",NeonPart,"mot",{Part0 = NeonPart,Part1 = Handle,C1 = CFrame.new(0.0101289749, -0.479815245, -0.451454163, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
312 | Part = New("Part",Gaunty,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.Metal,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.15999985, 0.0700000003, 0.0700000003),CFrame = CFrame.new(-5.66765547, 3.62595677, -77.1979218, 1.0000006, -6.18456397e-10, 3.7252903e-09, -6.18456397e-10, 1.0000006, 4.65661287e-09, 3.7252903e-09, 4.65661287e-09, 1.0000006),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),}) | |
313 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(-0.00554943085, 0.600307941, 0.47013092, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
314 | Part = New("Part",Gaunty,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.Metal,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.15999985, 0.0700000003, 0.0700000003),CFrame = CFrame.new(-5.66765499, 3.62595701, -77.4879303, 1.0000006, -6.18456397e-10, 3.7252903e-09, -6.18456397e-10, 1.0000006, 4.65661287e-09, 3.7252903e-09, 4.65661287e-09, 1.0000006),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),}) | |
315 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(-0.00278949738, 0.603432655, 0.180152893, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
316 | Part = New("Part",Gaunty,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.Metal,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.15999985, 0.0700000003, 0.0700000003),CFrame = CFrame.new(-5.66765451, 3.62595749, -77.8179321, 1.0000006, -6.18456397e-10, 3.7252903e-09, -6.18456397e-10, 1.0000006, 4.65661287e-09, 3.7252903e-09, 4.65661287e-09, 1.0000006),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),}) | |
317 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(0.000350952148, 0.606987953, -0.149810791, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
318 | Part = New("Part",Gaunty,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.Metal,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.15999985, 0.0700000003, 0.0700000003),CFrame = CFrame.new(-5.66765451, 3.62595749, -78.107933, 1.0000006, -6.18456397e-10, 3.7252903e-09, -6.18456397e-10, 1.0000006, 4.65661287e-09, 3.7252903e-09, 4.65661287e-09, 1.0000006),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),}) | |
319 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(0.00311040878, 0.61011219, -0.439788818, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
320 | Part = New("Part",Gaunty,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.Metal,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.15999985, 0.0700000003, 0.0700000003),CFrame = CFrame.new(-5.66765499, 2.53595734, -78.107933, 1.0000006, -6.18456397e-10, 3.7252903e-09, -6.18456397e-10, 1.0000006, 4.65661287e-09, 3.7252903e-09, 4.65661287e-09, 1.0000006),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),}) | |
321 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(0.0151295662, -0.479759216, -0.451416016, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
322 | Part = New("Part",Gaunty,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.Metal,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.15999985, 0.0700000003, 0.0700000003),CFrame = CFrame.new(-5.66765499, 2.5359571, -77.8179245, 1.0000006, -6.18456397e-10, 3.7252903e-09, -6.18456397e-10, 1.0000006, 4.65661287e-09, 3.7252903e-09, 4.65661287e-09, 1.0000006),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),}) | |
323 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(0.0123701096, -0.482883692, -0.161437988, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
324 | Part = New("Part",Gaunty,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.Metal,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.15999985, 0.0700000003, 0.0700000003),CFrame = CFrame.new(-5.66765499, 2.5359571, -77.4879227, 1.0000006, -6.18456397e-10, 3.7252903e-09, -6.18456397e-10, 1.0000006, 4.65661287e-09, 3.7252903e-09, 4.65661287e-09, 1.0000006),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),}) | |
325 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(0.00923013687, -0.48643899, 0.168533325, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
326 | Part = New("Part",Gaunty,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.Metal,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.15999985, 0.0700000003, 0.0700000003),CFrame = CFrame.new(-5.66765499, 2.53595686, -77.1979218, 1.0000006, -6.18456397e-10, 3.7252903e-09, -6.18456397e-10, 1.0000006, 4.65661287e-09, 3.7252903e-09, 4.65661287e-09, 1.0000006),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),}) | |
327 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(0.00647068024, -0.489563227, 0.458503723, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
328 | Part = New("Part",Gaunty,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.Metal,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.15999985, 0.0700000003, 0.0700000003),CFrame = CFrame.new(-6.13765478, 3.62595701, -77.6579132, -4.74974513e-08, -6.18456397e-10, 1.0000006, -5.58793545e-09, 1.0000006, -1.5279511e-10, -1.0000006, 4.65661287e-09, -4.00468707e-08),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),}) | |
329 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08),C1 = CFrame.new(-0.471121788, 0.600129128, 0.00566101074, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
330 | Part = New("Part",Gaunty,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.Metal,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.15999985, 0.0700000003, 0.0700000003),CFrame = CFrame.new(-5.82765484, 3.62595725, -77.6579132, -4.74974513e-08, -6.18456397e-10, 1.0000006, -5.58793545e-09, 1.0000006, -1.5279511e-10, -1.0000006, 4.65661287e-09, -4.00468707e-08),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),}) | |
331 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08),C1 = CFrame.new(-0.161154747, 0.603516102, 0.008644104, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
332 | Part = New("Part",Gaunty,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.Metal,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.15999985, 0.0700000003, 0.0700000003),CFrame = CFrame.new(-5.51765442, 3.62595773, -77.6579132, -4.74974513e-08, -6.18456397e-10, 1.0000006, -5.58793545e-09, 1.0000006, -1.5279511e-10, -1.0000006, 4.65661287e-09, -4.00468707e-08),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),}) | |
333 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08),C1 = CFrame.new(0.148812771, 0.606903076, 0.0116348267, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
334 | Part = New("Part",Gaunty,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.Metal,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.15999985, 0.0700000003, 0.0700000003),CFrame = CFrame.new(-5.21765375, 3.6259582, -77.6579132, -4.74974513e-08, -6.18456397e-10, 1.0000006, -5.58793545e-09, 1.0000006, -1.5279511e-10, -1.0000006, 4.65661287e-09, -4.00468707e-08),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),}) | |
335 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08),C1 = CFrame.new(0.44878149, 0.610180855, 0.0145187378, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
336 | Part = New("Part",Gaunty,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.Metal,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.15999985, 0.0700000003, 0.0700000003),CFrame = CFrame.new(-5.21765327, 2.53595781, -77.6579132, -4.74974513e-08, -6.18456397e-10, 1.0000006, -5.58793545e-09, 1.0000006, -1.5279511e-10, -1.0000006, 4.65661287e-09, -4.00468707e-08),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),}) | |
337 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08),C1 = CFrame.new(0.460801125, -0.47969079, 0.00289154053, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
338 | Part = New("Part",Gaunty,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.Metal,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.15999985, 0.0700000003, 0.0700000003),CFrame = CFrame.new(-5.51765299, 2.53595757, -77.6579208, -4.74974513e-08, -6.18456397e-10, 1.0000006, -5.58793545e-09, 1.0000006, -1.5279511e-10, -1.0000006, 4.65661287e-09, -4.00468707e-08),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),}) | |
339 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08),C1 = CFrame.new(0.160833359, -0.48296833, 0, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
340 | Part = New("Part",Gaunty,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.Metal,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.15999985, 0.0700000003, 0.0700000003),CFrame = CFrame.new(-5.82765341, 2.53595734, -77.6579208, -4.74974513e-08, -6.18456397e-10, 1.0000006, -5.58793545e-09, 1.0000006, -1.5279511e-10, -1.0000006, 4.65661287e-09, -4.00468707e-08),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),}) | |
341 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08),C1 = CFrame.new(-0.149133682, -0.486355066, -0.00299072266, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
342 | Part = New("Part",Gaunty,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.Metal,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.15999985, 0.0700000003, 0.0700000003),CFrame = CFrame.new(-6.13765383, 2.53595734, -77.6579208, -4.74974513e-08, -6.18456397e-10, 1.0000006, -5.58793545e-09, 1.0000006, -1.5279511e-10, -1.0000006, 4.65661287e-09, -4.00468707e-08),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),}) | |
343 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08),C1 = CFrame.new(-0.4591012, -0.489741802, -0.00597381592, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
344 | NeonPart = New("WedgePart",Gaunty,"NeonPart",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Size = Vector3.new(1.14999998, 0.640000045, 0.25000003),CFrame = CFrame.new(-5.66203499, 3.4509573, -77.7865677, 1.0000006, -6.18456397e-10, 3.7252903e-09, -6.18456397e-10, 1.0000006, 4.65661287e-09, 3.7252903e-09, 4.65661287e-09, 1.0000006),BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),}) | |
345 | mot = New("Motor",NeonPart,"mot",{Part0 = NeonPart,Part1 = Handle,C1 = CFrame.new(0.00760126114, 0.431732178, -0.120269775, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
346 | NeonPart = New("WedgePart",Gaunty,"NeonPart",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Size = Vector3.new(1.14999998, 0.640000045, 0.280000031),CFrame = CFrame.new(-5.66203451, 3.45095778, -77.5215683, -1.0000006, -6.18456397e-10, -9.12696123e-08, 6.18456397e-10, 1.0000006, -4.65661287e-09, 8.38190317e-08, 4.65661287e-09, -1.0000006),BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),}) | |
347 | mot = New("Motor",NeonPart,"mot",{Part0 = NeonPart,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -1, 0, 8.74227766e-08, 0, 1, 0, -8.74227766e-08, 0, -1),C1 = CFrame.new(0.00508022308, 0.428877592, 0.144706726, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
348 | NeonPart = New("WedgePart",Gaunty,"NeonPart",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Size = Vector3.new(1.14999998, 0.640000045, 0.25000003),CFrame = CFrame.new(-5.66203403, 2.81095791, -77.7865601, -1.0000006, 8.81700544e-08, 3.7252903e-09, -8.69331416e-08, -1.0000006, 4.65661287e-09, -3.7252903e-09, -4.65661287e-09, 1.0000006),BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),}) | |
349 | mot = New("Motor",NeonPart,"mot",{Part0 = NeonPart,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -1, -8.74227766e-08, 0, 8.74227766e-08, -1, 0, 0, 0, 1),C1 = CFrame.new(0.0146594048, -0.208191872, -0.127082825, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
350 | NeonPart = New("WedgePart",Gaunty,"NeonPart",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Size = Vector3.new(1.14999998, 0.640000045, 0.280000031),CFrame = CFrame.new(-5.66203356, 2.8209579, -77.5215607, 1.0000006, -8.69331416e-08, 8.38190317e-08, -8.81700544e-08, -1.0000006, -4.65661287e-09, 9.12696123e-08, -4.65661287e-09, -1.0000006),BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),}) | |
351 | mot = New("Motor",NeonPart,"mot",{Part0 = NeonPart,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1, -8.74227766e-08, 8.74227766e-08, -8.74227766e-08, -1, -7.64274186e-15, 8.74227766e-08, 0, -1),C1 = CFrame.new(0.0120282173, -0.201047897, 0.137992859, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
352 | Wedge = New("WedgePart",Gaunty,"Wedge",{BrickColor = BrickColor.new("Black"),Size = Vector3.new(1.1099999, 0.569999993, 1.13),CFrame = CFrame.new(-5.6508193, 4.06113148, -77.6620178, -4.74974513e-08, -6.18456397e-10, 1.0000006, -5.58793545e-09, 1.0000006, -1.5279511e-10, -1.0000006, 4.65661287e-09, -4.00468707e-08),BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),}) | |
353 | mot = New("Motor",Wedge,"mot",{Part0 = Wedge,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08),C1 = CFrame.new(0.0109024048, 1.04061508, 0.010887146, 0.999894261, -0.0110270018, -0.00951499958, 0.010924357, 0.999882579, -0.0107729975, 0.00963267777, 0.0106679145, 0.999897003),}) | |
354 | ||
355 | ||
356 | local NewInstance = function(instance,parent,properties) | |
357 | local inst = Instance.new(instance,parent) | |
358 | if(properties)then | |
359 | for i,v in next, properties do | |
360 | pcall(function() inst[i] = v end) | |
361 | end | |
362 | end | |
363 | return inst; | |
364 | end | |
365 | ||
366 | ||
367 | local HW = NewInstance('Motor', char, {Part0 = ra, Part1 = Handle, C0 = CF(0,-.51,0)}) | |
368 | ||
369 | for _,v in next, Gaunty:children() do | |
370 | v.CanCollide = false | |
371 | end | |
372 | ||
373 | ||
374 | local all, last = {}, nil | |
375 | ArmourParts = {} | |
376 | NeonParts = {} | |
377 | function scan(p) | |
378 | for _, v in pairs(p:GetChildren()) do | |
379 | if v:IsA("BasePart") then | |
380 | if v.BrickColor == BrickColor.new("Dark indigo") then | |
381 | table.insert(ArmourParts, v) | |
382 | end | |
383 | if v.BrickColor == BrickColor.new("Royal purple") then | |
384 | table.insert(NeonParts, v) | |
385 | end | |
386 | if last then | |
387 | local w = Instance.new("Weld") | |
388 | w.Part0, w.Part1 = last, v | |
389 | w.C0 = v.CFrame:toObjectSpace(last.CFrame):inverse() | |
390 | w.Parent = last | |
391 | end | |
392 | table.insert(all, v) | |
393 | last = v | |
394 | end | |
395 | scan(v) | |
396 | end | |
397 | end | |
398 | scan(Gaunty) | |
399 | local all2, last2 = {}, nil | |
400 | ArmourParts2 = {} | |
401 | NeonParts2 = {} | |
402 | function scan2(p) | |
403 | for _, v in pairs(p:GetChildren()) do | |
404 | if v:IsA("BasePart") then | |
405 | if v.BrickColor == BrickColor.new("Dark indigo") then | |
406 | table.insert(ArmourParts2, v) | |
407 | end | |
408 | if v.BrickColor == BrickColor.new("Royal purple") then | |
409 | table.insert(NeonParts2, v) | |
410 | end | |
411 | if last2 then | |
412 | local w = Instance.new("Weld") | |
413 | w.Part0, w.Part1 = last2, v | |
414 | w.C0 = v.CFrame:toObjectSpace(last2.CFrame):inverse() | |
415 | w.Parent = last2 | |
416 | end | |
417 | table.insert(all2, v) | |
418 | last2 = v | |
419 | end | |
420 | scan2(v) | |
421 | end | |
422 | end | |
423 | for i, v in pairs(ArmourParts) do | |
424 | v.BrickColor = BrickC("Dark indigo") | |
425 | end | |
426 | for i, v in pairs(NeonParts) do | |
427 | v.BrickColor = BrickColor.random() | |
428 | end | |
429 | for i, v in pairs(ArmourParts2) do | |
430 | v.BrickColor = BrickC("Royal purple") | |
431 | end | |
432 | for i, v in pairs(NeonParts2) do | |
433 | v.BrickColor = BrickColor.random() | |
434 | end | |
435 | maincolor = BrickColor.random() | |
436 | ------------------------------------------------------- | |
437 | --End HeartBeat-- | |
438 | ------------------------------------------------------- | |
439 | local l = game.Lighting | |
440 | local sky = Instance.new("Sky",l) | |
441 | l.TimeOfDay = "00:00:00" | |
442 | l.Brightness = 1 | |
443 | l.Ambient = Color3.new(0.25, 0.5, 0.75) | |
444 | --- | |
445 | local runDummyScript = function(f,scri) | |
446 | local oldenv = getfenv(f) | |
447 | local newenv = setmetatable({}, { | |
448 | __index = function(_, k) | |
449 | if k:lower() == 'script' then | |
450 | return scri | |
451 | else | |
452 | return oldenv[k] | |
453 | end | |
454 | end | |
455 | }) | |
456 | setfenv(f, newenv) | |
457 | ypcall(function() f() end) | |
458 | end | |
459 | cors = {} | |
460 | mas = Instance.new("Model",game:GetService("Lighting")) | |
461 | mas.Name = "CompiledModel" | |
462 | o1 = Instance.new("Model") | |
463 | o2 = Instance.new("Part") | |
464 | o3 = Instance.new("SpecialMesh") | |
465 | o4 = Instance.new("Model") | |
466 | o5 = Instance.new("Part") | |
467 | o6 = Instance.new("SpecialMesh") | |
468 | o7 = Instance.new("Weld") | |
469 | o8 = Instance.new("Part") | |
470 | o9 = Instance.new("SpecialMesh") | |
471 | o10 = Instance.new("Weld") | |
472 | o11 = Instance.new("Part") | |
473 | o12 = Instance.new("SpecialMesh") | |
474 | o13 = Instance.new("Weld") | |
475 | o14 = Instance.new("Part") | |
476 | o15 = Instance.new("SpecialMesh") | |
477 | o16 = Instance.new("Weld") | |
478 | o17 = Instance.new("Part") | |
479 | o18 = Instance.new("SpecialMesh") | |
480 | o19 = Instance.new("Weld") | |
481 | o20 = Instance.new("Part") | |
482 | o21 = Instance.new("SpecialMesh") | |
483 | o22 = Instance.new("Weld") | |
484 | o23 = Instance.new("Part") | |
485 | o24 = Instance.new("SpecialMesh") | |
486 | o25 = Instance.new("Weld") | |
487 | o26 = Instance.new("Part") | |
488 | o27 = Instance.new("SpecialMesh") | |
489 | o28 = Instance.new("Weld") | |
490 | o29 = Instance.new("Part") | |
491 | o30 = Instance.new("SpecialMesh") | |
492 | o31 = Instance.new("Weld") | |
493 | o32 = Instance.new("Part") | |
494 | o33 = Instance.new("SpecialMesh") | |
495 | o34 = Instance.new("Weld") | |
496 | o35 = Instance.new("Part") | |
497 | o36 = Instance.new("SpecialMesh") | |
498 | o37 = Instance.new("Weld") | |
499 | o38 = Instance.new("Part") | |
500 | o39 = Instance.new("SpecialMesh") | |
501 | o40 = Instance.new("Weld") | |
502 | o41 = Instance.new("Part") | |
503 | o42 = Instance.new("SpecialMesh") | |
504 | o43 = Instance.new("Weld") | |
505 | o44 = Instance.new("Part") | |
506 | o45 = Instance.new("SpecialMesh") | |
507 | o46 = Instance.new("Weld") | |
508 | o47 = Instance.new("Part") | |
509 | o48 = Instance.new("SpecialMesh") | |
510 | o49 = Instance.new("Weld") | |
511 | o50 = Instance.new("Part") | |
512 | o51 = Instance.new("SpecialMesh") | |
513 | o52 = Instance.new("Weld") | |
514 | o53 = Instance.new("Part") | |
515 | o54 = Instance.new("SpecialMesh") | |
516 | o55 = Instance.new("Weld") | |
517 | o56 = Instance.new("Part") | |
518 | o57 = Instance.new("SpecialMesh") | |
519 | o58 = Instance.new("Weld") | |
520 | o59 = Instance.new("Part") | |
521 | o60 = Instance.new("SpecialMesh") | |
522 | o61 = Instance.new("Weld") | |
523 | o62 = Instance.new("Part") | |
524 | o63 = Instance.new("SpecialMesh") | |
525 | o64 = Instance.new("Weld") | |
526 | o1.Name = "Head_" | |
527 | o1.Parent = mas | |
528 | o2.Name = "REF" | |
529 | o2.Parent = o1 | |
530 | o2.Transparency = 1 | |
531 | o2.Position = Vector3.new(110.644409, 4.68007088, -60.6269913) | |
532 | o2.Rotation = Vector3.new(180, 0.0199999996, -180) | |
533 | o2.Anchored = false | |
534 | o2.CanCollide = false | |
535 | o2.FormFactor = Enum.FormFactor.Symmetric | |
536 | o2.Size = Vector3.new(2, 1, 1) | |
537 | o2.CFrame = CFrame.new(110.644409, 4.68007088, -60.6269913, -0.99999994, 1.23944917e-22, 0.000331714633, 1.23908515e-22, 1, -1.09738441e-22, -0.000331714633, -1.09697344e-22, -0.99999994) | |
538 | o2.BottomSurface = Enum.SurfaceType.Smooth | |
539 | o2.TopSurface = Enum.SurfaceType.Smooth | |
540 | o2.Position = Vector3.new(110.644409, 4.68007088, -60.6269913) | |
541 | o3.Parent = o2 | |
542 | o3.Scale = Vector3.new(1.25, 1.25, 1.25) | |
543 | o4.Name = "Hat" | |
544 | o4.Parent = o1 | |
545 | ||
546 | ||
547 | ------------------------------------------------------- | |
548 | --Start Important Functions-- | |
549 | ------------------------------------------------------- | |
550 | function swait(num) | |
551 | if num == 0 or num == nil then | |
552 | game:service("RunService").Stepped:wait(0) | |
553 | else | |
554 | for i = 0, num do | |
555 | game:service("RunService").Stepped:wait(0) | |
556 | end | |
557 | end | |
558 | end | |
559 | function thread(f) | |
560 | coroutine.resume(coroutine.create(f)) | |
561 | end | |
562 | function clerp(a, b, t) | |
563 | local qa = { | |
564 | QuaternionFromCFrame(a) | |
565 | } | |
566 | local qb = { | |
567 | QuaternionFromCFrame(b) | |
568 | } | |
569 | local ax, ay, az = a.x, a.y, a.z | |
570 | local bx, by, bz = b.x, b.y, b.z | |
571 | local _t = 1 - t | |
572 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
573 | end | |
574 | function QuaternionFromCFrame(cf) | |
575 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
576 | local trace = m00 + m11 + m22 | |
577 | if trace > 0 then | |
578 | local s = math.sqrt(1 + trace) | |
579 | local recip = 0.5 / s | |
580 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
581 | else | |
582 | local i = 0 | |
583 | if m00 < m11 then | |
584 | i = 1 | |
585 | end | |
586 | if m22 > (i == 0 and m00 or m11) then | |
587 | i = 2 | |
588 | end | |
589 | if i == 0 then | |
590 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
591 | local recip = 0.5 / s | |
592 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
593 | elseif i == 1 then | |
594 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
595 | local recip = 0.5 / s | |
596 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
597 | elseif i == 2 then | |
598 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
599 | local recip = 0.5 / s | |
600 | return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
601 | end | |
602 | end | |
603 | end | |
604 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
605 | local xs, ys, zs = x + x, y + y, z + z | |
606 | local wx, wy, wz = w * xs, w * ys, w * zs | |
607 | local xx = x * xs | |
608 | local xy = x * ys | |
609 | local xz = x * zs | |
610 | local yy = y * ys | |
611 | local yz = y * zs | |
612 | local zz = z * zs | |
613 | 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)) | |
614 | end | |
615 | function QuaternionSlerp(a, b, t) | |
616 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
617 | local startInterp, finishInterp | |
618 | if cosTheta >= 1.0E-4 then | |
619 | if 1 - cosTheta > 1.0E-4 then | |
620 | local theta = math.acos(cosTheta) | |
621 | local invSinTheta = 1 / Sin(theta) | |
622 | startInterp = Sin((1 - t) * theta) * invSinTheta | |
623 | finishInterp = Sin(t * theta) * invSinTheta | |
624 | else | |
625 | startInterp = 1 - t | |
626 | finishInterp = t | |
627 | end | |
628 | elseif 1 + cosTheta > 1.0E-4 then | |
629 | local theta = math.acos(-cosTheta) | |
630 | local invSinTheta = 1 / Sin(theta) | |
631 | startInterp = Sin((t - 1) * theta) * invSinTheta | |
632 | finishInterp = Sin(t * theta) * invSinTheta | |
633 | else | |
634 | startInterp = t - 1 | |
635 | finishInterp = t | |
636 | end | |
637 | 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 | |
638 | end | |
639 | function rayCast(Position, Direction, Range, Ignore) | |
640 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) | |
641 | end | |
642 | local RbxUtility = LoadLibrary("RbxUtility") | |
643 | local Create = RbxUtility.Create | |
644 | ||
645 | ------------------------------------------------------- | |
646 | --Start Damage Function-- | |
647 | ------------------------------------------------------- | |
648 | function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
649 | if hit.Parent == nil then | |
650 | return | |
651 | end | |
652 | local h = hit.Parent:FindFirstChildOfClass("Humanoid") | |
653 | for _, v in pairs(hit.Parent:children()) do | |
654 | if v:IsA("Humanoid") then | |
655 | h = v | |
656 | end | |
657 | end | |
658 | if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then | |
659 | ||
660 | hit.Parent:FindFirstChild("Head"):BreakJoints() | |
661 | end | |
662 | ||
663 | if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then | |
664 | if hit.Parent:findFirstChild("DebounceHit") ~= nil then | |
665 | if hit.Parent.DebounceHit.Value == true then | |
666 | return | |
667 | end | |
668 | end | |
669 | if insta == true then | |
670 | hit.Parent:FindFirstChild("Head"):BreakJoints() | |
671 | end | |
672 | local c = Create("ObjectValue"){ | |
673 | Name = "creator", | |
674 | Value = owner, | |
675 | Parent = h, | |
676 | } | |
677 | game:GetService("Debris"):AddItem(c, .5) | |
678 | if HitSound ~= nil and HitPitch ~= nil then | |
679 | CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) | |
680 | end | |
681 | local Damage = math.random(minim, maxim) | |
682 | local blocked = false | |
683 | local block = hit.Parent:findFirstChild("Block") | |
684 | if block ~= nil then | |
685 | if block.className == "IntValue" then | |
686 | if block.Value > 0 then | |
687 | blocked = true | |
688 | block.Value = block.Value - 1 | |
689 | print(block.Value) | |
690 | end | |
691 | end | |
692 | end | |
693 | if blocked == false then | |
694 | h.Health = h.Health - Damage | |
695 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color) | |
696 | else | |
697 | h.Health = h.Health - (Damage / 2) | |
698 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color) | |
699 | end | |
700 | if Type == "Knockdown" then | |
701 | local hum = hit.Parent.Humanoid | |
702 | hum.PlatformStand = true | |
703 | coroutine.resume(coroutine.create(function(HHumanoid) | |
704 | swait(1) | |
705 | HHumanoid.PlatformStand = false | |
706 | end), hum) | |
707 | local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit | |
708 | local bodvol = Create("BodyVelocity"){ | |
709 | velocity = angle * knockback, | |
710 | P = 5000, | |
711 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
712 | Parent = hit, | |
713 | } | |
714 | local rl = Create("BodyAngularVelocity"){ | |
715 | P = 3000, | |
716 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
717 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
718 | Parent = hit, | |
719 | } | |
720 | game:GetService("Debris"):AddItem(bodvol, .5) | |
721 | game:GetService("Debris"):AddItem(rl, .5) | |
722 | elseif Type == "Normal" then | |
723 | local vp = Create("BodyVelocity"){ | |
724 | P = 500, | |
725 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
726 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05, | |
727 | } | |
728 | if knockback > 0 then | |
729 | vp.Parent = hit.Parent.Torso | |
730 | end | |
731 | game:GetService("Debris"):AddItem(vp, .5) | |
732 | elseif Type == "Up" then | |
733 | local bodyVelocity = Create("BodyVelocity"){ | |
734 | velocity = Vector3.new(0, 20, 0), | |
735 | P = 5000, | |
736 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
737 | Parent = hit, | |
738 | } | |
739 | game:GetService("Debris"):AddItem(bodyVelocity, .5) | |
740 | elseif Type == "DarkUp" then | |
741 | coroutine.resume(coroutine.create(function() | |
742 | for i = 0, 1, 0.1 do | |
743 | swait() | |
744 | Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1) | |
745 | end | |
746 | end)) | |
747 | local bodyVelocity = Create("BodyVelocity"){ | |
748 | velocity = Vector3.new(0, 20, 0), | |
749 | P = 5000, | |
750 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
751 | Parent = hit, | |
752 | } | |
753 | game:GetService("Debris"):AddItem(bodyVelocity, 1) | |
754 | elseif Type == "Snare" then | |
755 | local bp = Create("BodyPosition"){ | |
756 | P = 2000, | |
757 | D = 100, | |
758 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
759 | position = hit.Parent.Torso.Position, | |
760 | Parent = hit.Parent.Torso, | |
761 | } | |
762 | game:GetService("Debris"):AddItem(bp, 1) | |
763 | elseif Type == "Freeze" then | |
764 | local BodPos = Create("BodyPosition"){ | |
765 | P = 50000, | |
766 | D = 1000, | |
767 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
768 | position = hit.Parent.Torso.Position, | |
769 | Parent = hit.Parent.Torso, | |
770 | } | |
771 | local BodGy = Create("BodyGyro") { | |
772 | maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge , | |
773 | P = 20e+003, | |
774 | Parent = hit.Parent.Torso, | |
775 | cframe = hit.Parent.Torso.CFrame, | |
776 | } | |
777 | hit.Parent.Torso.Anchored = true | |
778 | coroutine.resume(coroutine.create(function(Part) | |
779 | swait(1.5) | |
780 | Part.Anchored = false | |
781 | end), hit.Parent.Torso) | |
782 | game:GetService("Debris"):AddItem(BodPos, 3) | |
783 | game:GetService("Debris"):AddItem(BodGy, 3) | |
784 | end | |
785 | local debounce = Create("BoolValue"){ | |
786 | Name = "DebounceHit", | |
787 | Parent = hit.Parent, | |
788 | Value = true, | |
789 | } | |
790 | game:GetService("Debris"):AddItem(debounce, Delay) | |
791 | c = Create("ObjectValue"){ | |
792 | Name = "creator", | |
793 | Value = Player, | |
794 | Parent = h, | |
795 | } | |
796 | game:GetService("Debris"):AddItem(c, .5) | |
797 | end | |
798 | end | |
799 | ------------------------------------------------------- | |
800 | --End Damage Function-- | |
801 | ------------------------------------------------------- | |
802 | ||
803 | local EyeSizes={ | |
804 | NumberSequenceKeypoint.new(0,0.65,0), | |
805 | NumberSequenceKeypoint.new(0.5,0.7,0), | |
806 | NumberSequenceKeypoint.new(1,0,0) | |
807 | } | |
808 | local EyeTrans={ | |
809 | NumberSequenceKeypoint.new(0,0,0), | |
810 | NumberSequenceKeypoint.new(0.5,0,0), | |
811 | NumberSequenceKeypoint.new(1,1,0) | |
812 | } | |
813 | local PE2=Instance.new("ParticleEmitter", ra) | |
814 | PE2.LightEmission=.9 | |
815 | PE2.Color = ColorSequence.new(BrickC("Dark indigo").Color,BrickC("Royal purple").Color) | |
816 | PE2.Transparency=NumberSequence.new(EyeTrans) | |
817 | PE2.Lifetime=NumberRange.new(0.35) | |
818 | PE2.Rotation=NumberRange.new(0,360) | |
819 | PE2.Rate=999 | |
820 | PE2.VelocitySpread = 10000 | |
821 | PE2.Acceleration = Vector3.new(0,25,0) | |
822 | PE2.ZOffset = 0.5 | |
823 | PE2.Drag = 0 | |
824 | PE2.Speed = NumberRange.new(0,0,0) | |
825 | PE2.Texture="rbxasset://textures/particles/explosion01_implosion_main.dds" | |
826 | PE2.Name = "PE2" | |
827 | PE2.Enabled = true | |
828 | PE2.LockedToPart = true | |
829 | -- | |
830 | ||
831 | ||
832 | ------------------------------------------------------- | |
833 | --Start Damage Function Customization-- | |
834 | ------------------------------------------------------- | |
835 | function ShowDamage(Pos, Text, Time, Color) | |
836 | local Rate = (1 / 30) | |
837 | local Pos = (Pos or Vector3.new(0, 0, 0)) | |
838 | local Text = (Text or "") | |
839 | local Time = (Time or 2) | |
840 | local Color = (Color or Color3.new(1, 0, 1)) | |
841 | local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) | |
842 | EffectPart.Anchored = true | |
843 | local BillboardGui = Create("BillboardGui"){ | |
844 | Size = UDim2.new(3, 0, 3, 0), | |
845 | Adornee = EffectPart, | |
846 | Parent = EffectPart, | |
847 | } | |
848 | local TextLabel = Create("TextLabel"){ | |
849 | BackgroundTransparency = 1, | |
850 | Size = UDim2.new(1, 0, 1, 0), | |
851 | Text = Text, | |
852 | Font = "Bodoni", | |
853 | TextColor3 = Color, | |
854 | TextScaled = true, | |
855 | TextStrokeColor3 = Color3.fromRGB(0,0,0), | |
856 | Parent = BillboardGui, | |
857 | } | |
858 | game.Debris:AddItem(EffectPart, (Time)) | |
859 | EffectPart.Parent = game:GetService("Workspace") | |
860 | delay(0, function() | |
861 | local Frames = (Time / Rate) | |
862 | for Frame = 1, Frames do | |
863 | wait(Rate) | |
864 | local Percent = (Frame / Frames) | |
865 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
866 | TextLabel.TextTransparency = Percent | |
867 | end | |
868 | if EffectPart and EffectPart.Parent then | |
869 | EffectPart:Destroy() | |
870 | end | |
871 | end) | |
872 | end | |
873 | ------------------------------------------------------- | |
874 | --End Damage Function Customization-- | |
875 | ------------------------------------------------------- | |
876 | ||
877 | function MagniDamage(Part, magni, mindam, maxdam, knock, Type) | |
878 | for _, c in pairs(workspace:children()) do | |
879 | local hum = c:findFirstChild("Humanoid") | |
880 | if hum ~= nil then | |
881 | local head = c:findFirstChild("Head") | |
882 | if head ~= nil then | |
883 | local targ = head.Position - Part.Position | |
884 | local mag = targ.magnitude | |
885 | if magni >= mag and c.Name ~= plr.Name then | |
886 | Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2) | |
887 | end | |
888 | end | |
889 | end | |
890 | end | |
891 | end | |
892 | ||
893 | ||
894 | CFuncs = { | |
895 | Part = { | |
896 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
897 | local Part = Create("Part")({ | |
898 | Parent = Parent, | |
899 | Reflectance = Reflectance, | |
900 | Transparency = Transparency, | |
901 | CanCollide = false, | |
902 | Locked = true, | |
903 | BrickColor = BrickColor.new(tostring(BColor)), | |
904 | Name = Name, | |
905 | Size = Size, | |
906 | Material = Material | |
907 | }) | |
908 | RemoveOutlines(Part) | |
909 | return Part | |
910 | end | |
911 | }, | |
912 | Mesh = { | |
913 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
914 | local Msh = Create(Mesh)({ | |
915 | Parent = Part, | |
916 | Offset = OffSet, | |
917 | Scale = Scale | |
918 | }) | |
919 | if Mesh == "SpecialMesh" then | |
920 | Msh.MeshType = MeshType | |
921 | Msh.MeshId = MeshId | |
922 | end | |
923 | return Msh | |
924 | end | |
925 | }, | |
926 | Mesh = { | |
927 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
928 | local Msh = Create(Mesh)({ | |
929 | Parent = Part, | |
930 | Offset = OffSet, | |
931 | Scale = Scale | |
932 | }) | |
933 | if Mesh == "SpecialMesh" then | |
934 | Msh.MeshType = MeshType | |
935 | Msh.MeshId = MeshId | |
936 | end | |
937 | return Msh | |
938 | end | |
939 | }, | |
940 | Weld = { | |
941 | Create = function(Parent, Part0, Part1, C0, C1) | |
942 | local Weld = Create("Weld")({ | |
943 | Parent = Parent, | |
944 | Part0 = Part0, | |
945 | Part1 = Part1, | |
946 | C0 = C0, | |
947 | C1 = C1 | |
948 | }) | |
949 | return Weld | |
950 | end | |
951 | }, | |
952 | Sound = { | |
953 | Create = function(id, par, vol, pit) | |
954 | coroutine.resume(coroutine.create(function() | |
955 | local S = Create("Sound")({ | |
956 | Volume = vol, | |
957 | Pitch = pit or 1, | |
958 | SoundId = id, | |
959 | Parent = par or workspace | |
960 | }) | |
961 | wait() | |
962 | S:play() | |
963 | game:GetService("Debris"):AddItem(S, 6) | |
964 | end)) | |
965 | end | |
966 | }, | |
967 | ParticleEmitter = { | |
968 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
969 | local fp = Create("ParticleEmitter")({ | |
970 | Parent = Parent, | |
971 | Color = ColorSequence.new(Color1, Color2), | |
972 | LightEmission = LightEmission, | |
973 | Size = Size, | |
974 | Texture = Texture, | |
975 | Transparency = Transparency, | |
976 | ZOffset = ZOffset, | |
977 | Acceleration = Accel, | |
978 | Drag = Drag, | |
979 | LockedToPart = LockedToPart, | |
980 | VelocityInheritance = VelocityInheritance, | |
981 | EmissionDirection = EmissionDirection, | |
982 | Enabled = Enabled, | |
983 | Lifetime = LifeTime, | |
984 | Rate = Rate, | |
985 | Rotation = Rotation, | |
986 | RotSpeed = RotSpeed, | |
987 | Speed = Speed, | |
988 | VelocitySpread = VelocitySpread | |
989 | }) | |
990 | return fp | |
991 | end | |
992 | } | |
993 | } | |
994 | function RemoveOutlines(part) | |
995 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
996 | end | |
997 | function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
998 | local Part = Create("Part")({ | |
999 | formFactor = FormFactor, | |
1000 | Parent = Parent, | |
1001 | Reflectance = Reflectance, | |
1002 | Transparency = Transparency, | |
1003 | CanCollide = false, | |
1004 | Locked = true, | |
1005 | BrickColor = BrickColor.new(tostring(BColor)), | |
1006 | Name = Name, | |
1007 | Size = Size, | |
1008 | Material = Material | |
1009 | }) | |
1010 | RemoveOutlines(Part) | |
1011 | return Part | |
1012 | end | |
1013 | function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
1014 | local Msh = Create(Mesh)({ | |
1015 | Parent = Part, | |
1016 | Offset = OffSet, | |
1017 | Scale = Scale | |
1018 | }) | |
1019 | if Mesh == "SpecialMesh" then | |
1020 | Msh.MeshType = MeshType | |
1021 | Msh.MeshId = MeshId | |
1022 | end | |
1023 | return Msh | |
1024 | end | |
1025 | function CreateWeld(Parent, Part0, Part1, C0, C1) | |
1026 | local Weld = Create("Weld")({ | |
1027 | Parent = Parent, | |
1028 | Part0 = Part0, | |
1029 | Part1 = Part1, | |
1030 | C0 = C0, | |
1031 | C1 = C1 | |
1032 | }) | |
1033 | return Weld | |
1034 | end | |
1035 | ||
1036 | ||
1037 | ------------------------------------------------------- | |
1038 | --Start Effect Function-- | |
1039 | ------------------------------------------------------- | |
1040 | EffectModel = Instance.new("Model", char) | |
1041 | Effects = { | |
1042 | Block = { | |
1043 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
1044 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
1045 | prt.Anchored = true | |
1046 | prt.CFrame = cframe | |
1047 | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1048 | game:GetService("Debris"):AddItem(prt, 10) | |
1049 | if Type == 1 or Type == nil then | |
1050 | table.insert(Effects, { | |
1051 | prt, | |
1052 | "Block1", | |
1053 | delay, | |
1054 | x3, | |
1055 | y3, | |
1056 | z3, | |
1057 | msh | |
1058 | }) | |
1059 | elseif Type == 2 then | |
1060 | table.insert(Effects, { | |
1061 | prt, | |
1062 | "Block2", | |
1063 | delay, | |
1064 | x3, | |
1065 | y3, | |
1066 | z3, | |
1067 | msh | |
1068 | }) | |
1069 | else | |
1070 | table.insert(Effects, { | |
1071 | prt, | |
1072 | "Block3", | |
1073 | delay, | |
1074 | x3, | |
1075 | y3, | |
1076 | z3, | |
1077 | msh | |
1078 | }) | |
1079 | end | |
1080 | end | |
1081 | }, | |
1082 | Sphere = { | |
1083 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1084 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
1085 | prt.Anchored = true | |
1086 | prt.CFrame = cframe | |
1087 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1088 | game:GetService("Debris"):AddItem(prt, 10) | |
1089 | table.insert(Effects, { | |
1090 | prt, | |
1091 | "Cylinder", | |
1092 | delay, | |
1093 | x3, | |
1094 | y3, | |
1095 | z3, | |
1096 | msh | |
1097 | }) | |
1098 | end | |
1099 | }, | |
1100 | Cylinder = { | |
1101 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1102 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
1103 | prt.Anchored = true | |
1104 | prt.CFrame = cframe | |
1105 | local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1106 | game:GetService("Debris"):AddItem(prt, 10) | |
1107 | table.insert(Effects, { | |
1108 | prt, | |
1109 | "Cylinder", | |
1110 | delay, | |
1111 | x3, | |
1112 | y3, | |
1113 | z3, | |
1114 | msh | |
1115 | }) | |
1116 | end | |
1117 | }, | |
1118 | Wave = { | |
1119 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1120 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
1121 | prt.Anchored = true | |
1122 | prt.CFrame = cframe | |
1123 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60)) | |
1124 | game:GetService("Debris"):AddItem(prt, 10) | |
1125 | table.insert(Effects, { | |
1126 | prt, | |
1127 | "Cylinder", | |
1128 | delay, | |
1129 | x3 / 60, | |
1130 | y3 / 60, | |
1131 | z3 / 60, | |
1132 | msh | |
1133 | }) | |
1134 | end | |
1135 | }, | |
1136 | Ring = { | |
1137 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1138 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
1139 | prt.Anchored = true | |
1140 | prt.CFrame = cframe | |
1141 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1142 | game:GetService("Debris"):AddItem(prt, 10) | |
1143 | table.insert(Effects, { | |
1144 | prt, | |
1145 | "Cylinder", | |
1146 | delay, | |
1147 | x3, | |
1148 | y3, | |
1149 | z3, | |
1150 | msh | |
1151 | }) | |
1152 | end | |
1153 | }, | |
1154 | Break = { | |
1155 | Create = function(brickcolor, cframe, x1, y1, z1) | |
1156 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
1157 | prt.Anchored = true | |
1158 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
1159 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1160 | local num = math.random(10, 50) / 1000 | |
1161 | game:GetService("Debris"):AddItem(prt, 10) | |
1162 | table.insert(Effects, { | |
1163 | prt, | |
1164 | "Shatter", | |
1165 | num, | |
1166 | prt.CFrame, | |
1167 | math.random() - math.random(), | |
1168 | 0, | |
1169 | math.random(50, 100) / 100 | |
1170 | }) | |
1171 | end | |
1172 | }, | |
1173 | Spiral = { | |
1174 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1175 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
1176 | prt.Anchored = true | |
1177 | prt.CFrame = cframe | |
1178 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1179 | game:GetService("Debris"):AddItem(prt, 10) | |
1180 | table.insert(Effects, { | |
1181 | prt, | |
1182 | "Cylinder", | |
1183 | delay, | |
1184 | x3, | |
1185 | y3, | |
1186 | z3, | |
1187 | msh | |
1188 | }) | |
1189 | end | |
1190 | }, | |
1191 | Push = { | |
1192 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1193 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
1194 | prt.Anchored = true | |
1195 | prt.CFrame = cframe | |
1196 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1197 | game:GetService("Debris"):AddItem(prt, 10) | |
1198 | table.insert(Effects, { | |
1199 | prt, | |
1200 | "Cylinder", | |
1201 | delay, | |
1202 | x3, | |
1203 | y3, | |
1204 | z3, | |
1205 | msh | |
1206 | }) | |
1207 | end | |
1208 | } | |
1209 | } | |
1210 | function part(formfactor ,parent, reflectance, transparency, brickcolor, name, size) | |
1211 | local fp = IT("Part") | |
1212 | fp.formFactor = formfactor | |
1213 | fp.Parent = parent | |
1214 | fp.Reflectance = reflectance | |
1215 | fp.Transparency = transparency | |
1216 | fp.CanCollide = false | |
1217 | fp.Locked = true | |
1218 | fp.BrickColor = brickcolor | |
1219 | fp.Name = name | |
1220 | fp.Size = size | |
1221 | fp.Position = tors.Position | |
1222 | RemoveOutlines(fp) | |
1223 | fp.Material = "SmoothPlastic" | |
1224 | fp:BreakJoints() | |
1225 | return fp | |
1226 | end | |
1227 | ||
1228 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
1229 | local mesh = IT(Mesh) | |
1230 | mesh.Parent = part | |
1231 | if Mesh == "SpecialMesh" then | |
1232 | mesh.MeshType = meshtype | |
1233 | if meshid ~= "nil" then | |
1234 | mesh.MeshId = "http://www.roblox.com/asset/?id="..meshid | |
1235 | end | |
1236 | end | |
1237 | mesh.Offset = offset | |
1238 | mesh.Scale = scale | |
1239 | return mesh | |
1240 | end | |
1241 | ||
1242 | function Magic(bonuspeed, type, pos, scale, value, color, MType) | |
1243 | local type = type | |
1244 | local rng = Instance.new("Part", char) | |
1245 | rng.Anchored = true | |
1246 | rng.BrickColor = color | |
1247 | rng.CanCollide = false | |
1248 | rng.FormFactor = 3 | |
1249 | rng.Name = "Ring" | |
1250 | rng.Material = "Neon" | |
1251 | rng.Size = Vector3.new(1, 1, 1) | |
1252 | rng.Transparency = 0 | |
1253 | rng.TopSurface = 0 | |
1254 | rng.BottomSurface = 0 | |
1255 | rng.CFrame = pos | |
1256 | local rngm = Instance.new("SpecialMesh", rng) | |
1257 | rngm.MeshType = MType | |
1258 | rngm.Scale = scale | |
1259 | local scaler2 = 1 | |
1260 | if type == "Add" then | |
1261 | scaler2 = 1 * value | |
1262 | elseif type == "Divide" then | |
1263 | scaler2 = 1 / value | |
1264 | end | |
1265 | coroutine.resume(coroutine.create(function() | |
1266 | for i = 0, 10 / bonuspeed, 0.1 do | |
1267 | swait() | |
1268 | if type == "Add" then | |
1269 | scaler2 = scaler2 - 0.01 * value / bonuspeed | |
1270 | elseif type == "Divide" then | |
1271 | scaler2 = scaler2 - 0.01 / value * bonuspeed | |
1272 | end | |
1273 | rng.Transparency = rng.Transparency + 0.01 * bonuspeed | |
1274 | rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed) | |
1275 | end | |
1276 | rng:Destroy() | |
1277 | end)) | |
1278 | end | |
1279 | ||
1280 | function Eviscerate(dude) | |
1281 | if dude.Name ~= char then | |
1282 | local bgf = IT("BodyGyro", dude.Head) | |
1283 | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0) | |
1284 | local val = IT("BoolValue", dude) | |
1285 | val.Name = "IsHit" | |
1286 | local ds = coroutine.wrap(function() | |
1287 | dude:WaitForChild("Head"):BreakJoints() | |
1288 | wait(0.5) | |
1289 | target = nil | |
1290 | coroutine.resume(coroutine.create(function() | |
1291 | for i, v in pairs(dude:GetChildren()) do | |
1292 | if v:IsA("Accessory") then | |
1293 | v:Destroy() | |
1294 | end | |
1295 | if v:IsA("Humanoid") then | |
1296 | v:Destroy() | |
1297 | end | |
1298 | if v:IsA("CharacterMesh") then | |
1299 | v:Destroy() | |
1300 | end | |
1301 | if v:IsA("Model") then | |
1302 | v:Destroy() | |
1303 | end | |
1304 | if v:IsA("Part") or v:IsA("MeshPart") then | |
1305 | for x, o in pairs(v:GetChildren()) do | |
1306 | if o:IsA("Decal") then | |
1307 | o:Destroy() | |
1308 | end | |
1309 | end | |
1310 | coroutine.resume(coroutine.create(function() | |
1311 | v.Material = "Neon" | |
1312 | v.CanCollide = false | |
1313 | local PartEmmit1 = IT("ParticleEmitter", v) | |
1314 | PartEmmit1.LightEmission = 1 | |
1315 | PartEmmit1.Texture = "rbxassetid://284205403" | |
1316 | PartEmmit1.Color = ColorSequence.new(maincolor.Color) | |
1317 | PartEmmit1.Rate = 150 | |
1318 | PartEmmit1.Lifetime = NumberRange.new(1) | |
1319 | PartEmmit1.Size = NumberSequence.new({ | |
1320 | NumberSequenceKeypoint.new(0, 0.75, 0), | |
1321 | NumberSequenceKeypoint.new(1, 0, 0) | |
1322 | }) | |
1323 | PartEmmit1.Transparency = NumberSequence.new({ | |
1324 | NumberSequenceKeypoint.new(0, 0, 0), | |
1325 | NumberSequenceKeypoint.new(1, 1, 0) | |
1326 | }) | |
1327 | PartEmmit1.Speed = NumberRange.new(0, 0) | |
1328 | PartEmmit1.VelocitySpread = 30000 | |
1329 | PartEmmit1.Rotation = NumberRange.new(-500, 500) | |
1330 | PartEmmit1.RotSpeed = NumberRange.new(-500, 500) | |
1331 | local BodPoss = IT("BodyPosition", v) | |
1332 | BodPoss.P = 3000 | |
1333 | BodPoss.D = 1000 | |
1334 | BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000) | |
1335 | BodPoss.position = v.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15)) | |
1336 | v.Color = maincolor.Color | |
1337 | coroutine.resume(coroutine.create(function() | |
1338 | for i = 0, 49 do | |
1339 | swait(1) | |
1340 | v.Transparency = v.Transparency + 0.08 | |
1341 | end | |
1342 | wait(0.5) | |
1343 | PartEmmit1.Enabled = false | |
1344 | wait(3) | |
1345 | v:Destroy() | |
1346 | dude:Destroy() | |
1347 | end)) | |
1348 | end)) | |
1349 | end | |
1350 | end | |
1351 | end)) | |
1352 | end) | |
1353 | ds() | |
1354 | end | |
1355 | end | |
1356 | ||
1357 | function FindNearestHead(Position, Distance, SinglePlayer) | |
1358 | if SinglePlayer then | |
1359 | return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude | |
1360 | end | |
1361 | local List = {} | |
1362 | for i, v in pairs(workspace:GetChildren()) do | |
1363 | if v:IsA("Model") and v:findFirstChild("Head") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then | |
1364 | table.insert(List, v) | |
1365 | end | |
1366 | end | |
1367 | return List | |
1368 | end | |
1369 | ||
1370 | function Aura(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos, MType) | |
1371 | local type = type | |
1372 | local rng = Instance.new("Part", char) | |
1373 | rng.Anchored = true | |
1374 | rng.BrickColor = color | |
1375 | rng.CanCollide = false | |
1376 | rng.FormFactor = 3 | |
1377 | rng.Name = "Ring" | |
1378 | rng.Material = "Neon" | |
1379 | rng.Size = Vector3.new(1, 1, 1) | |
1380 | rng.Transparency = 0 | |
1381 | rng.TopSurface = 0 | |
1382 | rng.BottomSurface = 0 | |
1383 | rng.CFrame = pos | |
1384 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos | |
1385 | local rngm = Instance.new("SpecialMesh", rng) | |
1386 | rngm.MeshType = MType | |
1387 | rngm.Scale = Vector3.new(x1, y1, z1) | |
1388 | local scaler2 = 1 | |
1389 | local speeder = FastSpeed | |
1390 | if type == "Add" then | |
1391 | scaler2 = 1 * value | |
1392 | elseif type == "Divide" then | |
1393 | scaler2 = 1 / value | |
1394 | end | |
1395 | coroutine.resume(coroutine.create(function() | |
1396 | for i = 0, 10 / bonuspeed, 0.1 do | |
1397 | swait() | |
1398 | if type == "Add" then | |
1399 | scaler2 = scaler2 - 0.01 * value / bonuspeed | |
1400 | elseif type == "Divide" then | |
1401 | scaler2 = scaler2 - 0.01 / value * bonuspeed | |
1402 | end | |
1403 | speeder = speeder - 0.01 * FastSpeed * bonuspeed | |
1404 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed | |
1405 | rng.Transparency = rng.Transparency + 0.01 * bonuspeed | |
1406 | rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0) | |
1407 | end | |
1408 | rng:Destroy() | |
1409 | end)) | |
1410 | end | |
1411 | ||
1412 | function SoulSteal(dude) | |
1413 | if dude.Name ~= char then | |
1414 | local bgf = IT("BodyGyro", dude.Head) | |
1415 | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0) | |
1416 | local val = IT("BoolValue", dude) | |
1417 | val.Name = "IsHit" | |
1418 | local torso = (dude:FindFirstChild'Head' or dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso' or dude:FindFirstChild'LowerTorso' or dude:FindFirstChild'HumanoidRootPart') | |
1419 | local soulst = coroutine.wrap(function() | |
1420 | local soul = Instance.new("Part",dude) | |
1421 | soul.Size = Vector3.new(1,1,1) | |
1422 | soul.CanCollide = false | |
1423 | soul.Anchored = false | |
1424 | soul.Position = torso.Position | |
1425 | soul.Transparency = 1 | |
1426 | local PartEmmit1 = IT("ParticleEmitter", soul) | |
1427 | PartEmmit1.LightEmission = 1 | |
1428 | PartEmmit1.Texture = "rbxassetid://569507414" | |
1429 | PartEmmit1.Color = ColorSequence.new(maincolor.Color) | |
1430 | PartEmmit1.Rate = 250 | |
1431 | PartEmmit1.Lifetime = NumberRange.new(1.6) | |
1432 | PartEmmit1.Size = NumberSequence.new({ | |
1433 | NumberSequenceKeypoint.new(0, 1, 0), | |
1434 | NumberSequenceKeypoint.new(1, 0, 0) | |
1435 | }) | |
1436 | PartEmmit1.Transparency = NumberSequence.new({ | |
1437 | NumberSequenceKeypoint.new(0, 0, 0), | |
1438 | NumberSequenceKeypoint.new(1, 1, 0) | |
1439 | }) | |
1440 | PartEmmit1.Speed = NumberRange.new(0, 0) | |
1441 | PartEmmit1.VelocitySpread = 30000 | |
1442 | PartEmmit1.Rotation = NumberRange.new(-360, 360) | |
1443 | PartEmmit1.RotSpeed = NumberRange.new(-360, 360) | |
1444 | local BodPoss = IT("BodyPosition", soul) | |
1445 | BodPoss.P = 3000 | |
1446 | BodPoss.D = 1000 | |
1447 | BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000) | |
1448 | BodPoss.position = torso.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15)) | |
1449 | wait(1.6) | |
1450 | soul.Touched:connect(function(hit) | |
1451 | if hit.Parent == char then | |
1452 | soul:Destroy() | |
1453 | end | |
1454 | end) | |
1455 | wait(1.2) | |
1456 | while soul do | |
1457 | swait() | |
1458 | PartEmmit1.Color = ColorSequence.new(maincolor.Color) | |
1459 | BodPoss.Position = tors.Position | |
1460 | end | |
1461 | end) | |
1462 | soulst() | |
1463 | end | |
1464 | end | |
1465 | function FaceMouse() | |
1466 | local Cam = workspace.CurrentCamera | |
1467 | return { | |
1468 | CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)), | |
1469 | Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z) | |
1470 | } | |
1471 | end | |
1472 | -------------------- | |
1473 | ----------------------------------- | |
1474 | --End Effect Function-- | |
1475 | ------------------------------------------------------- | |
1476 | function Cso(ID, PARENT, VOLUME, PITCH) | |
1477 | local NSound = nil | |
1478 | coroutine.resume(coroutine.create(function() | |
1479 | NSound = IT("Sound", PARENT) | |
1480 | NSound.Volume = VOLUME | |
1481 | NSound.Pitch = PITCH | |
1482 | NSound.SoundId = "http://www.roblox.com/asset/?id="..ID | |
1483 | swait() | |
1484 | NSound:play() | |
1485 | game:GetService("Debris"):AddItem(NSound, 10) | |
1486 | end)) | |
1487 | return NSound | |
1488 | end | |
1489 | function CameraEnshaking(Length, Intensity) | |
1490 | coroutine.resume(coroutine.create(function() | |
1491 | local intensity = 1 * Intensity | |
1492 | local rotM = 0.01 * Intensity | |
1493 | for i = 0, Length, 0.1 do | |
1494 | swait() | |
1495 | intensity = intensity - 0.05 * Intensity / Length | |
1496 | rotM = rotM - 5.0E-4 * Intensity / Length | |
1497 | hum.CameraOffset = Vector3.new(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity))) | |
1498 | cam.CFrame = cam.CFrame * CF(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity))) * Euler(Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM) | |
1499 | end | |
1500 | hum.CameraOffset = Vector3.new(0, 0, 0) | |
1501 | end)) | |
1502 | end | |
1503 | -- | |
1504 | function SphereAura(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos) | |
1505 | local type = type | |
1506 | local rng = Instance.new("Part", char) | |
1507 | rng.Anchored = true | |
1508 | rng.BrickColor = color | |
1509 | rng.CanCollide = false | |
1510 | rng.FormFactor = 3 | |
1511 | rng.Name = "Ring" | |
1512 | rng.Material = "Neon" | |
1513 | rng.Size = Vector3.new(1, 1, 1) | |
1514 | rng.Transparency = 0 | |
1515 | rng.TopSurface = 0 | |
1516 | rng.BottomSurface = 0 | |
1517 | rng.CFrame = pos | |
1518 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos | |
1519 | local rngm = Instance.new("SpecialMesh", rng) | |
1520 | rngm.MeshType = "Sphere" | |
1521 | rngm.Scale = Vector3.new(x1, y1, z1) | |
1522 | local scaler2 = 1 | |
1523 | local speeder = FastSpeed | |
1524 | if type == "Add" then | |
1525 | scaler2 = 1 * value | |
1526 | elseif type == "Divide" then | |
1527 | scaler2 = 1 / value | |
1528 | end | |
1529 | coroutine.resume(coroutine.create(function() | |
1530 | for i = 0, 10 / bonuspeed, 0.1 do | |
1531 | swait() | |
1532 | if type == "Add" then | |
1533 | scaler2 = scaler2 - 0.01 * value / bonuspeed | |
1534 | elseif type == "Divide" then | |
1535 | scaler2 = scaler2 - 0.01 / value * bonuspeed | |
1536 | end | |
1537 | rng.BrickColor = BrickColor.random() | |
1538 | speeder = speeder - 0.01 * FastSpeed * bonuspeed | |
1539 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed | |
1540 | rng.Transparency = rng.Transparency + 0.01 * bonuspeed | |
1541 | rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0) | |
1542 | end | |
1543 | rng:Destroy() | |
1544 | end)) | |
1545 | end | |
1546 | ||
1547 | function FindNearestHead(Position, Distance, SinglePlayer) | |
1548 | if SinglePlayer then | |
1549 | return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude | |
1550 | end | |
1551 | local List = {} | |
1552 | for i, v in pairs(workspace:GetChildren()) do | |
1553 | if v:IsA("Model") and v:findFirstChild("Head") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then | |
1554 | table.insert(List, v) | |
1555 | end | |
1556 | end | |
1557 | return List | |
1558 | end | |
1559 | ------------------------------------------------------- | |
1560 | --End Important Functions-- | |
1561 | ------------------------------------------------------- | |
1562 | ||
1563 | ||
1564 | local Lite = IT("PointLight",tors) | |
1565 | Lite.Color = Color3.new(.7,0,1) | |
1566 | Lite.Range = 8 | |
1567 | Lite.Brightness = 10 | |
1568 | Lite.Shadows = true | |
1569 | -- | |
1570 | abss = Instance.new("BillboardGui",char) | |
1571 | abss.Size = UDim2.new(10,0,10,0) | |
1572 | abss.Enabled = false | |
1573 | imgl = Instance.new("ImageLabel",abss) | |
1574 | imgl.Position = UDim2.new(0,0,0,0) | |
1575 | imgl.Size = UDim2.new(1,0,1,0) | |
1576 | imgl.Image = "rbxassetid://224019254" | |
1577 | imgl.BackgroundTransparency = 1 | |
1578 | imgl.ImageColor3 = Color3.new(.5,0,.5) | |
1579 | img2 = Instance.new("ImageLabel",abss) | |
1580 | img2.Position = UDim2.new(0,0,0,0) | |
1581 | img2.Size = UDim2.new(1,0,1,0) | |
1582 | img2.Image = "rbxassetid://224019254" | |
1583 | img2.BackgroundTransparency = 1 | |
1584 | img2.ImageColor3 = Color3.new(.5,0,.5) | |
1585 | ------------------------------------------------------- | |
1586 | --Start Customization-- | |
1587 | ------------------------------------------------------- | |
1588 | local Player_Size = 1 | |
1589 | if Player_Size ~= 1 then | |
1590 | root.Size = root.Size * Player_Size | |
1591 | tors.Size = tors.Size * Player_Size | |
1592 | hed.Size = hed.Size * Player_Size | |
1593 | ra.Size = ra.Size * Player_Size | |
1594 | la.Size = la.Size * Player_Size | |
1595 | rl.Size = rl.Size * Player_Size | |
1596 | ll.Size = ll.Size * Player_Size | |
1597 | ---------------------------------------------------------------------------------- | |
1598 | rootj.Parent = root | |
1599 | neck.Parent = tors | |
1600 | RW.Parent = tors | |
1601 | LW.Parent = tors | |
1602 | RH.Parent = tors | |
1603 | LH.Parent = tors | |
1604 | ---------------------------------------------------------------------------------- | |
1605 | rootj.C0 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) | |
1606 | rootj.C1 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) | |
1607 | neck.C0 = necko * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0)) | |
1608 | neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * angles(Rad(-90), Rad(0), Rad(180)) | |
1609 | RW.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* RIGHTSHOULDERC0 | |
1610 | LW.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* LEFTSHOULDERC0 | |
1611 | ---------------------------------------------------------------------------------- | |
1612 | RH.C0 = CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0)) | |
1613 | LH.C0 = CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(-90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0)) | |
1614 | RH.C1 = CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0)) | |
1615 | LH.C1 = CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(-90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0)) | |
1616 | --hat.Parent = Character | |
1617 | end | |
1618 | ---------------------------------------------------------------------------------- | |
1619 | - | local SONG = 580367180 |
1619 | + | local SONG = 1275083876 |
1620 | local SONG2 = 0 | |
1621 | local Music = Instance.new("Sound",tors) | |
1622 | Music.Volume = 2.5 | |
1623 | Music.Looped = true | |
1624 | Music.Pitch = 1 --Pitcher | |
1625 | ---------------------------------------------------------------------------------- | |
1626 | local equipped = false | |
1627 | local idle = 0 | |
1628 | local change = 1 | |
1629 | local val = 0 | |
1630 | local toim = 0 | |
1631 | local idleanim = 0.4 | |
1632 | local sine = 0 | |
1633 | local Sit = 1 | |
1634 | ---------------------------------------------------------------------------------- | |
1635 | hum.WalkSpeed = 8 | |
1636 | hum.JumpPower = 57 | |
1637 | hum.Animator.Parent = nil | |
1638 | ---------------------------------------------------------------------------------- | |
1639 | local r = 255 | |
1640 | local g = 0 | |
1641 | local b = 0 | |
1642 | coroutine.resume(coroutine.create(function() | |
1643 | while wait() do | |
1644 | for i = 0, 50.8 do | |
1645 | swait() | |
1646 | g = g + 5 | |
1647 | end | |
1648 | for i = 0, 50.8 do | |
1649 | swait() | |
1650 | r = r - 5 | |
1651 | end | |
1652 | for i = 0, 50.8 do | |
1653 | swait() | |
1654 | b = b + 5 | |
1655 | end | |
1656 | for i = 0, 50.8 do | |
1657 | swait() | |
1658 | g = g - 5 | |
1659 | end | |
1660 | for i = 0, 50.8 do | |
1661 | swait() | |
1662 | r = r + 5 | |
1663 | end | |
1664 | for i = 0, 50.8 do | |
1665 | swait() | |
1666 | b = b - 5 | |
1667 | end | |
1668 | end | |
1669 | end)) | |
1670 | ||
1671 | --- | |
1672 | ||
1673 | ||
1674 | ---------------------------------------------------------------------------------- | |
1675 | local naeeym2 = IT("BillboardGui",char) | |
1676 | naeeym2.AlwaysOnTop = true | |
1677 | naeeym2.Size = UDim2.new(5,35,2,15) | |
1678 | naeeym2.StudsOffset = Vector3.new(0,2,0) | |
1679 | naeeym2.MaxDistance = 75 | |
1680 | naeeym2.Adornee = hed | |
1681 | naeeym2.Name = "Name" | |
1682 | local tecks2 = IT("TextLabel",naeeym2) | |
1683 | tecks2.BackgroundTransparency = 1 | |
1684 | tecks2.TextScaled = true | |
1685 | tecks2.BorderSizePixel = 0 | |
1686 | tecks2.Text = "" | |
1687 | tecks2.Font = "Fantasy" | |
1688 | tecks2.TextSize = 30 | |
1689 | tecks2.TextStrokeTransparency = 0 | |
1690 | tecks2.TextColor3 = Color3.new(1,1,1) | |
1691 | tecks2.TextStrokeColor3 = Color3.fromRGB(0, 0, 0) | |
1692 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
1693 | tecks2.Parent = naeeym2 | |
1694 | hed.face.Texture = "rbxassetid://620619801" | |
1695 | -- | |
1696 | CV="Blue" | |
1697 | Player = owner | |
1698 | Character = Player.Character | |
1699 | local txt = Instance.new("BillboardGui", Character) | |
1700 | txt.Adornee = Character .Head | |
1701 | txt.Name = "_status" | |
1702 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
1703 | txt.StudsOffset = Vector3.new(-9, 8, 0) | |
1704 | local text = Instance.new("TextLabel", txt) | |
1705 | text.Size = UDim2.new(10, 0, 7, 0) | |
1706 | text.FontSize = "Size24" | |
1707 | text.TextScaled = true | |
1708 | text.TextTransparency = 0 | |
1709 | text.BackgroundTransparency = 1 | |
1710 | text.TextTransparency = 0 | |
1711 | text.TextStrokeTransparency = 0 | |
1712 | text.Font = "Antique" | |
1713 | text.TextStrokeColor3 = Color3.new(.5,0,.5) | |
1714 | ||
1715 | v=Instance.new("Part") | |
1716 | v.Name = "ColorBrick" | |
1717 | v.Parent=Player.Character | |
1718 | v.FormFactor="Symmetric" | |
1719 | v.Anchored=true | |
1720 | v.CanCollide=false | |
1721 | v.BottomSurface="Smooth" | |
1722 | v.TopSurface="Smooth" | |
1723 | v.Size=Vector3.new(10,5,3) | |
1724 | v.Transparency=1 | |
1725 | v.CFrame=Character.Torso.CFrame | |
1726 | v.BrickColor=BrickColor.new(CV) | |
1727 | v.Transparency=1 | |
1728 | text.TextColor3 = Color3.new(0,0,0) | |
1729 | v.Shape="Block" | |
1730 | - | text.Text = "Stranger" |
1730 | + | text.Text = "Zé Droguinha" |
1731 | coroutine.resume(coroutine.create(function() | |
1732 | while true do wait() | |
1733 | - | text.Text = "Stranger" |
1733 | + | text.Text = "Zé Droguinha" |
1734 | wait(math.random(1,2)) | |
1735 | local textline = math.random(1,4) | |
1736 | if textline == 1 then | |
1737 | - | text.Text = "S!#T$R!%4n$G3r" |
1737 | + | text.Text = "" |
1738 | wait() | |
1739 | - | text.Text = "H|I:)" |
1739 | + | text.Text = "Hehe boi" |
1740 | ||
1741 | end | |
1742 | if textline == 2 then | |
1743 | - | text.Text = "=$?_#Wh4t)" |
1743 | + | text.Text = "=" |
1744 | wait(.05) | |
1745 | ||
1746 | if textline == 3 then | |
1747 | - | text.Text = "%E#rro!r#" |
1747 | + | text.Text = "" |
1748 | wait(.05) | |
1749 | text.Position = UDim2.new(0,math.random(-1,1),0,math.random(-1,1)) | |
1750 | ||
1751 | end | |
1752 | ||
1753 | ||
1754 | ||
1755 | ||
1756 | ||
1757 | ||
1758 | ||
1759 | end | |
1760 | end | |
1761 | ||
1762 | ||
1763 | ||
1764 | end)) | |
1765 | --- | |
1766 | ||
1767 | function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
1768 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
1769 | prt.Anchored = true | |
1770 | prt.CFrame = cframe | |
1771 | local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1772 | game:GetService("Debris"):AddItem(prt, 10) | |
1773 | if Type == 1 or Type == nil then | |
1774 | table.insert(Effects, { | |
1775 | prt, | |
1776 | "Block1", | |
1777 | delay, | |
1778 | x3, | |
1779 | y3, | |
1780 | z3, | |
1781 | msh | |
1782 | }) | |
1783 | elseif Type == 2 then | |
1784 | table.insert(Effects, { | |
1785 | prt, | |
1786 | "Block2", | |
1787 | delay, | |
1788 | x3, | |
1789 | y3, | |
1790 | z3, | |
1791 | msh | |
1792 | }) | |
1793 | elseif Type == 3 then | |
1794 | table.insert(Effects, { | |
1795 | prt, | |
1796 | "Block3", | |
1797 | delay, | |
1798 | x3, | |
1799 | y3, | |
1800 | z3, | |
1801 | msh | |
1802 | }) | |
1803 | end | |
1804 | end | |
1805 | ||
1806 | ||
1807 | ||
1808 | ||
1809 | ||
1810 | ---------------------------------------------------------------------------------- | |
1811 | Reaper = IT("Model") | |
1812 | Reaper.Parent = char | |
1813 | Reaper.Name = "Reaper" | |
1814 | RHe = IT("Part") | |
1815 | RHe.Parent = Reaper | |
1816 | RHe.BrickColor = BrickC("Really black") | |
1817 | RHe.Locked = true | |
1818 | RHe.CanCollide = false | |
1819 | RHe.Transparency = 0 | |
1820 | PMesh = IT("SpecialMesh") | |
1821 | RHe.formFactor = "Symmetric" | |
1822 | PMesh.MeshType = "FileMesh" | |
1823 | PMesh.MeshId = "rbxassetid://1374148" | |
1824 | PMesh.TextureId = "rbxassetid://185703978" | |
1825 | PMesh.Scale = Vector3.new(1, 1, 1) | |
1826 | PMesh.Parent = RHe | |
1827 | local RWeld = IT("Weld") | |
1828 | RWeld.Parent = RHe | |
1829 | RWeld.Part0 = RHe | |
1830 | RWeld.Part1 = hed | |
1831 | RWeld.C0 = CF(0, -.7, 0) * angles(0, 0, 0) | |
1832 | ------------------------------------------------------- | |
1833 | --End Customization-- | |
1834 | ------------------------------------------------------- | |
1835 | ||
1836 | function CreateSound(ID, PARENT, VOLUME, PITCH) | |
1837 | local NSound = nil | |
1838 | coroutine.resume(coroutine.create(function() | |
1839 | NSound = Instance.new("Sound", PARENT) | |
1840 | NSound.Volume = VOLUME | |
1841 | NSound.Pitch = PITCH | |
1842 | NSound.SoundId = "http://www.roblox.com/asset/?id="..ID | |
1843 | swait() | |
1844 | NSound:play() | |
1845 | game:GetService("Debris"):AddItem(NSound, 10) | |
1846 | end)) | |
1847 | return NSound | |
1848 | end | |
1849 | ||
1850 | ||
1851 | ------------------------------------------------------- | |
1852 | --Start Attacks N Stuff-- | |
1853 | ------------------------------------------------------- | |
1854 | local sine=0 | |
1855 | function HitboxFunction(Pose, lifetime, siz1, siz2, siz3, Radie, Min, Max, kb, atype) | |
1856 | local Hitboxpart = Instance.new("Part", EffectModel) | |
1857 | RemoveOutlines(Hitboxpart) | |
1858 | Hitboxpart.Size = Vector3.new(siz1, siz2, siz3) | |
1859 | Hitboxpart.CanCollide = false | |
1860 | Hitboxpart.Transparency = 1 | |
1861 | Hitboxpart.Anchored = true | |
1862 | Hitboxpart.CFrame = Pose | |
1863 | game:GetService("Debris"):AddItem(Hitboxpart, lifetime) | |
1864 | MagniDamage(Hitboxpart, Radie, Min, Max, kb, atype) | |
1865 | end | |
1866 | wait2 = false | |
1867 | combo = 1 | |
1868 | mouse.Button1Down:connect(function(key) | |
1869 | if attack == false then | |
1870 | attack = true | |
1871 | hum.WalkSpeed = 3.01 | |
1872 | if combo == 1 and wait2 == false then | |
1873 | wait2 = true | |
1874 | for i = 0, 1.2, 0.1 do | |
1875 | swait() | |
1876 | rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, 0) * angles(math.rad(-5), math.rad(0), math.rad(-35)), 0.3) | |
1877 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.1) | |
1878 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.8) * angles(math.rad(90), math.rad(0), math.rad(20)), 0.1) | |
1879 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-25), math.rad(0), math.rad(-10)), 0.3) | |
1880 | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, -0.2) * RHCF * angles(math.rad(-2.5), math.rad(0), math.rad(-0)), 0.3) | |
1881 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * angles(math.rad(-2.5), math.rad(15), math.rad(-20)), 0.3) | |
1882 | end | |
1883 | CreateSound("138097048", ra, 3, .8) | |
1884 | HitboxFunction(ra.CFrame, 0.01, 1, 1, 1, 7, 6, 9, 3, "Normal") | |
1885 | for i = 0, 1.2, 0.1 do | |
1886 | swait() | |
1887 | BlockEffect(maincolor, Handle.CFrame, 21, 41, 21, -2, -3, -2, 0.08, 2) | |
1888 | rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, 0) * angles(math.rad(5), math.rad(0), math.rad(55)), 0.3) | |
1889 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1) | |
1890 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.8) * angles(math.rad(95), math.rad(0), math.rad(40)), 0.1) | |
1891 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-25), math.rad(0), math.rad(-10)), 0.3) | |
1892 | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * angles(math.rad(-2.5), math.rad(-25), math.rad(-17)), 0.3) | |
1893 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * angles(math.rad(-2.5), math.rad(-0), math.rad(0)), 0.3) | |
1894 | end | |
1895 | combo = 2 | |
1896 | end | |
1897 | if combo == 2 and wait2 == false then | |
1898 | wait2 = true | |
1899 | for i = 0, 1.2, 0.1 do | |
1900 | swait() | |
1901 | rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, 0) * angles(math.rad(-25), math.rad(10), math.rad(-65)), 0.3) | |
1902 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1) | |
1903 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.1) | |
1904 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-25), math.rad(0), math.rad(-10)), 0.3) | |
1905 | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * angles(math.rad(-2.5), math.rad(-25), math.rad(-25)), 0.3) | |
1906 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * angles(math.rad(-2.5), math.rad(-0), math.rad(-20)), 0.3) | |
1907 | end | |
1908 | CreateSound("138097048", rl, 3, 1) | |
1909 | HitboxFunction(ll.CFrame, 0.01, 1, 1, 1, 7, 5, 10, 3, "Normal") | |
1910 | for i = 0, 1.6, 0.1 do | |
1911 | swait() | |
1912 | rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, 0) * angles(math.rad(-15), math.rad(0), math.rad(65+255.45*i)), 0.3) | |
1913 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1) | |
1914 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(54), math.rad(0), math.rad(35)), 0.1) | |
1915 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-34), math.rad(0), math.rad(-35)), 0.3) | |
1916 | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * angles(math.rad(-2.5), math.rad(-25), math.rad(95)), 0.3) | |
1917 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * angles(math.rad(-4.5), math.rad(-30), math.rad(0)), 0.3) | |
1918 | end | |
1919 | combo = 3 | |
1920 | end | |
1921 | if combo == 3 and wait2 == false then | |
1922 | for i = 0, 1.2, 0.1 do | |
1923 | swait() | |
1924 | rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, 0) * angles(math.rad(-5), math.rad(0), math.rad(-35)), 0.3) | |
1925 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.1) | |
1926 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.8) * angles(math.rad(90), math.rad(0), math.rad(20)), 0.1) | |
1927 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-25), math.rad(0), math.rad(-10)), 0.3) | |
1928 | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, -0.2) * RHCF * angles(math.rad(-2.5), math.rad(0), math.rad(-0)), 0.3) | |
1929 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * angles(math.rad(-2.5), math.rad(15), math.rad(-20)), 0.3) | |
1930 | end | |
1931 | CreateSound("138097048", ra, 3, .8) | |
1932 | HitboxFunction(ra.CFrame, 0.01, 1, 1, 1, 7, 24, 36, 3, "Normal") | |
1933 | for i = 0, 1.2, 0.1 do | |
1934 | swait() | |
1935 | rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, 0) * angles(math.rad(5), math.rad(0), math.rad(35)), 0.3) | |
1936 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1) | |
1937 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.8) * angles(math.rad(96), math.rad(0), math.rad(10)), 0.1) | |
1938 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-25), math.rad(0), math.rad(-10)), 0.3) | |
1939 | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * angles(math.rad(-2.5), math.rad(-25), math.rad(-0)), 0.3) | |
1940 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * angles(math.rad(-2.5), math.rad(-0), math.rad(0)), 0.3) | |
1941 | end | |
1942 | Effects.Sphere.Create(maincolor, ra.CFrame * CFrame.new(0,-2,0) , 85, 85, 85, 0.1, 0.1, 0.1, 0.03) | |
1943 | Effects.Ring.Create(maincolor, ra.CFrame * CFrame.new(0,-2,0) , 2, 2, 2, 0.1, 0.1, 0.1, 0.03) | |
1944 | HitboxFunction(ra.CFrame, 0.01, 1, 1, 1, 7, 24, 36, 3, "Normal") | |
1945 | for i = 0, 1.2, 0.1 do | |
1946 | swait() | |
1947 | rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, 0) * angles(math.rad(5), math.rad(0), math.rad(-35)), 0.3) | |
1948 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1) | |
1949 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.8) * angles(math.rad(25), math.rad(0), math.rad(10)), 0.1) | |
1950 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-25), math.rad(0), math.rad(-10)), 0.3) | |
1951 | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * angles(math.rad(-2.5), math.rad(-25), math.rad(-0)), 0.3) | |
1952 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * angles(math.rad(-2.5), math.rad(-0), math.rad(0)), 0.3) | |
1953 | end | |
1954 | combo = 1 | |
1955 | end | |
1956 | hum.WalkSpeed = 8 | |
1957 | wait2 = false | |
1958 | attack = false | |
1959 | end | |
1960 | end) | |
1961 | ||
1962 | function Ending() | |
1963 | local target = nil | |
1964 | local targettorso = nil | |
1965 | if mouse.Target.Parent ~= char and mouse.Target.Parent.Parent ~= char and mouse.Target.Parent:FindFirstChild("Humanoid") ~= nil then | |
1966 | if mouse.Target.Parent.Humanoid.PlatformStand == false then | |
1967 | targetT = mouse.Target.Parent | |
1968 | target = mouse.Target.Parent.Humanoid | |
1969 | targettorso = mouse.Target.Parent:FindFirstChild("Torso") or mouse.Target.Parent:FindFirstChild("UpperTorso") | |
1970 | targethead = mouse.Target.Parent:FindFirstChild("Head") | |
1971 | end | |
1972 | end | |
1973 | if target ~= nil then | |
1974 | targettorso.Anchored = true | |
1975 | attack = true | |
1976 | hum.WalkSpeed = 0 | |
1977 | local originalpos = root.CFrame | |
1978 | root.CFrame = targettorso.CFrame * CF(0,0,2.6) | |
1979 | for i = 0,1.8,0.1 do | |
1980 | swait() | |
1981 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-65)), 0.15) | |
1982 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(65)), 0.3) | |
1983 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-9), Rad(0), Rad(-10)), 0.15) | |
1984 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), -.2 + 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-8), Rad(0), Rad(10)), 0.15) | |
1985 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(35)), 0.1) | |
1986 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(25), Rad(0), Rad(-15)), 0.1) | |
1987 | end | |
1988 | Eviscerate(targetT) | |
1989 | CreateSound("331666100", ra, 4, 1) | |
1990 | CreateSound("180083286", targettorso, 10, 1) | |
1991 | coroutine.resume(coroutine.create(function() | |
1992 | for i = 0,1.8,0.1 do | |
1993 | swait() | |
1994 | hum.CameraOffset = Vector3.new(Mrandom(-3,3),Mrandom(-3,3),Mrandom(-3,3)) | |
1995 | end | |
1996 | for i = 0,1.8,0.1 do | |
1997 | swait() | |
1998 | hum.CameraOffset = Vector3.new(0,0,0) | |
1999 | end | |
2000 | end)) | |
2001 | for i = 0,4.6,0.1 do | |
2002 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(90)), 0.15) | |
2003 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(-90)), 0.3) | |
2004 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-9), Rad(0), Rad(-10)), 0.15) | |
2005 | LH.C0 = clerp(LH.C0, CF(-1, -0.6 - 0.1 * Cos(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-8), Rad(0), Rad(10)), 0.15) | |
2006 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(90)), 0.1) | |
2007 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(25), Rad(0), Rad(-15)), 0.1) | |
2008 | end | |
2009 | wait(.6) | |
2010 | root.CFrame = originalpos | |
2011 | attack = false | |
2012 | hum.WalkSpeed = 8 | |
2013 | end | |
2014 | end | |
2015 | ||
2016 | ||
2017 | function Ending() | |
2018 | local target = nil | |
2019 | local targettorso = nil | |
2020 | if mouse.Target.Parent ~= char and mouse.Target.Parent.Parent ~= char and mouse.Target.Parent:FindFirstChild("Humanoid") ~= nil then | |
2021 | if mouse.Target.Parent.Humanoid.PlatformStand == false then | |
2022 | targetT = mouse.Target.Parent | |
2023 | target = mouse.Target.Parent.Humanoid | |
2024 | targettorso = mouse.Target.Parent:FindFirstChild("Torso") or mouse.Target.Parent:FindFirstChild("UpperTorso") | |
2025 | targethead = mouse.Target.Parent:FindFirstChild("Head") | |
2026 | end | |
2027 | end | |
2028 | if target ~= nil then | |
2029 | targettorso.Anchored = true | |
2030 | attack = true | |
2031 | hum.WalkSpeed = 0 | |
2032 | local originalpos = root.CFrame | |
2033 | root.CFrame = targettorso.CFrame * CF(0,0,2.6) | |
2034 | for i = 0,1.8,0.1 do | |
2035 | swait() | |
2036 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-65)), 0.15) | |
2037 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(65)), 0.3) | |
2038 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-9), Rad(0), Rad(-10)), 0.15) | |
2039 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), -.2 + 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-8), Rad(0), Rad(10)), 0.15) | |
2040 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(35)), 0.1) | |
2041 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(25), Rad(0), Rad(-15)), 0.1) | |
2042 | end | |
2043 | Eviscerate(targetT) | |
2044 | CreateSound("331666100", ra, 4, 1) | |
2045 | CreateSound("180083286", targettorso, 10, 1) | |
2046 | coroutine.resume(coroutine.create(function() | |
2047 | for i = 0,1.8,0.1 do | |
2048 | swait() | |
2049 | hum.CameraOffset = Vector3.new(Mrandom(-3,3),Mrandom(-3,3),Mrandom(-3,3)) | |
2050 | end | |
2051 | for i = 0,1.8,0.1 do | |
2052 | swait() | |
2053 | hum.CameraOffset = Vector3.new(0,0,0) | |
2054 | end | |
2055 | end)) | |
2056 | for i = 0,4.6,0.1 do | |
2057 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(90)), 0.15) | |
2058 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(-90)), 0.3) | |
2059 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-9), Rad(0), Rad(-10)), 0.15) | |
2060 | LH.C0 = clerp(LH.C0, CF(-1, -0.6 - 0.1 * Cos(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-8), Rad(0), Rad(10)), 0.15) | |
2061 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(90)), 0.1) | |
2062 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(25), Rad(0), Rad(-15)), 0.1) | |
2063 | end | |
2064 | wait(.6) | |
2065 | root.CFrame = originalpos | |
2066 | attack = false | |
2067 | hum.WalkSpeed = 8 | |
2068 | end | |
2069 | end | |
2070 | ||
2071 | function Painful_Stomp() | |
2072 | attack = true | |
2073 | for i = 0,0.1,0.1 do | |
2074 | swait() | |
2075 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-20), Rad(0), Rad(0)), 0.15) | |
2076 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-20 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3) | |
2077 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-4.5), Rad(0), Rad(-20)), 0.15) | |
2078 | LH.C0 = clerp(LH.C0, CF(-1, -0.3 - 0.1 * Cos(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-6.5), Rad(5 * Cos(sine / 20)), Rad(25)), 0.15) | |
2079 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(135), Rad(0), Rad(-45 - 2.5 * Sin(sine / 20))), 0.1) | |
2080 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(135), Rad(0), Rad(45 + 2.5 * Sin(sine / 20))), 0.1) | |
2081 | end | |
2082 | CreateSound("331666100", char, 10, 1) | |
2083 | Effects.Sphere.Create(BrickColor.Random(), root.CFrame * CF(0, -1, 0), 2, 2, 2, 10.6, 10.6, 10.6, 0.05) | |
2084 | Effects.Sphere.Create(BrickColor.Random(), root.CFrame * CF(0, -1, 0), 2, 2, 2, 10.6, 10.6, 10.6, 0.05) | |
2085 | Effects.Sphere.Create(BrickColor.Random(), root.CFrame * CF(0, -1, 0), 2, 2, 2, 10.6, 10.6, 10.6, 0.05) | |
2086 | Effects.Sphere.Create(BrickColor.Random(), root.CFrame * CF(0, -1, 0), 2, 2, 2, 10.6, 10.6, 10.6, 0.05) | |
2087 | Effects.Sphere.Create(BrickColor.Random(), root.CFrame * CF(0, -1, 0), 2, 2, 2, 10.6, 35.6, 10.6, 0.05) | |
2088 | Effects.Sphere.Create(BrickColor.Random(), root.CFrame * CF(0, -3, 0), 2, 2, 2, 150.6, .4, 150.6, 0.05) | |
2089 | Effects.Ring.Create(BrickColor.Random(), root.CFrame * CF(0, -1.7, 0) * angles(Rad(90),Rad(0),Rad(0)), 2, 2, 2, 8.6, 8.6, 8.6, 0.03) | |
2090 | for i, v in pairs(FindNearestHead(tors.CFrame.p, 52.5)) do | |
2091 | if v:FindFirstChild("Head") then | |
2092 | Eviscerate(v) | |
2093 | end | |
2094 | end | |
2095 | coroutine.resume(coroutine.create(function() | |
2096 | for i = 0,2.8,0.1 do | |
2097 | swait() | |
2098 | hum.CameraOffset = Vector3.new(Mrandom(-3,3),Mrandom(-3,3),Mrandom(-3,3)) | |
2099 | end | |
2100 | for i = 0,1.8,0.1 do | |
2101 | swait() | |
2102 | hum.CameraOffset = Vector3.new(0,0,0) | |
2103 | end | |
2104 | end)) | |
2105 | for i = 0,3.7,0.1 do | |
2106 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(20), Rad(0), Rad(0)), 0.15) | |
2107 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3) | |
2108 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-4.5), Rad(0), Rad(20)), 0.15) | |
2109 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-6.5), Rad(5 * Cos(sine / 20)), Rad(-25)), 0.15) | |
2110 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(-40), Rad(0), Rad(25 - 2.5 * Sin(sine / 20))), 0.1) | |
2111 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(-40), Rad(0), Rad(-25 + 2.5 * Sin(sine / 20))), 0.1) | |
2112 | end | |
2113 | wait(.6) | |
2114 | attack = false | |
2115 | end | |
2116 | ||
2117 | ||
2118 | ||
2119 | function Purity_Slam() | |
2120 | attack = true | |
2121 | for i = 0,5.2,0.1 do | |
2122 | swait() | |
2123 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-20), Rad(0), Rad(0)), 0.15) | |
2124 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-20 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3) | |
2125 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-4.5), Rad(0), Rad(-20)), 0.15) | |
2126 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-6.5), Rad(5 * Cos(sine / 20)), Rad(25)), 0.15) | |
2127 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(200), Rad(0), Rad(25 - 2.5 * Sin(sine / 20))), 0.1) | |
2128 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(200), Rad(0), Rad(-25 + 2.5 * Sin(sine / 20))), 0.1) | |
2129 | end | |
2130 | CreateSound("331666100", tors, 10, 1) | |
2131 | Effects.Ring.Create(BrickC("Dark indigo"), root.CFrame * CF(0, -2.7, 0) * angles(Rad(90),Rad(0),Rad(0)), 2, 2, 2, 3.6, 3.6, 3.6, 0.03) | |
2132 | Effects.Ring.Create(BrickC("Royal purple"), root.CFrame * CF(0, -2.3, 0) * angles(Rad(90),Rad(0),Rad(0)), 2, 2, 2, 5.6, 5.6, 5.6, 0.03) | |
2133 | Effects.Ring.Create(BrickC("Royal purple"), root.CFrame * CF(0, -1.7, 0) * angles(Rad(90),Rad(0),Rad(0)), 2, 2, 2, 8.6, 8.6, 8.6, 0.03) | |
2134 | Effects.Ring.Create(BrickC("Royal purple"), root.CFrame * CF(0, -1.3, 0) * angles(Rad(90),Rad(0),Rad(0)), 2, 2, 2, 10.6, 10, 10, 0.03) | |
2135 | MagniDamage(tors, 100, 400, 600, 10, "Normal") | |
2136 | coroutine.resume(coroutine.create(function() | |
2137 | for i = 0,1.8,0.1 do | |
2138 | swait() | |
2139 | hum.CameraOffset = Vector3.new(Mrandom(-3,3),Mrandom(-3,3),Mrandom(-3,3)) | |
2140 | end | |
2141 | for i = 0,1.8,0.1 do | |
2142 | swait() | |
2143 | hum.CameraOffset = Vector3.new(0,0,0) | |
2144 | end | |
2145 | end)) | |
2146 | for i = 1,4.7,0.1 do | |
2147 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -1.4 + 0.1 * Cos(sine / 20)) * angles(Rad(45), Rad(0), Rad(0)), 0.15) | |
2148 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(35), Rad(0), Rad(0)), 0.3) | |
2149 | RH.C0 = clerp(RH.C0, CF(1, .4 - 0.1 * Cos(sine / 20), -.6 + 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(45)), 0.15) | |
2150 | LH.C0 = clerp(LH.C0, CF(-1, -0.6 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-0)), 0.15) | |
2151 | RW.C0 = clerp(RW.C0, CF(1.5, 0.1 + 0.05 * Sin(sine / 30), -.4 + 0.025 * Cos(sine / 20)) * angles(Rad(65), Rad(0), Rad(25)), 0.1) | |
2152 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.1 + 0.05 * Sin(sine / 30), -.4 + 0.025 * Cos(sine / 20)) * angles(Rad(65), Rad(0), Rad(-25)), 0.1) | |
2153 | end | |
2154 | wait(.6) | |
2155 | attack = false | |
2156 | end | |
2157 | ||
2158 | function Call_Upon_The_Eyes() | |
2159 | attack = true | |
2160 | hum.WalkSpeed = 0 | |
2161 | for i = 0, 6, 0.1 do | |
2162 | swait() | |
2163 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
2164 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3) | |
2165 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-4.5), Rad(0), Rad(0)), 0.15) | |
2166 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-6.5), Rad(0), Rad(0)), 0.15) | |
2167 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.06 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(145), Rad(0), Rad(15 + 2.5 * Sin(sine / 20))), 0.12) | |
2168 | LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(25 + 2.5 * Sin(sine / 20)), Rad(55 + 2.5 * Sin(sine / 20))), 0.12) | |
2169 | end | |
2170 | Magic(5, "Add", mouse.Hit * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 1, maincolor, "Sphere") | |
2171 | Magic(10, "Add", mouse.Hit * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 2, maincolor, "Sphere") | |
2172 | Magic(1, "Add", mouse.Hit, Vector3.new(1, 100000, 1), 0.5, maincolor, "Sphere") | |
2173 | Magic(1, "Add", mouse.Hit, Vector3.new(1, 1, 1), 0.75, maincolor, "Sphere") | |
2174 | CameraEnshaking(4, 25) | |
2175 | for i, v in pairs(FindNearestHead(mouse.Hit.p, 14.5)) do | |
2176 | if v:FindFirstChild("Head") then | |
2177 | Eviscerate(v) | |
2178 | end | |
2179 | end | |
2180 | for i = 0, 6, 0.1 do | |
2181 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
2182 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3) | |
2183 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-4.5), Rad(0), Rad(0)), 0.15) | |
2184 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-6.5), Rad(0), Rad(0)), 0.15) | |
2185 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.06 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(45), Rad(0), Rad(15 + 2.5 * Sin(sine / 20))), 0.2) | |
2186 | LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(25 + 2.5 * Sin(sine / 20)), Rad(55 + 2.5 * Sin(sine / 20))), 0.12) | |
2187 | end | |
2188 | attack = false | |
2189 | hum.WalkSpeed = 10 | |
2190 | end | |
2191 | ||
2192 | function WhatHuh() | |
2193 | attack = true | |
2194 | hum.WalkSpeed = 1.01 | |
2195 | CreateSound("130766865", hed, 10, 1) | |
2196 | char.Head.face.Texture = "rbxassetid://276732672" | |
2197 | for i = 0,4,0.1 do | |
2198 | swait() | |
2199 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
2200 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(26), Rad(0)), 0.3) | |
2201 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
2202 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
2203 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(120)), 0.1) | |
2204 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-120)), 0.1) | |
2205 | end | |
2206 | for i = 0,6.7,0.1 do | |
2207 | swait() | |
2208 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
2209 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(-26), Rad(0)), 0.3) | |
2210 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
2211 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
2212 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(120)), 0.1) | |
2213 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-120)), 0.1) | |
2214 | end | |
2215 | for i = 0,8.1,0.1 do | |
2216 | swait() | |
2217 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
2218 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(26), Rad(0)), 0.3) | |
2219 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
2220 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
2221 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(120)), 0.1) | |
2222 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-120)), 0.1) | |
2223 | end | |
2224 | for i = 0,1,0.1 do | |
2225 | swait() | |
2226 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
2227 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(40), Rad(-26), Rad(0)), 0.3) | |
2228 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
2229 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
2230 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(120)), 0.1) | |
2231 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-120)), 0.1) | |
2232 | end | |
2233 | for i = 0,1,0.1 do | |
2234 | swait() | |
2235 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
2236 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(40), Rad(26), Rad(0)), 0.3) | |
2237 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
2238 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
2239 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(120)), 0.1) | |
2240 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-120)), 0.1) | |
2241 | end | |
2242 | for i = 0,4,0.1 do | |
2243 | swait() | |
2244 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
2245 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(-26), Rad(0)), 0.3) | |
2246 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
2247 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
2248 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(120)), 0.1) | |
2249 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-120)), 0.1) | |
2250 | end | |
2251 | attack = false | |
2252 | char.Head.face.Texture = "rbxassetid://620619801" | |
2253 | hum.WalkSpeed = 16 | |
2254 | end | |
2255 | ||
2256 | function Taunt1() | |
2257 | attack = true | |
2258 | hum.WalkSpeed = 0 | |
2259 | for i = 0, 9, 0.1 do | |
2260 | swait() | |
2261 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
2262 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3) | |
2263 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-4.5), Rad(0), Rad(0)), 0.15) | |
2264 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-6.5), Rad(0), Rad(0)), 0.15) | |
2265 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.06 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-9), Rad(0), Rad(155 + 25 * Sin(sine / 2.5))), 0.12) | |
2266 | LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(25 + 2.5 * Sin(sine / 20)), Rad(55 + 2.5 * Sin(sine / 20))), 0.12) | |
2267 | end | |
2268 | attack = false | |
2269 | hum.WalkSpeed = 10 | |
2270 | end | |
2271 | ||
2272 | function Decapitate() | |
2273 | local target = nil | |
2274 | local targettorso = nil | |
2275 | if mouse.Target.Parent ~= char and mouse.Target.Parent.Parent ~= char and mouse.Target.Parent:FindFirstChild("Humanoid") ~= nil then | |
2276 | if mouse.Target.Parent.Humanoid.PlatformStand == false then | |
2277 | target = mouse.Target.Parent.Humanoid | |
2278 | targettorso = mouse.Target.Parent:FindFirstChild("Torso") or mouse.Target.Parent:FindFirstChild("UpperTorso") | |
2279 | targethead = mouse.Target.Parent:FindFirstChild("Head") | |
2280 | end | |
2281 | end | |
2282 | if target ~= nil then | |
2283 | targettorso.Anchored = true | |
2284 | attack = true | |
2285 | hum.WalkSpeed = 0 | |
2286 | root.CFrame = targettorso.CFrame * CF(0,0,2.6) | |
2287 | for i = 0,4.2,0.1 do | |
2288 | swait() | |
2289 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-40)), 0.15) | |
2290 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(40)), 0.3) | |
2291 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-9), Rad(0), Rad(-10)), 0.15) | |
2292 | LH.C0 = clerp(LH.C0, CF(-1, -0.6 - 0.1 * Cos(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-8), Rad(0), Rad(10)), 0.15) | |
2293 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(115), Rad(0), Rad(35)), 0.1) | |
2294 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(25), Rad(0), Rad(-15)), 0.1) | |
2295 | end | |
2296 | local ModelHead01 = New("Model", char, "", {}) | |
2297 | local Humanoid01 = New("Humanoid", ModelHead01, "Humanoid", {}) | |
2298 | local Head01 = targethead:Clone() | |
2299 | targethead.Transparency = 1 | |
2300 | Head01.Parent = ModelHead01 | |
2301 | local weldHead01 = Instance.new("Weld") | |
2302 | weldHead01.Parent = Head01 | |
2303 | weldHead01.Part0 = targethead | |
2304 | weldHead01.Part1 = Head01 | |
2305 | weldHead01.C1 = CFrame.new(0, 0, 0) | |
2306 | targethead.face:Remove() | |
2307 | weldHead01.Part0 = ra | |
2308 | weldHead01.C1 = CFrame.new(0, 0, 1.2) * angles(math.rad(90), math.rad(0), math.rad(0)) | |
2309 | targettorso:BreakJoints() | |
2310 | CreateSound("314390675", targettorso, 5, .7) | |
2311 | for i = 0,3.2,0.1 do | |
2312 | swait() | |
2313 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(90)), 0.15) | |
2314 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(-90)), 0.3) | |
2315 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(0)), 0.15) | |
2316 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(50)), 0.15) | |
2317 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(115), Rad(20), Rad(90)), 0.1) | |
2318 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(25), Rad(0), Rad(-15)), 0.1) | |
2319 | end | |
2320 | for i = 0,4.2,0.1 do | |
2321 | swait() | |
2322 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-40)), 0.15) | |
2323 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(40)), 0.3) | |
2324 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(0)), 0.15) | |
2325 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-0)), 0.15) | |
2326 | RW.C0 = clerp(RW.C0, CF(1.4, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(185), Rad(0), Rad(15)), 0.1) | |
2327 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(45), Rad(0), Rad(-15)), 0.1) | |
2328 | end | |
2329 | CreateSound("541909763", targettorso, 5, .8) | |
2330 | weldHead01:Destroy() | |
2331 | Head01.CanCollide = true | |
2332 | local bodyVelocity2 = Create("BodyVelocity")({ | |
2333 | velocity = Vector3.new(0, 10, 0) + root.CFrame.lookVector * 50, | |
2334 | P = 5000, | |
2335 | maxForce = Vector3.new(8000, 8000, 8000), | |
2336 | Parent = Head01 | |
2337 | }) | |
2338 | game:GetService("Debris"):AddItem(bodyVelocity2, 0.05) | |
2339 | for i = 0,6.2,0.1 do | |
2340 | swait() | |
2341 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(40)), 0.15) | |
2342 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(-40)), 0.3) | |
2343 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(0)), 0.15) | |
2344 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-0)), 0.15) | |
2345 | RW.C0 = clerp(RW.C0, CF(1.4, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(65), Rad(0), Rad(-15)), 0.1) | |
2346 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(45), Rad(0), Rad(-15)), 0.1) | |
2347 | end | |
2348 | targettorso.Anchored = false | |
2349 | attack = false | |
2350 | hum.WalkSpeed = 8 | |
2351 | root.CFrame = targettorso.CFrame * CF(0,0,3.4) | |
2352 | end | |
2353 | end | |
2354 | ||
2355 | function Painful_Stomp() | |
2356 | attack = true | |
2357 | for i = 0,5.2,0.1 do | |
2358 | swait() | |
2359 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-20), Rad(0), Rad(0)), 0.15) | |
2360 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-20 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3) | |
2361 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-4.5), Rad(0), Rad(-20)), 0.15) | |
2362 | LH.C0 = clerp(LH.C0, CF(-1, -0.3 - 0.1 * Cos(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-6.5), Rad(5 * Cos(sine / 20)), Rad(25)), 0.15) | |
2363 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(135), Rad(0), Rad(-45 - 2.5 * Sin(sine / 20))), 0.1) | |
2364 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(135), Rad(0), Rad(45 + 2.5 * Sin(sine / 20))), 0.1) | |
2365 | end | |
2366 | CreateSound("331666100", char, 10, 1) | |
2367 | Effects.Sphere.Create(BrickColor.Random(), root.CFrame * CF(0, -1, 0), 2, 2, 2, 10.6, 10.6, 10.6, 0.05) | |
2368 | Effects.Sphere.Create(BrickColor.Random(), root.CFrame * CF(0, -1, 0), 2, 2, 2, 10.6, 10.6, 10.6, 0.05) | |
2369 | Effects.Sphere.Create(BrickColor.Random(), root.CFrame * CF(0, -1, 0), 2, 2, 2, 10.6, 10.6, 10.6, 0.05) | |
2370 | Effects.Sphere.Create(BrickColor.Random(), root.CFrame * CF(0, -1, 0), 2, 2, 2, 10.6, 10.6, 10.6, 0.05) | |
2371 | Effects.Sphere.Create(BrickColor.Random(), root.CFrame * CF(0, -1, 0), 2, 2, 2, 10.6, 35.6, 10.6, 0.05) | |
2372 | Effects.Sphere.Create(BrickColor.Random(), root.CFrame * CF(0, -3, 0), 2, 2, 2, 150.6, .4, 150.6, 0.05) | |
2373 | Effects.Ring.Create(BrickColor.Random(), root.CFrame * CF(0, -1.7, 0) * angles(Rad(90),Rad(0),Rad(0)), 2, 2, 2, 8.6, 8.6, 8.6, 0.03) | |
2374 | for i, v in pairs(FindNearestHead(tors.CFrame.p, 52.5)) do | |
2375 | if v:FindFirstChild("Head") then | |
2376 | Eviscerate(v) | |
2377 | end | |
2378 | end | |
2379 | coroutine.resume(coroutine.create(function() | |
2380 | for i = 0,2.8,0.1 do | |
2381 | swait() | |
2382 | hum.CameraOffset = Vector3.new(Mrandom(-3,3),Mrandom(-3,3),Mrandom(-3,3)) | |
2383 | end | |
2384 | for i = 0,1.8,0.1 do | |
2385 | swait() | |
2386 | hum.CameraOffset = Vector3.new(0,0,0) | |
2387 | end | |
2388 | end)) | |
2389 | for i = 0,3.7,0.1 do | |
2390 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(20), Rad(0), Rad(0)), 0.15) | |
2391 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3) | |
2392 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-4.5), Rad(0), Rad(20)), 0.15) | |
2393 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-6.5), Rad(5 * Cos(sine / 20)), Rad(-25)), 0.15) | |
2394 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(-40), Rad(0), Rad(25 - 2.5 * Sin(sine / 20))), 0.1) | |
2395 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(-40), Rad(0), Rad(-25 + 2.5 * Sin(sine / 20))), 0.1) | |
2396 | end | |
2397 | wait(.6) | |
2398 | attack = false | |
2399 | end | |
2400 | ------------------------------------------------------- | |
2401 | --End Attacks N Stuff-- | |
2402 | ------------------------------------------------------- | |
2403 | MoreTaunts = false | |
2404 | ||
2405 | mouse.KeyDown:connect(function(key) | |
2406 | if attack == false then | |
2407 | ||
2408 | ||
2409 | if key == 'u' then | |
2410 | Call_Upon_The_Eyes() | |
2411 | end | |
2412 | if key == 'j' then | |
2413 | WhatHuh() | |
2414 | end | |
2415 | ||
2416 | if key == 'c' then | |
2417 | Ending() | |
2418 | end | |
2419 | ||
2420 | if key == 'v' then | |
2421 | Taunt1() | |
2422 | end | |
2423 | ||
2424 | if key == 'f' then | |
2425 | Painful_Stomp() | |
2426 | end | |
2427 | if key == 'r' then | |
2428 | Purity_Slam() | |
2429 | end | |
2430 | ||
2431 | if key == 'b' and angery == false then | |
2432 | ohshitimangry() | |
2433 | end | |
2434 | ||
2435 | if string.byte(key) == 48 then | |
2436 | Swing = 2 | |
2437 | hum.WalkSpeed = 38.82 | |
2438 | end | |
2439 | end | |
2440 | end) | |
2441 | ||
2442 | mouse.KeyUp:connect(function(key) | |
2443 | if string.byte(key) == 48 then | |
2444 | Swing = 1 | |
2445 | hum.WalkSpeed = 8 | |
2446 | end | |
2447 | end) | |
2448 | ||
2449 | -- | |
2450 | angery = false | |
2451 | function ohshitimangry() | |
2452 | attack = true | |
2453 | angery = true | |
2454 | local BodyColors = char:FindFirstChildOfClass"BodyColors" | |
2455 | if BodyColors then | |
2456 | BodyColors.TorsoColor = BrickColor.new"Really black" | |
2457 | BodyColors.LeftArmColor = BrickColor.new"Really black" | |
2458 | BodyColors.RightArmColor = BrickColor.new"Really black" | |
2459 | BodyColors.LeftLegColor = BrickColor.new"Really black" | |
2460 | BodyColors.RightLegColor = BrickColor.new"Really black" | |
2461 | end | |
2462 | attack = false | |
2463 | end | |
2464 | ---- | |
2465 | ||
2466 | ||
2467 | ||
2468 | ||
2469 | ||
2470 | ------------------------------------------------------- | |
2471 | --Start Animations-- | |
2472 | ------------------------------------------------------- | |
2473 | local PlayerSize = 1 | |
2474 | local FT,RA,LA,RL,LL = Instance.new("SpecialMesh"),Instance.new("SpecialMesh"),Instance.new("SpecialMesh"),Instance.new("SpecialMesh"),Instance.new("SpecialMesh") | |
2475 | FT.MeshId,FT.Scale = "rbxasset://fonts/torso.mesh",Vector3.new(PlayerSize,PlayerSize,PlayerSize) | |
2476 | RA.MeshId,RA.Scale = "rbxasset://fonts/rightarm.mesh",Vector3.new(PlayerSize,PlayerSize,PlayerSize) | |
2477 | LA.MeshId,LA.Scale = "rbxasset://fonts/leftarm.mesh",Vector3.new(PlayerSize,PlayerSize,PlayerSize) | |
2478 | RL.MeshId,RL.Scale = "rbxasset://fonts/rightleg.mesh",Vector3.new(PlayerSize,PlayerSize,PlayerSize) | |
2479 | LL.MeshId,LL.Scale = "rbxasset://fonts/leftleg.mesh",Vector3.new(PlayerSize,PlayerSize,PlayerSize) | |
2480 | ||
2481 | ||
2482 | ||
2483 | while true do | |
2484 | swait() | |
2485 | sine = sine + change | |
2486 | local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude | |
2487 | local velderp = root.Velocity.y | |
2488 | hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4* Player_Size, char) | |
2489 | if equipped == true or equipped == false then | |
2490 | if attack == false then | |
2491 | idle = idle + 1 | |
2492 | else | |
2493 | idle = 0 | |
2494 | end | |
2495 | ||
2496 | tecks2.TextStrokeColor3 = Color3.new(r / 255, g / 255, b / 255) | |
2497 | if 1 < root.Velocity.y and hitfloor == nil then | |
2498 | Anim = "Jump" | |
2499 | if attack == false then | |
2500 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(-16), Rad(0), Rad(0)), 0.15) | |
2501 | neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(10 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3) | |
2502 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -.2 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
2503 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.9 - 0.1 * Cos(sine / 20), -.5* Player_Size) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
2504 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(13 + 4.5 * Sin(sine / 20))), 0.1) | |
2505 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(-13 - 4.5 * Sin(sine / 20))), 0.1) | |
2506 | end | |
2507 | elseif -1 > root.Velocity.y and hitfloor == nil then | |
2508 | Anim = "Fall" | |
2509 | if attack == false then | |
2510 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(24), Rad(0), Rad(0)), 0.15) | |
2511 | neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(10 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3) | |
2512 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -1 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * RHCF * angles(Rad(-3.5), Rad(0), Rad(0)), 0.15) | |
2513 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.8 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * LHCF * angles(Rad(-3.5), Rad(0), Rad(0)), 0.15) | |
2514 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(65), Rad(-.6), Rad(45 + 4.5 * Sin(sine / 20))), 0.1) | |
2515 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(55), Rad(-.6), Rad(-45 - 4.5 * Sin(sine / 20))), 0.1) | |
2516 | end | |
2517 | elseif torvel < 1 and hitfloor ~= nil then | |
2518 | Anim = "Idle" | |
2519 | change = .5 | |
2520 | if attack==false then | |
2521 | if angery == false then | |
2522 | VALUE1 = false | |
2523 | rootj.C0=clerp(rootj.C0,RootCF*CF(0,0,-0.1+0.1*math.cos(sine/20))*angles(math.rad(15),math.rad(0),math.rad(0)),0.15) | |
2524 | tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(15*math.sin(sine/25)/2),math.rad(0),math.rad(10*math.sin(sine/25))),.3) | |
2525 | RH.C0=clerp(RH.C0,CF(1,-0.9-0.1*math.cos(sine/20),0.025*math.cos(sine/20))*RHCF*angles(math.rad(-10),math.rad(-0),math.rad(15)),0.15) | |
2526 | LH.C0=clerp(LH.C0,CF(-1,-0.9-0.1*math.cos(sine/20),0.025*math.cos(sine/20))*LHCF*angles(math.rad(-3),math.rad(-4*math.sin(sine/25)),math.rad(-5)),0.15) | |
2527 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5+0.04*math.sin(sine/25), 0) * angles(math.rad(20 ), math.rad(-7*math.sin(sine/25)), math.rad(5)), 0.1) | |
2528 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5+0.04*math.sin(sine/25),0) * angles(math.rad(20 ), math.rad(7*math.sin(sine/25)), math.rad(-5)), 0.1) | |
2529 | if VALUE1 == false and math.random(1,200) == 1 then | |
2530 | coroutine.resume(coroutine.create(function() | |
2531 | VALUE1 = true | |
2532 | for i = 1, 25 do | |
2533 | swait() | |
2534 | Music.Pitch = .5+math.random(.5,.2)/.5 | |
2535 | tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(-25),math.rad((15+math.random(-15,15)/15)),math.rad(30)),.3) | |
2536 | end | |
2537 | Music.Pitch = 1 | |
2538 | VALUE1 = false | |
2539 | ||
2540 | end)) | |
2541 | end | |
2542 | elseif angery == true then | |
2543 | rootj.C0=clerp(rootj.C0,RootCF*CF(0,0,-0.1+0.1*math.cos(sine/20))*angles(math.rad(-20),math.rad(0),math.rad(0)),0.15) | |
2544 | tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(-15*math.sin(sine/25)/2),math.rad(0),math.rad(10*math.sin(sine/25))),.3) | |
2545 | RH.C0=clerp(RH.C0,CF(1,-0.9-0.1*math.cos(sine/20),0.025*math.cos(sine/20))*RHCF*angles(math.rad(-10),math.rad(-0),math.rad(-25)),0.15) | |
2546 | LH.C0=clerp(LH.C0,CF(-1,-0.9-0.1*math.cos(sine/20),0.025*math.cos(sine/20))*LHCF*angles(math.rad(-3),math.rad(-4*math.sin(sine/25)),math.rad(15)),0.15) | |
2547 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5+0.04*math.sin(sine/25), 0) * angles(math.rad(-35 ), math.rad(-7*math.sin(sine/25)), math.rad(5)), 0.1) | |
2548 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5+0.04*math.sin(sine/25),0) * angles(math.rad(-35 ), math.rad(7*math.sin(sine/25)), math.rad(-5)), 0.1) | |
2549 | if VALUE1 == false and math.random(1,200) == 1 then | |
2550 | coroutine.resume(coroutine.create(function() | |
2551 | VALUE1 = true | |
2552 | for i = 1, 25 do | |
2553 | swait() | |
2554 | Music.Pitch = .5+math.random(.5,.2)/.5 | |
2555 | FT.Parent = tors | |
2556 | RA.Parent = ra | |
2557 | LA.Parent = la | |
2558 | RL.Parent = rl | |
2559 | LL.Parent = ll | |
2560 | for _,v in next, char:GetDescendants() do | |
2561 | if(v:IsA'DataModelMesh')then | |
2562 | v.Offset = Vector3.new(math.random(-200,200)/100,math.random(-200,200)/100,math.random(-200,200)/100) | |
2563 | end | |
2564 | end | |
2565 | tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(-25),math.rad((15+math.random(-15,15)/15)),math.rad(0)),.3) | |
2566 | end | |
2567 | Music.Pitch = 1 | |
2568 | VALUE1 = false | |
2569 | FT.Parent = nil | |
2570 | RA.Parent = nil | |
2571 | LA.Parent = nil | |
2572 | RL.Parent = nil | |
2573 | LL.Parent = nil | |
2574 | for _,v in next, char:GetDescendants() do | |
2575 | if(v:IsA'DataModelMesh')then | |
2576 | v.Offset = Vector3.new(0,0,0) | |
2577 | end | |
2578 | end | |
2579 | ||
2580 | end)) | |
2581 | end | |
2582 | end | |
2583 | end | |
2584 | elseif torvel > 2 and torvel < 25 and hitfloor ~= nil then | |
2585 | Anim = "Walk" | |
2586 | change = .9 | |
2587 | if attack == false then | |
2588 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7) * angles(Rad(3 - 2.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(8 * Cos(sine / 7))), 0.15) | |
2589 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(6 - 2.5 * Sin(sine / 7)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3) | |
2590 | RH.C0 = clerp(RH.C0, CF(1, -0.8 - 0.5 * Cos(sine / 7) / 2, 0.6 * Cos(sine / 7) / 2) * angles(Rad(-15 - 5 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 3 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3) | |
2591 | LH.C0 = clerp(LH.C0, CF(-1, -0.8 + 0.5 * Cos(sine / 7) / 2, -0.6 * Cos(sine / 7) / 2) * angles(Rad(-15 + 5 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 3 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3) | |
2592 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 7), 0) * angles(Rad(37) * Cos(sine / 7) , Rad(0), Rad(-.6) - ra.RotVelocity.Y / 75), 0.1) | |
2593 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 7), 0) * angles(Rad(-37) * Cos(sine / 7) , Rad(0) , Rad(.6) + la.RotVelocity.Y / 75), 0.1) | |
2594 | end | |
2595 | elseif torvel >= 25 and hitfloor ~= nil then | |
2596 | Anim = "Sprint" | |
2597 | change = 1.35 | |
2598 | if attack == false then | |
2599 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7) * angles(Rad(26 - 4.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(15 * Cos(sine / 7))), 0.15) | |
2600 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 20)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3) | |
2601 | RH.C0 = clerp(RH.C0, CF(1, -0.925 - 0.5 * Cos(sine / 7) / 2, 0.7 * Cos(sine / 7) / 2) * angles(Rad(-15 - 55 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3) | |
2602 | LH.C0 = clerp(LH.C0, CF(-1, -0.925 + 0.5 * Cos(sine / 7) / 2, -0.7 * Cos(sine / 7) / 2) * angles(Rad(-15 + 55 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3) | |
2603 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.34 * Cos(sine / 7)) * angles(Rad(110) * Cos(sine / 7) , Rad(0), Rad(13) - ra.RotVelocity.Y / 75), 0.15) | |
2604 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), -0.34 * Cos(sine / 7)) * angles(Rad(-110) * Cos(sine / 7) , Rad(0) , Rad(-13) + la.RotVelocity.Y / 75), 0.15) | |
2605 | end | |
2606 | end | |
2607 | end | |
2608 | Music.SoundId = "rbxassetid://"..SONG | |
2609 | Music.Looped = true | |
2610 | Music.Pitch = 1 | |
2611 | Music.Volume = 5 | |
2612 | Music.Parent = tors | |
2613 | Music:Resume() | |
2614 | if 0 < #Effects then | |
2615 | for e = 1, #Effects do | |
2616 | if Effects[e] ~= nil then | |
2617 | local Thing = Effects[e] | |
2618 | if Thing ~= nil then | |
2619 | local Part = Thing[1] | |
2620 | local Mode = Thing[2] | |
2621 | local Delay = Thing[3] | |
2622 | local IncX = Thing[4] | |
2623 | local IncY = Thing[5] | |
2624 | local IncZ = Thing[6] | |
2625 | if 1 >= Thing[1].Transparency then | |
2626 | if Thing[2] == "Block1" then | |
2627 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
2628 | local Mesh = Thing[1].Mesh | |
2629 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
2630 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2631 | elseif Thing[2] == "Block2" then | |
2632 | Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0) | |
2633 | local Mesh = Thing[7] | |
2634 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
2635 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2636 | elseif Thing[2] == "Block3" then | |
2637 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) + Vector3.new(0, 0.15, 0) | |
2638 | local Mesh = Thing[7] | |
2639 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
2640 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2641 | elseif Thing[2] == "Cylinder" then | |
2642 | local Mesh = Thing[1].Mesh | |
2643 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
2644 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2645 | elseif Thing[2] == "Blood" then | |
2646 | local Mesh = Thing[7] | |
2647 | Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0) | |
2648 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
2649 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2650 | elseif Thing[2] == "Elec" then | |
2651 | local Mesh = Thing[1].Mesh | |
2652 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9]) | |
2653 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2654 | elseif Thing[2] == "Disappear" then | |
2655 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2656 | elseif Thing[2] == "Shatter" then | |
2657 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2658 | Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0) | |
2659 | Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0) | |
2660 | Thing[6] = Thing[6] + Thing[5] | |
2661 | end | |
2662 | else | |
2663 | Part.Parent = nil | |
2664 | table.remove(Effects, e) | |
2665 | end | |
2666 | end | |
2667 | end | |
2668 | end | |
2669 | end | |
2670 | end | |
2671 | ------------------------------------------------------- | |
2672 | --End Animations And Script-- | |
2673 | ------------------------------------------------------- |