SHOW:
|
|
- or go back to the newest paste.
1 | ||
2 | --https://github.com/Mokiros/roblox-FE-compatibility | |
3 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
4 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
5 | local RealPlayer = Player | |
6 | do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end | |
7 | ||
8 | ||
9 | ||
10 | ||
11 | local Player = game.Players.LocalPlayer | |
12 | local c = Player.Character | |
13 | if not c or not c.Parent then | |
14 | c = Player.CharacterAdded:wait() | |
15 | end | |
16 | ||
17 | local radio = Instance.new("Part",c) | |
18 | radio.Name = "Radio" | |
19 | radio.CanCollide = false | |
20 | radio.Anchored = true | |
21 | radio.FormFactor = "Custom" | |
22 | radio.Size = Vector3.new(2.5, 1, 0.4) | |
23 | radio.CFrame = c.Torso.CFrame * CFrame.new(-3.5,2,.2) | |
24 | radio.CFrame = radio.CFrame * CFrame.fromEulerAnglesXYZ(0,0,0) | |
25 | radio.CFrame = radio.CFrame * CFrame.fromEulerAnglesXYZ(0,0,-.1) | |
26 | radio.Transparency = 1 | |
27 | ||
28 | local sound = Instance.new("Sound",radio) | |
29 | sound.Name = "Music" | |
30 | sound.Looped = true | |
31 | sound.Volume = 1 | |
32 | ||
33 | local weld = Instance.new("Weld",radio) | |
34 | weld.Part0 = c.Torso | |
35 | weld.Part1 = radio | |
36 | weld.C0 = c.Torso.CFrame:inverse() | |
37 | weld.C1 = radio.CFrame:inverse() | |
38 | radio.Anchored = false | |
39 | ||
40 | player = game:service("Players").LocalPlayer | |
41 | char2 = player.Character | |
42 | Glow1 = Color3.new(0,0,0) | |
43 | Glow2 = Color3.new(1,0,0) | |
44 | Glow3 = Color3.new(0,1,0) | |
45 | Glow4 = Color3.new(0,0,1) | |
46 | GlowParticle = Instance.new("ParticleEmitter",radio) | |
47 | GlowParticle.LightEmission = 1 | |
48 | GlowParticle.Color = ColorSequence.new(Glow2,Glow1) | |
49 | GlowParticle.Size = NumberSequence.new(0.4) | |
50 | GlowParticle.Texture = "http://www.roblox.com/asset/?id=118641183" | |
51 | GlowParticle.Transparency = NumberSequence.new(1) | |
52 | GlowParticle.LockedToPart = false | |
53 | GlowParticle.Lifetime = NumberRange.new(.5,1) | |
54 | GlowParticle.Rate= 200 | |
55 | GlowParticle.Speed =NumberRange.new(1.5) | |
56 | GlowParticle.Acceleration = Vector3.new(0, 1, 0) | |
57 | GlowParticle.VelocitySpread = 100 | |
58 | ||
59 | GlowParticle2 = Instance.new("ParticleEmitter",radio) | |
60 | GlowParticle2.LightEmission = 1 | |
61 | GlowParticle2.Color = ColorSequence.new(Glow3,Glow1) | |
62 | GlowParticle2.Size = NumberSequence.new(0.4) | |
63 | GlowParticle2.Texture = "http://www.roblox.com/asset/?id=118641183" | |
64 | GlowParticle2.Transparency = NumberSequence.new(1) | |
65 | GlowParticle2.LockedToPart = false | |
66 | GlowParticle2.Lifetime = NumberRange.new(.5,1) | |
67 | GlowParticle2.Rate= 200 | |
68 | GlowParticle2.Speed =NumberRange.new(1.5) | |
69 | GlowParticle2.Acceleration = Vector3.new(0, 1, 0) | |
70 | GlowParticle2.VelocitySpread = 100 | |
71 | ||
72 | GlowParticle3 = Instance.new("ParticleEmitter",radio) | |
73 | GlowParticle3.LightEmission = 1 | |
74 | GlowParticle3.Color = ColorSequence.new(Glow4,Glow1) | |
75 | GlowParticle3.Size = NumberSequence.new(0.4) | |
76 | GlowParticle3.Texture = "http://www.roblox.com/asset/?id=118641183" | |
77 | GlowParticle3.Transparency = NumberSequence.new(1) | |
78 | GlowParticle3.LockedToPart = false | |
79 | GlowParticle3.Lifetime = NumberRange.new(.5,1) | |
80 | GlowParticle3.Rate= 200 | |
81 | GlowParticle3.Speed =NumberRange.new(1.5) | |
82 | GlowParticle3.Acceleration = Vector3.new(0, 1, 0) | |
83 | GlowParticle3.VelocitySpread = 100 | |
84 | ||
85 | wait (0) | |
86 | fat = Instance.new("BindableEvent", script) | |
87 | fat.Name = "Heartbeat" | |
88 | ||
89 | ||
90 | local charge = false | |
91 | ||
92 | P = game.Players.LocalPlayer | |
93 | char = P.Character | |
94 | torso = char.Torso | |
95 | neck = char.Torso.Neck | |
96 | hum = char.Humanoid | |
97 | hum.MaxHealth = 987654321987654321987654321987654321987654321 | |
98 | wait() | |
99 | hum.Health =hum.MaxHealth | |
100 | char.Head.face.Texture = "rbxassetid://176206791" | |
101 | ||
102 | ||
103 | p2 = game.Players.LocalPlayer | |
104 | char049 = p2.Character | |
105 | for i,v in pairs(char049:children()) do | |
106 | if v:IsA("Accessory") then | |
107 | v:Destroy() | |
108 | end | |
109 | end | |
110 | ||
111 | local M69 = Instance.new("SpecialMesh") | |
112 | M69.Parent = torso | |
113 | M69.MeshId = "rbxassetid://456901040" | |
114 | M69.Scale = Vector3.new( 1, 1, 1) | |
115 | ||
116 | ||
117 | ||
118 | char049.Shirt:Remove() | |
119 | for i,v in pairs(char049:GetChildren()) do if v:IsA("Pants") then v:Remove() end end | |
120 | wait()shirt = Instance.new("Shirt", char049) | |
121 | shirt.Name = "Shirt" | |
122 | pants = Instance.new("Pants", char049) | |
123 | pants.Name = "Pants" | |
124 | ||
125 | char049.Shirt.ShirtTemplate = "rbxassetid://" | |
126 | char049.Pants.PantsTemplate = "rbxassetid://" | |
127 | ||
128 | ||
129 | ||
130 | local BC = char["Body Colors"] | |
131 | BC.HeadColor = BrickColor.new("Fossil") | |
132 | BC.LeftArmColor = BrickColor.new("Fossil") | |
133 | BC.LeftLegColor = BrickColor.new("Fossil") | |
134 | BC.RightArmColor = BrickColor.new("Fossil") | |
135 | BC.RightLegColor = BrickColor.new("Fossil") | |
136 | BC.TorsoColor = BrickColor.new("Plum") | |
137 | ||
138 | ||
139 | Player=game:GetService("Players").LocalPlayer | |
140 | Character=Player.Character | |
141 | ||
142 | ------------------------------------------------------- | |
143 | local Orbd = Instance.new("Part", Character) | |
144 | Orbd.Name = "Orbd" | |
145 | Orbd.Shape = Enum.PartType.Ball | |
146 | Orbd.CanCollide = false | |
147 | Orbd.BrickColor = BrickColor.new("Really black") | |
148 | Orbd.Transparency = 1 | |
149 | Orbd.Material = "Neon" | |
150 | Orbd.Size = Vector3.new(0.2, 0.2, 0.2) | |
151 | Orbd.TopSurface = Enum.SurfaceType.Smooth | |
152 | Orbd.BottomSurface = Enum.SurfaceType.Smooth | |
153 | ||
154 | local Weld = Instance.new("Weld", Orbd) | |
155 | Weld.Part0 = Character.Head | |
156 | Weld.Part1 = Orbd | |
157 | Weld.C1 = CFrame.new(-0.01, 0.2, 0.51) | |
158 | ||
159 | --------------------------------------------------------- | |
160 | local Mask = Instance.new("Part", Character) | |
161 | Mask.Name = "Mask" | |
162 | Mask.CanCollide = false | |
163 | Mask.BrickColor = BrickColor.new("Sunrise") | |
164 | Mask.Transparency = 1 | |
165 | Mask.Material = "Neon" | |
166 | Mask.Size = Vector3.new(0.1, 0.1, 0.1) | |
167 | Mask.TopSurface = Enum.SurfaceType.Smooth | |
168 | Mask.BottomSurface = Enum.SurfaceType.Smooth | |
169 | ||
170 | local Weld = Instance.new("Weld", Mask) | |
171 | Weld.Part0 = Character.Head | |
172 | Weld.Part1 = Mask | |
173 | Weld.C1 = CFrame.new(0, 0.03, 0.5) | |
174 | ||
175 | local M1 = Instance.new("SpecialMesh") | |
176 | M1.Parent = Mask | |
177 | M1.MeshId = "http://www.roblox.com/asset/?id=430736398" | |
178 | M1.Scale = Vector3.new( .3, .03, .099) | |
179 | ---------------------------------------------------------- | |
180 | local Hood = Instance.new("Part", Character) | |
181 | Hood.Name = "Hair" | |
182 | Hood.CanCollide = false | |
183 | Hood.BrickColor = BrickColor.new("Dark indigo") | |
184 | Hood.Transparency = 1 | |
185 | Hood.Material = "Neon" | |
186 | Hood.Size = Vector3.new(0.1, 0.1, 0.1) | |
187 | Hood.TopSurface = Enum.SurfaceType.Smooth | |
188 | Hood.BottomSurface = Enum.SurfaceType.Smooth | |
189 | ||
190 | local Weld = Instance.new("Weld", Hood) | |
191 | Weld.Part0 = Character.Head | |
192 | Weld.Part1 = Hood | |
193 | Weld.C1 = CFrame.new(0, -0.5, 0) | |
194 | ||
195 | local M2 = Instance.new("SpecialMesh") | |
196 | M2.Parent = Hood | |
197 | M2.MeshId = "http://www.roblox.com/asset/?id=362013001" | |
198 | M2.Scale = Vector3.new( 1, 1.06, 1.1) | |
199 | ||
200 | ------------------------------------------------------ | |
201 | local skin = Instance.new("Part", Character) | |
202 | skin.Name = "skin" | |
203 | skin.CanCollide = false | |
204 | skin.BrickColor = BrickColor.new("Fossil") | |
205 | skin.Transparency = 1 | |
206 | skin.Material = "SmoothPlastic" | |
207 | skin.Size = Vector3.new(0.1, 0.1, 0.1) | |
208 | skin.TopSurface = Enum.SurfaceType.Smooth | |
209 | skin.BottomSurface = Enum.SurfaceType.Smooth | |
210 | ||
211 | local Weld = Instance.new("Weld", skin) | |
212 | Weld.Part0 = Character.Torso | |
213 | Weld.Part1 = skin | |
214 | Weld.C1 = CFrame.new(0, -0.83, 0.5) | |
215 | ||
216 | local M3 = Instance.new("SpecialMesh") | |
217 | M3.Parent = skin | |
218 | M3.MeshId = "http://www.roblox.com/asset/?id=518429841" | |
219 | M3.Scale = Vector3.new(0.0054, 0.0014, 0.0001) | |
220 | ||
221 | ------------------------------------------------------ | |
222 | local hair2 = Instance.new("Part", Character) | |
223 | hair2.Name = "Hair2" | |
224 | hair2.CanCollide = false | |
225 | hair2.BrickColor = BrickColor.new("Dark indigo") | |
226 | hair2.Transparency = 1 | |
227 | hair2.Material = "Neon" | |
228 | hair2.Size = Vector3.new(0.1, 0.1, 0.1) | |
229 | hair2.TopSurface = Enum.SurfaceType.Smooth | |
230 | hair2.BottomSurface = Enum.SurfaceType.Smooth | |
231 | ||
232 | local Weld = Instance.new("Weld", hair2) | |
233 | Weld.Part0 = Character.Head | |
234 | Weld.Part1 = hair2 | |
235 | Weld.C1 = CFrame.new(0, 0.65, -0.05) | |
236 | ||
237 | local M2 = Instance.new("SpecialMesh") | |
238 | M2.Parent = hair2 | |
239 | M2.MeshId = "http://www.roblox.com/asset/?id=164382853" | |
240 | M2.Scale = Vector3.new( 1.1, 1.1, 1) | |
241 | ||
242 | ------------------------------------------------------ | |
243 | local hat2 = Instance.new("Part", Character) | |
244 | hat2.Name = "hat2" | |
245 | hat2.CanCollide = false | |
246 | hat2.BrickColor = BrickColor.new("Plum") | |
247 | hat2.Transparency = 1 | |
248 | hat2.Material = "SmoothPlastic" | |
249 | hat2.Size = Vector3.new(0.1, 0.1, 0.1) | |
250 | hat2.TopSurface = Enum.SurfaceType.Smooth | |
251 | hat2.BottomSurface = Enum.SurfaceType.Smooth | |
252 | ||
253 | local Weld = Instance.new("Weld", hat2) | |
254 | Weld.Part0 = Character.Head | |
255 | Weld.Part1 = hat2 | |
256 | Weld.C1 = CFrame.new(0, -1, 0) | |
257 | ||
258 | local M4 = Instance.new("SpecialMesh") | |
259 | M4.Parent = hat2 | |
260 | M4.MeshId = "http://www.roblox.com/asset/?id=110852069" | |
261 | M4.Scale = Vector3.new( 0.8, 1, 1) | |
262 | ||
263 | ||
264 | ------------------------------------------------------ | |
265 | local hat3 = Instance.new("Part", Character) | |
266 | hat3.Name = "SmoothPlastic" | |
267 | hat3.CanCollide = false | |
268 | hat3.BrickColor = BrickColor.new("Plum") | |
269 | hat3.Transparency = 1 | |
270 | hat3.Material = "Neon" | |
271 | hat3.Size = Vector3.new(0.1, 0.1, 0.1) | |
272 | hat3.TopSurface = Enum.SurfaceType.Smooth | |
273 | hat3.BottomSurface = Enum.SurfaceType.Smooth | |
274 | ||
275 | local Weld = Instance.new("Weld", hat3) | |
276 | Weld.Part0 = Character.Head | |
277 | Weld.Part1 = hat3 | |
278 | Weld.C1 = CFrame.new(0, -0.8, 0) | |
279 | ||
280 | local M5 = Instance.new("SpecialMesh") | |
281 | M5.Parent = hat3 | |
282 | M5.MeshId = "http://www.roblox.com/asset/?id=104780903" | |
283 | M5.Scale = Vector3.new( 1.25, 1.1, 1.25) | |
284 | ||
285 | ||
286 | ------------------------------------------------------ | |
287 | local tail2 = Instance.new("Part", Character) | |
288 | tail2.Name = "tail2" | |
289 | tail2.CanCollide = false | |
290 | tail2.BrickColor = BrickColor.new("White") | |
291 | tail2.Transparency = 1 | |
292 | tail2.Material = "SmoothPlastic" | |
293 | tail2.Size = Vector3.new(0.1, 0.1, 0.1) | |
294 | tail2.TopSurface = Enum.SurfaceType.Smooth | |
295 | tail2.BottomSurface = Enum.SurfaceType.Smooth | |
296 | ||
297 | local Weld = Instance.new("Weld", tail2) | |
298 | Weld.Part0 = Character.Torso | |
299 | Weld.Part1 = tail2 | |
300 | Weld.C1 = CFrame.new(0, 0.63, -0.6) | |
301 | ||
302 | local M7 = Instance.new("SpecialMesh") | |
303 | M7.Parent = tail2 | |
304 | M7.MeshId = "http://www.roblox.com/asset/?id=518429841" | |
305 | M7.Scale = Vector3.new(0.0028, 0.0028, 0.0028) | |
306 | ------------------------------------------------------ | |
307 | local tail3 = Instance.new("Part", Character) | |
308 | tail3.Name = "tail3" | |
309 | tail3.CanCollide = false | |
310 | tail3.BrickColor = BrickColor.new("Plum") | |
311 | tail3.Transparency = 1 | |
312 | tail3.Material = "Neon" | |
313 | tail3.Size = Vector3.new(0.1, 0.1, 0.1) | |
314 | tail3.TopSurface = Enum.SurfaceType.Smooth | |
315 | tail3.BottomSurface = Enum.SurfaceType.Smooth | |
316 | ||
317 | local Weld = Instance.new("Weld", tail3) | |
318 | Weld.Part0 = Character.Torso | |
319 | Weld.Part1 = tail3 | |
320 | Weld.C1 = CFrame.new(-0.2, -0.2, -1.8) | |
321 | ||
322 | local M2 = Instance.new("SpecialMesh") | |
323 | M2.Parent = tail3 | |
324 | M2.MeshId = "http://www.roblox.com/asset/?id=170939831" | |
325 | M2.Scale = Vector3.new( 1, 1, 1) | |
326 | ------------------------------------------------------ | |
327 | ||
328 | ||
329 | ||
330 | ||
331 | ||
332 | ||
333 | ||
334 | ||
335 | ||
336 | local Player = game.Players.localPlayer | |
337 | local Character = Player.Character | |
338 | local red = 255 | |
339 | local green = 255 | |
340 | local blue = 255 | |
341 | local Humanoid = Character.Humanoid | |
342 | local mouse = Player:GetMouse() | |
343 | local m = Instance.new("Model", Character) | |
344 | m.Name = "WeaponModel" | |
345 | local LeftArm = Character["Left Arm"] | |
346 | local RightArm = Character["Right Arm"] | |
347 | local LeftLeg = Character["Left Leg"] | |
348 | local RightLeg = Character["Right Leg"] | |
349 | local Head = Character.Head | |
350 | local Torso = Character.Torso | |
351 | local cam = game.Workspace.CurrentCamera | |
352 | local RootPart = Character.HumanoidRootPart | |
353 | local RootJoint = RootPart.RootJoint | |
354 | local equipped = false | |
355 | local attack = false | |
356 | local Anim = "Idle" | |
357 | local idle = 0 | |
358 | local attacktype = 1 | |
359 | local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
360 | local velocity = RootPart.Velocity.y | |
361 | local sine = 0 | |
362 | local change = 1 | |
363 | local grabbed = false | |
364 | local cn = CFrame.new | |
365 | local mr = math.rad | |
366 | local angles = CFrame.Angles | |
367 | local ud = UDim2.new | |
368 | local c3 = Color3.new | |
369 | local lim = 0 | |
370 | local st = 0 | |
371 | local necko = cn(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
372 | local attacktype = 1 | |
373 | local ZTarget, RocketTarget = nil, nil | |
374 | local euler = CFrame.fromEulerAnglesXYZ | |
375 | function clerp(a,b,t) | |
376 | local qa = {QuaternionFromCFrame(a)} | |
377 | local qb = {QuaternionFromCFrame(b)} | |
378 | local ax, ay, az = a.x, a.y, a.z | |
379 | local bx, by, bz = b.x, b.y, b.z | |
380 | local _t = 1-t | |
381 | return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) | |
382 | end | |
383 | ||
384 | function QuaternionFromCFrame(cf) | |
385 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
386 | local trace = m00 + m11 + m22 | |
387 | if trace > 0 then | |
388 | local s = math.sqrt(1 + trace) | |
389 | local recip = 0.5/s | |
390 | return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 | |
391 | else | |
392 | local i = 0 | |
393 | if m11 > m00 then | |
394 | i = 1 | |
395 | end | |
396 | if m22 > (i == 0 and m00 or m11) then | |
397 | i = 2 | |
398 | end | |
399 | if i == 0 then | |
400 | local s = math.sqrt(m00-m11-m22+1) | |
401 | local recip = 0.5/s | |
402 | return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip | |
403 | elseif i == 1 then | |
404 | local s = math.sqrt(m11-m22-m00+1) | |
405 | local recip = 0.5/s | |
406 | return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip | |
407 | elseif i == 2 then | |
408 | local s = math.sqrt(m22-m00-m11+1) | |
409 | local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip | |
410 | end | |
411 | end | |
412 | end | |
413 | ||
414 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
415 | local xs, ys, zs = x + x, y + y, z + z | |
416 | local wx, wy, wz = w*xs, w*ys, w*zs | |
417 | local xx = x*xs | |
418 | local xy = x*ys | |
419 | local xz = x*zs | |
420 | local yy = y*ys | |
421 | local yz = y*zs | |
422 | local zz = z*zs | |
423 | 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)) | |
424 | end | |
425 | ||
426 | function QuaternionSlerp(a, b, t) | |
427 | local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] | |
428 | local startInterp, finishInterp; | |
429 | if cosTheta >= 0.0001 then | |
430 | if (1 - cosTheta) > 0.0001 then | |
431 | local theta = math.acos(cosTheta) | |
432 | local invSinTheta = 1/math.sin(theta) | |
433 | startInterp = math.sin((1-t)*theta)*invSinTheta | |
434 | finishInterp = math.sin(t*theta)*invSinTheta | |
435 | else | |
436 | startInterp = 1-t | |
437 | finishInterp = t | |
438 | end | |
439 | else | |
440 | if (1+cosTheta) > 0.0001 then | |
441 | local theta = math.acos(-cosTheta) | |
442 | local invSinTheta = 1/math.sin(theta) | |
443 | startInterp = math.sin((t-1)*theta)*invSinTheta | |
444 | finishInterp = math.sin(t*theta)*invSinTheta | |
445 | else | |
446 | startInterp = t-1 | |
447 | finishInterp = t | |
448 | end | |
449 | end | |
450 | 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 | |
451 | end | |
452 | rayCast = function(Position, Direction, Range, Ignore) | |
453 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) | |
454 | end | |
455 | local v = game.Players.localPlayer | |
456 | local torso = v.Character.Torso | |
457 | wait(0) | |
458 | local p = Instance.new("Part", v.Character) | |
459 | p.Name = "kit" | |
460 | p.BrickColor = BrickColor.new("Plum") | |
461 | p.Anchored = true | |
462 | p.Transparency = 1 | |
463 | p.Material = "Plastic" | |
464 | p.CanCollide = false | |
465 | p.TopSurface = 0 | |
466 | p.BottomSurface = 0 | |
467 | p.Size = Vector3.new(0.2, 0.2, 0.2) | |
468 | p.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0) | |
469 | local msh = Instance.new("SpecialMesh", p) | |
470 | msh.Scale = Vector3.new(0.55, 0.55, 0.55) | |
471 | msh.MeshId = "http://www.roblox.com/asset/?id=430736398" | |
472 | msh.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b) | |
473 | local pn = Instance.new("Part", v.Character.kit) | |
474 | pn.Name = "D" | |
475 | pn.BrickColor = BrickColor.new("Plum") | |
476 | pn.Anchored = true | |
477 | pn.Transparency = 1 | |
478 | pn.Material = "Plastic" | |
479 | pn.CanCollide = false | |
480 | pn.TopSurface = 0 | |
481 | pn.BottomSurface = 0 | |
482 | pn.Size = Vector3.new(0.2, 0.2, 0.2) | |
483 | pn.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0) | |
484 | local mshn = Instance.new("SpecialMesh", pn) | |
485 | mshn.Scale = Vector3.new(0.55, 0.55, 0.55) | |
486 | mshn.MeshId = "http://www.roblox.com/asset/?id=430736398" | |
487 | mshn.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b) | |
488 | local pn3 = Instance.new("Part", v.Character.kit) | |
489 | pn3.Name = "B" | |
490 | pn3.BrickColor = BrickColor.new("Fossil") | |
491 | pn3.Anchored = true | |
492 | pn3.Transparency = 1 | |
493 | pn3.Material = "Plastic" | |
494 | pn3.CanCollide = false | |
495 | pn3.TopSurface = 0 | |
496 | pn3.BottomSurface = 0 | |
497 | pn3.Size = Vector3.new(0.2, 0.2, 0.2) | |
498 | pn3.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0) | |
499 | local mshn3 = Instance.new("SpecialMesh", pn3) | |
500 | mshn3.Scale = Vector3.new(0.0054, 0.0054, 0.0054) | |
501 | mshn3.MeshId = "http://www.roblox.com/asset/?id=518429841" | |
502 | mshn3.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b) | |
503 | local pn4 = Instance.new("Part", v.Character.kit) | |
504 | pn4.Name = "B" | |
505 | pn4.BrickColor = BrickColor.new("Fossil") | |
506 | pn4.Anchored = true | |
507 | pn4.Transparency = 1 | |
508 | pn4.Material = "Plastic" | |
509 | pn4.CanCollide = false | |
510 | pn4.TopSurface = 0 | |
511 | pn4.BottomSurface = 0 | |
512 | pn4.Size = Vector3.new(0.2, 0.2, 0.2) | |
513 | pn4.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0) | |
514 | local mshn4 = Instance.new("SpecialMesh", pn4) | |
515 | mshn4.Scale = Vector3.new(0.0054, 0.0054, 0.0054) | |
516 | mshn4.MeshId = "http://www.roblox.com/asset/?id=518429841" | |
517 | mshn4.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b) | |
518 | local pn5 = Instance.new("Part", v.Character.kit) | |
519 | pn5.Name = "tail" | |
520 | pn5.Anchored = true | |
521 | pn5.Transparency = 1 | |
522 | pn5.BrickColor = BrickColor.new("Plum") | |
523 | pn5.Material = "Plastic" | |
524 | pn5.CanCollide = false | |
525 | pn5.TopSurface = 0 | |
526 | pn5.BottomSurface = 0 | |
527 | pn5.Size = Vector3.new(0.2, 0.2, 0.2) | |
528 | pn5.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0) | |
529 | local mshn5 = Instance.new("SpecialMesh", pn5) | |
530 | mshn5.Scale = Vector3.new(2, 2, 2) | |
531 | mshn5.MeshId = "http://www.roblox.com/asset/?id=188635159" | |
532 | mshn5.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b) | |
533 | local pn6 = Instance.new("Part", v.Character.kit) | |
534 | pn6.Name = "B-Hair" | |
535 | pn6.Anchored = true | |
536 | pn6.Transparency = 1 | |
537 | pn6.BrickColor = BrickColor.new("Dark indigo") | |
538 | pn6.Material = "Plastic" | |
539 | pn6.CanCollide = false | |
540 | pn6.TopSurface = 0 | |
541 | pn6.BottomSurface = 0 | |
542 | pn6.Size = Vector3.new(0.2, 0.2, 0.2) | |
543 | pn6.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0) | |
544 | local mshn6 = Instance.new("SpecialMesh", pn6) | |
545 | mshn6.Scale = Vector3.new(.015, .03, .001) | |
546 | mshn6.MeshId = "http://www.roblox.com/asset/?id=521338357" | |
547 | local pn7 = Instance.new("Part", v.Character.kit) | |
548 | pn7.Name = "tail" | |
549 | pn7.Anchored = true | |
550 | pn7.Transparency = 1 | |
551 | pn7.BrickColor = BrickColor.new("Plum") | |
552 | pn7.Material = "Plastic" | |
553 | pn7.CanCollide = false | |
554 | pn7.TopSurface = 0 | |
555 | pn7.BottomSurface = 0 | |
556 | pn7.Size = Vector3.new(0.2, 0.2, 0.2) | |
557 | pn7.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0) | |
558 | local mshn7 = Instance.new("SpecialMesh", pn7) | |
559 | mshn7.Scale = Vector3.new(2, 2, 2) | |
560 | mshn7.MeshId = "http://www.roblox.com/asset/?id=188635159" | |
561 | mshn7.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b) | |
562 | local pn8 = Instance.new("Part", v.Character.kit) | |
563 | pn8.Name = "tail" | |
564 | pn8.Anchored = true | |
565 | pn8.Transparency = 1 | |
566 | pn8.BrickColor = BrickColor.new("Plum") | |
567 | pn8.Material = "Plastic" | |
568 | pn8.CanCollide = false | |
569 | pn8.TopSurface = 0 | |
570 | pn8.BottomSurface = 0 | |
571 | pn8.Size = Vector3.new(0.2, 0.2, 0.2) | |
572 | pn8.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0) | |
573 | local mshn8 = Instance.new("SpecialMesh", pn8) | |
574 | mshn8.Scale = Vector3.new(2, 2, 2) | |
575 | mshn8.MeshId = "http://www.roblox.com/asset/?id=188635159" | |
576 | mshn8.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b) | |
577 | local pn9 = Instance.new("Part", v.Character.kit) | |
578 | pn9.Name = "tail" | |
579 | pn9.Anchored = true | |
580 | pn9.Transparency = 1 | |
581 | pn9.BrickColor = BrickColor.new("Plum") | |
582 | pn9.Material = "Plastic" | |
583 | pn9.CanCollide = false | |
584 | pn9.TopSurface = 0 | |
585 | pn9.BottomSurface = 0 | |
586 | pn9.Size = Vector3.new(0.2, 0.2, 0.2) | |
587 | pn9.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0) | |
588 | local mshn9 = Instance.new("SpecialMesh", pn9) | |
589 | mshn9.Scale = Vector3.new(2, 2, 2) | |
590 | mshn9.MeshId = "http://www.roblox.com/asset/?id=188635159" | |
591 | mshn9.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b) | |
592 | local pn0 = Instance.new("Part", v.Character.kit) | |
593 | pn0.Name = "ears" | |
594 | pn0.Anchored = true | |
595 | pn0.Transparency = 1 | |
596 | pn0.BrickColor = BrickColor.new("Plum") | |
597 | pn0.Material = "Plastic" | |
598 | pn0.CanCollide = false | |
599 | pn0.TopSurface = 0 | |
600 | pn0.BottomSurface = 0 | |
601 | pn0.Size = Vector3.new(0.2, 0.2, 0.2) | |
602 | pn0.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0) | |
603 | local mshn0 = Instance.new("SpecialMesh", pn0) | |
604 | mshn0.Scale = Vector3.new(0.5, 0.5, 0.5) | |
605 | mshn0.MeshId = "http://www.roblox.com/asset/?id=361948302" | |
606 | mshn0.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b) | |
607 | p.Anchored = false | |
608 | local motor1 = Instance.new("Weld", torso) | |
609 | motor1.Part0 = p | |
610 | motor1.Part1 = torso | |
611 | motor1.C0 = CFrame.new(2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
612 | motor1.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
613 | pn.Anchored = false | |
614 | local motor2 = Instance.new("Weld", torso) | |
615 | motor2.Part0 = pn | |
616 | motor2.Part1 = torso | |
617 | motor2.C0 = CFrame.new(-2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
618 | motor2.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
619 | pn3.Anchored = false | |
620 | local motor3 = Instance.new("Weld", torso) | |
621 | motor3.Part0 = pn3 | |
622 | motor3.Part1 = torso | |
623 | motor3.C0 = CFrame.new(-2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
624 | motor3.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
625 | pn4.Anchored = false | |
626 | local motor4 = Instance.new("Weld", torso) | |
627 | motor4.Part0 = pn4 | |
628 | motor4.Part1 = torso | |
629 | motor4.C0 = CFrame.new(2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
630 | motor4.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
631 | pn5.Anchored = false | |
632 | local motor5 = Instance.new("Weld", pn5) | |
633 | motor5.Part0 = pn5 | |
634 | motor5.Part1 = torso | |
635 | motor5.C0 = CFrame.new(-2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
636 | motor5.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
637 | pn6.Anchored = false | |
638 | local motor6 = Instance.new("Weld", pn6) | |
639 | motor6.Part0 = pn6 | |
640 | motor6.Part1 = Head | |
641 | motor6.C0 = CFrame.new(-2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
642 | motor6.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
643 | pn7.Anchored = false | |
644 | local motor7 = Instance.new("Weld", pn7) | |
645 | motor7.Part0 = pn7 | |
646 | motor7.Part1 = torso | |
647 | motor7.C0 = CFrame.new(-2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
648 | motor7.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
649 | pn8.Anchored = false | |
650 | local motor8 = Instance.new("Weld", pn8) | |
651 | motor8.Part0 = pn8 | |
652 | motor8.Part1 = torso | |
653 | motor8.C0 = CFrame.new(2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
654 | motor8.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
655 | pn9.Anchored = false | |
656 | local motor9 = Instance.new("Weld", pn9) | |
657 | motor9.Part0 = pn9 | |
658 | motor9.Part1 = torso | |
659 | motor9.C0 = CFrame.new(2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
660 | motor9.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
661 | pn0.Anchored = false | |
662 | local motor0 = Instance.new("Weld", pn0) | |
663 | motor0.Part0 = pn0 | |
664 | motor0.Part1 = v.Character.Head | |
665 | motor0.C0 = CFrame.new(0, -0.8, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
666 | game:GetService("RunService").Stepped:connect(function() | |
667 | Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
668 | velocity = RootPart.Velocity.y | |
669 | sine = sine + change | |
670 | local hit, pos = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character) | |
671 | if equipped == true or equipped == false then | |
672 | if RootPart.Velocity.y > 1 and hit == nil then | |
673 | Anim = "Jump" | |
674 | if attack == false then | |
675 | motor1.C0 = clerp(motor1.C0, CFrame.new(0.45, -1.4, .85) * angles(math.rad(2 + 0 * math.cos(sine / 50)), math.rad(0 + 0 * math.cos(sine / 80)), math.rad(0 + 0 * math.cos(sine / 25))), 0.1) | |
676 | motor2.C0 = clerp(motor2.C0, CFrame.new(-0.45, -1.4, .85) * angles(math.rad(2 + -0 * math.cos(sine / 70)), math.rad(0 + 0 * math.cos(sine / 50)), math.rad(0 + 0 * math.cos(sine / 25))), 0.1) | |
677 | motor3.C0 = clerp(motor3.C0, CFrame.new(0.4, -1.45, .75) * angles(math.rad(2 + -0 * math.cos(sine / 50)), math.rad(0 + 0 * math.cos(sine / 80)), math.rad(0 + 0 * math.cos(sine / 25))), 0.1) | |
678 | motor4.C0 = clerp(motor3.C0, CFrame.new(-7.6, -1.45, .73) * angles(math.rad(2 + -0 * math.cos(sine / 70)), math.rad(0 + 0 * math.cos(sine / 80)), math.rad(0 + 0 * math.cos(sine / 25))), 0.1) | |
679 | motor5.C0 = clerp(motor5.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-60 + 0 * math.cos(sine / 10)), math.rad(90 + 0 * math.cos(sine / 10)), math.rad(-80 + 0 * math.cos(sine / 25))), 0.1) | |
680 | motor6.C0 = clerp(motor6.C0, CFrame.new(-0.28, 0.27, 1.38) * angles(math.rad(-26.3 + -1 * math.cos(sine / 20)), math.rad(10 + 0 * math.cos(sine / 70)), math.rad(0 + 0 * math.cos(sine / 25))), 0.1) | |
681 | motor7.C0 = clerp(motor7.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-60 + 0 * math.cos(sine / 10)), math.rad(90 + 0 * math.cos(sine / 10)), math.rad(-80 + 0 * math.cos(sine / 25))), 0.1) | |
682 | motor8.C0 = clerp(motor8.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(120 + 0 * math.cos(sine / -30)), math.rad(110 + 0 * math.cos(sine / 20)), math.rad(115 + 0 * math.cos(sine / 10))), 0.1) | |
683 | motor9.C0 = clerp(motor9.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(120 + 0 * math.cos(sine / -30)), math.rad(110 + 0 * math.cos(sine / 20)), math.rad(115 + 0 * math.cos(sine / 10))), 0.1) | |
684 | end | |
685 | else | |
686 | if RootPart.Velocity.y < -1 and hit == nil then | |
687 | Anim = "Fall" | |
688 | if attack == false then | |
689 | motor1.C0 = clerp(motor1.C0, CFrame.new(0.45, -1.4, .85) * angles(math.rad(-3 + 0 * math.cos(sine / 50)), math.rad(0 + 0 * math.cos(sine / 80)), math.rad(0 + 0 * math.cos(sine / 25))), 0.1) | |
690 | motor2.C0 = clerp(motor2.C0, CFrame.new(-0.45, -1.4, .85) * angles(math.rad(-3 + -0 * math.cos(sine / 70)), math.rad(0 + 0 * math.cos(sine / 50)), math.rad(0 + 0 * math.cos(sine / 25))), 0.1) | |
691 | motor3.C0 = clerp(motor3.C0, CFrame.new(0.4, -1.45, .75) * angles(math.rad(-3 + -0 * math.cos(sine / 50)), math.rad(0 + 0 * math.cos(sine / 80)), math.rad(0 + 0 * math.cos(sine / 25))), 0.1) | |
692 | motor4.C0 = clerp(motor3.C0, CFrame.new(-7.6, -1.45, .73) * angles(math.rad(-3 + -0 * math.cos(sine / 70)), math.rad(0 + 0 * math.cos(sine / 80)), math.rad(0 + 0 * math.cos(sine / 25))), 0.1) | |
693 | motor5.C0 = clerp(motor5.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-45 + 0 * math.cos(sine / 10)), math.rad(0 + 0 * math.cos(sine / 10)), math.rad(-70 + 0 * math.cos(sine / 25))), 0.1) | |
694 | motor6.C0 = clerp(motor6.C0, CFrame.new(-0.28, 0.27, 1.38) * angles(math.rad(-26.3 + -1 * math.cos(sine / 20)), math.rad(10 + 0 * math.cos(sine / 70)), math.rad(0 + 0 * math.cos(sine / 25))), 0.1) | |
695 | motor7.C0 = clerp(motor7.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-45 + 0 * math.cos(sine / 10)), math.rad(0 + 0 * math.cos(sine / 10)), math.rad(-70 + 0 * math.cos(sine / 25))), 0.1) | |
696 | motor8.C0 = clerp(motor8.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(120 + 0 * math.cos(sine / -30)), math.rad(180 + 0 * math.cos(sine / 20)), math.rad(115 + 0 * math.cos(sine / 10))), 0.1) | |
697 | motor9.C0 = clerp(motor9.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(120 + 0 * math.cos(sine / -30)), math.rad(180 + 0 * math.cos(sine / 20)), math.rad(115 + 0 * math.cos(sine / 10))), 0.1) | |
698 | end | |
699 | else | |
700 | if Torsovelocity < 1 and hit ~= nil then | |
701 | Anim = "Idle" | |
702 | if attack == false then | |
703 | change = 1 | |
704 | motor1.C0 = clerp(motor1.C0, CFrame.new(0.45, -1.4, .85) * angles(math.rad(-0 + 0 * math.cos(sine / 50)), math.rad(0 + 0 * math.cos(sine / 80)), math.rad(0 + 0 * math.cos(sine / 25))), 0.1) | |
705 | motor2.C0 = clerp(motor2.C0, CFrame.new(-0.45, -1.4, .85) * angles(math.rad(-0 + -0 * math.cos(sine / 70)), math.rad(0 + 0 * math.cos(sine / 50)), math.rad(0 + 0 * math.cos(sine / 25))), 0.1) | |
706 | motor3.C0 = clerp(motor3.C0, CFrame.new(0.4, -1.45, .75) * angles(math.rad(-0 + -0 * math.cos(sine / 50)), math.rad(0 + 0 * math.cos(sine / 80)), math.rad(0 + 0 * math.cos(sine / 25))), 0.1) | |
707 | motor4.C0 = clerp(motor3.C0, CFrame.new(-7.6, -1.45, .73) * angles(math.rad(-0 + -0 * math.cos(sine / 70)), math.rad(0 + 0 * math.cos(sine / 80)), math.rad(0 + 0 * math.cos(sine / 25))), 0.1) | |
708 | motor5.C0 = clerp(motor5.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-50 + 5 * math.cos(sine / 60)), math.rad(0 + 5 * math.cos(sine / 65)), math.rad(10 + 0 * math.cos(sine / 25))), 0.1) | |
709 | motor6.C0 = clerp(motor6.C0, CFrame.new(-0.28, 0.27, 1.38) * angles(math.rad(-26.3 + -1 * math.cos(sine / 20)), math.rad(10 + 0 * math.cos(sine / 70)), math.rad(0 + 0 * math.cos(sine / 25))), 0.1) | |
710 | motor7.C0 = clerp(motor7.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-50 + 5 * math.cos(sine / 70)), math.rad(0 + 5 * math.cos(sine / 35)), math.rad(-45 + 0 * math.cos(sine / 25))), 0.1) | |
711 | motor8.C0 = clerp(motor8.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-10 + 5 * math.cos(sine / 55)), math.rad(0 + 5 * math.cos(sine / 55)), math.rad(-150 + 0 * math.cos(sine / 25))), 0.1) | |
712 | motor9.C0 = clerp(motor9.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-20 + 5 * math.cos(sine / 65)), math.rad(0 + 5 * math.cos(sine / 60)), math.rad(-100 + 0 * math.cos(sine / 25))), 0.1) | |
713 | end | |
714 | else | |
715 | if Torsovelocity > 2 and hit ~= nil then | |
716 | Anim = "Walk" | |
717 | if attack == false then | |
718 | motor1.C0 = clerp(motor1.C0, CFrame.new(0.45, -1.4, .85) * angles(math.rad(2 + 2 * math.cos(sine / 5)), math.rad(0 + -1 * math.cos(sine / 5)), math.rad(0 + 1 * math.cos(sine / 5))), 0.1) | |
719 | motor2.C0 = clerp(motor2.C0, CFrame.new(-0.45, -1.4, .85) * angles(math.rad(2 + -2 * math.cos(sine / 5)), math.rad(0 + -1 * math.cos(sine / 5)), math.rad(0 + 1 * math.cos(sine / 5))), 0.1) | |
720 | motor3.C0 = clerp(motor3.C0, CFrame.new(0.4, -1.45, .75) * angles(math.rad(0 + 0 * math.cos(sine / 5)), math.rad(0 + -0 * math.cos(sine / 5)), math.rad(0 + 0 * math.cos(sine / 5))), 0.1) | |
721 | motor4.C0 = clerp(motor3.C0, CFrame.new(-7.6, -1.45, .73) * angles(math.rad(0 + 0 * math.cos(sine / 5)), math.rad(0 + -0 * math.cos(sine / 5)), math.rad(0 + 0 * math.cos(sine / 5))), 0.1) | |
722 | motor5.C0 = clerp(motor5.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-60 + 10 * math.cos(sine / 30)), math.rad(45 + 10 * math.cos(sine / 20)), math.rad(-45 + 0 * math.cos(sine / 10))), 0.1) | |
723 | motor6.C0 = clerp(motor6.C0, CFrame.new(-0.28, 0.27, 1.38) * angles(math.rad(-26.3 + -1 * math.cos(sine / 20)), math.rad(10 + 0 * math.cos(sine / 70)), math.rad(0 + 0 * math.cos(sine / 25))), 0.1) | |
724 | motor7.C0 = clerp(motor7.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-60 + 10 * math.cos(sine / 30)), math.rad(45 + 10 * math.cos(sine / 20)), math.rad(-45 + 0 * math.cos(sine / 10))), 0.1) | |
725 | motor8.C0 = clerp(motor8.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(120 + 10 * math.cos(sine / -30)), math.rad(135 + -10 * math.cos(sine / 20)), math.rad(115 + 0 * math.cos(sine / 10))), 0.1) | |
726 | motor9.C0 = clerp(motor9.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(120 + 10 * math.cos(sine / -30)), math.rad(135 + -10 * math.cos(sine / 20)), math.rad(115 + 0 * math.cos(sine / 10))), 0.1) | |
727 | end | |
728 | end | |
729 | end | |
730 | end | |
731 | end | |
732 | end | |
733 | end) | |
734 | ||
735 | ||
736 | newface = Instance.new("Decal",Head) | |
737 | newface.Texture = "rbxassetid://186681690" | |
738 | ||
739 | ||
740 | ||
741 | ||
742 | --[[NIGHTOWLACE_WEAPONRY]]-- | |
743 | maincolor = game.Players.LocalPlayer.Character.Torso.BrickColor.Name | |
744 | secondcolor = "Really black" | |
745 | ||
746 | wait(1 / 60) | |
747 | Effects = { } | |
748 | local Player = game.Players.localPlayer | |
749 | local Character = Player.Character | |
750 | local Humanoid = Character.Humanoid | |
751 | local mouse = Player:GetMouse() | |
752 | local LeftArm = Character["Left Arm"] | |
753 | local RightArm = Character["Right Arm"] | |
754 | local LeftLeg = Character["Left Leg"] | |
755 | local RightLeg = Character["Right Leg"] | |
756 | local Head = Character.Head | |
757 | local Torso = Character.Torso | |
758 | local cam = game.Workspace.CurrentCamera | |
759 | local RootPart = Character.HumanoidRootPart | |
760 | local RootJoint = RootPart.RootJoint | |
761 | local equipped = true | |
762 | local attack = false | |
763 | local Anim = 'Idle' | |
764 | local idle = 0 | |
765 | local attacktype = 1 | |
766 | local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
767 | local velocity = RootPart.Velocity.y | |
768 | local sine = 0 | |
769 | local change = 1 | |
770 | local grabbed = false | |
771 | local cn = CFrame.new | |
772 | local mr = math.rad | |
773 | local angles = CFrame.Angles | |
774 | local ud = UDim2.new | |
775 | local c3 = Color3.new | |
776 | ||
777 | local NeckCF = cn(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
778 | Humanoid.Animator:Destroy() | |
779 | Character.Animate:Destroy() | |
780 | ||
781 | local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
782 | local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0) | |
783 | local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0) | |
784 | ||
785 | RSH, LSH = nil, nil | |
786 | ||
787 | RW = Instance.new("Weld") | |
788 | LW = Instance.new("Weld") | |
789 | ||
790 | RH = Torso["Right Hip"] | |
791 | LH = Torso["Left Hip"] | |
792 | ||
793 | RSH = Torso["Right Shoulder"] | |
794 | LSH = Torso["Left Shoulder"] | |
795 | ||
796 | RSH.Parent = nil | |
797 | LSH.Parent = nil | |
798 | ||
799 | RW.Name = "RW" | |
800 | RW.Part0 = Torso | |
801 | RW.C0 = cn(1.5, 0.5, 0) | |
802 | RW.C1 = cn(0, 0.5, 0) | |
803 | RW.Part1 = RightArm | |
804 | RW.Parent = Torso | |
805 | ||
806 | LW.Name = "LW" | |
807 | LW.Part0 = Torso | |
808 | LW.C0 = cn(-1.5, 0.5, 0) | |
809 | LW.C1 = cn(0, 0.5, 0) | |
810 | LW.Part1 = LeftArm | |
811 | LW.Parent = Torso | |
812 | ||
813 | function clerp(a, b, t) | |
814 | local qa = { | |
815 | QuaternionFromCFrame(a) | |
816 | } | |
817 | local qb = { | |
818 | QuaternionFromCFrame(b) | |
819 | } | |
820 | local ax, ay, az = a.x, a.y, a.z | |
821 | local bx, by, bz = b.x, b.y, b.z | |
822 | local _t = 1 - t | |
823 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
824 | end | |
825 | ||
826 | function QuaternionFromCFrame(cf) | |
827 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
828 | local trace = m00 + m11 + m22 | |
829 | if trace > 0 then | |
830 | local s = math.sqrt(1 + trace) | |
831 | local recip = 0.5 / s | |
832 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
833 | else | |
834 | local i = 0 | |
835 | if m11 > m00 then | |
836 | i = 1 | |
837 | end | |
838 | if m22 > (i == 0 and m00 or m11) then | |
839 | i = 2 | |
840 | end | |
841 | if i == 0 then | |
842 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
843 | local recip = 0.5 / s | |
844 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
845 | elseif i == 1 then | |
846 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
847 | local recip = 0.5 / s | |
848 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
849 | elseif i == 2 then | |
850 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
851 | local recip = 0.5 / s | |
852 | return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
853 | end | |
854 | end | |
855 | end | |
856 | ||
857 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
858 | local xs, ys, zs = x + x, y + y, z + z | |
859 | local wx, wy, wz = w * xs, w * ys, w * zs | |
860 | local xx = x * xs | |
861 | local xy = x * ys | |
862 | local xz = x * zs | |
863 | local yy = y * ys | |
864 | local yz = y * zs | |
865 | local zz = z * zs | |
866 | 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)) | |
867 | end | |
868 | ||
869 | function QuaternionSlerp(a, b, t) | |
870 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
871 | local startInterp, finishInterp; | |
872 | if cosTheta >= 0.0001 then | |
873 | if (1 - cosTheta) > 0.0001 then | |
874 | local theta = math.acos(cosTheta) | |
875 | local invSinTheta = 1 / math.sin(theta) | |
876 | startInterp = math.sin((1 - t) * theta) * invSinTheta | |
877 | finishInterp = math.sin(t * theta) * invSinTheta | |
878 | else | |
879 | startInterp = 1 - t | |
880 | finishInterp = t | |
881 | end | |
882 | else | |
883 | if (1 + cosTheta) > 0.0001 then | |
884 | local theta = math.acos(-cosTheta) | |
885 | local invSinTheta = 1 / math.sin(theta) | |
886 | startInterp = math.sin((t - 1) * theta) * invSinTheta | |
887 | finishInterp = math.sin(t * theta) * invSinTheta | |
888 | else | |
889 | startInterp = t - 1 | |
890 | finishInterp = t | |
891 | end | |
892 | end | |
893 | 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 | |
894 | end | |
895 | ||
896 | function swait(num) | |
897 | if num == 0 or num == nil then | |
898 | game:service'RunService'.RenderStepped:wait(0) | |
899 | else | |
900 | for i = 0, num do | |
901 | game:service'RunService'.RenderStepped:wait(0) | |
902 | end | |
903 | end | |
904 | end | |
905 | ||
906 | local RbxUtility = LoadLibrary("RbxUtility") | |
907 | local Create = RbxUtility.Create | |
908 | ||
909 | function RemoveOutlines(part) | |
910 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
911 | end | |
912 | ||
913 | function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
914 | local Part = Create("Part"){ | |
915 | formFactor = FormFactor, | |
916 | Parent = Parent, | |
917 | Reflectance = Reflectance, | |
918 | Transparency = Transparency, | |
919 | CanCollide = false, | |
920 | Locked = true, | |
921 | BrickColor = BrickColor.new(tostring(BColor)), | |
922 | Name = Name, | |
923 | Size = Size, | |
924 | Material = Material, | |
925 | } | |
926 | RemoveOutlines(Part) | |
927 | return Part | |
928 | end | |
929 | ||
930 | function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
931 | local Msh = Create(Mesh){ | |
932 | Parent = Part, | |
933 | Offset = OffSet, | |
934 | Scale = Scale, | |
935 | } | |
936 | if Mesh == "SpecialMesh" then | |
937 | Msh.MeshType = MeshType | |
938 | Msh.MeshId = MeshId | |
939 | end | |
940 | return Msh | |
941 | end | |
942 | ||
943 | function CreateWeld(Parent, Part0, Part1, C0, C1) | |
944 | local Weld = Create("Weld"){ | |
945 | Parent = Parent, | |
946 | Part0 = Part0, | |
947 | Part1 = Part1, | |
948 | C0 = C0, | |
949 | C1 = C1, | |
950 | } | |
951 | return Weld | |
952 | end | |
953 | ||
954 | function rayCast(Position, Direction, Range, Ignore) | |
955 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) | |
956 | end | |
957 | ||
958 | function CreateSound(id, par, vol, pit) | |
959 | coroutine.resume(coroutine.create(function() | |
960 | local sou = Instance.new("Sound", par or workspace) | |
961 | sou.Volume = vol | |
962 | sou.Pitch = pit or 1 | |
963 | sou.SoundId = id | |
964 | wait() | |
965 | sou:play() | |
966 | game:GetService("Debris"):AddItem(sou, 6) | |
967 | end)) | |
968 | end | |
969 | ||
970 | local function getclosest(obj, distance) | |
971 | local last, lastx = distance + 1 | |
972 | for i, v in pairs(workspace:GetChildren()) do | |
973 | if v:IsA'Model' and v ~= Character and v:findFirstChild('Humanoid') and v:findFirstChild('Torso') and v:findFirstChild('Humanoid').Health > 0 then | |
974 | local t = v.Torso | |
975 | local dist = (t.Position - obj.Position).magnitude | |
976 | if dist <= distance then | |
977 | if dist < last then | |
978 | last = dist | |
979 | lastx = v | |
980 | end | |
981 | end | |
982 | end | |
983 | end | |
984 | return lastx | |
985 | end | |
986 | ||
987 | function Damage(hit, damage, cooldown, Color1, Color2, HSound, HPitch) | |
988 | for i, v in pairs(hit:GetChildren()) do | |
989 | if v:IsA("Humanoid") and hit.Name ~= Character.Name then | |
990 | local find = v:FindFirstChild("Hitz") | |
991 | if not find then | |
992 | if v.Parent:findFirstChild("Head") then | |
993 | local BillG = Create("BillboardGui"){ | |
994 | Parent = v.Parent.Head, | |
995 | Size = UDim2.new(1, 0, 1, 0), | |
996 | Adornee = v.Parent.Head, | |
997 | StudsOffset = Vector3.new(math.random(-3, 3), math.random(3, 5), math.random(-3, 3)), | |
998 | } | |
999 | local TL = Create("TextLabel"){ | |
1000 | Parent = BillG, | |
1001 | Size = UDim2.new(3, 3, 3, 3), | |
1002 | BackgroundTransparency = 1, | |
1003 | Text = tostring(damage).."-", | |
1004 | TextColor3 = Color1.Color, | |
1005 | TextStrokeColor3 = Color2.Color, | |
1006 | TextStrokeTransparency = 0, | |
1007 | TextXAlignment = Enum.TextXAlignment.Center, | |
1008 | TextYAlignment = Enum.TextYAlignment.Center, | |
1009 | FontSize = Enum.FontSize.Size18, | |
1010 | Font = "ArialBold", | |
1011 | } | |
1012 | coroutine.resume(coroutine.create(function() | |
1013 | wait(1) | |
1014 | for i = 0, 1, .1 do | |
1015 | wait(.1) | |
1016 | BillG.StudsOffset = BillG.StudsOffset + Vector3.new(0, .1, 0) | |
1017 | end | |
1018 | BillG:Destroy() | |
1019 | end)) | |
1020 | end | |
1021 | v.Health = v.Health - damage | |
1022 | local bool = Create("BoolValue"){ | |
1023 | Parent = v, | |
1024 | Name = 'Hitz', | |
1025 | } | |
1026 | if HSound ~= nil and HPitch ~= nil then | |
1027 | CreateSound(HSound, hit, 1, HPitch) | |
1028 | end | |
1029 | game:GetService("Debris"):AddItem(bool, cooldown) | |
1030 | end | |
1031 | end | |
1032 | end | |
1033 | end | |
1034 | ||
1035 | ||
1036 | function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
1037 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
1038 | prt.Anchored = true | |
1039 | prt.CFrame = cframe | |
1040 | local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1041 | game:GetService("Debris"):AddItem(prt, 10) | |
1042 | if Type == 1 or Type == nil then | |
1043 | table.insert(Effects, { | |
1044 | prt, | |
1045 | "Block1", | |
1046 | delay, | |
1047 | x3, | |
1048 | y3, | |
1049 | z3, | |
1050 | msh | |
1051 | }) | |
1052 | elseif Type == 2 then | |
1053 | table.insert(Effects, { | |
1054 | prt, | |
1055 | "Block2", | |
1056 | delay, | |
1057 | x3, | |
1058 | y3, | |
1059 | z3, | |
1060 | msh | |
1061 | }) | |
1062 | end | |
1063 | end | |
1064 | ||
1065 | function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1066 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
1067 | prt.Anchored = true | |
1068 | prt.CFrame = cframe | |
1069 | local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1070 | game:GetService("Debris"):AddItem(prt, 10) | |
1071 | table.insert(Effects, { | |
1072 | prt, | |
1073 | "Cylinder", | |
1074 | delay, | |
1075 | x3, | |
1076 | y3, | |
1077 | z3, | |
1078 | msh | |
1079 | }) | |
1080 | end | |
1081 | ||
1082 | function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1083 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
1084 | prt.Anchored = true | |
1085 | prt.CFrame = cframe * CFrame.new(x1, y1, z1) | |
1086 | local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1087 | game:GetService("Debris"):AddItem(prt, 10) | |
1088 | table.insert(Effects, { | |
1089 | prt, | |
1090 | "Cylinder", | |
1091 | delay, | |
1092 | x3, | |
1093 | y3, | |
1094 | z3, | |
1095 | msh | |
1096 | }) | |
1097 | end | |
1098 | ||
1099 | function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1100 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
1101 | prt.Anchored = true | |
1102 | prt.CFrame = cframe | |
1103 | local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1104 | game:GetService("Debris"):AddItem(prt, 10) | |
1105 | table.insert(Effects, { | |
1106 | prt, | |
1107 | "Cylinder", | |
1108 | delay, | |
1109 | x3, | |
1110 | y3, | |
1111 | z3, | |
1112 | msh | |
1113 | }) | |
1114 | end | |
1115 | ||
1116 | function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1117 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
1118 | prt.Anchored = true | |
1119 | prt.CFrame = cframe | |
1120 | local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1121 | game:GetService("Debris"):AddItem(prt, 10) | |
1122 | table.insert(Effects, { | |
1123 | prt, | |
1124 | "Cylinder", | |
1125 | delay, | |
1126 | x3, | |
1127 | y3, | |
1128 | z3, | |
1129 | msh | |
1130 | }) | |
1131 | end | |
1132 | ||
1133 | function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1134 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
1135 | prt.Anchored = true | |
1136 | prt.CFrame = cframe | |
1137 | local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1138 | game:GetService("Debris"):AddItem(prt, 10) | |
1139 | table.insert(Effects, { | |
1140 | prt, | |
1141 | "Cylinder", | |
1142 | delay, | |
1143 | x3, | |
1144 | y3, | |
1145 | z3, | |
1146 | msh | |
1147 | }) | |
1148 | end | |
1149 | ||
1150 | function BreakEffect(brickcolor, cframe, x1, y1, z1) | |
1151 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
1152 | prt.Anchored = true | |
1153 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
1154 | local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1155 | local num = math.random(10, 50) / 1000 | |
1156 | game:GetService("Debris"):AddItem(prt, 10) | |
1157 | table.insert(Effects, { | |
1158 | prt, | |
1159 | "Shatter", | |
1160 | num, | |
1161 | prt.CFrame, | |
1162 | math.random() - math.random(), | |
1163 | 0, | |
1164 | math.random(50, 100) / 100 | |
1165 | }) | |
1166 | end | |
1167 | ||
1168 | ||
1169 | ||
1170 | ||
1171 | for i = 0, 1, 0.05 do | |
1172 | swait() | |
1173 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .1) | |
1174 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(0)), .1) | |
1175 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1) | |
1176 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3) | |
1177 | if Torsovelocity > 2 then | |
1178 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-50 * math.cos(sine / 4)), math.rad(0), math.rad(4 * math.cos(sine / 4))), .2) | |
1179 | RH.C0 = clerp(RH.C0, cn(1, -1 + .1 * math.cos(sine / 5), 0) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), .3) | |
1180 | LH.C0 = clerp(LH.C0, cn(-1, -1 + .1 * math.cos(sine / 5), 0) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), .3) | |
1181 | elseif Torsovelocity < 1 then | |
1182 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1) | |
1183 | RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1) | |
1184 | LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1) | |
1185 | end | |
1186 | end | |
1187 | attack = false | |
1188 | ||
1189 | ||
1190 | ||
1191 | game:GetService'RunService'.Stepped:connect(function() | |
1192 | Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
1193 | velocity = RootPart.Velocity.y | |
1194 | sine = sine + change | |
1195 | local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character) | |
1196 | if equipped == true or equipped == false then | |
1197 | if RootPart.Velocity.y > 1 and hit == nil then | |
1198 | Anim = "Jump" | |
1199 | if attack == false and Anim2 == false then | |
1200 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(0)), .1) | |
1201 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), .1) | |
1202 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(30)), .1) | |
1203 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(-30)), .1) | |
1204 | RH.C0 = clerp(RH.C0, cn(1, -.9, -.3) * RHCF * angles(math.rad(3), math.rad(0), math.rad(0)), .1) | |
1205 | LH.C0 = clerp(LH.C0, cn(-1, -.7, -.5) * LHCF * angles(math.rad(-3), math.rad(0), math.rad(0)), .1) | |
1206 | end | |
1207 | ||
1208 | elseif RootPart.Velocity.y < -1 and hit == nil then | |
1209 | Anim = "Fall" | |
1210 | if attack == false and Anim2 == false then | |
1211 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), .1) | |
1212 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), .1) | |
1213 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(50)), .1) | |
1214 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-50)), .1) | |
1215 | RH.C0 = clerp(RH.C0, cn(1, -1, -.3) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .1) | |
1216 | LH.C0 = clerp(LH.C0, cn(-1, -.8, -.3) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .1) | |
1217 | end | |
1218 | elseif Torsovelocity < 1 and hit ~= nil then | |
1219 | Anim = "Idle" | |
1220 | if attack == false and Anim2 == false then | |
1221 | change = 0.8 | |
1222 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.1 + 0.1 * math.cos(sine / 25)) * angles(math.rad(0), math.rad(-5), math.rad(5)), .1) | |
1223 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5 - 2 * math.cos(sine / 50)), math.rad(8), math.rad(-5)), .1) | |
1224 | RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.6, 0.3) * angles(math.rad(30), math.rad(150), math.rad(-200 + 3 * math.cos(sine / 25))), 0.1) | |
1225 | LW.C0 = clerp(LW.C0, CFrame.new(-1.54, 0.5, 0.1) * angles(math.rad(0), math.rad(10), math.rad(0 - 4 * math.cos(sine / 25))), 0.1) | |
1226 | RH.C0 = clerp(RH.C0, cn(1, -.93 - 0.1 * math.cos(sine / 25), 0) * RHCF * angles(math.rad(-10 + 2 * math.cos(sine / 25)), math.rad(-15), math.rad(6 + 2 * math.cos(sine / 45))), .1) | |
1227 | LH.C0 = clerp(LH.C0, cn(-1, -.93 - 0.1 * math.cos(sine / 25), 0) * LHCF * angles(math.rad(-5 + 2 * math.cos(sine / 25)), math.rad(-5), math.rad(7 + 2 * math.cos(sine / 25))), .1) | |
1228 | ||
1229 | end | |
1230 | ||
1231 | elseif Torsovelocity > 1 and hit ~= nil then | |
1232 | Anim = "Walk" | |
1233 | if attack == false and Anim2 == false then | |
1234 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.02 + .1 * math.cos(sine / 3)) * angles(math.rad(5), math.rad(0) + RootPart.RotVelocity.Y / 30, math.rad(7 * math.cos(sine / 5))), .1) | |
1235 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-3), math.rad(0), math.rad(-5 * math.cos(sine / 5)) + RootPart.RotVelocity.Y / 9), .1) | |
1236 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-50 * math.cos(sine / 4)), math.rad(-7), math.rad(4 * math.cos(sine / 4))), .1) | |
1237 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(50 * math.cos(sine / 4)), math.rad(7), math.rad(4 * math.cos(sine / 4))), .1) | |
1238 | RH.C0 = clerp(RH.C0, cn(1, -1 + .2 * math.cos(sine / 3), 0) * RHCF * angles(math.rad(-2), math.rad(7), math.rad(50 * math.cos(sine / 4))), .1) | |
1239 | LH.C0 = clerp(LH.C0, cn(-1, -1 + .1 * math.cos(sine / 3), 0) * LHCF * angles(math.rad(-2), math.rad(-7), math.rad(50 * math.cos(sine / 4))), .1) | |
1240 | ||
1241 | end | |
1242 | end | |
1243 | end | |
1244 | -------------------------------------------------------------------------ANI-2---------------------------------------------------------------------------------------------- | |
1245 | if equipped == true or equipped == false then | |
1246 | if RootPart.Velocity.y > 1 and hit == nil then | |
1247 | Anim = "Jump" | |
1248 | if attack == false and Anim2 == true then | |
1249 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(0)), .1) | |
1250 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), .1) | |
1251 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(30)), .1) | |
1252 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(-30)), .1) | |
1253 | RH.C0 = clerp(RH.C0, cn(1, -.9, -.3) * RHCF * angles(math.rad(3), math.rad(0), math.rad(0)), .1) | |
1254 | LH.C0 = clerp(LH.C0, cn(-1, -.7, -.5) * LHCF * angles(math.rad(-3), math.rad(0), math.rad(0)), .1) | |
1255 | end | |
1256 | ||
1257 | elseif RootPart.Velocity.y < -1 and hit == nil then | |
1258 | Anim = "Fall" | |
1259 | if attack == false and Anim2 == true then | |
1260 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), .1) | |
1261 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), .1) | |
1262 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(50)), .1) | |
1263 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-50)), .1) | |
1264 | RH.C0 = clerp(RH.C0, cn(1, -1, -.3) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .1) | |
1265 | LH.C0 = clerp(LH.C0, cn(-1, -.8, -.3) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .1) | |
1266 | end | |
1267 | elseif Torsovelocity < 1 and hit ~= nil then | |
1268 | Anim = "Idle" | |
1269 | if attack == false and Anim2 == true then | |
1270 | change = 0.8 | |
1271 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.1 + 0.1 * math.cos(sine / 25)) * angles(math.rad(0), math.rad(0), math.rad(5)), .1) | |
1272 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(1 - 1 * math.cos(sine / 25)), math.rad(0), math.rad(-5)), .1) | |
1273 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(5 + 3 * math.cos(sine / 25))), 0.1) | |
1274 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-5 - 3 * math.cos(sine / 25))), 0.1) | |
1275 | RH.C0 = clerp(RH.C0, cn(1, -.9 - 0.1 * math.cos(sine / 25), 0) * RHCF * angles(math.rad(-2 + 2 * math.cos(sine / 25)), math.rad(-5), math.rad(0 + 2 * math.cos(sine / 25))), .1) | |
1276 | LH.C0 = clerp(LH.C0, cn(-1, -.9 - 0.1 * math.cos(sine / 25), 0) * LHCF * angles(math.rad(-2 + 2 * math.cos(sine / 25)), math.rad(-5), math.rad(0 + 2 * math.cos(sine / 25))), .1) | |
1277 | end | |
1278 | ||
1279 | elseif Torsovelocity > 1 and hit ~= nil then | |
1280 | Anim = "Walk" | |
1281 | if attack == false and Anim2 == true then | |
1282 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.02 + .1 * math.cos(sine / 3)) * angles(math.rad(5), math.rad(0) + RootPart.RotVelocity.Y / 30, math.rad(5 * math.cos(sine / 5))), .2) | |
1283 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-3), math.rad(0), math.rad(-5 * math.cos(sine / 5)) + RootPart.RotVelocity.Y / 9), .2) | |
1284 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-50 * math.cos(sine / 4)), math.rad(0), math.rad(4 * math.cos(sine / 4))), .1) | |
1285 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(50 * math.cos(sine / 4)), math.rad(0), math.rad(4 * math.cos(sine / 4))), .1) | |
1286 | RH.C0 = clerp(RH.C0, cn(1, -1 + .2 * math.cos(sine / 3), 0) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(50 * math.cos(sine / 4))), .1) | |
1287 | LH.C0 = clerp(LH.C0, cn(-1, -1 + .1 * math.cos(sine / 3), 0) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(50 * math.cos(sine / 4))), .1) | |
1288 | ||
1289 | end | |
1290 | end | |
1291 | end | |
1292 | ||
1293 | ||
1294 | if #Effects > 0 then | |
1295 | for e = 1, #Effects do | |
1296 | if Effects[e] ~= nil then | |
1297 | local Thing = Effects[e] | |
1298 | if Thing ~= nil then | |
1299 | local Part = Thing[1] | |
1300 | local Mode = Thing[2] | |
1301 | local Delay = Thing[3] | |
1302 | local IncX = Thing[4] | |
1303 | local IncY = Thing[5] | |
1304 | local IncZ = Thing[6] | |
1305 | if Thing[1].Transparency <= 1 then | |
1306 | if Thing[2] == "Block1" then | |
1307 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
1308 | local Mesh = Thing[1].Mesh | |
1309 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1310 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1311 | elseif Thing[2] == "Block2" then | |
1312 | Thing[1].CFrame = Thing[1].CFrame | |
1313 | local Mesh = Thing[7] | |
1314 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1315 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1316 | elseif Thing[2] == "Cylinder" then | |
1317 | local Mesh = Thing[1].Mesh | |
1318 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1319 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1320 | elseif Thing[2] == "Blood" then | |
1321 | local Mesh = Thing[7] | |
1322 | Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, .5, 0) | |
1323 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1324 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1325 | elseif Thing[2] == "Elec" then | |
1326 | local Mesh = Thing[1].Mesh | |
1327 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9]) | |
1328 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1329 | elseif Thing[2] == "Disappear" then | |
1330 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1331 | elseif Thing[2] == "Shatter" then | |
1332 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1333 | Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0) | |
1334 | Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0) | |
1335 | Thing[6] = Thing[6] + Thing[5] | |
1336 | end | |
1337 | else | |
1338 | Part.Parent = nil | |
1339 | table.remove(Effects, e) | |
1340 | end | |
1341 | end | |
1342 | end | |
1343 | end | |
1344 | end | |
1345 | end) | |
1346 | ||
1347 | ||
1348 | ||
1349 | ||
1350 | Pressed = false | |
1351 | -------------- | |
1352 | MaskOn = false | |
1353 | MaskOff = true | |
1354 | -------------- | |
1355 | Anim2 = true | |
1356 | -------------- | |
1357 | eye1 = false | |
1358 | eye2 = false | |
1359 | eye3 = true | |
1360 | -------------- | |
1361 | mouth1 = false | |
1362 | mouth2 = true | |
1363 | mouth3 = false | |
1364 | mouth4 = false | |
1365 | mouth5 = false | |
1366 | mouth6 = false | |
1367 | mouth7 = false | |
1368 | -------------- | |
1369 | bkit0 = true | |
1370 | bkit1 = false | |
1371 | bkit2 = false | |
1372 | -------------- | |
1373 | torso1 = false | |
1374 | torso2 = true | |
1375 | -------------- | |
1376 | Tail0 = true | |
1377 | Tail1 = false | |
1378 | Tail2 = false | |
1379 | Tail3 = false | |
1380 | -------------- | |
1381 | Hair0 = true | |
1382 | Hair1 = false | |
1383 | Hair2 = false | |
1384 | Hair3 = false | |
1385 | -------------- | |
1386 | Hat0 = true | |
1387 | Hat1 = false | |
1388 | Hat2 = false | |
1389 | Hat3 = false | |
1390 | local Playing = false | |
1391 | ||
1392 | ---:Mini:-:Menu:--- | |
1393 | char2 = game.Players.LocalPlayer.Character | |
1394 | iPlayer = game.Players.LocalPlayer.Name | |
1395 | local Gui = Instance.new('ScreenGui', game.Players[iPlayer].PlayerGui) | |
1396 | Gui.Name = 'Gui test' | |
1397 | local Pull = Instance.new('Frame', Gui) | |
1398 | Pull.Name = 'Grab' | |
1399 | Pull.Active = true | |
1400 | Pull.BackgroundColor3 = Color3.new(97/255,97/255,97/255) | |
1401 | Pull.BackgroundTransparency = 0 | |
1402 | Pull.BorderSizePixel = 4 | |
1403 | Pull.Position = UDim2.new(0.5,-318,0.5,-92) | |
1404 | Pull.Size = UDim2.new(0,120,0,50) | |
1405 | Pull.Draggable = true | |
1406 | Pull.BorderColor3 = Color3.new(97/255,97/255,97/255) | |
1407 | ||
1408 | local Close = Instance.new('TextButton', Pull) | |
1409 | Close.Name = 'Close' | |
1410 | Close.BackgroundTransparency = 1 | |
1411 | Close.Position = UDim2.new(1,-23,0,1) | |
1412 | Close.Size = UDim2.new(0,22,0,22) | |
1413 | Close.Font = 'SourceSans' | |
1414 | Close.FontSize = 'Size24' | |
1415 | Close.TextColor3 = Color3.new(255,255,255) | |
1416 | Close.Text = 'X' | |
1417 | Close.TextStrokeTransparency = 0.8 | |
1418 | ||
1419 | local Body = Instance.new('Frame', Pull) | |
1420 | Body.Name = 'Body' | |
1421 | Body.BackgroundColor3 = Color3.new(60/255,60/255,60/255) | |
1422 | Body.BackgroundTransparency = 0 | |
1423 | Body.BorderSizePixel = 4 | |
1424 | Body.Position = UDim2.new(0,0,0,52) | |
1425 | Body.Size = UDim2.new(0,547,0,212) | |
1426 | Body.BorderColor3 = Color3.new(97/255,97/255,97/255) | |
1427 | ||
1428 | ||
1429 | local Line = Instance.new('Frame', Body) | |
1430 | Line.Name = 'Line' | |
1431 | Line.BackgroundColor3 = Color3.new(60/255,60/255,60/255) | |
1432 | Line.BackgroundTransparency = 0 | |
1433 | Line.BorderSizePixel = 2 | |
1434 | Line.Position = UDim2.new(0,152.5,0,0) | |
1435 | Line.Size = UDim2.new(0,0.01,0,212) | |
1436 | Line.BorderColor3 = Color3.new(97/255,97/255,97/255) | |
1437 | ||
1438 | local Line2 = Instance.new('Frame', Body) | |
1439 | Line2.Name = 'Line2' | |
1440 | Line2.BackgroundColor3 = Color3.new(60/255,60/255,60/255) | |
1441 | Line2.BackgroundTransparency = 0 | |
1442 | Line2.BorderSizePixel = 2 | |
1443 | Line2.Position = UDim2.new(0,306.5,0,0) | |
1444 | Line2.Size = UDim2.new(0,0.01,0,212) | |
1445 | Line2.BorderColor3 = Color3.new(97/255,97/255,97/255) | |
1446 | ||
1447 | ||
1448 | ||
1449 | local Title = Instance.new('TextLabel', Pull) | |
1450 | Title.Name = 'Title' | |
1451 | Title.BackgroundTransparency = 1 | |
1452 | Title.Position = UDim2.new(0,-50,0,0) | |
1453 | Title.Size = UDim2.new(0,200,1,0) | |
1454 | Title.Font = 'SourceSansLight' | |
1455 | Title.FontSize = 'Size48' | |
1456 | Title.Text = "Menu" | |
1457 | Title.TextColor3 = Color3.new(0.5,0,1) | |
1458 | Title.TextStrokeColor3 = Color3.new(74/255,74/255,74/255) | |
1459 | Title.TextStrokeTransparency = 0 | |
1460 | ||
1461 | local PlayerName = Instance.new('TextBox', Body) | |
1462 | PlayerName.Name = 'PlayerName' | |
1463 | PlayerName.BorderSizePixel = 0 | |
1464 | PlayerName.Position = UDim2.new(0,8,0,10) | |
1465 | PlayerName.Size = UDim2.new(0,135,0,30) | |
1466 | PlayerName.Font = 'SourceSans' | |
1467 | PlayerName.FontSize = 'Size18' | |
1468 | PlayerName.Text = 'Name of the color' | |
1469 | PlayerName.BackgroundColor3 = Color3.new(255,255,255) | |
1470 | PlayerName.TextColor3 = Color3.new(0,0,0) | |
1471 | PlayerName.TextWrapped = true | |
1472 | ||
1473 | local ColTex2 = Instance.new('TextBox', Body) | |
1474 | ColTex2.Name = 'ColTex2' | |
1475 | ColTex2.BorderSizePixel = 0 | |
1476 | ColTex2.Position = UDim2.new(0,318.5,0,10) | |
1477 | ColTex2.Size = UDim2.new(0,135,0,30) | |
1478 | ColTex2.Font = 'SourceSans' | |
1479 | ColTex2.FontSize = 'Size18' | |
1480 | ColTex2.Text = 'Song id' | |
1481 | ColTex2.BackgroundColor3 = Color3.new(255,255,255) | |
1482 | ColTex2.TextColor3 = Color3.new(0,0,0) | |
1483 | ColTex2.TextWrapped = true | |
1484 | ||
1485 | local ColTex3 = Instance.new('TextBox', Body) | |
1486 | ColTex3.Name = 'ColTex3' | |
1487 | ColTex3.BorderSizePixel = 2 | |
1488 | ColTex3.Position = UDim2.new(0,10,0,130)-- 72,5 | |
1489 | ColTex3.Size = UDim2.new(0,57.5,0,30) | |
1490 | ColTex3.Font = 'SourceSans' | |
1491 | ColTex3.FontSize = 'Size10' | |
1492 | ColTex3.Text = 'Shirt id' | |
1493 | ColTex3.BackgroundColor3 = Color3.new(255,255,255) | |
1494 | ColTex3.TextColor3 = Color3.new(0,0,0) | |
1495 | ColTex3.TextWrapped = true | |
1496 | ||
1497 | local ColTex4 = Instance.new('TextBox', Body) | |
1498 | ColTex4.Name = 'ColTex4' | |
1499 | ColTex4.BorderSizePixel = 2 | |
1500 | ColTex4.Position = UDim2.new(0,10,0,170)-- 72,5 | |
1501 | ColTex4.Size = UDim2.new(0,57.5,0,30) | |
1502 | ColTex4.Font = 'SourceSans' | |
1503 | ColTex4.FontSize = 'Size10' | |
1504 | ColTex4.Text = 'Pants id' | |
1505 | ColTex4.BackgroundColor3 = Color3.new(255,255,255) | |
1506 | ColTex4.TextColor3 = Color3.new(0,0,0) | |
1507 | ColTex4.TextWrapped = true | |
1508 | ||
1509 | local Chattext = Instance.new('TextBox', Body) | |
1510 | Chattext.Name = 'Chattext' | |
1511 | Chattext.BorderSizePixel = 2 | |
1512 | Chattext.Position = UDim2.new(0,125,0,-45)-- 72,5 | |
1513 | Chattext.Size = UDim2.new(0,157.5,0,40) | |
1514 | Chattext.Font = 'SourceSans' | |
1515 | Chattext.FontSize = 'Size12' | |
1516 | Chattext.Text = 'Beter chat ^-^ ' | |
1517 | Chattext.BackgroundColor3 = Color3.new(255,255,255) | |
1518 | Chattext.TextColor3 = Color3.new(0,0,0) | |
1519 | Chattext.TextWrapped = true | |
1520 | Chattext.BorderColor3 = Color3.new(97/255,97/255,97/255) | |
1521 | ||
1522 | local God = Instance.new('TextButton', Body) | |
1523 | God.Name = 'God' | |
1524 | God.BackgroundColor3 = Color3.new(21/255,142/255,255) | |
1525 | God.BackgroundTransparency = 0 | |
1526 | God.BorderSizePixel = 2 | |
1527 | God.Position = UDim2.new(0,10,0,50) | |
1528 | God.Size = UDim2.new(0,57.5,0,30) -- 135/2 = 57,5 | |
1529 | God.Font = 'SourceSansBold' | |
1530 | God.FontSize = 'Size18' | |
1531 | God.Text = 'Skin col' | |
1532 | God.TextColor3 = Color3.new(255,255,255) | |
1533 | God.TextWrapped = true | |
1534 | God.BorderColor3 = Color3.new(97/255,97/255,97/255) | |
1535 | God.TextStrokeTransparency = 1 | |
1536 | -- ===================================================================== | |
1537 | local Saypress = God:Clone() | |
1538 | Saypress.Name = 'Saypress' | |
1539 | Saypress.Parent = Body | |
1540 | Saypress.Position = UDim2.new(0,285.5,0,-35) | |
1541 | Saypress.Text = 'Say' | |
1542 | Saypress.BackgroundColor3 = Color3.new(.5,1,.5) | |
1543 | -- ===================================================================== | |
1544 | local TpTo = God:Clone() | |
1545 | TpTo.Name = 'TpTo' | |
1546 | TpTo.Parent = Body | |
1547 | TpTo.Position = UDim2.new(0,468.5,0,10) | |
1548 | TpTo.Text = 'Play' | |
1549 | TpTo.BackgroundColor3 = Color3.new(.5,1,.5) | |
1550 | -- ===================================================================== | |
1551 | local KillPlr = God:Clone() | |
1552 | KillPlr.Name = 'Shirtcol' | |
1553 | KillPlr.Parent = Body | |
1554 | KillPlr.Position = UDim2.new(0,10,0,90) | |
1555 | KillPlr.Text = 'Shirt col' | |
1556 | KillPlr.Size = UDim2.new(0,130,0,30) | |
1557 | -- ===================================================================== | |
1558 | local Haircol = God:Clone() | |
1559 | Haircol.Name = 'Haircol' | |
1560 | Haircol.Parent = Body | |
1561 | Haircol.Position = UDim2.new(0,82.5,0,50) | |
1562 | Haircol.Text = 'Hair col' | |
1563 | -- ===================================================================== 164 | |
1564 | ||
1565 | local TpMe = God:Clone() | |
1566 | TpMe.Name = 'Hat' | |
1567 | TpMe.Parent = Body | |
1568 | TpMe.Position = UDim2.new(0,164,0,90) | |
1569 | TpMe.Text = 'Hat 1' | |
1570 | TpMe.Size = UDim2.new(0,57.5,0,30) | |
1571 | TpMe.FontSize = 'Size18' | |
1572 | -- ===================================================================== | |
1573 | local TpMe2 = God:Clone() | |
1574 | TpMe2.Name = 'Hair' | |
1575 | TpMe2.Parent = Body | |
1576 | TpMe2.Position = UDim2.new(0,236.5,0,50) | |
1577 | TpMe2.Text = 'Hair 1' | |
1578 | TpMe2.Size = UDim2.new(0,57.5,0,30) | |
1579 | TpMe2.FontSize = 'Size18' | |
1580 | -- ===================================================================== | |
1581 | local G36K = God:Clone() | |
1582 | G36K.Name = 'SpawnG36k' | |
1583 | G36K.Parent = Body | |
1584 | G36K.Position = UDim2.new(0,162,0,10) | |
1585 | G36K.Text = 'Idle Pose' | |
1586 | G36K.Size = UDim2.new(0,135,0,30) | |
1587 | G36K.BackgroundColor3 = Color3.new(1,.5,.5) | |
1588 | G36K.FontSize = 'Size28' | |
1589 | -- ===================================================================== | |
1590 | local Tail = God:Clone() | |
1591 | Tail.Name = 'Tail' | |
1592 | Tail.Parent = Body | |
1593 | Tail.Position = UDim2.new(0,164,0,50) | |
1594 | Tail.Text = 'Tail 0' | |
1595 | -- ===================================================================== | |
1596 | local Torso2 = God:Clone() | |
1597 | Torso2.Name = 'Hair' | |
1598 | Torso2.Parent = Body | |
1599 | Torso2.Position = UDim2.new(0,236.5,0,90) | |
1600 | Torso2.Text = 'Torso 2' | |
1601 | Torso2.Size = UDim2.new(0,57.5,0,30) | |
1602 | Torso2.FontSize = 'Size18' | |
1603 | -- ===================================================================== | |
1604 | local Bkit = God:Clone() | |
1605 | Bkit.Name = 'Bkit' | |
1606 | Bkit.Parent = Body | |
1607 | Bkit.Position = UDim2.new(0,164,0,130) | |
1608 | Bkit.Text = 'Bkit 0' | |
1609 | Bkit.Size = UDim2.new(0,57.5,0,30) | |
1610 | Bkit.FontSize = 'Size18' | |
1611 | -- ===================================================================== | |
1612 | local Mouth = God:Clone() | |
1613 | Mouth.Name = 'Mouth' | |
1614 | Mouth.Parent = Body | |
1615 | Mouth.Position = UDim2.new(0,164,0,170) | |
1616 | Mouth.Text = 'Mouth 2' | |
1617 | Mouth.FontSize = 'Size18' | |
1618 | -- ===================================================================== (0,318.5,0,10) | |
1619 | local Eyes = God:Clone() | |
1620 | Eyes.Name = 'Eyes' | |
1621 | Eyes.Parent = Body | |
1622 | Eyes.Position = UDim2.new(0,236,0,130) | |
1623 | Eyes.Text = 'Eye 3' | |
1624 | Eyes.FontSize = 'Size18' | |
1625 | -- =====================================================================(0,391,0,10) | |
1626 | local mask = God:Clone() | |
1627 | mask.Name = 'mask' | |
1628 | mask.Parent = Body | |
1629 | mask.Position = UDim2.new(0,236,0,170) | |
1630 | mask.Text = 'Shy' | |
1631 | mask.FontSize = 'Size18' | |
1632 | mask.BackgroundColor3 = Color3.new(1,.5,.5) | |
1633 | -- ===================================================================== | |
1634 | local Shirtset = God:Clone() | |
1635 | Shirtset.Name = 'Shirtset' | |
1636 | Shirtset.Parent = Body | |
1637 | Shirtset.Position = UDim2.new(0,82.5,0,130) | |
1638 | Shirtset.Text = 'Set' | |
1639 | -- ===================================================================== | |
1640 | local Pantsset = God:Clone() | |
1641 | Pantsset.Name = 'Pantsset' | |
1642 | Pantsset.Parent = Body | |
1643 | Pantsset.Position = UDim2.new(0,82.5,0,170) | |
1644 | Pantsset.Text = 'Set' | |
1645 | ||
1646 | -- ===================================================================== 81,5 | |
1647 | local Bunny = God:Clone() | |
1648 | Bunny.Name = 'Bunny' | |
1649 | Bunny.Parent = Body | |
1650 | Bunny.Position = UDim2.new(0,318.5,0,50) | |
1651 | Bunny.Text = 'Bunny' | |
1652 | -- ===================================================================== 81,5 | |
1653 | local Noob = God:Clone() | |
1654 | Noob.Name = 'Noob' | |
1655 | Noob.Parent = Body | |
1656 | Noob.Position = UDim2.new(0,318.5,0,90) | |
1657 | Noob.Text = 'Noob' | |
1658 | -- ===================================================================== 81,5 | |
1659 | local Kitty = God:Clone() | |
1660 | Kitty.Name = 'Kitty' | |
1661 | Kitty.Parent = Body | |
1662 | Kitty.Position = UDim2.new(0,318.5,0,130) | |
1663 | Kitty.Text = 'Kitty' | |
1664 | ||
1665 | ||
1666 | ||
1667 | ||
1668 | ||
1669 | ||
1670 | ||
1671 | ||
1672 | ||
1673 | ||
1674 | ||
1675 | ||
1676 | ||
1677 | -- ********************************************************************* | |
1678 | ||
1679 | Saypress.MouseButton1Down:connect(function() | |
1680 | local ChatService = game:GetService("Chat") | |
1681 | ChatService:Chat(char.Head, "" .. Chattext.Text) | |
1682 | end) | |
1683 | ||
1684 | ||
1685 | ||
1686 | ||
1687 | ||
1688 | ||
1689 | ||
1690 | ||
1691 | ||
1692 | God.MouseButton1Down:connect(function() | |
1693 | BC.HeadColor = BrickColor.new(PlayerName.Text) | |
1694 | BC.LeftArmColor = BrickColor.new(PlayerName.Text) | |
1695 | BC.LeftLegColor = BrickColor.new(PlayerName.Text) | |
1696 | BC.RightArmColor = BrickColor.new(PlayerName.Text) | |
1697 | BC.RightLegColor = BrickColor.new(PlayerName.Text) | |
1698 | pn3.BrickColor = BrickColor.new(PlayerName.Text) | |
1699 | pn4.BrickColor = BrickColor.new(PlayerName.Text) | |
1700 | skin.BrickColor = BrickColor.new(PlayerName.Text) | |
1701 | end) | |
1702 | -- ===================================================================== | |
1703 | KillPlr.MouseButton1Down:connect(function() | |
1704 | pn.BrickColor = BrickColor.new(PlayerName.Text) | |
1705 | p.BrickColor = BrickColor.new(PlayerName.Text) | |
1706 | pn0.BrickColor = BrickColor.new(PlayerName.Text) | |
1707 | BC.TorsoColor = BrickColor.new(PlayerName.Text) | |
1708 | hat2.BrickColor = BrickColor.new(PlayerName.Text) | |
1709 | hat3.BrickColor = BrickColor.new(PlayerName.Text) | |
1710 | pn5.BrickColor = BrickColor.new(PlayerName.Text) | |
1711 | pn7.BrickColor = BrickColor.new(PlayerName.Text) | |
1712 | pn8.BrickColor = BrickColor.new(PlayerName.Text) | |
1713 | pn9.BrickColor = BrickColor.new(PlayerName.Text) | |
1714 | tail3.BrickColor = BrickColor.new(PlayerName.Text) | |
1715 | end) | |
1716 | -- ===================================================================== | |
1717 | TpTo.MouseButton1Down:connect(function() | |
1718 | if Playing == false and Pressed == false then | |
1719 | TpTo.BackgroundColor3 = Color3.new(1,.5,.5) | |
1720 | TpTo.Text = 'Stop' | |
1721 | Pressed = true | |
1722 | radio.Transparency = 0 | |
1723 | GlowParticle.Transparency = NumberSequence.new(.3,.8) | |
1724 | GlowParticle2.Transparency = NumberSequence.new(.3,.8) | |
1725 | GlowParticle3.Transparency = NumberSequence.new(.3,.8) | |
1726 | wait() | |
1727 | sound:Play() | |
1728 | Playing = true | |
1729 | end | |
1730 | if Playing == true and Pressed == false then | |
1731 | TpTo.BackgroundColor3 = Color3.new(.5,1,.5) | |
1732 | TpTo.Text = 'Play' | |
1733 | Pressed = true | |
1734 | radio.Transparency = 1 | |
1735 | GlowParticle.Transparency = NumberSequence.new(1) | |
1736 | GlowParticle2.Transparency = NumberSequence.new(1) | |
1737 | GlowParticle3.Transparency = NumberSequence.new(1) | |
1738 | wait() | |
1739 | sound:Stop() | |
1740 | Playing = false | |
1741 | end | |
1742 | wait() | |
1743 | Pressed = false | |
1744 | end) | |
1745 | -- ===================================================================== | |
1746 | TpMe.MouseButton1Down:connect(function() | |
1747 | if Hat1 == true and Pressed == false then | |
1748 | TpMe.Text = 'Hat 2' | |
1749 | pn0.Transparency = 1 | |
1750 | hat2.Transparency = 0 | |
1751 | Pressed = true | |
1752 | wait() | |
1753 | Hat1 = false | |
1754 | Hat2 = true | |
1755 | end | |
1756 | if Hat2 == true and Pressed == false then | |
1757 | TpMe.Text = 'Hat 3' | |
1758 | hat2.Transparency = 1 | |
1759 | hat3.Transparency = 0 | |
1760 | Pressed = true | |
1761 | wait() | |
1762 | Hat2 = false | |
1763 | Hat3 = true | |
1764 | end | |
1765 | if Hat3 == true and Pressed == false then | |
1766 | TpMe.Text = 'Hat 0' | |
1767 | hat3.Transparency = 1 | |
1768 | Pressed = true | |
1769 | wait() | |
1770 | Hat3 = false | |
1771 | Hat0 = true | |
1772 | end | |
1773 | if Hat0 == true and Pressed == false then | |
1774 | TpMe.Text = 'Hat 1' | |
1775 | pn0.Transparency = 0 | |
1776 | Pressed = true | |
1777 | wait() | |
1778 | Hat3 = false | |
1779 | Hat1 = true | |
1780 | end | |
1781 | wait() | |
1782 | Pressed = false | |
1783 | end) | |
1784 | -- ===================================================================== | |
1785 | G36K.MouseButton1Down:connect(function() | |
1786 | if Anim2 == false and Pressed == false then | |
1787 | G36K.BackgroundColor3 = Color3.new(1,.5,.5) | |
1788 | Pressed = true | |
1789 | wait() | |
1790 | Anim2 = true | |
1791 | end | |
1792 | if Anim2 == true and Pressed == false then | |
1793 | G36K.BackgroundColor3 = Color3.new(.5,1,.5) | |
1794 | Pressed = true | |
1795 | wait() | |
1796 | Anim2 = false | |
1797 | end | |
1798 | wait() | |
1799 | Pressed = false | |
1800 | end) | |
1801 | -- ===================================================================== | |
1802 | TpMe2.MouseButton1Down:connect(function() | |
1803 | if Hair1 == true and Pressed == false then | |
1804 | TpMe2.Text = 'Hair 2' | |
1805 | Hood.Transparency = 1 | |
1806 | pn6.Transparency = 1 | |
1807 | hair2.Transparency = 0 | |
1808 | Pressed = true | |
1809 | wait() | |
1810 | Hair1 = false | |
1811 | Hair2 = true | |
1812 | end | |
1813 | if Hair2 == true and Pressed == false then | |
1814 | TpMe2.Text = 'Hair 3' | |
1815 | Hood.Transparency = 0 | |
1816 | pn6.Transparency = 1 | |
1817 | hair2.Transparency = 1 | |
1818 | Pressed = true | |
1819 | wait() | |
1820 | Hair2 = false | |
1821 | Hair3 = true | |
1822 | end | |
1823 | if Hair3 == true and Pressed == false then | |
1824 | TpMe2.Text = 'Hair 0' | |
1825 | Hood.Transparency = 1 | |
1826 | pn6.Transparency = 1 | |
1827 | hair2.Transparency = 1 | |
1828 | Pressed = true | |
1829 | wait() | |
1830 | Hair3 = false | |
1831 | Hair0 = true | |
1832 | end | |
1833 | if Hair0 == true and Pressed == false then | |
1834 | TpMe2.Text = 'Hair 1' | |
1835 | Hood.Transparency = 0 | |
1836 | pn6.Transparency = 0 | |
1837 | hair2.Transparency = 0 | |
1838 | Pressed = true | |
1839 | wait() | |
1840 | Hair0 = false | |
1841 | Hair1 = true | |
1842 | end | |
1843 | wait() | |
1844 | Pressed = false | |
1845 | end) | |
1846 | -- ===================================================================== | |
1847 | Haircol.MouseButton1Down:connect(function() | |
1848 | hair2.BrickColor = BrickColor.new(PlayerName.Text) | |
1849 | Hood.BrickColor = BrickColor.new(PlayerName.Text) | |
1850 | pn6.BrickColor = BrickColor.new(PlayerName.Text) | |
1851 | end) | |
1852 | -- ===================================================================== | |
1853 | Tail.MouseButton1Down:connect(function() | |
1854 | if Tail1 == true and Pressed == false then | |
1855 | Tail.Text = 'Tail 2' | |
1856 | pn5.Transparency = 1 | |
1857 | pn7.Transparency = 1 | |
1858 | pn8.Transparency = 1 | |
1859 | pn9.Transparency = 1 | |
1860 | tail2.Transparency = 0 | |
1861 | Pressed = true | |
1862 | wait() | |
1863 | Tail1 = false | |
1864 | Tail2 = true | |
1865 | end | |
1866 | if Tail2 == true and Pressed == false then | |
1867 | Tail.Text = 'Tail 3' | |
1868 | tail2.Transparency = 1 | |
1869 | tail3.Transparency = 0 | |
1870 | Pressed = true | |
1871 | wait() | |
1872 | Tail2 = false | |
1873 | Tail3 = true | |
1874 | end | |
1875 | if Tail3 == true and Pressed == false then | |
1876 | Tail.Text = 'Tail 0' | |
1877 | tail3.Transparency = 1 | |
1878 | Pressed = true | |
1879 | wait() | |
1880 | Tail3 = false | |
1881 | Tail0 = true | |
1882 | end | |
1883 | if Tail0 == true and Pressed == false then | |
1884 | Tail.Text = 'Tail 1' | |
1885 | pn5.Transparency = 0 | |
1886 | pn7.Transparency = 0 | |
1887 | pn8.Transparency = 0 | |
1888 | pn9.Transparency = 0 | |
1889 | Pressed = true | |
1890 | wait() | |
1891 | Tail0 = false | |
1892 | Tail1 = true | |
1893 | end | |
1894 | wait() | |
1895 | Pressed = false | |
1896 | end) | |
1897 | -- ===================================================================== | |
1898 | Torso2.MouseButton1Down:connect(function() | |
1899 | if torso1 == true and Pressed == false then | |
1900 | Pressed = true | |
1901 | M69.MeshId = "rbxassetid://456901040" | |
1902 | M69.Scale = Vector3.new( 1, 1, 1) | |
1903 | Torso2.Text = 'Torso 2' | |
1904 | wait() | |
1905 | torso1 = false | |
1906 | torso2 = true | |
1907 | end | |
1908 | if torso2 == true and Pressed == false then | |
1909 | Pressed = true | |
1910 | M69.MeshId = "rbxassetid://48112070" | |
1911 | M69.Scale = Vector3.new( 1.093, 1, 1) | |
1912 | Torso2.Text = 'Torso 1' | |
1913 | wait() | |
1914 | torso1 = true | |
1915 | torso2 = false | |
1916 | end | |
1917 | wait() | |
1918 | Pressed = false | |
1919 | end) | |
1920 | -- ===================================================================== | |
1921 | Bkit.MouseButton1Down:connect(function() | |
1922 | if bkit1 == true and Pressed == false then | |
1923 | Pressed = true | |
1924 | p.Transparency = 0 | |
1925 | pn.Transparency = 0 | |
1926 | pn3.Transparency = 1 | |
1927 | pn4.Transparency = 1 | |
1928 | skin.Transparency = 1 | |
1929 | Bkit.Text = 'Bkit 2' | |
1930 | wait() | |
1931 | bkit1 = false | |
1932 | bkit2 = true | |
1933 | end | |
1934 | if bkit2 == true and Pressed == false then | |
1935 | Pressed = true | |
1936 | p.Transparency = 1 | |
1937 | pn.Transparency = 1 | |
1938 | pn3.Transparency = 1 | |
1939 | pn4.Transparency = 1 | |
1940 | skin.Transparency = 1 | |
1941 | Bkit.Text = 'Bkit 0' | |
1942 | wait() | |
1943 | bkit2 = false | |
1944 | bkit0 = true | |
1945 | end | |
1946 | if bkit0 == true and Pressed == false then | |
1947 | Pressed = true | |
1948 | p.Transparency = 0 | |
1949 | pn.Transparency = 0 | |
1950 | pn3.Transparency = 0 | |
1951 | pn4.Transparency = 0 | |
1952 | skin.Transparency = 0 | |
1953 | Bkit.Text = 'Bkit 1' | |
1954 | wait() | |
1955 | bkit0 = false | |
1956 | bkit1 = true | |
1957 | end | |
1958 | wait() | |
1959 | Pressed = false | |
1960 | end) | |
1961 | -- ===================================================================== | |
1962 | Mouth.MouseButton1Down:connect(function() | |
1963 | ----2----- | |
1964 | if mouth1 == true and Pressed == false then | |
1965 | Mouth.Text = 'Mouth 2' | |
1966 | newface.Texture = "rbxassetid://186681690" | |
1967 | Orbd.Transparency = 1 | |
1968 | Pressed = true | |
1969 | wait() | |
1970 | mouth1 = false | |
1971 | mouth2 = true | |
1972 | end | |
1973 | ----3----- | |
1974 | if mouth2 == true and Pressed == false then | |
1975 | Mouth.Text = 'Mouth 3' | |
1976 | newface.Texture = "rbxassetid://322781877" | |
1977 | Orbd.Transparency = 1 | |
1978 | Pressed = true | |
1979 | wait() | |
1980 | mouth2 = false | |
1981 | mouth3 = true | |
1982 | end | |
1983 | ----4----- | |
1984 | if mouth3 == true and Pressed == false then | |
1985 | Mouth.Text = 'Mouth 4' | |
1986 | newface.Texture = "rbxassetid://186682603" | |
1987 | Orbd.Transparency = 1 | |
1988 | Pressed = true | |
1989 | wait() | |
1990 | mouth3 = false | |
1991 | mouth4 = true | |
1992 | end | |
1993 | ----5----- | |
1994 | if mouth4 == true and Pressed == false then | |
1995 | Mouth.Text = 'Mouth 5' | |
1996 | newface.Texture = "rbxassetid://133379869" | |
1997 | Orbd.Transparency = 1 | |
1998 | Pressed = true | |
1999 | wait() | |
2000 | mouth4 = false | |
2001 | mouth5 = true | |
2002 | end | |
2003 | ----6----- | |
2004 | if mouth5 == true and Pressed == false then | |
2005 | Mouth.Text = 'Mouth 6' | |
2006 | newface.Texture = "rbxassetid://186683091" | |
2007 | Orbd.Transparency = 1 | |
2008 | Pressed = true | |
2009 | wait() | |
2010 | mouth5 = false | |
2011 | mouth6 = true | |
2012 | end | |
2013 | ----7----- | |
2014 | if mouth6 == true and Pressed == false then | |
2015 | Mouth.Text = 'Mouth 7' | |
2016 | newface.Texture = "rbxassetid://186682277" | |
2017 | Orbd.Transparency = 1 | |
2018 | Pressed = true | |
2019 | wait() | |
2020 | mouth6 = false | |
2021 | mouth7 = true | |
2022 | end | |
2023 | ----1----- | |
2024 | if mouth7 == true and Pressed == false then | |
2025 | Mouth.Text = 'Mouth 1' | |
2026 | newface.Texture = "rbxassetid://" | |
2027 | Orbd.Transparency = 0 | |
2028 | Pressed = true | |
2029 | wait() | |
2030 | mouth6 = false | |
2031 | mouth1 = true | |
2032 | end | |
2033 | ---------- | |
2034 | wait() | |
2035 | Pressed = false | |
2036 | end) | |
2037 | -- ===================================================================== | |
2038 | Eyes.MouseButton1Down:connect(function() | |
2039 | if eye3 == true and Pressed == false then | |
2040 | Pressed = true | |
2041 | char.Head.face.Texture = "rbxassetid://176204308" | |
2042 | Eyes.Text = 'Eye 1' | |
2043 | wait() | |
2044 | eye3 = false | |
2045 | eye1 = true | |
2046 | end | |
2047 | if eye1 == true and Pressed == false then | |
2048 | Pressed = true | |
2049 | char.Head.face.Texture = "rbxassetid://176210835" | |
2050 | Eyes.Text = 'Eye 2' | |
2051 | wait() | |
2052 | eye1 = false | |
2053 | eye2 = true | |
2054 | end | |
2055 | if eye2 == true and Pressed == false then | |
2056 | Pressed = true | |
2057 | char.Head.face.Texture = "rbxassetid://176206791" | |
2058 | Eyes.Text = 'Eye 3' | |
2059 | wait() | |
2060 | eye2 = false | |
2061 | eye3 = true | |
2062 | end | |
2063 | wait() | |
2064 | Pressed = false | |
2065 | end) | |
2066 | -- ===================================================================== | |
2067 | mask.MouseButton1Down:connect(function() | |
2068 | if MaskOn == true and Pressed == false then | |
2069 | Mask.Transparency = 1 | |
2070 | Pressed = true | |
2071 | mask.BackgroundColor3 = Color3.new(1,.5,.5) | |
2072 | wait() | |
2073 | MaskOn = false | |
2074 | MaskOff = true | |
2075 | end | |
2076 | if MaskOff == true and Pressed == false then | |
2077 | Mask.Transparency = 0 | |
2078 | Pressed = true | |
2079 | mask.BackgroundColor3 = Color3.new(.5,1,.5) | |
2080 | wait() | |
2081 | MaskOn = true | |
2082 | MaskOff = false | |
2083 | end | |
2084 | wait() | |
2085 | Pressed = false | |
2086 | end) | |
2087 | -- ===================================================================== | |
2088 | Shirtset.MouseButton1Down:connect(function() | |
2089 | char049.Shirt.ShirtTemplate = "rbxassetid://" .. ColTex3.Text | |
2090 | end) | |
2091 | -- ===================================================================== | |
2092 | Pantsset.MouseButton1Down:connect(function() | |
2093 | char049.Pants.PantsTemplate = "rbxassetid://" .. ColTex4.Text | |
2094 | end) | |
2095 | -- ===================================================================== | |
2096 | Bunny.MouseButton1Down:connect(function() | |
2097 | -------------- | |
2098 | MaskOn = true | |
2099 | MaskOff = false | |
2100 | -------------- | |
2101 | Anim2 = false | |
2102 | -------------- | |
2103 | eye1 = true | |
2104 | eye2 = false | |
2105 | eye3 = false | |
2106 | -------------- | |
2107 | mouth1 = false | |
2108 | mouth2 = false | |
2109 | mouth3 = false | |
2110 | mouth4 = true | |
2111 | mouth5 = false | |
2112 | mouth6 = false | |
2113 | mouth7 = false | |
2114 | -------------- | |
2115 | bkit0 = false | |
2116 | bkit1 = true | |
2117 | bkit2 = false | |
2118 | -------------- | |
2119 | torso1 = true | |
2120 | torso2 = false | |
2121 | -------------- | |
2122 | Tail0 = false | |
2123 | Tail1 = false | |
2124 | Tail2 = true | |
2125 | Tail3 = false | |
2126 | -------------- | |
2127 | Hair0 = false | |
2128 | Hair1 = false | |
2129 | Hair2 = true | |
2130 | Hair3 = false | |
2131 | -------------- | |
2132 | Hat0 = false | |
2133 | Hat1 = false | |
2134 | Hat2 = true | |
2135 | Hat3 = false | |
2136 | -------------- | |
2137 | char.Head.face.Texture = "rbxassetid://176204308" | |
2138 | Eyes.Text = 'Eye 1' | |
2139 | -------------- | |
2140 | Mouth.Text = 'Mouth 4' | |
2141 | newface.Texture = "rbxassetid://186682603" | |
2142 | Orbd.Transparency = 1 | |
2143 | -------------- | |
2144 | p.Transparency = 0 | |
2145 | pn.Transparency = 0 | |
2146 | pn3.Transparency = 0 | |
2147 | pn4.Transparency = 0 | |
2148 | skin.Transparency = 0 | |
2149 | Bkit.Text = 'Bkit 1' | |
2150 | -------------- | |
2151 | M69.MeshId = "rbxassetid://48112070" | |
2152 | M69.Scale = Vector3.new( 1.093, 1, 1) | |
2153 | Torso2.Text = 'Torso 1' | |
2154 | -------------- | |
2155 | Tail.Text = 'Tail 2' | |
2156 | pn5.Transparency = 1 | |
2157 | pn7.Transparency = 1 | |
2158 | pn8.Transparency = 1 | |
2159 | pn9.Transparency = 1 | |
2160 | tail2.Transparency = 0 | |
2161 | tail3.Transparency = 1 | |
2162 | -------------- | |
2163 | hair2.BrickColor = BrickColor.new("Cool yellow") | |
2164 | Hood.BrickColor = BrickColor.new("Cool yellow") | |
2165 | pn6.BrickColor = BrickColor.new("Cool yellow") | |
2166 | -------------- | |
2167 | TpMe2.Text = 'Hair 2' | |
2168 | Hood.Transparency = 1 | |
2169 | pn6.Transparency = 1 | |
2170 | hair2.Transparency = 0 | |
2171 | -------------- | |
2172 | TpMe.Text = 'Hat 2' | |
2173 | pn0.Transparency = 1 | |
2174 | hat2.Transparency = 0 | |
2175 | hat3.Transparency = 1 | |
2176 | -------------- | |
2177 | pn.BrickColor = BrickColor.new("Really black") | |
2178 | p.BrickColor = BrickColor.new("Really black") | |
2179 | pn0.BrickColor = BrickColor.new("Really black") | |
2180 | BC.TorsoColor = BrickColor.new("Really black") | |
2181 | hat2.BrickColor = BrickColor.new("Really black") | |
2182 | hat3.BrickColor = BrickColor.new("Really black") | |
2183 | pn5.BrickColor = BrickColor.new("Really black") | |
2184 | pn7.BrickColor = BrickColor.new("Really black") | |
2185 | pn8.BrickColor = BrickColor.new("Really black") | |
2186 | pn9.BrickColor = BrickColor.new("Really black") | |
2187 | tail3.BrickColor = BrickColor.new("Really black") | |
2188 | -------------- | |
2189 | BC.HeadColor = BrickColor.new("Pastel brown") | |
2190 | BC.LeftArmColor = BrickColor.new("Pastel brown") | |
2191 | BC.LeftLegColor = BrickColor.new("Pastel brown") | |
2192 | BC.RightArmColor = BrickColor.new("Pastel brown") | |
2193 | BC.RightLegColor = BrickColor.new("Pastel brown") | |
2194 | pn3.BrickColor = BrickColor.new("Pastel brown") | |
2195 | pn4.BrickColor = BrickColor.new("Pastel brown") | |
2196 | skin.BrickColor = BrickColor.new("Pastel brown") | |
2197 | -------------- | |
2198 | char049.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=147949556" | |
2199 | char049.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=145038586" | |
2200 | -------------- | |
2201 | Mask.Transparency = 0 | |
2202 | mask.BackgroundColor3 = Color3.new(.5,1,.5) | |
2203 | -------------- | |
2204 | G36K.BackgroundColor3 = Color3.new(.5,1,.5) | |
2205 | end) | |
2206 | -- ===================================================================== | |
2207 | ||
2208 | Noob.MouseButton1Down:connect(function() | |
2209 | -------------- | |
2210 | MaskOn = true | |
2211 | MaskOff = false | |
2212 | -------------- | |
2213 | Anim2 = true | |
2214 | -------------- | |
2215 | eye1 = false | |
2216 | eye2 = false | |
2217 | eye3 = true | |
2218 | -------------- | |
2219 | mouth1 = false | |
2220 | mouth2 = true | |
2221 | mouth3 = false | |
2222 | mouth4 = false | |
2223 | mouth5 = false | |
2224 | mouth6 = false | |
2225 | mouth7 = false | |
2226 | -------------- | |
2227 | bkit0 = true | |
2228 | bkit1 = false | |
2229 | bkit2 = false | |
2230 | -------------- | |
2231 | torso1 = false | |
2232 | torso2 = true | |
2233 | -------------- | |
2234 | Tail0 = true | |
2235 | Tail1 = false | |
2236 | Tail2 = false | |
2237 | Tail3 = false | |
2238 | -------------- | |
2239 | Hair0 = true | |
2240 | Hair1 = false | |
2241 | Hair2 = false | |
2242 | Hair3 = false | |
2243 | -------------- | |
2244 | Hat0 = true | |
2245 | Hat1 = false | |
2246 | Hat2 = false | |
2247 | Hat3 = false | |
2248 | -------------- | |
2249 | char.Head.face.Texture = "rbxassetid://176206791" | |
2250 | Eyes.Text = 'Eye 3' | |
2251 | -------------- | |
2252 | Mouth.Text = 'Mouth 2' | |
2253 | newface.Texture = "rbxassetid://186681690" | |
2254 | Orbd.Transparency = 1 | |
2255 | -------------- | |
2256 | p.Transparency = 1 | |
2257 | pn.Transparency = 1 | |
2258 | pn3.Transparency = 1 | |
2259 | pn4.Transparency = 1 | |
2260 | skin.Transparency = 1 | |
2261 | Bkit.Text = 'Bkit 0' | |
2262 | -------------- | |
2263 | M69.MeshId = "rbxassetid://456901040" | |
2264 | M69.Scale = Vector3.new( 1, 1, 1) | |
2265 | Torso2.Text = 'Torso 2' | |
2266 | -------------- | |
2267 | Tail.Text = 'Tail 0' | |
2268 | pn5.Transparency = 1 | |
2269 | pn7.Transparency = 1 | |
2270 | pn8.Transparency = 1 | |
2271 | pn9.Transparency = 1 | |
2272 | tail2.Transparency = 1 | |
2273 | tail3.Transparency = 1 | |
2274 | -------------- | |
2275 | hair2.BrickColor = BrickColor.new("Black") | |
2276 | Hood.BrickColor = BrickColor.new("Black") | |
2277 | pn6.BrickColor = BrickColor.new("Black") | |
2278 | -------------- | |
2279 | TpMe2.Text = 'Hair 0' | |
2280 | Hood.Transparency = 1 | |
2281 | pn6.Transparency = 1 | |
2282 | hair2.Transparency = 1 | |
2283 | -------------- | |
2284 | TpMe.Text = 'Hat 0' | |
2285 | pn0.Transparency = 1 | |
2286 | hat2.Transparency = 1 | |
2287 | hat3.Transparency = 1 | |
2288 | -------------- | |
2289 | pn.BrickColor = BrickColor.new("Deep blue") | |
2290 | p.BrickColor = BrickColor.new("Deep blue") | |
2291 | pn0.BrickColor = BrickColor.new("Deep blue") | |
2292 | BC.TorsoColor = BrickColor.new("Deep blue") | |
2293 | hat2.BrickColor = BrickColor.new("Deep blue") | |
2294 | hat3.BrickColor = BrickColor.new("Deep blue") | |
2295 | pn5.BrickColor = BrickColor.new("Deep blue") | |
2296 | pn7.BrickColor = BrickColor.new("Deep blue") | |
2297 | pn8.BrickColor = BrickColor.new("Deep blue") | |
2298 | pn9.BrickColor = BrickColor.new("Deep blue") | |
2299 | tail3.BrickColor = BrickColor.new("Deep blue") | |
2300 | -------------- | |
2301 | BC.HeadColor = BrickColor.new("Bright yellow") | |
2302 | BC.LeftArmColor = BrickColor.new("Bright yellow") | |
2303 | BC.LeftLegColor = BrickColor.new("Br. yellowish green") | |
2304 | BC.RightArmColor = BrickColor.new("Bright yellow") | |
2305 | BC.RightLegColor = BrickColor.new("Br. yellowish green") | |
2306 | pn3.BrickColor = BrickColor.new("Bright yellow") | |
2307 | pn4.BrickColor = BrickColor.new("Bright yellow") | |
2308 | skin.BrickColor = BrickColor.new("Bright yellow") | |
2309 | -------------- | |
2310 | char049.Shirt.ShirtTemplate = "rbxassetid://" | |
2311 | char049.Pants.PantsTemplate = "rbxassetid://" | |
2312 | -------------- | |
2313 | Mask.Transparency = 1 | |
2314 | mask.BackgroundColor3 = Color3.new(1,.5,.5) | |
2315 | -------------- | |
2316 | G36K.BackgroundColor3 = Color3.new(1,.5,.5) | |
2317 | end) | |
2318 | ||
2319 | -- ===================================================================== | |
2320 | Kitty.MouseButton1Down:connect(function() | |
2321 | ||
2322 | -------------- | |
2323 | MaskOn = true | |
2324 | MaskOff = false | |
2325 | -------------- | |
2326 | Anim2 = false | |
2327 | -------------- | |
2328 | eye1 = false | |
2329 | eye2 = true | |
2330 | eye3 = false | |
2331 | -------------- | |
2332 | mouth1 = false | |
2333 | mouth2 = false | |
2334 | mouth3 = false | |
2335 | mouth4 = true | |
2336 | mouth5 = false | |
2337 | mouth6 = false | |
2338 | mouth7 = false | |
2339 | -------------- | |
2340 | bkit0 = false | |
2341 | bkit1 = true | |
2342 | bkit2 = false | |
2343 | -------------- | |
2344 | torso1 = true | |
2345 | torso2 = false | |
2346 | -------------- | |
2347 | Tail0 = false | |
2348 | Tail1 = false | |
2349 | Tail2 = false | |
2350 | Tail3 = true | |
2351 | -------------- | |
2352 | Hair0 = false | |
2353 | Hair1 = true | |
2354 | Hair2 = false | |
2355 | Hair3 = false | |
2356 | -------------- | |
2357 | Hat0 = false | |
2358 | Hat1 = false | |
2359 | Hat2 = false | |
2360 | Hat3 = true | |
2361 | -------------- | |
2362 | char.Head.face.Texture = "rbxassetid://176210835" | |
2363 | Eyes.Text = 'Eye 2' | |
2364 | -------------- | |
2365 | Mouth.Text = 'Mouth 4' | |
2366 | newface.Texture = "rbxassetid://186682603" | |
2367 | Orbd.Transparency = 1 | |
2368 | -------------- | |
2369 | p.Transparency = 0 | |
2370 | pn.Transparency = 0 | |
2371 | pn3.Transparency = 0 | |
2372 | pn4.Transparency = 0 | |
2373 | skin.Transparency = 0 | |
2374 | Bkit.Text = 'Bkit 1' | |
2375 | -------------- | |
2376 | M69.MeshId = "rbxassetid://48112070" | |
2377 | M69.Scale = Vector3.new( 1.093, 1, 1) | |
2378 | Torso2.Text = 'Torso 1' | |
2379 | -------------- | |
2380 | Tail.Text = 'Tail 3' | |
2381 | pn5.Transparency = 1 | |
2382 | pn7.Transparency = 1 | |
2383 | pn8.Transparency = 1 | |
2384 | pn9.Transparency = 1 | |
2385 | tail2.Transparency = 1 | |
2386 | tail3.Transparency = 0 | |
2387 | -------------- | |
2388 | hair2.BrickColor = BrickColor.new("White") | |
2389 | Hood.BrickColor = BrickColor.new("White") | |
2390 | pn6.BrickColor = BrickColor.new("White") | |
2391 | -------------- | |
2392 | TpMe2.Text = 'Hair 1' | |
2393 | Hood.Transparency = 0 | |
2394 | pn6.Transparency = 0 | |
2395 | hair2.Transparency = 0 | |
2396 | -------------- | |
2397 | TpMe.Text = 'Hat 3' | |
2398 | pn0.Transparency = 1 | |
2399 | hat2.Transparency = 1 | |
2400 | hat3.Transparency = 0 | |
2401 | -------------- | |
2402 | pn.BrickColor = BrickColor.new("Really black") | |
2403 | p.BrickColor = BrickColor.new("Really black") | |
2404 | pn0.BrickColor = BrickColor.new("Really black") | |
2405 | BC.TorsoColor = BrickColor.new("Really black") | |
2406 | hat2.BrickColor = BrickColor.new("Really black") | |
2407 | hat3.BrickColor = BrickColor.new("Really black") | |
2408 | pn5.BrickColor = BrickColor.new("Really black") | |
2409 | pn7.BrickColor = BrickColor.new("Really black") | |
2410 | pn8.BrickColor = BrickColor.new("Really black") | |
2411 | pn9.BrickColor = BrickColor.new("Really black") | |
2412 | tail3.BrickColor = BrickColor.new("Really black") | |
2413 | -------------- | |
2414 | BC.HeadColor = BrickColor.new("Fossil") | |
2415 | BC.LeftArmColor = BrickColor.new("Fossil") | |
2416 | BC.LeftLegColor = BrickColor.new("Fossil") | |
2417 | BC.RightArmColor = BrickColor.new("Fossil") | |
2418 | BC.RightLegColor = BrickColor.new("Fossil") | |
2419 | pn3.BrickColor = BrickColor.new("Fossil") | |
2420 | pn4.BrickColor = BrickColor.new("Fossil") | |
2421 | skin.BrickColor = BrickColor.new("Fossil") | |
2422 | -------------- | |
2423 | char049.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=147949556" | |
2424 | char049.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=78589488" | |
2425 | -------------- | |
2426 | Mask.Transparency = 0 | |
2427 | mask.BackgroundColor3 = Color3.new(.5,1,.5) | |
2428 | -------------- | |
2429 | G36K.BackgroundColor3 = Color3.new(.5,1,.5) | |
2430 | end) | |
2431 | ||
2432 | -- ===================================================================== | |
2433 | ||
2434 | ||
2435 | ||
2436 | ||
2437 | ||
2438 | ||
2439 | ||
2440 | ||
2441 | ||
2442 | Close.MouseButton1Down:connect(function() | |
2443 | if Body.Visible == true then | |
2444 | Body.Visible = false | |
2445 | Close.Text = '+' | |
2446 | Title.FontSize = 'Size24' | |
2447 | Pull.Size = UDim2(0,125,0,12.5) | |
2448 | elseif Body.Visible == false then | |
2449 | Body.Visible = true | |
2450 | Close.Text = 'X' | |
2451 | Title.FontSize = 'Size48' | |
2452 | Graf_f.Size = UDim2(0,500,0,50) | |
2453 | end | |
2454 | end) | |
2455 | ||
2456 | ||
2457 | ||
2458 | ||
2459 | ||
2460 | --------------------------------------------------------------------------------- | |
2461 | ||
2462 | ||
2463 | ||
2464 | ||
2465 | ||
2466 | ||
2467 | ||
2468 | ||
2469 | local mesh = Instance.new("SpecialMesh",radio) | |
2470 | mesh.MeshId = "http://www.roblox.com/asset/?id=151760030" | |
2471 | mesh.TextureId = "rbxassetid://151760072" | |
2472 | mesh.Scale = Vector3.new(.7, .7, .7) | |
2473 | ||
2474 | ||
2475 | ||
2476 | ||
2477 | ||
2478 | ||
2479 | ||
2480 | ||
2481 | ||
2482 | ||
2483 | ||
2484 | ||
2485 | ||
2486 | ||
2487 | ||
2488 | ||
2489 | ColTex2.Changed:connect(function() | |
2490 | sound.SoundId = "rbxassetid://" .. ColTex2.Text | |
2491 | end) | |
2492 | ||
2493 | ||
2494 | ||
2495 | while true do | |
2496 | if Playing then | |
2497 | ||
2498 | ||
2499 | ||
2500 | ||
2501 | ||
2502 | ||
2503 | mesh.Scale = Vector3.new(.71, .71, .71) | |
2504 | wait(.000001) | |
2505 | mesh.Scale = Vector3.new(.709, .709, .709) | |
2506 | wait(.000001) | |
2507 | mesh.Scale = Vector3.new(.708, .708, .708) | |
2508 | wait(.000001) | |
2509 | mesh.Scale = Vector3.new(.707, .707, .707) | |
2510 | wait(.000001) | |
2511 | mesh.Scale = Vector3.new(.706, .706, .706) | |
2512 | wait(.000001) | |
2513 | mesh.Scale = Vector3.new(.705, .705, .705) | |
2514 | wait(.000001) | |
2515 | mesh.Scale = Vector3.new(.704, .704, .704) | |
2516 | wait(.000001) | |
2517 | mesh.Scale = Vector3.new(.703, .703, .703) | |
2518 | wait(.000001) | |
2519 | mesh.Scale = Vector3.new(.702, .702, .702) | |
2520 | wait(.000001) | |
2521 | mesh.Scale = Vector3.new(.701, .701, .701) | |
2522 | wait(.000001) | |
2523 | ||
2524 | ||
2525 | ||
2526 | ||
2527 | mesh.Scale = Vector3.new(.7, .7, .7) | |
2528 | end | |
2529 | wait(.2) | |
2530 | ||
2531 | ||
2532 | ||
2533 | ||
2534 | ||
2535 | ||
2536 | end |