Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,game,owner = owner,game
  4. local RealPlayer = Player
  5. do
  6. print("FE Compatibility code V2 by Mokiros")
  7. local RealPlayer = RealPlayer
  8. script.Parent = RealPlayer.Character
  9.  
  10. --Fake event to make stuff like Mouse.KeyDown work
  11. local Disconnect_Function = function(this)
  12. this[1].Functions[this[2]] = nil
  13. end
  14. local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
  15. local FakeEvent_Metatable = {__index={
  16. Connect = function(this,f)
  17. local i = tostring(math.random(0,10000))
  18. while this.Functions[i] do
  19. i = tostring(math.random(0,10000))
  20. end
  21. this.Functions[i] = f
  22. return setmetatable({this,i},Disconnect_Metatable)
  23. end
  24. }}
  25. FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect
  26. local function fakeEvent()
  27. return setmetatable({Functions={}},FakeEvent_Metatable)
  28. end
  29.  
  30. --Creating fake input objects with fake variables
  31. local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  32. FakeMouse.keyUp = FakeMouse.KeyUp
  33. FakeMouse.keyDown = FakeMouse.KeyDown
  34. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  35. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  36. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  37. end}
  38. --Merged 2 functions into one by checking amount of arguments
  39. CAS.UnbindAction = CAS.BindAction
  40.  
  41. --This function will trigger the events that have been :Connect()'ed
  42. local function TriggerEvent(self,ev,...)
  43. for _,f in pairs(self[ev].Functions) do
  44. f(...)
  45. end
  46. end
  47. FakeMouse.TriggerEvent = TriggerEvent
  48. UIS.TriggerEvent = TriggerEvent
  49.  
  50. --Client communication
  51. local Event = Instance.new("RemoteEvent")
  52. Event.Name = "UserInput_Event"
  53. Event.OnServerEvent:Connect(function(plr,io)
  54. if plr~=RealPlayer then return end
  55. FakeMouse.Target = io.Target
  56. FakeMouse.Hit = io.Hit
  57. if not io.isMouse then
  58. local b = io.UserInputState == Enum.UserInputState.Begin
  59. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  60. return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up")
  61. end
  62. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  63. return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up")
  64. end
  65. for _,t in pairs(CAS.Actions) do
  66. for _,k in pairs(t.Keys) do
  67. if k==io.KeyCode then
  68. t.Function(t.Name,io.UserInputState,io)
  69. end
  70. end
  71. end
  72. FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  73. UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false)
  74. end
  75. end)
  76. Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
  77. local Mouse = owner:GetMouse()
  78. local UIS = game:GetService("UserInputService")
  79. local input = function(io,RobloxHandled)
  80. if RobloxHandled then return end
  81. --Since InputObject is a client-side instance, we create and pass table instead
  82. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  83. end
  84. UIS.InputBegan:Connect(input)
  85. UIS.InputEnded:Connect(input)
  86.  
  87. local h,t
  88. --Give the server mouse data every second frame, but only if the values changed
  89. --If player is not moving their mouse, client won't fire events
  90. local HB = game:GetService("RunService").Heartbeat
  91. while true do
  92. if h~=Mouse.Hit or t~=Mouse.Target then
  93. h,t=Mouse.Hit,Mouse.Target
  94. Event:FireServer({isMouse=true,Target=t,Hit=h})
  95. end
  96. --Wait 2 frames
  97. for i=1,2 do
  98. HB:Wait()
  99. end
  100. end]==],script)
  101.  
  102. ----Sandboxed game object that allows the usage of client-side methods and services
  103. --Real game object
  104. local RealGame = game
  105.  
  106. --Metatable for fake service
  107. local FakeService_Metatable = {
  108. __index = function(self,k)
  109. local s = rawget(self,"_RealService")
  110. if s then
  111. return typeof(s[k])=="function"
  112. and function(_,...)return s[k](s,...)end or s[k]
  113. end
  114. end,
  115. __newindex = function(self,k,v)
  116. local s = rawget(self,"_RealService")
  117. if s then s[k]=v end
  118. end
  119. }
  120. local function FakeService(t,RealService)
  121. t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService
  122. return setmetatable(t,FakeService_Metatable)
  123. end
  124.  
  125. --Fake game object
  126. local FakeGame = {
  127. GetService = function(self,s)
  128. return rawget(self,s) or RealGame:GetService(s)
  129. end,
  130. Players = FakeService({
  131. LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
  132. },"Players"),
  133. UserInputService = FakeService(UIS,"UserInputService"),
  134. ContextActionService = FakeService(CAS,"ContextActionService"),
  135. RunService = FakeService({
  136. _btrs = {},
  137. RenderStepped = RealGame:GetService("RunService").Heartbeat,
  138. BindToRenderStep = function(self,name,_,fun)
  139. self._btrs[name] = self.Heartbeat:Connect(fun)
  140. end,
  141. UnbindFromRenderStep = function(self,name)
  142. self._btrs[name]:Disconnect()
  143. end,
  144. },"RunService")
  145. }
  146. rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer)
  147. FakeGame.service = FakeGame.GetService
  148. FakeService(FakeGame,game)
  149. --Changing owner to fake player object to support owner:GetMouse()
  150. game,owner = FakeGame,FakeGame.Players.LocalPlayer
  151. end
  152.  
  153.  
  154.  
  155.  
  156. local Player = game.Players.LocalPlayer
  157. local c = Player.Character
  158. if not c or not c.Parent then
  159. c = Player.CharacterAdded:wait()
  160. end
  161. local radio = Instance.new("Part", c)
  162. radio.Name = "Radio"
  163. radio.CanCollide = false
  164. radio.Anchored = true
  165. radio.FormFactor = "Custom"
  166. radio.Size = Vector3.new(2.5, 1, 0.4)
  167. radio.CFrame = c.Torso.CFrame * CFrame.new(-3.5, 2, 0.2)
  168. radio.CFrame = radio.CFrame * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  169. radio.CFrame = radio.CFrame * CFrame.fromEulerAnglesXYZ(0, 0, -0.1)
  170. radio.Transparency = 1
  171. local sound = Instance.new("Sound", radio)
  172. sound.Name = "Music"
  173. sound.Looped = true
  174. sound.Volume = 5
  175. local weld = Instance.new("Weld", radio)
  176. weld.Part0 = c.Torso
  177. weld.Part1 = radio
  178. weld.C0 = c.Torso.CFrame:inverse()
  179. weld.C1 = radio.CFrame:inverse()
  180. radio.Anchored = false
  181. player = game:service("Players").LocalPlayer
  182. char2 = player.Character
  183. Glow1 = Color3.new(0, 0, 0)
  184. Glow2 = Color3.new(1, 0, 0)
  185. Glow3 = Color3.new(0, 1, 0)
  186. Glow4 = Color3.new(0, 0, 1)
  187. GlowParticle = Instance.new("ParticleEmitter", radio)
  188. GlowParticle.LightEmission = 1
  189. GlowParticle.Color = ColorSequence.new(Glow2, Glow1)
  190. GlowParticle.Size = NumberSequence.new(0.4)
  191. GlowParticle.Texture = "http://www.roblox.com/asset/?id=118641183"
  192. GlowParticle.Transparency = NumberSequence.new(1)
  193. GlowParticle.LockedToPart = false
  194. GlowParticle.Lifetime = NumberRange.new(0.5, 1)
  195. GlowParticle.Rate = 200
  196. GlowParticle.Speed = NumberRange.new(1.5)
  197. GlowParticle.Acceleration = Vector3.new(0, 1, 0)
  198. GlowParticle.VelocitySpread = 100
  199. GlowParticle2 = Instance.new("ParticleEmitter", radio)
  200. GlowParticle2.LightEmission = 1
  201. GlowParticle2.Color = ColorSequence.new(Glow3, Glow1)
  202. GlowParticle2.Size = NumberSequence.new(0.4)
  203. GlowParticle2.Texture = "http://www.roblox.com/asset/?id=118641183"
  204. GlowParticle2.Transparency = NumberSequence.new(1)
  205. GlowParticle2.LockedToPart = false
  206. GlowParticle2.Lifetime = NumberRange.new(0.5, 1)
  207. GlowParticle2.Rate = 200
  208. GlowParticle2.Speed = NumberRange.new(1.5)
  209. GlowParticle2.Acceleration = Vector3.new(0, 1, 0)
  210. GlowParticle2.VelocitySpread = 100
  211. GlowParticle3 = Instance.new("ParticleEmitter", radio)
  212. GlowParticle3.LightEmission = 1
  213. GlowParticle3.Color = ColorSequence.new(Glow4, Glow1)
  214. GlowParticle3.Size = NumberSequence.new(0.4)
  215. GlowParticle3.Texture = "http://www.roblox.com/asset/?id=118641183"
  216. GlowParticle3.Transparency = NumberSequence.new(1)
  217. GlowParticle3.LockedToPart = false
  218. GlowParticle3.Lifetime = NumberRange.new(0.5, 1)
  219. GlowParticle3.Rate = 200
  220. GlowParticle3.Speed = NumberRange.new(1.5)
  221. GlowParticle3.Acceleration = Vector3.new(0, 1, 0)
  222. GlowParticle3.VelocitySpread = 100
  223. wait(0)
  224. fat = Instance.new("BindableEvent", script)
  225. fat.Name = "Heartbeat"
  226. local charge = false
  227. P = game.Players.LocalPlayer
  228. char = P.Character
  229. torso = char.Torso
  230. neck = char.Torso.Neck
  231. hum = char.Humanoid
  232. hum.MaxHealth = 9.876543219876543E44
  233. wait()
  234. hum.Health = hum.MaxHealth
  235. char.Head.face.Texture = "rbxassetid://176206791"
  236. p2 = game.Players.LocalPlayer
  237. char049 = p2.Character
  238. for i, v in pairs(char049:children()) do
  239. if v:IsA("Accessory") then
  240. v:Destroy()
  241. end
  242. end
  243. local M69 = Instance.new("SpecialMesh")
  244. M69.Parent = torso
  245. M69.MeshId = "rbxassetid://456901040"
  246. M69.Scale = Vector3.new(1, 1, 1)
  247. char049.Shirt:Remove()
  248. for i, v in pairs(char049:GetChildren()) do
  249. if v:IsA("Pants") then
  250. v:Remove()
  251. end
  252. end
  253. wait()
  254. shirt = Instance.new("Shirt", char049)
  255. shirt.Name = "Shirt"
  256. pants = Instance.new("Pants", char049)
  257. pants.Name = "Pants"
  258. char049.Shirt.ShirtTemplate = "rbxassetid://"
  259. char049.Pants.PantsTemplate = "rbxassetid://"
  260. local BC = char["Body Colors"]
  261. BC.HeadColor = BrickColor.new("Fossil")
  262. BC.LeftArmColor = BrickColor.new("Fossil")
  263. BC.LeftLegColor = BrickColor.new("Fossil")
  264. BC.RightArmColor = BrickColor.new("Fossil")
  265. BC.RightLegColor = BrickColor.new("Fossil")
  266. BC.TorsoColor = BrickColor.new("Plum")
  267. Player = game:GetService("Players").LocalPlayer
  268. Character = Player.Character
  269. local Orbd = Instance.new("Part", Character)
  270. Orbd.Name = "Orbd"
  271. Orbd.Shape = Enum.PartType.Ball
  272. Orbd.CanCollide = false
  273. Orbd.BrickColor = BrickColor.new("Really black")
  274. Orbd.Transparency = 1
  275. Orbd.Material = "Neon"
  276. Orbd.Size = Vector3.new(0.2, 0.2, 0.2)
  277. Orbd.TopSurface = Enum.SurfaceType.Smooth
  278. Orbd.BottomSurface = Enum.SurfaceType.Smooth
  279. local Weld = Instance.new("Weld", Orbd)
  280. Weld.Part0 = Character.Head
  281. Weld.Part1 = Orbd
  282. Weld.C1 = CFrame.new(-0.01, 0.2, 0.51)
  283. local Mask = Instance.new("Part", Character)
  284. Mask.Name = "Mask"
  285. Mask.CanCollide = false
  286. Mask.BrickColor = BrickColor.new("Sunrise")
  287. Mask.Transparency = 1
  288. Mask.Material = "Neon"
  289. Mask.Size = Vector3.new(0.1, 0.1, 0.1)
  290. Mask.TopSurface = Enum.SurfaceType.Smooth
  291. Mask.BottomSurface = Enum.SurfaceType.Smooth
  292. local Weld = Instance.new("Weld", Mask)
  293. Weld.Part0 = Character.Head
  294. Weld.Part1 = Mask
  295. Weld.C1 = CFrame.new(0, 0.03, 0.5)
  296. local M1 = Instance.new("SpecialMesh")
  297. M1.Parent = Mask
  298. M1.MeshId = "http://www.roblox.com/asset/?id=430736398"
  299. M1.Scale = Vector3.new(0.3, 0.03, 0.099)
  300. local Hood = Instance.new("Part", Character)
  301. Hood.Name = "Hair"
  302. Hood.CanCollide = false
  303. Hood.BrickColor = BrickColor.new("Dark indigo")
  304. Hood.Transparency = 1
  305. Hood.Material = "Neon"
  306. Hood.Size = Vector3.new(0.1, 0.1, 0.1)
  307. Hood.TopSurface = Enum.SurfaceType.Smooth
  308. Hood.BottomSurface = Enum.SurfaceType.Smooth
  309. local Weld = Instance.new("Weld", Hood)
  310. Weld.Part0 = Character.Head
  311. Weld.Part1 = Hood
  312. Weld.C1 = CFrame.new(0, -0.5, 0)
  313. local M2 = Instance.new("SpecialMesh")
  314. M2.Parent = Hood
  315. M2.MeshId = "http://www.roblox.com/asset/?id=362013001"
  316. M2.Scale = Vector3.new(1, 1.06, 1.1)
  317. local skin = Instance.new("Part", Character)
  318. skin.Name = "skin"
  319. skin.CanCollide = false
  320. skin.BrickColor = BrickColor.new("Fossil")
  321. skin.Transparency = 1
  322. skin.Material = "SmoothPlastic"
  323. skin.Size = Vector3.new(0.1, 0.1, 0.1)
  324. skin.TopSurface = Enum.SurfaceType.Smooth
  325. skin.BottomSurface = Enum.SurfaceType.Smooth
  326. local Weld = Instance.new("Weld", skin)
  327. Weld.Part0 = Character.Torso
  328. Weld.Part1 = skin
  329. Weld.C1 = CFrame.new(0, -0.83, 0.5)
  330. local M3 = Instance.new("SpecialMesh")
  331. M3.Parent = skin
  332. M3.MeshId = "http://www.roblox.com/asset/?id=518429841"
  333. M3.Scale = Vector3.new(0.0054, 0.0014, 1.0E-4)
  334. local hair2 = Instance.new("Part", Character)
  335. hair2.Name = "Hair2"
  336. hair2.CanCollide = false
  337. hair2.BrickColor = BrickColor.new("Dark indigo")
  338. hair2.Transparency = 1
  339. hair2.Material = "Neon"
  340. hair2.Size = Vector3.new(0.1, 0.1, 0.1)
  341. hair2.TopSurface = Enum.SurfaceType.Smooth
  342. hair2.BottomSurface = Enum.SurfaceType.Smooth
  343. local Weld = Instance.new("Weld", hair2)
  344. Weld.Part0 = Character.Head
  345. Weld.Part1 = hair2
  346. Weld.C1 = CFrame.new(0, 0.65, -0.05)
  347. local M2 = Instance.new("SpecialMesh")
  348. M2.Parent = hair2
  349. M2.MeshId = "http://www.roblox.com/asset/?id=164382853"
  350. M2.Scale = Vector3.new(1.1, 1.1, 1)
  351. local hat2 = Instance.new("Part", Character)
  352. hat2.Name = "hat2"
  353. hat2.CanCollide = false
  354. hat2.BrickColor = BrickColor.new("Plum")
  355. hat2.Transparency = 1
  356. hat2.Material = "SmoothPlastic"
  357. hat2.Size = Vector3.new(0.1, 0.1, 0.1)
  358. hat2.TopSurface = Enum.SurfaceType.Smooth
  359. hat2.BottomSurface = Enum.SurfaceType.Smooth
  360. local Weld = Instance.new("Weld", hat2)
  361. Weld.Part0 = Character.Head
  362. Weld.Part1 = hat2
  363. Weld.C1 = CFrame.new(0, -1, 0)
  364. local M4 = Instance.new("SpecialMesh")
  365. M4.Parent = hat2
  366. M4.MeshId = "http://www.roblox.com/asset/?id=110852069"
  367. M4.Scale = Vector3.new(0.8, 1, 1)
  368. local hat3 = Instance.new("Part", Character)
  369. hat3.Name = "SmoothPlastic"
  370. hat3.CanCollide = false
  371. hat3.BrickColor = BrickColor.new("Plum")
  372. hat3.Transparency = 1
  373. hat3.Material = "Neon"
  374. hat3.Size = Vector3.new(0.1, 0.1, 0.1)
  375. hat3.TopSurface = Enum.SurfaceType.Smooth
  376. hat3.BottomSurface = Enum.SurfaceType.Smooth
  377. local Weld = Instance.new("Weld", hat3)
  378. Weld.Part0 = Character.Head
  379. Weld.Part1 = hat3
  380. Weld.C1 = CFrame.new(0, -0.8, 0)
  381. local M5 = Instance.new("SpecialMesh")
  382. M5.Parent = hat3
  383. M5.MeshId = "http://www.roblox.com/asset/?id=104780903"
  384. M5.Scale = Vector3.new(1.25, 1.1, 1.25)
  385. local tail2 = Instance.new("Part", Character)
  386. tail2.Name = "tail2"
  387. tail2.CanCollide = false
  388. tail2.BrickColor = BrickColor.new("White")
  389. tail2.Transparency = 1
  390. tail2.Material = "SmoothPlastic"
  391. tail2.Size = Vector3.new(0.1, 0.1, 0.1)
  392. tail2.TopSurface = Enum.SurfaceType.Smooth
  393. tail2.BottomSurface = Enum.SurfaceType.Smooth
  394. local Weld = Instance.new("Weld", tail2)
  395. Weld.Part0 = Character.Torso
  396. Weld.Part1 = tail2
  397. Weld.C1 = CFrame.new(0, 0.63, -0.6)
  398. local M7 = Instance.new("SpecialMesh")
  399. M7.Parent = tail2
  400. M7.MeshId = "http://www.roblox.com/asset/?id=518429841"
  401. M7.Scale = Vector3.new(0.0028, 0.0028, 0.0028)
  402. local tail3 = Instance.new("Part", Character)
  403. tail3.Name = "tail3"
  404. tail3.CanCollide = false
  405. tail3.BrickColor = BrickColor.new("Plum")
  406. tail3.Transparency = 1
  407. tail3.Material = "Neon"
  408. tail3.Size = Vector3.new(0.1, 0.1, 0.1)
  409. tail3.TopSurface = Enum.SurfaceType.Smooth
  410. tail3.BottomSurface = Enum.SurfaceType.Smooth
  411. local Weld = Instance.new("Weld", tail3)
  412. Weld.Part0 = Character.Torso
  413. Weld.Part1 = tail3
  414. Weld.C1 = CFrame.new(-0.2, -0.2, -1.8)
  415. local M2 = Instance.new("SpecialMesh")
  416. M2.Parent = tail3
  417. M2.MeshId = "http://www.roblox.com/asset/?id=170939831"
  418. M2.Scale = Vector3.new(1, 1, 1)
  419. local Player = game.Players.localPlayer
  420. local Character = Player.Character
  421. local red = 255
  422. local green = 255
  423. local blue = 255
  424. local Humanoid = Character.Humanoid
  425. local mouse = Player:GetMouse()
  426. local m = Instance.new("Model", Character)
  427. m.Name = "WeaponModel"
  428. local LeftArm = Character["Left Arm"]
  429. local RightArm = Character["Right Arm"]
  430. local LeftLeg = Character["Left Leg"]
  431. local RightLeg = Character["Right Leg"]
  432. local Head = Character.Head
  433. local Torso = Character.Torso
  434. local cam = game.Workspace.CurrentCamera
  435. local RootPart = Character.HumanoidRootPart
  436. local RootJoint = RootPart.RootJoint
  437. local equipped = false
  438. local attack = false
  439. local Anim = "Idle"
  440. local idle = 0
  441. local attacktype = 1
  442. local Torsovelocity = RootPart.Velocity.y * Vector3.new(1, 0, 1).magnitude
  443. local velocity = RootPart.Velocity.y
  444. local sine = 0
  445. local change = 1
  446. local grabbed = false
  447. local cn = CFrame.new
  448. local mr = math.rad
  449. local angles = CFrame.Angles
  450. local ud = UDim2.new
  451. local c3 = Color3.new
  452. local lim = 0
  453. local st = 0
  454. local necko = cn(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  455. local attacktype = 1
  456. local ZTarget, RocketTarget
  457. local euler = CFrame.fromEulerAnglesXYZ
  458. function clerp(a, b, t)
  459. local qa = {
  460. QuaternionFromCFrame(a)
  461. }
  462. local qb = {
  463. QuaternionFromCFrame(b)
  464. }
  465. local ax, ay, az = a.x, a.y, a.z
  466. local bx, by, bz = b.x, b.y, b.z
  467. local _t = 1 - t
  468. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  469. end
  470. function QuaternionFromCFrame(cf)
  471. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  472. local trace = m00 + m11 + m22
  473. if trace > 0 then
  474. local s = math.sqrt(1 + trace)
  475. local recip = 0.5 / s
  476. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  477. else
  478. local i = 0
  479. if m00 < m11 then
  480. i = 1
  481. end
  482. if m22 > (i == 0 and m00 or m11) then
  483. i = 2
  484. end
  485. if i == 0 then
  486. local s = math.sqrt(m00 - m11 - m22 + 1)
  487. local recip = 0.5 / s
  488. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  489. elseif i == 1 then
  490. local s = math.sqrt(m11 - m22 - m00 + 1)
  491. local recip = 0.5 / s
  492. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  493. elseif i == 2 then
  494. local s = math.sqrt(m22 - m00 - m11 + 1)
  495. local recip = 0.5 / s
  496. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  497. end
  498. end
  499. end
  500. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  501. local xs, ys, zs = x + x, y + y, z + z
  502. local wx, wy, wz = w * xs, w * ys, w * zs
  503. local xx = x * xs
  504. local xy = x * ys
  505. local xz = x * zs
  506. local yy = y * ys
  507. local yz = y * zs
  508. local zz = z * zs
  509. 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))
  510. end
  511. function QuaternionSlerp(a, b, t)
  512. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  513. local startInterp, finishInterp
  514. if cosTheta >= 1.0E-4 then
  515. if 1 - cosTheta > 1.0E-4 then
  516. local theta = math.acos(cosTheta)
  517. local invSinTheta = 1 / math.sin(theta)
  518. startInterp = math.sin((1 - t) * theta) * invSinTheta
  519. finishInterp = math.sin(t * theta) * invSinTheta
  520. else
  521. startInterp = 1 - t
  522. finishInterp = t
  523. end
  524. elseif 1 + cosTheta > 1.0E-4 then
  525. local theta = math.acos(-cosTheta)
  526. local invSinTheta = 1 / math.sin(theta)
  527. startInterp = math.sin((t - 1) * theta) * invSinTheta
  528. finishInterp = math.sin(t * theta) * invSinTheta
  529. else
  530. startInterp = t - 1
  531. finishInterp = t
  532. end
  533. 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
  534. end
  535. function rayCast(Position, Direction, Range, Ignore)
  536. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  537. end
  538. local v = game.Players.localPlayer
  539. local torso = v.Character.Torso
  540. wait(0)
  541. local p = Instance.new("Part", v.Character)
  542. p.Name = "kit"
  543. p.BrickColor = BrickColor.new("Plum")
  544. p.Anchored = true
  545. p.Transparency = 1
  546. p.Material = "Plastic"
  547. p.CanCollide = false
  548. p.TopSurface = 0
  549. p.BottomSurface = 0
  550. p.Size = Vector3.new(0.2, 0.2, 0.2)
  551. p.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
  552. local msh = Instance.new("SpecialMesh", p)
  553. msh.Scale = Vector3.new(0.55, 0.55, 0.55)
  554. msh.MeshId = "http://www.roblox.com/asset/?id=430736398"
  555. msh.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  556. local pn = Instance.new("Part", v.Character.kit)
  557. pn.Name = "D"
  558. pn.BrickColor = BrickColor.new("Plum")
  559. pn.Anchored = true
  560. pn.Transparency = 1
  561. pn.Material = "Plastic"
  562. pn.CanCollide = false
  563. pn.TopSurface = 0
  564. pn.BottomSurface = 0
  565. pn.Size = Vector3.new(0.2, 0.2, 0.2)
  566. pn.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
  567. local mshn = Instance.new("SpecialMesh", pn)
  568. mshn.Scale = Vector3.new(0.55, 0.55, 0.55)
  569. mshn.MeshId = "http://www.roblox.com/asset/?id=430736398"
  570. mshn.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  571. local pn3 = Instance.new("Part", v.Character.kit)
  572. pn3.Name = "B"
  573. pn3.BrickColor = BrickColor.new("Fossil")
  574. pn3.Anchored = true
  575. pn3.Transparency = 1
  576. pn3.Material = "Plastic"
  577. pn3.CanCollide = false
  578. pn3.TopSurface = 0
  579. pn3.BottomSurface = 0
  580. pn3.Size = Vector3.new(0.2, 0.2, 0.2)
  581. pn3.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
  582. local mshn3 = Instance.new("SpecialMesh", pn3)
  583. mshn3.Scale = Vector3.new(0.0054, 0.0054, 0.0054)
  584. mshn3.MeshId = "http://www.roblox.com/asset/?id=518429841"
  585. mshn3.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  586. local pn4 = Instance.new("Part", v.Character.kit)
  587. pn4.Name = "B"
  588. pn4.BrickColor = BrickColor.new("Fossil")
  589. pn4.Anchored = true
  590. pn4.Transparency = 1
  591. pn4.Material = "Plastic"
  592. pn4.CanCollide = false
  593. pn4.TopSurface = 0
  594. pn4.BottomSurface = 0
  595. pn4.Size = Vector3.new(0.2, 0.2, 0.2)
  596. pn4.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
  597. local mshn4 = Instance.new("SpecialMesh", pn4)
  598. mshn4.Scale = Vector3.new(0.0054, 0.0054, 0.0054)
  599. mshn4.MeshId = "http://www.roblox.com/asset/?id=518429841"
  600. mshn4.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  601. local pn5 = Instance.new("Part", v.Character.kit)
  602. pn5.Name = "tail"
  603. pn5.Anchored = true
  604. pn5.Transparency = 1
  605. pn5.BrickColor = BrickColor.new("Plum")
  606. pn5.Material = "Plastic"
  607. pn5.CanCollide = false
  608. pn5.TopSurface = 0
  609. pn5.BottomSurface = 0
  610. pn5.Size = Vector3.new(0.2, 0.2, 0.2)
  611. pn5.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
  612. local mshn5 = Instance.new("SpecialMesh", pn5)
  613. mshn5.Scale = Vector3.new(2, 2, 2)
  614. mshn5.MeshId = "http://www.roblox.com/asset/?id=188635159"
  615. mshn5.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  616. local pn6 = Instance.new("Part", v.Character.kit)
  617. pn6.Name = "B-Hair"
  618. pn6.Anchored = true
  619. pn6.Transparency = 1
  620. pn6.BrickColor = BrickColor.new("Dark indigo")
  621. pn6.Material = "Plastic"
  622. pn6.CanCollide = false
  623. pn6.TopSurface = 0
  624. pn6.BottomSurface = 0
  625. pn6.Size = Vector3.new(0.2, 0.2, 0.2)
  626. pn6.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
  627. local mshn6 = Instance.new("SpecialMesh", pn6)
  628. mshn6.Scale = Vector3.new(0.015, 0.03, 0.001)
  629. mshn6.MeshId = "http://www.roblox.com/asset/?id=521338357"
  630. local pn7 = Instance.new("Part", v.Character.kit)
  631. pn7.Name = "tail"
  632. pn7.Anchored = true
  633. pn7.Transparency = 1
  634. pn7.BrickColor = BrickColor.new("Plum")
  635. pn7.Material = "Plastic"
  636. pn7.CanCollide = false
  637. pn7.TopSurface = 0
  638. pn7.BottomSurface = 0
  639. pn7.Size = Vector3.new(0.2, 0.2, 0.2)
  640. pn7.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
  641. local mshn7 = Instance.new("SpecialMesh", pn7)
  642. mshn7.Scale = Vector3.new(2, 2, 2)
  643. mshn7.MeshId = "http://www.roblox.com/asset/?id=188635159"
  644. mshn7.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  645. local pn8 = Instance.new("Part", v.Character.kit)
  646. pn8.Name = "tail"
  647. pn8.Anchored = true
  648. pn8.Transparency = 1
  649. pn8.BrickColor = BrickColor.new("Plum")
  650. pn8.Material = "Plastic"
  651. pn8.CanCollide = false
  652. pn8.TopSurface = 0
  653. pn8.BottomSurface = 0
  654. pn8.Size = Vector3.new(0.2, 0.2, 0.2)
  655. pn8.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
  656. local mshn8 = Instance.new("SpecialMesh", pn8)
  657. mshn8.Scale = Vector3.new(2, 2, 2)
  658. mshn8.MeshId = "http://www.roblox.com/asset/?id=188635159"
  659. mshn8.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  660. local pn9 = Instance.new("Part", v.Character.kit)
  661. pn9.Name = "tail"
  662. pn9.Anchored = true
  663. pn9.Transparency = 1
  664. pn9.BrickColor = BrickColor.new("Plum")
  665. pn9.Material = "Plastic"
  666. pn9.CanCollide = false
  667. pn9.TopSurface = 0
  668. pn9.BottomSurface = 0
  669. pn9.Size = Vector3.new(0.2, 0.2, 0.2)
  670. pn9.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
  671. local mshn9 = Instance.new("SpecialMesh", pn9)
  672. mshn9.Scale = Vector3.new(2, 2, 2)
  673. mshn9.MeshId = "http://www.roblox.com/asset/?id=188635159"
  674. mshn9.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  675. local pn0 = Instance.new("Part", v.Character.kit)
  676. pn0.Name = "ears"
  677. pn0.Anchored = true
  678. pn0.Transparency = 1
  679. pn0.BrickColor = BrickColor.new("Plum")
  680. pn0.Material = "Plastic"
  681. pn0.CanCollide = false
  682. pn0.TopSurface = 0
  683. pn0.BottomSurface = 0
  684. pn0.Size = Vector3.new(0.2, 0.2, 0.2)
  685. pn0.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
  686. local mshn0 = Instance.new("SpecialMesh", pn0)
  687. mshn0.Scale = Vector3.new(0.5, 0.5, 0.5)
  688. mshn0.MeshId = "http://www.roblox.com/asset/?id=361948302"
  689. mshn0.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  690. p.Anchored = false
  691. local motor1 = Instance.new("Weld", torso)
  692. motor1.Part0 = p
  693. motor1.Part1 = torso
  694. motor1.C0 = CFrame.new(2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  695. motor1.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  696. pn.Anchored = false
  697. local motor2 = Instance.new("Weld", torso)
  698. motor2.Part0 = pn
  699. motor2.Part1 = torso
  700. motor2.C0 = CFrame.new(-2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  701. motor2.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  702. pn3.Anchored = false
  703. local motor3 = Instance.new("Weld", torso)
  704. motor3.Part0 = pn3
  705. motor3.Part1 = torso
  706. motor3.C0 = CFrame.new(-2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  707. motor3.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  708. pn4.Anchored = false
  709. local motor4 = Instance.new("Weld", torso)
  710. motor4.Part0 = pn4
  711. motor4.Part1 = torso
  712. motor4.C0 = CFrame.new(2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  713. motor4.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  714. pn5.Anchored = false
  715. local motor5 = Instance.new("Weld", pn5)
  716. motor5.Part0 = pn5
  717. motor5.Part1 = torso
  718. motor5.C0 = CFrame.new(-2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  719. motor5.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  720. pn6.Anchored = false
  721. local motor6 = Instance.new("Weld", pn6)
  722. motor6.Part0 = pn6
  723. motor6.Part1 = Head
  724. motor6.C0 = CFrame.new(-2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  725. motor6.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  726. pn7.Anchored = false
  727. local motor7 = Instance.new("Weld", pn7)
  728. motor7.Part0 = pn7
  729. motor7.Part1 = torso
  730. motor7.C0 = CFrame.new(-2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  731. motor7.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  732. pn8.Anchored = false
  733. local motor8 = Instance.new("Weld", pn8)
  734. motor8.Part0 = pn8
  735. motor8.Part1 = torso
  736. motor8.C0 = CFrame.new(2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  737. motor8.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  738. pn9.Anchored = false
  739. local motor9 = Instance.new("Weld", pn9)
  740. motor9.Part0 = pn9
  741. motor9.Part1 = torso
  742. motor9.C0 = CFrame.new(2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  743. motor9.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  744. pn0.Anchored = false
  745. local motor0 = Instance.new("Weld", pn0)
  746. motor0.Part0 = pn0
  747. motor0.Part1 = v.Character.Head
  748. motor0.C0 = CFrame.new(0, -0.8, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  749. game:GetService("RunService").Stepped:connect(function()
  750. Torsovelocity = RootPart.Velocity.y * Vector3.new(1, 0, 1).magnitude
  751. velocity = RootPart.Velocity.y
  752. sine = sine + change
  753. local hit, pos = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  754. if equipped == true or equipped == false then
  755. if 1 < RootPart.Velocity.y and hit == nil then
  756. Anim = "Jump"
  757. if attack == false then
  758. motor1.C0 = clerp(motor1.C0, CFrame.new(0.45, -1.4, 0.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)
  759. motor2.C0 = clerp(motor2.C0, CFrame.new(-0.45, -1.4, 0.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)
  760. motor3.C0 = clerp(motor3.C0, CFrame.new(0.4, -1.45, 0.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)
  761. motor4.C0 = clerp(motor3.C0, CFrame.new(-7.6, -1.45, 0.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)
  762. 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)
  763. 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)
  764. 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)
  765. 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)
  766. 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)
  767. end
  768. elseif RootPart.Velocity.y < -1 and hit == nil then
  769. Anim = "Fall"
  770. if attack == false then
  771. motor1.C0 = clerp(motor1.C0, CFrame.new(0.45, -1.4, 0.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)
  772. motor2.C0 = clerp(motor2.C0, CFrame.new(-0.45, -1.4, 0.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)
  773. motor3.C0 = clerp(motor3.C0, CFrame.new(0.4, -1.45, 0.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)
  774. motor4.C0 = clerp(motor3.C0, CFrame.new(-7.6, -1.45, 0.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)
  775. 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)
  776. 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)
  777. 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)
  778. 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)
  779. 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)
  780. end
  781. elseif (Torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 1 and hit ~= nil then
  782. Anim = "Idle"
  783. if attack == false then
  784. change = 1
  785. motor1.C0 = clerp(motor1.C0, CFrame.new(0.45, -1.4, 0.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)
  786. motor2.C0 = clerp(motor2.C0, CFrame.new(-0.45, -1.4, 0.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)
  787. motor3.C0 = clerp(motor3.C0, CFrame.new(0.4, -1.45, 0.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)
  788. motor4.C0 = clerp(motor3.C0, CFrame.new(-7.6, -1.45, 0.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)
  789. 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)
  790. 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)
  791. 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)
  792. 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)
  793. 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)
  794. end
  795. elseif (Torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 2 and hit ~= nil then
  796. Anim = "Walk"
  797. if attack == false then
  798. motor1.C0 = clerp(motor1.C0, CFrame.new(0.45, -1.4, 0.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)
  799. motor2.C0 = clerp(motor2.C0, CFrame.new(-0.45, -1.4, 0.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)
  800. motor3.C0 = clerp(motor3.C0, CFrame.new(0.4, -1.45, 0.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)
  801. motor4.C0 = clerp(motor3.C0, CFrame.new(-7.6, -1.45, 0.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)
  802. 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)
  803. 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)
  804. 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)
  805. 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)
  806. 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)
  807. end
  808. end
  809. end
  810. end)
  811. newface = Instance.new("Decal", Head)
  812. newface.Texture = "rbxassetid://186681690"
  813. maincolor = game.Players.LocalPlayer.Character.Torso.BrickColor.Name
  814. secondcolor = "Really black"
  815. wait(0.016666666666666666)
  816. Effects = {}
  817. local Player = game.Players.localPlayer
  818. local Character = Player.Character
  819. local Humanoid = Character.Humanoid
  820. local mouse = Player:GetMouse()
  821. local LeftArm = Character["Left Arm"]
  822. local RightArm = Character["Right Arm"]
  823. local LeftLeg = Character["Left Leg"]
  824. local RightLeg = Character["Right Leg"]
  825. local Head = Character.Head
  826. local Torso = Character.Torso
  827. local cam = game.Workspace.CurrentCamera
  828. local RootPart = Character.HumanoidRootPart
  829. local RootJoint = RootPart.RootJoint
  830. local equipped = true
  831. local attack = false
  832. local Anim = "Idle"
  833. local idle = 0
  834. local attacktype = 1
  835. local Torsovelocity = RootPart.Velocity.y * Vector3.new(1, 0, 1).magnitude
  836. local velocity = RootPart.Velocity.y
  837. local sine = 0
  838. local change = 1
  839. local grabbed = false
  840. local cn = CFrame.new
  841. local mr = math.rad
  842. local angles = CFrame.Angles
  843. local ud = UDim2.new
  844. local c3 = Color3.new
  845. local NeckCF = cn(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  846. Humanoid.Animator:Destroy()
  847. Character.Animate:Destroy()
  848. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  849. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  850. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  851. RSH, LSH = nil, nil
  852. RW = Instance.new("Weld")
  853. LW = Instance.new("Weld")
  854. RH = Torso["Right Hip"]
  855. LH = Torso["Left Hip"]
  856. RSH = Torso["Right Shoulder"]
  857. LSH = Torso["Left Shoulder"]
  858. RSH.Parent = nil
  859. LSH.Parent = nil
  860. RW.Name = "RW"
  861. RW.Part0 = Torso
  862. RW.C0 = cn(1.5, 0.5, 0)
  863. RW.C1 = cn(0, 0.5, 0)
  864. RW.Part1 = RightArm
  865. RW.Parent = Torso
  866. LW.Name = "LW"
  867. LW.Part0 = Torso
  868. LW.C0 = cn(-1.5, 0.5, 0)
  869. LW.C1 = cn(0, 0.5, 0)
  870. LW.Part1 = LeftArm
  871. LW.Parent = Torso
  872. function clerp(a, b, t)
  873. local qa = {
  874. QuaternionFromCFrame(a)
  875. }
  876. local qb = {
  877. QuaternionFromCFrame(b)
  878. }
  879. local ax, ay, az = a.x, a.y, a.z
  880. local bx, by, bz = b.x, b.y, b.z
  881. local _t = 1 - t
  882. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  883. end
  884. function QuaternionFromCFrame(cf)
  885. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  886. local trace = m00 + m11 + m22
  887. if trace > 0 then
  888. local s = math.sqrt(1 + trace)
  889. local recip = 0.5 / s
  890. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  891. else
  892. local i = 0
  893. if m00 < m11 then
  894. i = 1
  895. end
  896. if m22 > (i == 0 and m00 or m11) then
  897. i = 2
  898. end
  899. if i == 0 then
  900. local s = math.sqrt(m00 - m11 - m22 + 1)
  901. local recip = 0.5 / s
  902. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  903. elseif i == 1 then
  904. local s = math.sqrt(m11 - m22 - m00 + 1)
  905. local recip = 0.5 / s
  906. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  907. elseif i == 2 then
  908. local s = math.sqrt(m22 - m00 - m11 + 1)
  909. local recip = 0.5 / s
  910. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  911. end
  912. end
  913. end
  914. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  915. local xs, ys, zs = x + x, y + y, z + z
  916. local wx, wy, wz = w * xs, w * ys, w * zs
  917. local xx = x * xs
  918. local xy = x * ys
  919. local xz = x * zs
  920. local yy = y * ys
  921. local yz = y * zs
  922. local zz = z * zs
  923. 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))
  924. end
  925. function QuaternionSlerp(a, b, t)
  926. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  927. local startInterp, finishInterp
  928. if cosTheta >= 1.0E-4 then
  929. if 1 - cosTheta > 1.0E-4 then
  930. local theta = math.acos(cosTheta)
  931. local invSinTheta = 1 / math.sin(theta)
  932. startInterp = math.sin((1 - t) * theta) * invSinTheta
  933. finishInterp = math.sin(t * theta) * invSinTheta
  934. else
  935. startInterp = 1 - t
  936. finishInterp = t
  937. end
  938. elseif 1 + cosTheta > 1.0E-4 then
  939. local theta = math.acos(-cosTheta)
  940. local invSinTheta = 1 / math.sin(theta)
  941. startInterp = math.sin((t - 1) * theta) * invSinTheta
  942. finishInterp = math.sin(t * theta) * invSinTheta
  943. else
  944. startInterp = t - 1
  945. finishInterp = t
  946. end
  947. 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
  948. end
  949. function swait(num)
  950. if num == 0 or num == nil then
  951. game:service("RunService").RenderStepped:wait(0)
  952. else
  953. for i = 0, num do
  954. game:service("RunService").RenderStepped:wait(0)
  955. end
  956. end
  957. end
  958. local RbxUtility = LoadLibrary("RbxUtility")
  959. local Create = RbxUtility.Create
  960. function RemoveOutlines(part)
  961. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  962. end
  963. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  964. local Part = Create("Part")({
  965. formFactor = FormFactor,
  966. Parent = Parent,
  967. Reflectance = Reflectance,
  968. Transparency = Transparency,
  969. CanCollide = false,
  970. Locked = true,
  971. BrickColor = BrickColor.new(tostring(BColor)),
  972. Name = Name,
  973. Size = Size,
  974. Material = Material
  975. })
  976. RemoveOutlines(Part)
  977. return Part
  978. end
  979. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  980. local Msh = Create(Mesh)({
  981. Parent = Part,
  982. Offset = OffSet,
  983. Scale = Scale
  984. })
  985. if Mesh == "SpecialMesh" then
  986. Msh.MeshType = MeshType
  987. Msh.MeshId = MeshId
  988. end
  989. return Msh
  990. end
  991. function CreateWeld(Parent, Part0, Part1, C0, C1)
  992. local Weld = Create("Weld")({
  993. Parent = Parent,
  994. Part0 = Part0,
  995. Part1 = Part1,
  996. C0 = C0,
  997. C1 = C1
  998. })
  999. return Weld
  1000. end
  1001. function rayCast(Position, Direction, Range, Ignore)
  1002. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  1003. end
  1004. function CreateSound(id, par, vol, pit)
  1005. coroutine.resume(coroutine.create(function()
  1006. local sou = Instance.new("Sound", par or workspace)
  1007. sou.Volume = vol
  1008. sou.Pitch = pit or 1
  1009. sou.SoundId = id
  1010. wait()
  1011. sou:play()
  1012. game:GetService("Debris"):AddItem(sou, 6)
  1013. end))
  1014. end
  1015. local function getclosest(obj, distance)
  1016. local last, lastx = distance + 1, nil
  1017. for i, v in pairs(workspace:GetChildren()) do
  1018. if v:IsA("Model") and v ~= Character and v:findFirstChild("Humanoid") and v:findFirstChild("Torso") and v:findFirstChild("Humanoid").Health > 0 then
  1019. local t = v.Torso
  1020. local dist = (t.Position - obj.Position).magnitude
  1021. if distance >= dist and last > dist then
  1022. last = dist
  1023. lastx = v
  1024. end
  1025. end
  1026. end
  1027. return lastx
  1028. end
  1029. function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  1030. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1031. prt.Anchored = true
  1032. prt.CFrame = cframe
  1033. local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1034. game:GetService("Debris"):AddItem(prt, 10)
  1035. if Type == 1 or Type == nil then
  1036. table.insert(Effects, {
  1037. prt,
  1038. "Block1",
  1039. delay,
  1040. x3,
  1041. y3,
  1042. z3,
  1043. msh
  1044. })
  1045. elseif Type == 2 then
  1046. table.insert(Effects, {
  1047. prt,
  1048. "Block2",
  1049. delay,
  1050. x3,
  1051. y3,
  1052. z3,
  1053. msh
  1054. })
  1055. end
  1056. end
  1057. function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1058. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1059. prt.Anchored = true
  1060. prt.CFrame = cframe
  1061. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1062. game:GetService("Debris"):AddItem(prt, 10)
  1063. table.insert(Effects, {
  1064. prt,
  1065. "Cylinder",
  1066. delay,
  1067. x3,
  1068. y3,
  1069. z3,
  1070. msh
  1071. })
  1072. end
  1073. function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1074. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  1075. prt.Anchored = true
  1076. prt.CFrame = cframe * CFrame.new(x1, y1, z1)
  1077. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1078. game:GetService("Debris"):AddItem(prt, 10)
  1079. table.insert(Effects, {
  1080. prt,
  1081. "Cylinder",
  1082. delay,
  1083. x3,
  1084. y3,
  1085. z3,
  1086. msh
  1087. })
  1088. end
  1089. function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1090. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1091. prt.Anchored = true
  1092. prt.CFrame = cframe
  1093. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1094. game:GetService("Debris"):AddItem(prt, 10)
  1095. table.insert(Effects, {
  1096. prt,
  1097. "Cylinder",
  1098. delay,
  1099. x3,
  1100. y3,
  1101. z3,
  1102. msh
  1103. })
  1104. end
  1105. function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1106. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1107. prt.Anchored = true
  1108. prt.CFrame = cframe
  1109. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1110. game:GetService("Debris"):AddItem(prt, 10)
  1111. table.insert(Effects, {
  1112. prt,
  1113. "Cylinder",
  1114. delay,
  1115. x3,
  1116. y3,
  1117. z3,
  1118. msh
  1119. })
  1120. end
  1121. function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1122. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1123. prt.Anchored = true
  1124. prt.CFrame = cframe
  1125. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1126. game:GetService("Debris"):AddItem(prt, 10)
  1127. table.insert(Effects, {
  1128. prt,
  1129. "Cylinder",
  1130. delay,
  1131. x3,
  1132. y3,
  1133. z3,
  1134. msh
  1135. })
  1136. end
  1137. function BreakEffect(brickcolor, cframe, x1, y1, z1)
  1138. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  1139. prt.Anchored = true
  1140. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1141. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1142. local num = math.random(10, 50) / 1000
  1143. game:GetService("Debris"):AddItem(prt, 10)
  1144. table.insert(Effects, {
  1145. prt,
  1146. "Shatter",
  1147. num,
  1148. prt.CFrame,
  1149. math.random() - math.random(),
  1150. 0,
  1151. math.random(50, 100) / 100
  1152. })
  1153. end
  1154. for i = 0, 1, 0.05 do
  1155. swait()
  1156. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  1157. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(0)), 0.1)
  1158. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1)
  1159. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3)
  1160. if Torsovelocity > 2 then
  1161. 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))), 0.2)
  1162. RH.C0 = clerp(RH.C0, cn(1, -1 + 0.1 * math.cos(sine / 5), 0) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), 0.3)
  1163. LH.C0 = clerp(LH.C0, cn(-1, -1 + 0.1 * math.cos(sine / 5), 0) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), 0.3)
  1164. elseif Torsovelocity < 1 then
  1165. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1)
  1166. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), 0.1)
  1167. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), 0.1)
  1168. end
  1169. end
  1170. attack = false
  1171. game:GetService("RunService").Stepped:connect(function()
  1172. -- Torsovelocity = --RootPart.Velocity.y * Vector3.new(1, 0, 1).magnitude
  1173. Torsovelocity = (torso.Velocity*Vector3.new(1, 0, 1)).magnitude
  1174. velocity = RootPart.Velocity.y
  1175. sine = sine + change
  1176. local hit, pos = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  1177. if equipped == true or equipped == false then
  1178. if 1 < RootPart.Velocity.y and hit == nil then
  1179. Anim = "Jump"
  1180. if attack == false and Anim2 == false then
  1181. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.1)
  1182. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1)
  1183. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(30)), 0.1)
  1184. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(-30)), 0.1)
  1185. RH.C0 = clerp(RH.C0, cn(1, -0.9, -0.3) * RHCF * angles(math.rad(3), math.rad(0), math.rad(0)), 0.1)
  1186. LH.C0 = clerp(LH.C0, cn(-1, -0.7, -0.5) * LHCF * angles(math.rad(-3), math.rad(0), math.rad(0)), 0.1)
  1187. end
  1188. elseif RootPart.Velocity.y < -1 and hit == nil then
  1189. Anim = "Fall"
  1190. if attack == false and Anim2 == false then
  1191. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1)
  1192. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1)
  1193. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(50)), 0.1)
  1194. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-50)), 0.1)
  1195. RH.C0 = clerp(RH.C0, cn(1, -1, -0.3) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.1)
  1196. LH.C0 = clerp(LH.C0, cn(-1, -0.8, -0.3) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.1)
  1197. end
  1198. elseif Torsovelocity < 1 and hit ~= nil then
  1199. Anim = "Idle"
  1200. if attack == false and Anim2 == false then
  1201. change = 0.8
  1202. 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)), 0.1)
  1203. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5 - 2 * math.cos(sine / 50)), math.rad(8), math.rad(-5)), 0.1)
  1204. 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)
  1205. 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)
  1206. RH.C0 = clerp(RH.C0, cn(1, -0.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))), 0.1)
  1207. LH.C0 = clerp(LH.C0, cn(-1, -0.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))), 0.1)
  1208. end
  1209. elseif Torsovelocity > 1 and hit ~= nil then
  1210. Anim = "Walk"
  1211. if attack == false and Anim2 == false then
  1212. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.02 + 0.1 * math.cos(sine / 3)) * angles(math.rad(5), math.rad(0) + RootPart.RotVelocity.Y / 30, math.rad(7 * math.cos(sine / 5))), 0.1)
  1213. 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), 0.1)
  1214. 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))), 0.1)
  1215. 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))), 0.1)
  1216. RH.C0 = clerp(RH.C0, cn(1, -1 + 0.2 * math.cos(sine / 3), 0) * RHCF * angles(math.rad(-2), math.rad(7), math.rad(50 * math.cos(sine / 4))), 0.1)
  1217. LH.C0 = clerp(LH.C0, cn(-1, -1 + 0.1 * math.cos(sine / 3), 0) * LHCF * angles(math.rad(-2), math.rad(-7), math.rad(50 * math.cos(sine / 4))), 0.1)
  1218. end
  1219. end
  1220. end
  1221. if equipped == true or equipped == false then
  1222. if 1 < RootPart.Velocity.y and hit == nil then
  1223. Anim = "Jump"
  1224. if attack == false and Anim2 == true then
  1225. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.1)
  1226. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1)
  1227. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(30)), 0.1)
  1228. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(-30)), 0.1)
  1229. RH.C0 = clerp(RH.C0, cn(1, -0.9, -0.3) * RHCF * angles(math.rad(3), math.rad(0), math.rad(0)), 0.1)
  1230. LH.C0 = clerp(LH.C0, cn(-1, -0.7, -0.5) * LHCF * angles(math.rad(-3), math.rad(0), math.rad(0)), 0.1)
  1231. end
  1232. elseif RootPart.Velocity.y < -1 and hit == nil then
  1233. Anim = "Fall"
  1234. if attack == false and Anim2 == true then
  1235. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1)
  1236. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1)
  1237. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(50)), 0.1)
  1238. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-50)), 0.1)
  1239. RH.C0 = clerp(RH.C0, cn(1, -1, -0.3) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.1)
  1240. LH.C0 = clerp(LH.C0, cn(-1, -0.8, -0.3) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.1)
  1241. end
  1242. elseif Torsovelocity < 1 and hit ~= nil then
  1243. Anim = "Idle"
  1244. if attack == false and Anim2 == true then
  1245. change = 0.8
  1246. 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)), 0.1)
  1247. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(1 - 1 * math.cos(sine / 25)), math.rad(0), math.rad(-5)), 0.1)
  1248. 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)
  1249. 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)
  1250. RH.C0 = clerp(RH.C0, cn(1, -0.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))), 0.1)
  1251. LH.C0 = clerp(LH.C0, cn(-1, -0.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))), 0.1)
  1252. end
  1253. elseif Torsovelocity > 1 and hit ~= nil then
  1254. Anim = "Walk"
  1255. if attack == false and Anim2 == true then
  1256. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.02 + 0.1 * math.cos(sine / 3)) * angles(math.rad(5), math.rad(0) + RootPart.RotVelocity.Y / 30, math.rad(5 * math.cos(sine / 5))), 0.2)
  1257. 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), 0.2)
  1258. 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))), 0.1)
  1259. 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))), 0.1)
  1260. RH.C0 = clerp(RH.C0, cn(1, -1 + 0.2 * math.cos(sine / 3), 0) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(50 * math.cos(sine / 4))), 0.1)
  1261. LH.C0 = clerp(LH.C0, cn(-1, -1 + 0.1 * math.cos(sine / 3), 0) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(50 * math.cos(sine / 4))), 0.1)
  1262. end
  1263. end
  1264. end
  1265. if 0 < #Effects then
  1266. for e = 1, #Effects do
  1267. if Effects[e] ~= nil then
  1268. local Thing = Effects[e]
  1269. if Thing ~= nil then
  1270. local Part = Thing[1]
  1271. local Mode = Thing[2]
  1272. local Delay = Thing[3]
  1273. local IncX = Thing[4]
  1274. local IncY = Thing[5]
  1275. local IncZ = Thing[6]
  1276. if 1 >= Thing[1].Transparency then
  1277. if Thing[2] == "Block1" then
  1278. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1279. local Mesh = Thing[1].Mesh
  1280. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1281. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1282. elseif Thing[2] == "Block2" then
  1283. Thing[1].CFrame = Thing[1].CFrame
  1284. local Mesh = Thing[7]
  1285. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1286. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1287. elseif Thing[2] == "Cylinder" then
  1288. local Mesh = Thing[1].Mesh
  1289. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1290. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1291. elseif Thing[2] == "Blood" then
  1292. local Mesh = Thing[7]
  1293. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  1294. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1295. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1296. elseif Thing[2] == "Elec" then
  1297. local Mesh = Thing[1].Mesh
  1298. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1299. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1300. elseif Thing[2] == "Disappear" then
  1301. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1302. elseif Thing[2] == "Shatter" then
  1303. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1304. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1305. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1306. Thing[6] = Thing[6] + Thing[5]
  1307. end
  1308. else
  1309. Part.Parent = nil
  1310. table.remove(Effects, e)
  1311. end
  1312. end
  1313. end
  1314. end
  1315. end
  1316. end)
  1317. Pressed = false
  1318. MaskOn = false
  1319. MaskOff = true
  1320. Anim2 = true
  1321. eye1 = false
  1322. eye2 = false
  1323. eye3 = true
  1324. mouth1 = false
  1325. mouth2 = true
  1326. mouth3 = false
  1327. mouth4 = false
  1328. mouth5 = false
  1329. mouth6 = false
  1330. mouth7 = false
  1331. bkit0 = true
  1332. bkit1 = false
  1333. bkit2 = false
  1334. torso1 = false
  1335. torso2 = true
  1336. Tail0 = true
  1337. Tail1 = false
  1338. Tail2 = false
  1339. Tail3 = false
  1340. Hair0 = true
  1341. Hair1 = false
  1342. Hair2 = false
  1343. Hair3 = false
  1344. Hat0 = true
  1345. Hat1 = false
  1346. Hat2 = false
  1347. Hat3 = false
  1348. local Playing = false
  1349. char2 = game.Players.LocalPlayer.Character
  1350. iPlayer = game.Players.LocalPlayer.Name
  1351. local Gui = Instance.new("ScreenGui", game.Players[iPlayer].PlayerGui)
  1352. Gui.Name = "Gui test"
  1353. local Pull = Instance.new("Frame", Gui)
  1354. Pull.Name = "Grab"
  1355. Pull.Active = true
  1356. Pull.BackgroundColor3 = Color3.new(0.3803921568627451, 0.3803921568627451, 0.3803921568627451)
  1357. Pull.BackgroundTransparency = 0
  1358. Pull.BorderSizePixel = 4
  1359. Pull.Position = UDim2.new(0.5, -318, 0.5, -92)
  1360. Pull.Size = UDim2.new(0, 120, 0, 50)
  1361. Pull.Draggable = true
  1362. Pull.BorderColor3 = Color3.new(0.3803921568627451, 0.3803921568627451, 0.3803921568627451)
  1363. local Close = Instance.new("TextButton", Pull)
  1364. Close.Name = "Close"
  1365. Close.BackgroundTransparency = 1
  1366. Close.Position = UDim2.new(1, -23, 0, 1)
  1367. Close.Size = UDim2.new(0, 22, 0, 22)
  1368. Close.Font = "SourceSans"
  1369. Close.FontSize = "Size24"
  1370. Close.TextColor3 = Color3.new(255, 255, 255)
  1371. Close.Text = "X"
  1372. Close.TextStrokeTransparency = 0.8
  1373. local Body = Instance.new("Frame", Pull)
  1374. Body.Name = "Body"
  1375. Body.BackgroundColor3 = Color3.new(0.23529411764705882, 0.23529411764705882, 0.23529411764705882)
  1376. Body.BackgroundTransparency = 0
  1377. Body.BorderSizePixel = 4
  1378. Body.Position = UDim2.new(0, 0, 0, 52)
  1379. Body.Size = UDim2.new(0, 547, 0, 212)
  1380. Body.BorderColor3 = Color3.new(0.3803921568627451, 0.3803921568627451, 0.3803921568627451)
  1381. local Line = Instance.new("Frame", Body)
  1382. Line.Name = "Line"
  1383. Line.BackgroundColor3 = Color3.new(0.23529411764705882, 0.23529411764705882, 0.23529411764705882)
  1384. Line.BackgroundTransparency = 0
  1385. Line.BorderSizePixel = 2
  1386. Line.Position = UDim2.new(0, 152.5, 0, 0)
  1387. Line.Size = UDim2.new(0, 0.01, 0, 212)
  1388. Line.BorderColor3 = Color3.new(0.3803921568627451, 0.3803921568627451, 0.3803921568627451)
  1389. local Line2 = Instance.new("Frame", Body)
  1390. Line2.Name = "Line2"
  1391. Line2.BackgroundColor3 = Color3.new(0.23529411764705882, 0.23529411764705882, 0.23529411764705882)
  1392. Line2.BackgroundTransparency = 0
  1393. Line2.BorderSizePixel = 2
  1394. Line2.Position = UDim2.new(0, 306.5, 0, 0)
  1395. Line2.Size = UDim2.new(0, 0.01, 0, 212)
  1396. Line2.BorderColor3 = Color3.new(0.3803921568627451, 0.3803921568627451, 0.3803921568627451)
  1397. local Title = Instance.new("TextLabel", Pull)
  1398. Title.Name = "Title"
  1399. Title.BackgroundTransparency = 1
  1400. Title.Position = UDim2.new(0, -50, 0, 0)
  1401. Title.Size = UDim2.new(0, 200, 1, 0)
  1402. Title.Font = "SourceSansLight"
  1403. Title.FontSize = "Size48"
  1404. Title.Text = "Menu"
  1405. Title.TextColor3 = Color3.new(0.5, 0, 1)
  1406. Title.TextStrokeColor3 = Color3.new(0.2901960784313726, 0.2901960784313726, 0.2901960784313726)
  1407. Title.TextStrokeTransparency = 0
  1408. local PlayerName = Instance.new("TextBox", Body)
  1409. PlayerName.Name = "PlayerName"
  1410. PlayerName.BorderSizePixel = 0
  1411. PlayerName.Position = UDim2.new(0, 8, 0, 10)
  1412. PlayerName.Size = UDim2.new(0, 135, 0, 30)
  1413. PlayerName.Font = "SourceSans"
  1414. PlayerName.FontSize = "Size18"
  1415. PlayerName.Text = "Name of the color"
  1416. PlayerName.BackgroundColor3 = Color3.new(255, 255, 255)
  1417. PlayerName.TextColor3 = Color3.new(0, 0, 0)
  1418. PlayerName.TextWrapped = true
  1419. local ColTex2 = Instance.new("TextBox", Body)
  1420. ColTex2.Name = "ColTex2"
  1421. ColTex2.BorderSizePixel = 0
  1422. ColTex2.Position = UDim2.new(0, 318.5, 0, 10)
  1423. ColTex2.Size = UDim2.new(0, 135, 0, 30)
  1424. ColTex2.Font = "SourceSans"
  1425. ColTex2.FontSize = "Size18"
  1426. ColTex2.Text = "Song id"
  1427. ColTex2.BackgroundColor3 = Color3.new(255, 255, 255)
  1428. ColTex2.TextColor3 = Color3.new(0, 0, 0)
  1429. ColTex2.TextWrapped = true
  1430. local ColTex3 = Instance.new("TextBox", Body)
  1431. ColTex3.Name = "ColTex3"
  1432. ColTex3.BorderSizePixel = 2
  1433. ColTex3.Position = UDim2.new(0, 10, 0, 130)
  1434. ColTex3.Size = UDim2.new(0, 57.5, 0, 30)
  1435. ColTex3.Font = "SourceSans"
  1436. ColTex3.FontSize = "Size10"
  1437. ColTex3.Text = "Shirt id"
  1438. ColTex3.BackgroundColor3 = Color3.new(255, 255, 255)
  1439. ColTex3.TextColor3 = Color3.new(0, 0, 0)
  1440. ColTex3.TextWrapped = true
  1441. local ColTex4 = Instance.new("TextBox", Body)
  1442. ColTex4.Name = "ColTex4"
  1443. ColTex4.BorderSizePixel = 2
  1444. ColTex4.Position = UDim2.new(0, 10, 0, 170)
  1445. ColTex4.Size = UDim2.new(0, 57.5, 0, 30)
  1446. ColTex4.Font = "SourceSans"
  1447. ColTex4.FontSize = "Size10"
  1448. ColTex4.Text = "Pants id"
  1449. ColTex4.BackgroundColor3 = Color3.new(255, 255, 255)
  1450. ColTex4.TextColor3 = Color3.new(0, 0, 0)
  1451. ColTex4.TextWrapped = true
  1452. local Chattext = Instance.new("TextBox", Body)
  1453. Chattext.Name = "Chattext"
  1454. Chattext.BorderSizePixel = 2
  1455. Chattext.Position = UDim2.new(0, 125, 0, -45)
  1456. Chattext.Size = UDim2.new(0, 157.5, 0, 40)
  1457. Chattext.Font = "SourceSans"
  1458. Chattext.FontSize = "Size12"
  1459. Chattext.Text = "Beter chat ^-^ "
  1460. Chattext.BackgroundColor3 = Color3.new(255, 255, 255)
  1461. Chattext.TextColor3 = Color3.new(0, 0, 0)
  1462. Chattext.TextWrapped = true
  1463. Chattext.BorderColor3 = Color3.new(0.3803921568627451, 0.3803921568627451, 0.3803921568627451)
  1464. local God = Instance.new("TextButton", Body)
  1465. God.Name = "God"
  1466. God.BackgroundColor3 = Color3.new(0.08235294117647059, 0.5568627450980392, 255)
  1467. God.BackgroundTransparency = 0
  1468. God.BorderSizePixel = 2
  1469. God.Position = UDim2.new(0, 10, 0, 50)
  1470. God.Size = UDim2.new(0, 57.5, 0, 30)
  1471. God.Font = "SourceSansBold"
  1472. God.FontSize = "Size18"
  1473. God.Text = "Skin col"
  1474. God.TextColor3 = Color3.new(255, 255, 255)
  1475. God.TextWrapped = true
  1476. God.BorderColor3 = Color3.new(0.3803921568627451, 0.3803921568627451, 0.3803921568627451)
  1477. God.TextStrokeTransparency = 1
  1478. local Saypress = God:Clone()
  1479. Saypress.Name = "Saypress"
  1480. Saypress.Parent = Body
  1481. Saypress.Position = UDim2.new(0, 285.5, 0, -35)
  1482. Saypress.Text = "Say"
  1483. Saypress.BackgroundColor3 = Color3.new(0.5, 1, 0.5)
  1484. local TpTo = God:Clone()
  1485. TpTo.Name = "TpTo"
  1486. TpTo.Parent = Body
  1487. TpTo.Position = UDim2.new(0, 468.5, 0, 10)
  1488. TpTo.Text = "Play"
  1489. TpTo.BackgroundColor3 = Color3.new(0.5, 1, 0.5)
  1490. local KillPlr = God:Clone()
  1491. KillPlr.Name = "Shirtcol"
  1492. KillPlr.Parent = Body
  1493. KillPlr.Position = UDim2.new(0, 10, 0, 90)
  1494. KillPlr.Text = "Shirt col"
  1495. KillPlr.Size = UDim2.new(0, 130, 0, 30)
  1496. local Haircol = God:Clone()
  1497. Haircol.Name = "Haircol"
  1498. Haircol.Parent = Body
  1499. Haircol.Position = UDim2.new(0, 82.5, 0, 50)
  1500. Haircol.Text = "Hair col"
  1501. local TpMe = God:Clone()
  1502. TpMe.Name = "Hat"
  1503. TpMe.Parent = Body
  1504. TpMe.Position = UDim2.new(0, 164, 0, 90)
  1505. TpMe.Text = "Hat 1"
  1506. TpMe.Size = UDim2.new(0, 57.5, 0, 30)
  1507. TpMe.FontSize = "Size18"
  1508. local TpMe2 = God:Clone()
  1509. TpMe2.Name = "Hair"
  1510. TpMe2.Parent = Body
  1511. TpMe2.Position = UDim2.new(0, 236.5, 0, 50)
  1512. TpMe2.Text = "Hair 1"
  1513. TpMe2.Size = UDim2.new(0, 57.5, 0, 30)
  1514. TpMe2.FontSize = "Size18"
  1515. local G36K = God:Clone()
  1516. G36K.Name = "SpawnG36k"
  1517. G36K.Parent = Body
  1518. G36K.Position = UDim2.new(0, 162, 0, 10)
  1519. G36K.Text = "Idle Pose"
  1520. G36K.Size = UDim2.new(0, 135, 0, 30)
  1521. G36K.BackgroundColor3 = Color3.new(1, 0.5, 0.5)
  1522. G36K.FontSize = "Size28"
  1523. local Tail = God:Clone()
  1524. Tail.Name = "Tail"
  1525. Tail.Parent = Body
  1526. Tail.Position = UDim2.new(0, 164, 0, 50)
  1527. Tail.Text = "Tail 0"
  1528. local Torso2 = God:Clone()
  1529. Torso2.Name = "Hair"
  1530. Torso2.Parent = Body
  1531. Torso2.Position = UDim2.new(0, 236.5, 0, 90)
  1532. Torso2.Text = "Torso 2"
  1533. Torso2.Size = UDim2.new(0, 57.5, 0, 30)
  1534. Torso2.FontSize = "Size18"
  1535. local Bkit = God:Clone()
  1536. Bkit.Name = "Bkit"
  1537. Bkit.Parent = Body
  1538. Bkit.Position = UDim2.new(0, 164, 0, 130)
  1539. Bkit.Text = "Bkit 0"
  1540. Bkit.Size = UDim2.new(0, 57.5, 0, 30)
  1541. Bkit.FontSize = "Size18"
  1542. local Mouth = God:Clone()
  1543. Mouth.Name = "Mouth"
  1544. Mouth.Parent = Body
  1545. Mouth.Position = UDim2.new(0, 164, 0, 170)
  1546. Mouth.Text = "Mouth 2"
  1547. Mouth.FontSize = "Size18"
  1548. local Eyes = God:Clone()
  1549. Eyes.Name = "Eyes"
  1550. Eyes.Parent = Body
  1551. Eyes.Position = UDim2.new(0, 236, 0, 130)
  1552. Eyes.Text = "Eye 3"
  1553. Eyes.FontSize = "Size18"
  1554. local mask = God:Clone()
  1555. mask.Name = "mask"
  1556. mask.Parent = Body
  1557. mask.Position = UDim2.new(0, 236, 0, 170)
  1558. mask.Text = "Shy"
  1559. mask.FontSize = "Size18"
  1560. mask.BackgroundColor3 = Color3.new(1, 0.5, 0.5)
  1561. local Shirtset = God:Clone()
  1562. Shirtset.Name = "Shirtset"
  1563. Shirtset.Parent = Body
  1564. Shirtset.Position = UDim2.new(0, 82.5, 0, 130)
  1565. Shirtset.Text = "Set"
  1566. local Pantsset = God:Clone()
  1567. Pantsset.Name = "Pantsset"
  1568. Pantsset.Parent = Body
  1569. Pantsset.Position = UDim2.new(0, 82.5, 0, 170)
  1570. Pantsset.Text = "Set"
  1571. local Bunny = God:Clone()
  1572. Bunny.Name = "Bunny"
  1573. Bunny.Parent = Body
  1574. Bunny.Position = UDim2.new(0, 318.5, 0, 50)
  1575. Bunny.Text = "Bunny"
  1576. local Noob = God:Clone()
  1577. Noob.Name = "Noob"
  1578. Noob.Parent = Body
  1579. Noob.Position = UDim2.new(0, 318.5, 0, 90)
  1580. Noob.Text = "Noob"
  1581. local Kitty = God:Clone()
  1582. Kitty.Name = "Kitty"
  1583. Kitty.Parent = Body
  1584. Kitty.Position = UDim2.new(0, 318.5, 0, 130)
  1585. Kitty.Text = "Kitty"
  1586. Saypress.MouseButton1Down:connect(function()
  1587. local ChatService = game:GetService("Chat")
  1588. ChatService:Chat(char.Head, "" .. Chattext.Text)
  1589. end)
  1590. God.MouseButton1Down:connect(function()
  1591. BC.HeadColor = BrickColor.new(PlayerName.Text)
  1592. BC.LeftArmColor = BrickColor.new(PlayerName.Text)
  1593. BC.LeftLegColor = BrickColor.new(PlayerName.Text)
  1594. BC.RightArmColor = BrickColor.new(PlayerName.Text)
  1595. BC.RightLegColor = BrickColor.new(PlayerName.Text)
  1596. pn3.BrickColor = BrickColor.new(PlayerName.Text)
  1597. pn4.BrickColor = BrickColor.new(PlayerName.Text)
  1598. skin.BrickColor = BrickColor.new(PlayerName.Text)
  1599. end)
  1600. KillPlr.MouseButton1Down:connect(function()
  1601. pn.BrickColor = BrickColor.new(PlayerName.Text)
  1602. p.BrickColor = BrickColor.new(PlayerName.Text)
  1603. pn0.BrickColor = BrickColor.new(PlayerName.Text)
  1604. BC.TorsoColor = BrickColor.new(PlayerName.Text)
  1605. hat2.BrickColor = BrickColor.new(PlayerName.Text)
  1606. hat3.BrickColor = BrickColor.new(PlayerName.Text)
  1607. pn5.BrickColor = BrickColor.new(PlayerName.Text)
  1608. pn7.BrickColor = BrickColor.new(PlayerName.Text)
  1609. pn8.BrickColor = BrickColor.new(PlayerName.Text)
  1610. pn9.BrickColor = BrickColor.new(PlayerName.Text)
  1611. tail3.BrickColor = BrickColor.new(PlayerName.Text)
  1612. end)
  1613. TpTo.MouseButton1Down:connect(function()
  1614. if Playing == false and Pressed == false then
  1615. TpTo.BackgroundColor3 = Color3.new(1, 0.5, 0.5)
  1616. TpTo.Text = "Stop"
  1617. Pressed = true
  1618. radio.Transparency = 0
  1619. GlowParticle.Transparency = NumberSequence.new(0.3, 0.8)
  1620. GlowParticle2.Transparency = NumberSequence.new(0.3, 0.8)
  1621. GlowParticle3.Transparency = NumberSequence.new(0.3, 0.8)
  1622. wait()
  1623. sound:Play()
  1624. Playing = true
  1625. end
  1626. if Playing == true and Pressed == false then
  1627. TpTo.BackgroundColor3 = Color3.new(0.5, 1, 0.5)
  1628. TpTo.Text = "Play"
  1629. Pressed = true
  1630. radio.Transparency = 1
  1631. GlowParticle.Transparency = NumberSequence.new(1)
  1632. GlowParticle2.Transparency = NumberSequence.new(1)
  1633. GlowParticle3.Transparency = NumberSequence.new(1)
  1634. wait()
  1635. sound:Stop()
  1636. Playing = false
  1637. end
  1638. wait()
  1639. Pressed = false
  1640. end)
  1641. TpMe.MouseButton1Down:connect(function()
  1642. if Hat1 == true and Pressed == false then
  1643. TpMe.Text = "Hat 2"
  1644. pn0.Transparency = 1
  1645. hat2.Transparency = 0
  1646. Pressed = true
  1647. wait()
  1648. Hat1 = false
  1649. Hat2 = true
  1650. end
  1651. if Hat2 == true and Pressed == false then
  1652. TpMe.Text = "Hat 3"
  1653. hat2.Transparency = 1
  1654. hat3.Transparency = 0
  1655. Pressed = true
  1656. wait()
  1657. Hat2 = false
  1658. Hat3 = true
  1659. end
  1660. if Hat3 == true and Pressed == false then
  1661. TpMe.Text = "Hat 0"
  1662. hat3.Transparency = 1
  1663. Pressed = true
  1664. wait()
  1665. Hat3 = false
  1666. Hat0 = true
  1667. end
  1668. if Hat0 == true and Pressed == false then
  1669. TpMe.Text = "Hat 1"
  1670. pn0.Transparency = 0
  1671. Pressed = true
  1672. wait()
  1673. Hat3 = false
  1674. Hat1 = true
  1675. end
  1676. wait()
  1677. Pressed = false
  1678. end)
  1679. G36K.MouseButton1Down:connect(function()
  1680. if Anim2 == false and Pressed == false then
  1681. G36K.BackgroundColor3 = Color3.new(1, 0.5, 0.5)
  1682. Pressed = true
  1683. wait()
  1684. Anim2 = true
  1685. end
  1686. if Anim2 == true and Pressed == false then
  1687. G36K.BackgroundColor3 = Color3.new(0.5, 1, 0.5)
  1688. Pressed = true
  1689. wait()
  1690. Anim2 = false
  1691. end
  1692. wait()
  1693. Pressed = false
  1694. end)
  1695. TpMe2.MouseButton1Down:connect(function()
  1696. if Hair1 == true and Pressed == false then
  1697. TpMe2.Text = "Hair 2"
  1698. Hood.Transparency = 1
  1699. pn6.Transparency = 1
  1700. hair2.Transparency = 0
  1701. Pressed = true
  1702. wait()
  1703. Hair1 = false
  1704. Hair2 = true
  1705. end
  1706. if Hair2 == true and Pressed == false then
  1707. TpMe2.Text = "Hair 3"
  1708. Hood.Transparency = 0
  1709. pn6.Transparency = 1
  1710. hair2.Transparency = 1
  1711. Pressed = true
  1712. wait()
  1713. Hair2 = false
  1714. Hair3 = true
  1715. end
  1716. if Hair3 == true and Pressed == false then
  1717. TpMe2.Text = "Hair 0"
  1718. Hood.Transparency = 1
  1719. pn6.Transparency = 1
  1720. hair2.Transparency = 1
  1721. Pressed = true
  1722. wait()
  1723. Hair3 = false
  1724. Hair0 = true
  1725. end
  1726. if Hair0 == true and Pressed == false then
  1727. TpMe2.Text = "Hair 1"
  1728. Hood.Transparency = 0
  1729. pn6.Transparency = 0
  1730. hair2.Transparency = 0
  1731. Pressed = true
  1732. wait()
  1733. Hair0 = false
  1734. Hair1 = true
  1735. end
  1736. wait()
  1737. Pressed = false
  1738. end)
  1739. Haircol.MouseButton1Down:connect(function()
  1740. hair2.BrickColor = BrickColor.new(PlayerName.Text)
  1741. Hood.BrickColor = BrickColor.new(PlayerName.Text)
  1742. pn6.BrickColor = BrickColor.new(PlayerName.Text)
  1743. end)
  1744. Tail.MouseButton1Down:connect(function()
  1745. if Tail1 == true and Pressed == false then
  1746. Tail.Text = "Tail 2"
  1747. pn5.Transparency = 1
  1748. pn7.Transparency = 1
  1749. pn8.Transparency = 1
  1750. pn9.Transparency = 1
  1751. tail2.Transparency = 0
  1752. Pressed = true
  1753. wait()
  1754. Tail1 = false
  1755. Tail2 = true
  1756. end
  1757. if Tail2 == true and Pressed == false then
  1758. Tail.Text = "Tail 3"
  1759. tail2.Transparency = 1
  1760. tail3.Transparency = 0
  1761. Pressed = true
  1762. wait()
  1763. Tail2 = false
  1764. Tail3 = true
  1765. end
  1766. if Tail3 == true and Pressed == false then
  1767. Tail.Text = "Tail 0"
  1768. tail3.Transparency = 1
  1769. Pressed = true
  1770. wait()
  1771. Tail3 = false
  1772. Tail0 = true
  1773. end
  1774. if Tail0 == true and Pressed == false then
  1775. Tail.Text = "Tail 1"
  1776. pn5.Transparency = 0
  1777. pn7.Transparency = 0
  1778. pn8.Transparency = 0
  1779. pn9.Transparency = 0
  1780. Pressed = true
  1781. wait()
  1782. Tail0 = false
  1783. Tail1 = true
  1784. end
  1785. wait()
  1786. Pressed = false
  1787. end)
  1788. Torso2.MouseButton1Down:connect(function()
  1789. if torso1 == true and Pressed == false then
  1790. Pressed = true
  1791. M69.MeshId = "rbxassetid://456901040"
  1792. M69.Scale = Vector3.new(1, 1, 1)
  1793. Torso2.Text = "Torso 2"
  1794. wait()
  1795. torso1 = false
  1796. torso2 = true
  1797. end
  1798. if torso2 == true and Pressed == false then
  1799. Pressed = true
  1800. M69.MeshId = "rbxassetid://48112070"
  1801. M69.Scale = Vector3.new(1.093, 1, 1)
  1802. Torso2.Text = "Torso 1"
  1803. wait()
  1804. torso1 = true
  1805. torso2 = false
  1806. end
  1807. wait()
  1808. Pressed = false
  1809. end)
  1810. Bkit.MouseButton1Down:connect(function()
  1811. if bkit1 == true and Pressed == false then
  1812. Pressed = true
  1813. p.Transparency = 0
  1814. pn.Transparency = 0
  1815. pn3.Transparency = 1
  1816. pn4.Transparency = 1
  1817. skin.Transparency = 1
  1818. Bkit.Text = "Bkit 2"
  1819. wait()
  1820. bkit1 = false
  1821. bkit2 = true
  1822. end
  1823. if bkit2 == true and Pressed == false then
  1824. Pressed = true
  1825. p.Transparency = 1
  1826. pn.Transparency = 1
  1827. pn3.Transparency = 1
  1828. pn4.Transparency = 1
  1829. skin.Transparency = 1
  1830. Bkit.Text = "Bkit 0"
  1831. wait()
  1832. bkit2 = false
  1833. bkit0 = true
  1834. end
  1835. if bkit0 == true and Pressed == false then
  1836. Pressed = true
  1837. p.Transparency = 0
  1838. pn.Transparency = 0
  1839. pn3.Transparency = 0
  1840. pn4.Transparency = 0
  1841. skin.Transparency = 0
  1842. Bkit.Text = "Bkit 1"
  1843. wait()
  1844. bkit0 = false
  1845. bkit1 = true
  1846. end
  1847. wait()
  1848. Pressed = false
  1849. end)
  1850. Mouth.MouseButton1Down:connect(function()
  1851. if mouth1 == true and Pressed == false then
  1852. Mouth.Text = "Mouth 2"
  1853. newface.Texture = "rbxassetid://186681690"
  1854. Orbd.Transparency = 1
  1855. Pressed = true
  1856. wait()
  1857. mouth1 = false
  1858. mouth2 = true
  1859. end
  1860. if mouth2 == true and Pressed == false then
  1861. Mouth.Text = "Mouth 3"
  1862. newface.Texture = "rbxassetid://322781877"
  1863. Orbd.Transparency = 1
  1864. Pressed = true
  1865. wait()
  1866. mouth2 = false
  1867. mouth3 = true
  1868. end
  1869. if mouth3 == true and Pressed == false then
  1870. Mouth.Text = "Mouth 4"
  1871. newface.Texture = "rbxassetid://186682603"
  1872. Orbd.Transparency = 1
  1873. Pressed = true
  1874. wait()
  1875. mouth3 = false
  1876. mouth4 = true
  1877. end
  1878. if mouth4 == true and Pressed == false then
  1879. Mouth.Text = "Mouth 5"
  1880. newface.Texture = "rbxassetid://133379869"
  1881. Orbd.Transparency = 1
  1882. Pressed = true
  1883. wait()
  1884. mouth4 = false
  1885. mouth5 = true
  1886. end
  1887. if mouth5 == true and Pressed == false then
  1888. Mouth.Text = "Mouth 6"
  1889. newface.Texture = "rbxassetid://186683091"
  1890. Orbd.Transparency = 1
  1891. Pressed = true
  1892. wait()
  1893. mouth5 = false
  1894. mouth6 = true
  1895. end
  1896. if mouth6 == true and Pressed == false then
  1897. Mouth.Text = "Mouth 7"
  1898. newface.Texture = "rbxassetid://186682277"
  1899. Orbd.Transparency = 1
  1900. Pressed = true
  1901. wait()
  1902. mouth6 = false
  1903. mouth7 = true
  1904. end
  1905. if mouth7 == true and Pressed == false then
  1906. Mouth.Text = "Mouth 1"
  1907. newface.Texture = "rbxassetid://"
  1908. Orbd.Transparency = 0
  1909. Pressed = true
  1910. wait()
  1911. mouth6 = false
  1912. mouth1 = true
  1913. end
  1914. wait()
  1915. Pressed = false
  1916. end)
  1917. Eyes.MouseButton1Down:connect(function()
  1918. if eye3 == true and Pressed == false then
  1919. Pressed = true
  1920. char.Head.face.Texture = "rbxassetid://176204308"
  1921. Eyes.Text = "Eye 1"
  1922. wait()
  1923. eye3 = false
  1924. eye1 = true
  1925. end
  1926. if eye1 == true and Pressed == false then
  1927. Pressed = true
  1928. char.Head.face.Texture = "rbxassetid://176210835"
  1929. Eyes.Text = "Eye 2"
  1930. wait()
  1931. eye1 = false
  1932. eye2 = true
  1933. end
  1934. if eye2 == true and Pressed == false then
  1935. Pressed = true
  1936. char.Head.face.Texture = "rbxassetid://176206791"
  1937. Eyes.Text = "Eye 3"
  1938. wait()
  1939. eye2 = false
  1940. eye3 = true
  1941. end
  1942. wait()
  1943. Pressed = false
  1944. end)
  1945. mask.MouseButton1Down:connect(function()
  1946. if MaskOn == true and Pressed == false then
  1947. Mask.Transparency = 1
  1948. Pressed = true
  1949. mask.BackgroundColor3 = Color3.new(1, 0.5, 0.5)
  1950. wait()
  1951. MaskOn = false
  1952. MaskOff = true
  1953. end
  1954. if MaskOff == true and Pressed == false then
  1955. Mask.Transparency = 0
  1956. Pressed = true
  1957. mask.BackgroundColor3 = Color3.new(0.5, 1, 0.5)
  1958. wait()
  1959. MaskOn = true
  1960. MaskOff = false
  1961. end
  1962. wait()
  1963. Pressed = false
  1964. end)
  1965. Shirtset.MouseButton1Down:connect(function()
  1966. char049.Shirt.ShirtTemplate = "rbxassetid://" .. ColTex3.Text
  1967. end)
  1968. Pantsset.MouseButton1Down:connect(function()
  1969. char049.Pants.PantsTemplate = "rbxassetid://" .. ColTex4.Text
  1970. end)
  1971. Close.MouseButton1Down:connect(function()
  1972. if Body.Visible == true then
  1973. Body.Visible = false
  1974. Close.Text = "+"
  1975. Title.FontSize = "Size24"
  1976. Pull.Size = UDim2(0, 125, 0, 12.5)
  1977. elseif Body.Visible == false then
  1978. Body.Visible = true
  1979. Close.Text = "X"
  1980. Title.FontSize = "Size48"
  1981. Graf_f.Size = UDim2(0, 500, 0, 50)
  1982. end
  1983. end)
  1984. local mesh = Instance.new("SpecialMesh", radio)
  1985. mesh.MeshId = "http://www.roblox.com/asset/?id=151760030"
  1986. mesh.TextureId = "rbxassetid://151760072"
  1987. mesh.Scale = Vector3.new(0.7, 0.7, 0.7)
  1988. ColTex2.Changed:connect(function()
  1989. sound.SoundId = "rbxassetid://" .. ColTex2.Text
  1990. end)
  1991. while true do
  1992. if Playing then
  1993. mesh.Scale = Vector3.new(0.71, 0.71, 0.71)
  1994. wait(1.0E-6)
  1995. mesh.Scale = Vector3.new(0.709, 0.709, 0.709)
  1996. wait(1.0E-6)
  1997. mesh.Scale = Vector3.new(0.708, 0.708, 0.708)
  1998. wait(1.0E-6)
  1999. mesh.Scale = Vector3.new(0.707, 0.707, 0.707)
  2000. wait(1.0E-6)
  2001. mesh.Scale = Vector3.new(0.706, 0.706, 0.706)
  2002. wait(1.0E-6)
  2003. mesh.Scale = Vector3.new(0.705, 0.705, 0.705)
  2004. wait(1.0E-6)
  2005. mesh.Scale = Vector3.new(0.704, 0.704, 0.704)
  2006. wait(1.0E-6)
  2007. mesh.Scale = Vector3.new(0.703, 0.703, 0.703)
  2008. wait(1.0E-6)
  2009. mesh.Scale = Vector3.new(0.702, 0.702, 0.702)
  2010. wait(1.0E-6)
  2011. mesh.Scale = Vector3.new(0.701, 0.701, 0.701)
  2012. wait(1.0E-6)
  2013. mesh.Scale = Vector3.new(0.7, 0.7, 0.7)
  2014. end
  2015. wait(0.2)
  2016. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement