Advertisement
Dark_EccentricYT

Untitled

Oct 15th, 2018 (edited)
268
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 37.32 KB | None | 0 0
  1. --[[
  2. Trash script by mugex. copyright 2017.
  3. -Scripting is boring, dont do it.
  4. ]]
  5. PI,TAU=math.pi,math.pi*2
  6. RS=game:GetService"RunService"
  7. INPUT = game:GetService"UserInputService"
  8. md,mr,cfn,v3n,bcol=math.rad,math.random,CFrame.new,Vector3.new,BrickColor.new
  9. mr2 = function(a)return (mr()-mr())*a end
  10. ang=function(x,y,z)return CFrame.Angles(x or 0,y or 0,z or 0)end
  11. player=game:service'Players'.LocalPlayer
  12. mouse=player:GetMouse()
  13. char=player.Character
  14. root = char:FindFirstChild'HumanoidRootPart'
  15. torso=(char:FindFirstChild'Torso' or char:FindFirstChild'HumanoidRootPart')
  16. numkp=NumberSequenceKeypoint.new
  17. colkp=ColorSequenceKeypoint.new
  18.  
  19. local found
  20. repeat
  21. found=Workspace:FindFirstChild'M_Crystal'
  22. print(found)
  23. if found then found:Destroy()end
  24. wait()
  25. until not found
  26.  
  27. function isIn(what,tab)
  28. local res=false
  29. for i,v in next,tab do
  30. if v==what then
  31. res = true
  32. break
  33. end
  34. end
  35. return res
  36. end
  37.  
  38. DEBRIS=game:service'Debris'
  39. New = function(what)
  40. local obj,par
  41. if typeof(what) == 'Instance' then
  42. obj=what:Clone()
  43. par = what.Parent
  44. else
  45. obj=Instance.new(what)
  46. end
  47. if what=='Weld' then obj.Name='mujoint'end
  48. return function(bar)
  49. if bar and type(bar)=='table' then
  50. for arg,val in pairs(bar) do
  51. if arg=="_PP" then
  52. obj.Part0=val[1]
  53. obj.Part1=val[2]
  54. elseif arg=='_F'then
  55. val(obj)
  56. else
  57. if pcall(function()return obj[arg] end) then
  58. obj[arg]=val
  59. end
  60. end
  61. end
  62.  
  63. obj.Parent = par or (bar._P or nil)
  64. end
  65. _4=obj
  66. return obj
  67. end
  68. end
  69. Edit = function(what)
  70. return function(args)
  71. for ind,obj in next,what do
  72. for arg,val in next,args do
  73. local child,argu = arg:match"(.+)%.(.+)"
  74. if child and argu then
  75. if pcall(function()return obj[child][argu] end) then
  76. obj[child][argu]=val
  77. end
  78. else
  79. if arg=='_F'then
  80. val(ind,obj)
  81. elseif pcall(function()return obj[arg]end) then
  82. obj[arg]=val
  83. end
  84. end
  85. end
  86. end
  87. local t = {}
  88. for i,v in pairs(what) do
  89. table.insert(t,v)
  90. end
  91. return unpack(t)
  92. end
  93. end
  94. udim=function(a,b,c,d)
  95. if type(a)=='string'then
  96. x,y=tostring(a):match('([%+%d%.%-%/%*]+),([%+%d%.%-%/%*]+)')
  97. return UDim2.new(x or 0,x2 or 0,y or 0,y2 or 0)
  98. else
  99. return UDim2.new(a or 0,c or 0,b or 0,d or 0)
  100. end end
  101.  
  102. pcall(function()char.Pat:Destroy()end)
  103. m=Instance.new("Model",char)m.Name='Pat'
  104.  
  105. for i=0,10 do --quickuses
  106. getfenv(0)['_'..i] = nil
  107. end
  108.  
  109. colors={base=bcol'White'.Color;
  110. second=bcol'Black'.Color;
  111. ear=bcol'Pink'.Color;
  112. tentacle=bcol'New Yeller'.Color}
  113.  
  114. Part = setmetatable({
  115. material = 'Plastic';
  116. cancollide = false;
  117. anchored = false;
  118. parent = nil;
  119. color = "White"
  120. },{
  121. __call = function(prefs,x,y,z,col,tr,an,cc,par)
  122. local part = Instance.new("Part")
  123. part.CanCollide = cc or prefs.cancollide
  124. part.Transparency = tr or 0
  125. part.Material = prefs.material
  126. part.Size = Vector3.new(x or 0, y or 0, z or 0)
  127. part.Anchored = an or prefs.anchored
  128. if col and typeof(col) == 'Color3' then
  129. part.Color = col
  130. else
  131. part.BrickColor = BrickColor.new(col or prefs.color)
  132. end
  133. for i,v in pairs(Enum.NormalId:GetEnumItems())do
  134. part[v.Name..'Surface'] = 10
  135. end
  136. part.Parent = prefs.parent or m
  137. _1 = part
  138. return part
  139. end;
  140. })
  141. Mesh = function(parent,mesh_id,scale_x,scale_y,scale_z)
  142. local instance_name = (mesh_id == 'cyl' and 'CylinderMesh') or (mesh_id == 'bl' and 'BlockMesh') or 'SpecialMesh'
  143. local mesh = Instance.new(instance_name)
  144. if instance_name == 'SpecialMesh' then
  145. if mesh_id:match('//') then
  146. mesh.MeshId = mesh_id
  147. else
  148. if mesh_id == 'sph' then
  149. mesh.MeshType = 3
  150. elseif mesh_id == 'wdg' then
  151. mesh.MeshType = 2
  152. end
  153. end
  154. end
  155. mesh.Scale = Vector3.new(scale_x or 1,scale_y or 1, scale_z or 1)
  156. mesh.Parent = parent or nil
  157. _2 = mesh
  158. return mesh
  159. end
  160.  
  161. function C(...)
  162. local a={...}
  163. local cf = CFrame.new(a[2] or 0,a[3] or 0,a[4] or 0) * CFrame.Angles(a[5] or 0,a[6] or 0,a[7] or 0)
  164. -- print(typeof(a[1]))
  165. if typeof(a[1]) == 'Instance' then
  166. return a[1].CFrame * cf
  167. elseif typeof(a[1]) == 'CFrame' then
  168. return a[1] * cf
  169. elseif typeof(a[1]) == 'number' then
  170. return CFrame.new(a[1] or 0,a[2] or 0,a[3] or 0) * CFrame.Angles(a[4] or 0,a[5] or 0,a[6] or 0)
  171. end
  172. end
  173.  
  174. Weld = function(p0,p1,c1,c0)
  175. if p0.Name~='Torso' then p0.Position=p1.Position end
  176. local weld=Instance.new("Motor")
  177. weld.Part0,weld.Part1,weld.C0,weld.C1 = p0,p1,c0 or CFrame.new(),c1 or CFrame.new()
  178. weld.Parent=p0
  179. weld.MaxVelocity=.1
  180. return weld
  181. end
  182. meshes={
  183. spike = {id="rbxassetid://1033714";scale=v3n(0.5, 1.5, 0.5)};
  184. diamond = {id='rbxassetid://9756362';scale=v3n(0.75, 0.75, 0.75)};
  185. squid = {id='rbxassetid://118262597';scale=v3n(2, 1, 2.25)};
  186. ring = {id='rbxassetid://3270017';scale=v3n(1, 1, 6)};
  187. emerald = {id='rbxassetid://499505913';scale=v3n(0.005, 0.007, 0.005)};
  188. gear = {id='rbxassetid://156292343';scale=v3n(1.25,1.25,18);}
  189. }
  190. pcall(function()char.Pat:Destroy()end)
  191. m=Instance.new("Model",char)m.Name='Pat'
  192.  
  193. Joints={}
  194. function Pose(tab)
  195. for i,v in pairs(tab)do
  196. Joints[i].desired = v
  197. end
  198. end
  199.  
  200. function Pose2(tab)
  201. for j,v in pairs(tab)do
  202. Joints[j].pre=Joints[j].w.C0
  203. end
  204. for i=0,1,.1 do
  205. for j,c in pairs(tab)do
  206. Joints[j].w.C0=Joints[j].pre:lerp(Joints[j].n_c0*c,i)
  207. end
  208. wait()
  209. end
  210. end
  211. Joint={
  212. new=function(name,weld,c0,c1)
  213. local joint={
  214. w=weld;
  215. part1=weld.Part1;
  216. n_c0=(c0 or weld.C0);
  217. n_c1=(c1 or weld.C1);
  218. name=name;
  219. pre=0;
  220. _desired=weld.C0;
  221. spd=.4;
  222. lock=false;
  223. can_anim=true;
  224. previous=weld.C0;
  225. }
  226. function joint:revertToOrig()
  227. self.w.C0=self.n_c0
  228. self.w.C1=self.n_c1
  229. end
  230. function joint:Tween(a,step)
  231. local start=self.w.C0
  232. for i=0,1,step or .1 do
  233. self.w.C0=start:lerp(self.n_c0*a,i)
  234. wait()
  235. end
  236. end
  237.  
  238. setmetatable(joint,{
  239. __newindex=function(t,i,v)
  240. if i == 'desired' then
  241. t._desired = t.n_c0*v
  242. end
  243. end;
  244. })
  245.  
  246. Joints[name]=joint
  247. getfenv(0)[name]=Joints[name]
  248. return joint
  249. end
  250. }
  251. weld_container=New"Folder"{_P=m}
  252.  
  253.  
  254. info={
  255. RightShoulder = {n_c0=cfn(1,0.5,0),n_c1=cfn(-.5,0.5,0)};
  256. LeftShoulder = {n_c0=cfn(-1,0.5,0),n_c1=cfn(0.5,0.5,0)};
  257. RightHip = {n_c0=cfn(1,-1,0),n_c1=cfn(0.5,1,0)};
  258. LeftHip = {n_c0=cfn(-1,-1,0),n_c1=cfn(-0.5,1,0)};
  259. Root = {n_c0=cfn(0,0,0,-1,0,0,0,0,1,0,1,-0);
  260. n_c1=cfn(0,0,0,-1,-0,-0,0,0,1,0,1,0)};
  261. Neck = {n_c0=cfn(0,1,0,-1,-0,-0,0,0,1,0,1,0);n_c1=cfn(-0,-.5,-0,-1,-0,-0,0,0,1,0,1,0)};
  262. }
  263.  
  264. Joint.new('RightHip',New"Weld"{_P=m;_PP={char['Right Leg'],char['Torso']};
  265. C0 = info.RightHip.n_c1; C1 = info.RightHip.n_c0
  266. })
  267.  
  268. Joint.new('LeftHip',New"Weld"{_P=m;_PP={char['Left Leg'],char['Torso']};
  269. C0 = info.LeftHip.n_c1; C1 = info.LeftHip.n_c0
  270. })
  271.  
  272.  
  273. Joint.new('RightShoulder',New"Weld"{_P=m;_PP={char['Right Arm'],char['Torso']};
  274. C0 = info.RightShoulder.n_c1; C1 = info.RightShoulder.n_c0
  275. })
  276.  
  277. Joint.new('LeftShoulder',New"Weld"{_P=m;_PP={char['Left Arm'],char['Torso']};
  278. C0 = info.LeftShoulder.n_c1; C1 = info.LeftShoulder.n_c0
  279. })
  280.  
  281. Joint.new('Root',New"Weld"{_P=m;_PP={char['HumanoidRootPart'],char['Torso']};
  282. C0 = info.Root.n_c0; C1 = info.Root.n_c1
  283. })
  284. Joint.new('Neck',New"Weld"{_P=m;_PP={char['Torso'],char['Head']};
  285. C0 = info.Neck.n_c0; C1 = info.Neck.n_c1
  286. })
  287.  
  288. function findHum(pos,rad,hum2)
  289. local hums={}
  290. function check(a)
  291. local res=false
  292. for i,ho in pairs(hums)do
  293. if a==ho then res=true end
  294. end
  295. return res
  296. end
  297. for i,v in pairs(Workspace:children())do
  298. if v:IsA'Model'and v~=char and v~=(hum2 or char) then
  299. for i,q in pairs(v:children())do
  300. if q:IsA'Humanoid' and q.Parent:FindFirstChild'Torso'and(q.Torso.Position-pos).magnitude < rad then
  301. if not check(q)then
  302. table.insert(hums,q)
  303. end
  304. end
  305. end
  306. end
  307. end
  308. return hums
  309. end
  310.  
  311. function checkY(p1,p2,range,range2)
  312. local function l(a1,x,y,z,rx,ry,rz)
  313. local cf
  314. if tostring(a1):find(',') == nil then
  315. cf=a1.CFrame
  316. else cf=a1 end
  317. return cf*CFrame.new(x or 0,y or 0,z or 0)*CFrame.Angles(
  318. rx or 0,ry or 0,yz or 0)
  319. end
  320. local function checko()
  321. return ( (l(p1).X>l(p2).X-range2 and l(p1).X<l(p2).X+range2) and (l(p1).Z>l(p2).Z-range2 and l(p1).Z<l(p2).Z+range2) )
  322. end
  323. if range2 then
  324. return (l(p1).Y > l(p2).Y-range and l(p2).Y < l(p2).Y+range) and checko()
  325. else
  326. return (l(p1).Y > l(p2).Y-range and l(p2).Y < l(p2).Y+range)
  327. end
  328. end
  329.  
  330. mouse = player:GetMouse()
  331. function wave()
  332. Edit(Joints){can_anim=false}
  333. Pose2{
  334. RightShoulder=ang(md'-165',md'75')
  335. }
  336. end
  337.  
  338. function findAllParts(pos,radius)
  339. local min,max = math.min,math.max
  340. local list={}
  341. local pos1,pos2=l(cfn(pos),-radius*3,-radius*3,-radius*3).p,l(cfn(pos),radius*3,radius*3,radius*3).p
  342. local reg=Region3.new(v3n(min(pos1.x,pos2.x),min(pos1.y,pos2.y),min(pos1.z,pos2.z)),
  343. v3n(max(pos1.x,pos2.x),max(pos1.y,pos2.y),max(pos1.z,pos2.z)))
  344. for i,v in pairs(Workspace:FindPartsInRegion3WithIgnoreList(reg,{character})) do
  345. if (v.Position-pos).magnitude<radius and v.Name~='Base' then
  346. table.insert(list,v)
  347. end
  348. end
  349. return list
  350. end
  351.  
  352. kanjis={
  353. K='[{"r": [0.0, 0.0, 0.0], "s": [0.14905, 1.31196, 0.77161], "p": [-0.168, 3.722, 0.0]}, {"r": [0.0, -0.0, -1.379], "s": [0.09248, 0.5817, 0.77161], "p": [0.416, 4.379, 0.0]}, {"r": [0.0, -0.0, -1.379], "s": [0.09248, 0.5817, 0.77161], "p": [0.375, 3.766, 0.0]}, {"r": [0.0, -0.0, -1.452], "s": [0.10957, 0.5817, 0.77161], "p": [0.466, 3.147, 0.0]}, {"r": [0.0, -0.0, -0.035], "s": [0.14905, 0.86088, 0.77161], "p": [-0.95, 3.97, 0.0]}, {"r": [0.0, -0.0, -0.593], "s": [0.10666, 0.4885, 0.77161], "p": [-1.193, 2.759, 0.0]}, {"r": [0.0, -0.0, -1.41], "s": [0.10666, 0.63405, 0.77161], "p": [-1.733, 3.016, 0.0]}, {"r": [0.0, -0.0, -1.341], "s": [0.10666, 0.46018, 0.77161], "p": [-1.517, 3.565, 0.0]}, {"r": [0.0, -0.0, -1.466], "s": [0.10666, 0.46018, 0.77161], "p": [-1.512, 4.134, 0.0]}, {"r": [0.0, -0.0, 0.772], "s": [0.10666, 0.35897, 0.77161], "p": [-0.4, 2.094, 0.0]}, {"r": [0.0, -0.0, 0.415], "s": [0.10666, 0.35897, 0.77161], "p": [-1.259, 1.882, 0.0]}, {"r": [0.0, -0.0, 0.748], "s": [0.10666, 0.35897, 0.77161], "p": [-0.889, 1.321, 0.0]}, {"r": [0.0, -0.0, 1.358], "s": [0.10701, 0.36105, 0.77161], "p": [-0.348, 1.014, 0.0]}, {"r": [0.0, -0.0, 1.707], "s": [0.10666, 0.35897, 0.77161], "p": [0.324, 0.987, 0.0]}, {"r": [0.0, -0.0, 1.929], "s": [0.10666, 0.2714, 0.77161], "p": [0.911, 1.126, 0.0]}, {"r": [0.0, -0.0, 0.819], "s": [0.10666, 0.41845, 0.77161], "p": [0.749, 1.528, 0.0]}, {"r": [0.0, -0.0, 0.827], "s": [0.10666, 0.55233, 0.77161], "p": [1.067, 2.153, 0.0]}, {"r": [0.0, -0.0, -0.468], "s": [0.10666, 0.50675, 0.77161], "p": [-1.894, 1.606, 0.0]}, {"r": [0.0, 0.0, -3.205], "s": [0.21417, 1.82215, 0.77161], "p": [-0.74, -2.153, 0.0]}, {"r": [0.0, 0.0, -2.335], "s": [0.16913, 0.66113, 0.77161], "p": [1.531, -2.051, 0.0]}, {"r": [0.0, 0.0, -3.675], "s": [0.14808, 0.8434, 0.77161], "p": [0.423, -1.795, 0.0]}, {"r": [0.0, -0.0, -1.95], "s": [0.12381, 0.3377, 0.77161], "p": [-0.41, -1.401, 0.0]}, {"r": [0.0, 0.0, -3.428], "s": [0.12381, 0.45878, 0.77161], "p": [-1.326, -1.844, 0.0]}, {"r": [0.0, -0.0, -4.059], "s": [0.14808, 0.8434, 0.77161], "p": [0.808, -3.718, 0.0]}, {"r": [0.0, -0.0, -4.059], "s": [0.14808, 0.6516, 0.77161], "p": [0.887, -3.086, 0.0]}, {"r": [0.0, -0.0, -4.059], "s": [0.14808, 0.60136, 0.77161], "p": [0.753, -2.553, 0.0]}, {"r": [0.0, -0.0, -4.535], "s": [0.14808, 0.8434, 0.77161], "p": [1.4, -1.479, 0.0]}, {"r": [0.0, -0.0, -4.535], "s": [0.14808, 0.80566, 0.77161], "p": [0.815, -0.874, 0.0]}, {"r": [0.0, -0.0, -3.87], "s": [0.14808, 0.60217, 0.77161], "p": [0.507, -0.519, 0.0]}, {"r": [0.0, -0.0, -5.446], "s": [0.14808, 0.38762, 0.77161], "p": [1.499, -0.71, 0.0]}, {"r": [0.0, 0.0, -1.598], "s": [0.10037, 0.46187, 0.77161], "p": [2.356, -2.543, 0.0]}, {"r": [0.0, 0.0, -2.319], "s": [0.10037, 0.15496, 0.77161], "p": [2.055, -2.458, 0.0]}]'
  354. }
  355. letters={
  356. A='[{"s": [0.34, 0.1, 0.102], "r": [0.0, 0.0, 0.0], "p": [0.001, -0.05, -0.09]}, {"s": [0.1, 0.1, 1.051], "r": [0.0, -0.262, -0.0], "p": [0.289, 0.05, 0.036]}, {"s": [0.1, 0.1, 1.031], "r": [0.0, 0.262, 0.0], "p": [-0.268, 0.05, 0.011]}]';
  357. B='[{"s": [0.1, 0.1, 0.389], "r": [-0.0, -1.931, 0.0], "p": [0.283, 0.0, -0.822]}, {"s": [0.1, 0.1, 0.48], "r": [0.0, -0.7, -0.0], "p": [0.226, 0.0, -0.292]}, {"s": [0.1, 0.1, 0.48], "r": [-0.0, -2.094, 0.0], "p": [0.375, 0.0, 0.245]}, {"s": [0.1, 0.1, 0.48], "r": [0.0, -0.96, -0.0], "p": [0.293, -0.0, 0.762]}, {"s": [0.1, 0.1, 1.087], "r": [0.0, 0.0, 0.0], "p": [-0.142, -0.0, 0.033]}]';
  358. C='[{"s": [0.133, 0.103, 0.411], "r": [-0.0, 1.571, 0.0], "p": [0.121, 0.006, 0.939]}, {"s": [0.133, 0.103, 0.385], "r": [-0.0, 0.913, 0.0], "p": [-0.512, 0.006, 0.732]}, {"s": [0.133, 0.103, 0.499], "r": [-0.0, 0.0, 0.0], "p": [-0.765, 0.006, 0.103]}, {"s": [0.133, 0.103, 0.499], "r": [-0.0, -0.966, -0.0], "p": [-0.411, 0.006, -0.569]}, {"s": [0.133, 0.103, 0.349], "r": [0.0, 1.419, 0.0], "p": [0.241, 0.006, -0.777]}]';
  359. D='[{"s": [0.1, 0.1, 0.586], "r": [-0.0, -1.047, 0.0], "p": [0.06, 0.0, 0.617]}, {"s": [0.1, 0.1, 0.437], "r": [0.0, 0.0, 0.0], "p": [0.518, -0.0, -0.027]}, {"s": [0.1, 0.1, 1.024], "r": [0.0, 0.0, 0.0], "p": [-0.497, -0.0, -0.027]}, {"s": [0.1, 0.1, 0.586], "r": [-0.0, 1.047, -0.0], "p": [0.06, -0.0, -0.671]}]';
  360. E='[{"s": [0.1, 0.1, 0.5], "r": [-0.0, 1.571, 0.0], "p": [0.011, 0.0, -0.927]}, {"s": [0.1, 0.1, 0.5], "r": [-0.0, 1.571, 0.0], "p": [0.011, 0.0, -0.027]}, {"s": [0.1, 0.1, 1.0], "r": [0.0, 0.0, 0.0], "p": [-0.533, 0.0, -0.027]}, {"s": [0.1, 0.1, 0.5], "r": [-0.0, 1.571, 0.0], "p": [0.011, 0.0, 0.873]}]';
  361. F='[{"s": [0.1, 0.1, 0.5], "r": [-0.0, 1.571, 0.0], "p": [0.011, 0.0, 0.877]}, {"s": [0.1, 0.1, 1.0], "r": [0.0, 0.0, 0.0], "p": [-0.533, -0.0, -0.022]}, {"s": [0.1, 0.1, 0.5], "r": [-0.0, 1.571, 0.0], "p": [0.011, 0.0, 0.177]}]';
  362. G='[{"s": [0.133, 0.103, 0.499], "r": [0.0, 1.419, 0.0], "p": [0.386, 0.006, -0.755]}, {"s": [0.133, 0.103, 0.411], "r": [-0.0, 1.571, 0.0], "p": [0.121, 0.006, 0.939]}, {"s": [0.133, 0.103, 0.238], "r": [-0.0, -1.571, 0.0], "p": [0.4, 0.006, 0.053]}, {"s": [0.133, 0.103, 0.385], "r": [-0.0, 0.913, 0.0], "p": [-0.512, 0.006, 0.732]}, {"s": [0.133, 0.103, 0.499], "r": [-0.0, 0.0, 0.0], "p": [-0.765, 0.006, 0.103]}, {"s": [0.133, 0.103, 0.499], "r": [-0.0, -0.966, -0.0], "p": [-0.411, 0.006, -0.569]}, {"s": [0.133, 0.103, 0.499], "r": [0.0, 0.0, 0.0], "p": [0.765, 0.006, -0.313]}]';
  363. H='[{"s": [0.1, 0.1, 0.547], "r": [-0.0, 1.571, 0.0], "p": [-0.002, 0.0, -0.023]}, {"s": [0.1, 0.1, 1.0], "r": [0.0, 0.0, 0.0], "p": [0.599, -0.0, -0.022]}, {"s": [0.1, 0.1, 1.0], "r": [0.0, 0.0, 0.0], "p": [-0.601, -0.0, -0.022]}]';
  364. I='[{"s": [0.1, 0.1, 1.0], "r": [0.0, 0.0, 0.0], "p": [0.01, 0.0, -0.027]}]';
  365. J='[{"s": [0.1, 0.1, 0.247], "r": [0.0, 0.607, 0.0], "p": [0.308, -0.0, -0.686]}, {"s": [0.1, 0.1, 0.221], "r": [-0.0, 0.009, -0.0], "p": [-0.431, 0.0, -0.46]}, {"s": [0.1, 0.1, 0.221], "r": [-0.0, -0.929, -0.0], "p": [-0.297, 0.0, -0.733]}, {"s": [0.1, 0.1, 0.216], "r": [-0.0, 1.571, 0.0], "p": [0.036, 0.0, -0.846]}, {"s": [0.1, 0.1, 0.786], "r": [0.0, 0.0, 0.0], "p": [0.431, -0.0, 0.246]}]';
  366. K='[{"s": [0.104, 0.104, 0.707], "r": [-0.0, -0.785, -0.0], "p": [0.298, 0.0, -0.486]}, {"s": [0.104, 0.104, 0.679], "r": [0.0, 0.785, 0.0], "p": [0.25, -0.0, 0.486]}, {"s": [0.104, 0.104, 1.04], "r": [0.0, 0.0, 0.0], "p": [-0.298, -0.0, 0.003]}]';
  367. L='[{"s": [0.1, 0.1, 1.023], "r": [0.0, 0.0, 0.0], "p": [-0.242, -0.0, -0.033]}, {"s": [0.1, 0.1, 0.586], "r": [-0.0, 1.571, 0.0], "p": [0.244, 0.0, -0.956]}]';
  368. M='[{"s": [0.106, 0.169, 1.014], "r": [0.0, 0.175, 0.0], "p": [0.182, 0.0, -0.029]}, {"s": [0.106, 0.169, 1.014], "r": [0.0, -0.175, -0.0], "p": [0.515, 0.0, -0.025]}, {"s": [0.106, 0.169, 1.014], "r": [0.0, -0.175, -0.0], "p": [-0.161, 0.0, -0.025]}, {"s": [0.106, 0.169, 1.014], "r": [0.0, 0.175, 0.0], "p": [-0.494, 0.0, -0.029]}]';
  369. N='[{"s": [0.106, 0.169, 1.014], "r": [0.0, 0.0, 0.0], "p": [-0.365, 0.0, 0.011]}, {"s": [0.106, 0.169, 1.105], "r": [0.0, -0.501, -0.0], "p": [0.179, 0.0, 0.004]}, {"s": [0.106, 0.169, 1.014], "r": [0.0, 0.0, 0.0], "p": [0.723, 0.0, -0.003]}]';
  370. O='[{"s": [0.15, 0.15, 0.276], "r": [-0.0, -0.611, 0.0], "p": [0.323, 0.0, 0.67]}, {"s": [0.15, 0.15, 0.276], "r": [-0.0, 0.611, 0.0], "p": [-0.302, 0.0, 0.67]}, {"s": [0.15, 0.15, 0.277], "r": [-0.0, 4.712, 0.0], "p": [0.01, 0.0, 0.833]}, {"s": [0.15, 0.15, 0.553], "r": [0.0, 0.0, 0.0], "p": [0.454, -0.0, -0.022]}, {"s": [0.15, 0.15, 0.276], "r": [-0.0, 0.611, -0.0], "p": [0.323, 0.0, -0.716]}, {"s": [0.15, 0.15, 0.276], "r": [-0.0, 4.712, 0.0], "p": [0.011, 0.0, -0.878]}, {"s": [0.15, 0.15, 0.276], "r": [-0.0, -0.611, -0.0], "p": [-0.302, 0.0, -0.715]}, {"s": [0.15, 0.15, 0.553], "r": [0.0, 0.0, 0.0], "p": [-0.433, -0.0, -0.022]}]';
  371. P='[{"s": [0.1, 0.1, 0.547], "r": [0.0, 0.0, 0.0], "p": [0.412, 0.0, 0.421]}, {"s": [0.1, 0.1, 0.5], "r": [-0.0, 1.571, 0.0], "p": [0.011, 0.0, -0.027]}, {"s": [0.1, 0.1, 1.0], "r": [0.0, 0.0, 0.0], "p": [-0.533, 0.0, -0.027]}, {"s": [0.1, 0.1, 0.5], "r": [-0.0, 1.571, 0.0], "p": [0.011, 0.0, 0.873]}]';
  372. Q='[{"s": [0.15, 0.15, 0.294], "r": [-0.0, -0.611, -0.0], "p": [-0.391, 0.0, -0.73]}, {"s": [0.15, 0.15, 0.553], "r": [0.0, 0.0, 0.0], "p": [-0.533, -0.0, -0.023]}, {"s": [0.092, 0.15, 0.415], "r": [-0.0, -0.611, -0.0], "p": [0.382, -0.0, -0.801]}, {"s": [0.15, 0.15, 0.337], "r": [-0.0, 4.712, 0.0], "p": [-0.009, 0.0, -0.908]}, {"s": [0.15, 0.15, 0.294], "r": [-0.0, 0.611, -0.0], "p": [0.374, 0.0, -0.73]}, {"s": [0.15, 0.15, 0.553], "r": [0.0, 0.0, 0.0], "p": [0.516, -0.0, -0.023]}, {"s": [0.15, 0.15, 0.357], "r": [-0.0, 4.712, 0.0], "p": [-0.008, 0.0, 0.832]}, {"s": [0.15, 0.15, 0.276], "r": [-0.0, 0.611, 0.0], "p": [-0.402, 0.0, 0.67]}, {"s": [0.15, 0.15, 0.276], "r": [-0.0, -0.611, 0.0], "p": [0.385, 0.0, 0.67]}]';
  373. R='[{"s": [0.1, 0.1, 0.402], "r": [-0.0, 3.235, 0.0], "p": [0.238, -0.002, 0.29]}, {"s": [0.104, 0.104, 0.774], "r": [-0.0, 2.1, -0.0], "p": [-0.012, 0.002, -0.5]}, {"s": [0.1, 0.1, 0.454], "r": [0.0, 1.506, 0.0], "p": [-0.16, -0.002, -0.05]}, {"s": [0.1, 0.1, 0.5], "r": [0.0, -1.301, -0.0], "p": [-0.142, -0.002, 0.738]}, {"s": [0.1, 0.1, 1.0], "r": [0.0, 0.0, 0.0], "p": [-0.687, -0.002, -0.028]}]';
  374. S='[{"s": [0.095, 0.095, 0.205], "r": [-0.0, -0.776, -0.0], "p": [-0.469, -0.022, -0.91]}, {"s": [0.095, 0.095, 0.311], "r": [-0.0, 1.571, -0.0], "p": [-0.082, -0.022, -1.028]}, {"s": [0.095, 0.095, 0.27], "r": [-0.0, 0.664, 0.0], "p": [0.321, -0.022, -0.852]}, {"s": [0.095, 0.095, 0.27], "r": [-0.0, -0.349, -0.0], "p": [0.381, -0.022, -0.475]}, {"s": [0.095, 0.095, 0.27], "r": [-0.0, -0.881, 0.0], "p": [0.109, -0.022, -0.09]}, {"s": [0.095, 0.095, 0.27], "r": [-0.0, -0.436, 0.0], "p": [-0.189, -0.022, 0.294]}, {"s": [0.095, 0.095, 0.27], "r": [-0.0, 0.436, 0.0], "p": [-0.189, -0.022, 0.704]}, {"s": [0.095, 0.095, 0.27], "r": [-0.0, 1.571, 0.0], "p": [0.11, -0.022, 0.894]}, {"s": [0.095, 0.095, 0.27], "r": [-0.0, -0.785, 0.0], "p": [0.505, -0.022, 0.731]}]';
  375. T='[{"s": [0.1, 0.1, 1.0], "r": [0.0, 0.0, 0.0], "p": [-0.001, -0.0, -0.022]}, {"s": [0.1, 0.1, 0.911], "r": [-0.0, 1.571, 0.0], "p": [-0.006, 0.0, 0.877]}]';
  376. U='[{"s": [0.1, 0.175, -0.38], "r": [-3.142, 2.313, 3.142], "p": [0.415, 0.0, -0.704]}, {"s": [0.1, 0.175, -0.75], "r": [-3.142, -3.142, 3.142], "p": [0.662, 0.0, 0.23]}, {"s": [0.1, 0.175, -0.179], "r": [-3.141, -1.573, 3.141], "p": [0.026, 0.0, -0.935]}, {"s": [0.1, 0.175, -0.75], "r": [-3.142, -3.142, 3.142], "p": [-0.614, 0.0, 0.232]}, {"s": [0.1, 0.175, -0.38], "r": [-3.142, -2.313, 3.142], "p": [-0.367, 0.0, -0.702]}]';
  377. V='[{"s": [0.106, 0.169, 1.014], "r": [0.0, 0.364, 0.0], "p": [0.313, 0.0, -0.067]}, {"s": [0.106, 0.169, 1.014], "r": [0.0, -0.364, 0.0], "p": [-0.344, 0.0, -0.074]}]';
  378. W='[{"s": [0.106, 0.169, 1.014], "r": [0.0, 0.175, -0.0], "p": [0.515, 0.0, -0.025]}, {"s": [0.106, 0.169, 1.014], "r": [0.0, -0.175, 0.0], "p": [0.182, 0.0, -0.029]}, {"s": [0.106, 0.169, 1.014], "r": [0.0, -0.175, 0.0], "p": [-0.494, 0.0, -0.029]}, {"s": [0.106, 0.169, 1.014], "r": [0.0, 0.175, -0.0], "p": [-0.161, 0.0, -0.025]}]';
  379. X='[{"s": [0.15, 0.15, -1.323], "r": [0.0, -0.785, 0.0], "p": [0.007, -0.0, -0.03]}, {"s": [0.15, 0.15, -1.323], "r": [0.0, 0.785, 0.0], "p": [0.007, -0.0, -0.03]}]';
  380. Y='[{"s": [0.11, 0.11, 0.55], "r": [0.0, 0.611, 0.0], "p": [0.324, 0.01, 0.421]}, {"s": [0.11, 0.11, 0.55], "r": [0.0, -0.524, -0.0], "p": [-0.264, 0.01, 0.453]}, {"s": [0.11, 0.11, 0.55], "r": [0.0, 0.0, 0.0], "p": [0.011, 0.01, -0.576]}]';
  381. Z='[{"s": [0.1, 0.1, 0.586], "r": [-0.0, 1.571, 0.0], "p": [0.269, 0.0, 0.915]}, {"s": [0.1, 0.1, 1.023], "r": [0.0, 0.524, 0.0], "p": [0.257, -0.0, -0.021]}, {"s": [0.1, 0.1, 0.586], "r": [-0.0, 1.571, 0.0], "p": [0.244, 0.0, -0.956]}]';
  382. }
  383. function doKanji(letter,pos,scale,color,part)
  384. local letter_mod = Instance.new("Model", m)
  385. local list2 = {}
  386. local list = game:service'HttpService':JSONDecode(kanjis[letter])
  387. local cnt=0
  388. for i,v in pairs(list)do
  389. cnt = cnt+1
  390. local p=Part(1,1,1,color or 'Royal purple')
  391. p.Parent=letter_mod
  392. p.Anchored=true
  393. p.CFrame=C(pos,v.p[1]*scale/2,v.p[2]*scale/2,v.p[3]*scale/2)*ang(unpack(v.r))
  394. local msh = Mesh( p,(v.w and 'w' or 'bl'),v.s[1],v.s[2],.1)
  395. msh.Scale = msh.scale*scale+v3n(0,0.001*cnt,0)
  396. -- msh.Scale=v3n(msh.Scale.x,msh.Scale.y,.01)
  397. list2[p] = {Scale=msh.Scale,CFrame=p.CFrame}
  398. -- p.CFrame=pos
  399. -- msh.Scale=v3n(0,0,0)
  400. end
  401. if part then
  402. for _,v in pairs(letter_mod:children()) do
  403. v.Anchored=false
  404. New"Weld"{_P=v;_PP={part,v};
  405. C0=cfn();
  406. C1=v.CFrame:toObjectSpace(part.CFrame);
  407. }
  408. end
  409. end
  410. return letter_mod
  411. end
  412.  
  413. function doLetter(letter,pos,scale,color)
  414. local letter_mod = Instance.new("Model", m)
  415. local list2 = {}
  416. local list = game:service'HttpService':JSONDecode(letters[letter])
  417. local cnt=0
  418. for i,v in pairs(list)do
  419. cnt = cnt+1
  420. local p=Part(1,1,1,color or 'Royal purple')
  421. p.Parent=letter_mod
  422. p.Anchored=true
  423. p.CFrame=C(pos,v.p[1]*scale/2,v.p[2]*scale/2,v.p[3]*scale/2)*ang(unpack(v.r))
  424. local msh = Mesh( p,(v.w and 'w' or 'bl'),unpack(v.s) )
  425. msh.Scale = msh.Scale*scale+v3n(0,0.001*cnt,0)
  426. -- msh.Scale=v3n(msh.Scale.x,msh.Scale.y,.01)
  427. _1.Material='Neon'
  428. list2[p] = {Scale=msh.Scale,CFrame=p.CFrame}
  429. -- p.CFrame=pos
  430. -- msh.Scale=v3n(0,0,0)
  431. end
  432.  
  433. return letter_mod
  434. end
  435.  
  436. list = {
  437. Root = CFrame.Angles(0.0,0.0,0.0):inverse();
  438. RightShoulder = CFrame.Angles(-0.8238850235939026,0.3296844959259033,1.862011432647705):inverse();
  439. RightHip = CFrame.Angles(0.0,0.0,0.0):inverse();
  440. LeftShoulder = CFrame.Angles(0.0,0.0,0.0):inverse();
  441. LeftHip = CFrame.Angles(0.0,0.0,0.0):inverse();
  442. Neck = CFrame.Angles(0.0,0.0,0.0):inverse();
  443. }
  444. -- doLetter('Kanji',l(torso,0,0,-5,PI),.25,'Cyan')
  445. function doWord(word,pos,scale,col,appear_style)
  446. stpos=pos
  447. local prev=0
  448. local modls={}
  449. for w in word:gmatch('%w') do
  450. local p=doLetter(string.upper(w),stpos*cfn(prev,0,0),scale,(col=='r' and BrickColor.random().Name or (col or 'Cyan')))
  451. prev=prev+scale
  452. table.insert(modls,p)
  453. -- wait()
  454. end
  455. modls.ps={}
  456. for _,v in pairs(modls) do
  457. if type(v)~='function' and type(v)~='table' then
  458. for _,v2 in pairs(v:children())do
  459. table.insert(modls.ps,v2)
  460. end
  461. end
  462. end
  463. if appear_style and appear_style == 'fade' then --coolio
  464. local mshl={}
  465. for _,v in pairs(modls.ps) do
  466. local msh=v:FindFirstChildOfClass"BlockMesh"
  467. if msh then
  468. mshl[msh] = {msh.Scale,msh.Parent.Transparency}
  469. end
  470. end
  471. for i=0,1,.1 do
  472. for m,s in pairs(mshl)do
  473. m.Scale = s[1]*(i)
  474. m.Parent.Transparency = s[2]*(i)
  475. end
  476. wait()
  477. end
  478. end
  479. function modls:weld(part)
  480.  
  481. for i,v in pairs(self.ps) do
  482. v.Anchored=false
  483. New"Weld"{_P=v;_PP={part,v};
  484. C0=cfn();
  485. C1=v.CFrame:toObjectSpace(part.CFrame);
  486. }
  487. end
  488. return self.ps
  489. end
  490. function modls:remove(style)
  491. if style and style == 'fade' then
  492. local mshl={}
  493. for _,v in pairs(self.ps) do
  494. local msh=v:FindFirstChildOfClass"BlockMesh"
  495. if msh then
  496. mshl[msh] = {msh.Scale,msh.Parent.Transparency}
  497. end
  498. end
  499.  
  500. for i=0,1,.1 do
  501. for m,s in pairs(mshl)do
  502. m.Scale = s[1]*(1-i)
  503. m.Parent.Transparency = s[2]*(1-i)
  504. end
  505. wait()
  506. end
  507. end
  508. for _,v in pairs(self) do
  509. if type(v) ~= 'function' and type(v)~='table' then
  510. v:Destroy()
  511. end
  512. end
  513. end
  514. return modls
  515. end
  516.  
  517. mouse.KeyDown:connect(function(key)
  518. for i,v in pairs(getfenv())do
  519. -- print(i:match'^%w%_')
  520. if i:match'^f%w%_' then
  521. local k = i:sub(2,2)
  522. if k == key then
  523. v(mouse)
  524. end
  525. end
  526. end
  527. end)
  528.  
  529. holding=true
  530. Edit(Joints){lock=true}
  531.  
  532. anim="Idle"
  533.  
  534. char_hum = char.Humanoid
  535. t_bool=tick()
  536. rarm=char['Right Arm']
  537. --Lasta täs tehdään--
  538.  
  539. hdl=Part(.25,2,.25)
  540. Joint.new('Hw',Weld(hdl,rarm,C(0,-1.1,-.5,-PI/2)))
  541.  
  542. copter=Part(2,.1,.25)Mesh(_1,'bl',1,.1,.9)
  543. a=ang(PI/2)
  544. copter_w = Weld(_1,hdl,C(0,.25)*a,a)
  545. copter_w.DesiredAngle=9e+009
  546.  
  547. bo=Part(1.25,.5,.25)
  548. Weld(_1,hdl,C(0,hdl.Size.y/2+_1.Size.y/2))
  549.  
  550. mid = Part(bo.Size.x,1.5,.25,'Black')
  551. Weld(_1,bo,C(0,bo.Size.y/2+_1.Size.y/2))
  552.  
  553. -- Weld(p2,bo,C(0,-bo.Size.y/2-p2.Size.y/2))
  554. p3 = Part(.25,.5,(1.25-.25)/2)Mesh(_1,'wdg')
  555. Weld(_1,bo,C(-.125-.25,-bo.Size.y/2-p3.Size.y/2,0,PI,PI/2))
  556. p3 = Part(.25,.5,(1.25-.25)/2)Mesh(_1,'wdg')
  557. Weld(_1,bo,C(-(-.125-.25),-bo.Size.y/2-p3.Size.y/2,0,PI,-PI/2))
  558.  
  559. cy=Part(.1,.1,.1)Mesh(_1,'cyl')
  560. Weld(_1,bo,C(mid.Size.x/5,bo.Size.y/2+.01))
  561. cy2=Part(.1,.1,.1)Mesh(_1,'cyl')
  562. Weld(_1,bo,C(-mid.Size.x/5,bo.Size.y/2+.01))
  563.  
  564. di=Part(.75,.5,.75,'Cyan')
  565. Mesh(_1,meshes.diamond.id).Scale=di.Size*meshes.diamond.scale
  566. Weld(_1,bo,C(0,-.25,0,PI/2))
  567.  
  568. --topwedges
  569. pp3=Part(.25,.25,mid.Size.x/2)Mesh(_1,'wdg')
  570. Weld(_1,mid,C(-mid.Size.x/2+_1.Size.z/2,mid.Size.y/2+.125,0,0,PI/2))
  571. pp3=Part(.25,.25,mid.Size.x/2)Mesh(_1,'wdg')
  572. Weld(_1,mid,C(-(-mid.Size.x/2+_1.Size.z/2),mid.Size.y/2+.125,0,0,-PI/2))
  573.  
  574. doKanji('K',C(mid,0,0,-.125),.25,'White',mid)
  575. doKanji('K',C(mid,0,0,.125),.25,'White',mid)
  576.  
  577. --Lasta tehty
  578.  
  579. music = New"Sound"{_P=hdl;SoundId='rbxassetid://149690685';Volume=.1;Looped=true}
  580. function ft_hail()
  581. if anim~='Dance' then
  582. anim='Dance' music:Play()
  583. elseif anim=='Dance' then anim=''music:Stop()
  584. end
  585. end
  586.  
  587. pem = Part(1,1,1,'',1)Weld(_1,torso,C(0,-3,0,PI/2))
  588. em = New"ParticleEmitter"{
  589. _P=pem;
  590. Texture = 'rbxassetid://448015838';
  591. Color = ColorSequence.new(bcol'Nougat'.Color);
  592. Lifetime = NumberRange.new(1,1.5);
  593. Transparency = NumberSequence.new{numkp(0,0),numkp(1,1)};
  594. Size = NumberSequence.new{numkp(0,.01),numkp(1,0)};
  595. Rotation = NumberRange.new(-45,45);
  596. Acceleration = v3n(0,2,0);
  597. Enabled=false;
  598. }
  599.  
  600. music2=New"Sound"{_P=hdl;SoundId='rbxassetid://441487035';Looped=true}
  601. fq_sit=function()
  602. local shoo=Part(1,1,1,'Cyan',.75)_1.Anchored=true local sm= Mesh(_1,'cyl')
  603. shoo.Material='Neon'
  604. local t={}
  605. local b=false
  606. for i=0,1,.1 do
  607. b=not b
  608. local kp=numkp(i,(i*2)/(b and 1 or 2))
  609. table.insert(t,kp)
  610. end
  611. local emitter = New"ParticleEmitter"{_P=shoo;
  612. Rate = 0;
  613. Transparency = NumberSequence.new{numkp(0,0),numkp(1,1)};
  614. Lifetime = NumberRange.new(1);
  615. Size = NumberSequence.new(t);
  616. VelocitySpread = 180;
  617. }
  618. Spawn(function()
  619. local num = nil
  620. while wait()do
  621. shoo.CFrame=C(root,0,-3)
  622. local pbs=music2.PlaybackLoudness/115
  623. -- print(pbs)
  624. if num then
  625. if pbs < num and (num-pbs) > .1 then
  626. num = nil
  627. end
  628. end
  629. if not num and pbs > .3 then
  630. num = pbs
  631. emitter:Emit(16)
  632. end
  633. sm.Scale=v3n(pbs*50,.1,pbs*50):lerp(sm.Scale,.5)
  634. end
  635. end)
  636.  
  637. if anim~='Sit' then
  638. music2:Play()
  639. anim ='Sit'
  640. else
  641. music2:Stop()
  642. anim =''
  643. end
  644. end
  645.  
  646. hit_snd=New"Sound"{_P=hdl;SoundId='rbxassetid://247985461'}
  647. slash_snd=New"Sound"{_P=hdl;SoundId='rbxassetid://134012322'}
  648. texts={
  649. 'Dork','Noob','Baka';
  650. }
  651.  
  652. raindrop_e=New"ParticleEmitter"{_P=nil;
  653. Texture='rbxassetid://282305485';
  654. Speed=NumberRange.new(4);
  655. Lifetime=NumberRange.new(.5);
  656. Color=ColorSequence.new(bcol'Cyan'.Color);
  657. VelocitySpread=180;
  658. Size=NumberSequence.new{numkp(0,.1),numkp(.5,.3),numkp(1,0)};
  659. Transparency=NumberSequence.new{numkp(0,.25),numkp(1,1)};
  660. LightEmission=.1;
  661. Rate=100;
  662. Acceleration=v3n(0,40,0);
  663. Rotation=NumberRange.new(-90,90);
  664. -- Enabled=false;
  665. }
  666. raindrop2_e=New(raindrop_e){
  667. Size=NumberSequence.new{numkp(0,1),numkp(1,0)};
  668. Lifetime=NumberRange.new(.75);
  669. Transparency=NumberSequence.new{numkp(0,.5),numkp(1,1)};
  670. Rate=40;
  671. Acceleration=v3n(0,0,0);
  672. }
  673. function fc_venus()
  674.  
  675. hold=true
  676. local con
  677. con=INPUT.InputEnded:connect(function(input)
  678. if input.KeyCode == Enum.KeyCode.C then hold=false con:disconnect() end
  679. end)
  680. anim='None'
  681. Pose{
  682. RightHip=C(0,.15)*ang(0,md'25');
  683. Root=C(0,0,.15);
  684. RightShoulder=ang(md'-175')*C(0,-.1);
  685. LeftShoulder=ang(md'35',0,md'45');
  686. Hw=C(0,0,1);
  687. }
  688. local t=0
  689. local orig = Hw.w.C1
  690. local mef=Part(10,.1,10,nil,1)_1.Anchored=true
  691. New"Decal"{
  692. _P=mef;
  693. Face='Top';
  694. Texture='rbxassetid://121088228';
  695. Color3=bcol'Cyan'.Color;
  696. Transparency=.6;
  697. }
  698. while hold do
  699. Hw.w.C1 = orig*ang(0,0,t*12)
  700. mef.CFrame=C(cfn(mouse.hit.p))*ang(0,t*7.5)
  701. local ppp=Part(.4,.4,.4,'Cyan',.8)_1.Material='Neon'_1.Anchored=true
  702. _1.CFrame=C(di)
  703. DEBRIS:AddItem(ppp,.25)
  704.  
  705. --afafafaf
  706. local rd=Part(.1,.1,.1)rd.CanCollide=true rd.Anchored=true
  707. rd.Touched:connect(function(hit)
  708. local h=hit.Parent:FindFirstChildOfClass'Humanoid'
  709. if h then h:TakeDamage(-6)end
  710. end)
  711. -- rd.CustomPhysicalProperties=PhysicalProperties.new(1,0,0)
  712. rd.CFrame=C(cfn(mouse.hit.p),mr(-5,5),20,mr(-5,5))
  713. local cl=raindrop_e:clone()
  714. cl.Parent=rd
  715. local obj,pos=Workspace:FindPartOnRay(Ray.new(rd.Position,v3n(0,-25,0),char))
  716. if obj and pos then
  717. Spawn(function()
  718. local rd_o=rd.CFrame
  719. for i=0,1,.1 do
  720. rd.CFrame=rd_o:lerp(cfn(pos),i)
  721. wait()
  722. end
  723. cl:destroy()
  724. local cl2=raindrop2_e:Clone()
  725. cl2.Parent=rd
  726.  
  727. end)
  728. end
  729.  
  730. DEBRIS:AddItem(rd,1)
  731.  
  732. _,t=wait()
  733. end
  734. music2:Stop()
  735. mef:Destroy()
  736. anim=''
  737. Pose{
  738. Hw=cfn();
  739. }
  740. Hw.w.C1=orig
  741. end
  742.  
  743. Animations = {}
  744.  
  745. function fe_coffee()
  746. local angle=ang(0)
  747. --[[
  748.  
  749. local bullet_model=New"Model"{_P=m}
  750. Part.parent=bullet_model
  751. local bullet=Part(1.5,1.5,1.5,'Cyan',.25)_1.Material='Neon'Mesh(_1,'sph')_1.Anchored=true
  752. _1.CFrame=C(torso,0,0,-3)
  753.  
  754. local mp=Part(.1,.1,.1,'',1)Weld(_1,bullet,angle,angle).DesiredAngle=9e+009
  755. for i=0,1 do
  756. local p=Part(1,1,1,'',1)Weld(_1,mp,ang(0,0,md'45'*i))
  757. for _,face in pairs{'Top','Bottom','Left','Right'} do
  758. New"ParticleEmitter"{
  759. _P = p;
  760. Lifetime = NumberRange.new(.75,1);
  761. Size = NumberSequence.new{numkp(0,.5),numkp(.5,.75),numkp(1,0)};
  762. Transparency = NumberSequence.new{numkp(0,1),numkp(.25,0),numkp(1,1)};
  763. EmissionDirection = Enum.NormalId[face];
  764. Color = ColorSequence.new{colkp(0,bcol'New Yeller'.Color),colkp(1,bcol'Lime green'.Color)};
  765. Texture = 'rbxassetid://243664672';
  766. }
  767. end
  768. end
  769. Part.parent=nil
  770.  
  771. Spawn(function()
  772. local finish = false
  773. local st_t=tick()
  774. local obj,pos
  775. while finish == false do
  776. obj,pos = Workspace:FindPartOnRay(Ray.new(C(bullet).p,C(bullet).lookVector*3),char)
  777. if ( ((tick()-st_t) > 2) or (obj ~= nil and pos ~= nil) ) then
  778. finish = true
  779. else
  780. bullet.CFrame=bullet.CFrame+bullet.CFrame.lookVector*2
  781. end
  782. wait()
  783. end
  784. if obj and pos then
  785. local h=obj.Parent:FindFirstChildOfClass"Humanoid"
  786. if h then h:TakeDamage(20) end
  787. end
  788. bullet_model:Destroy()
  789. end)
  790.  
  791. end
  792. function fv_spin()
  793. anim='None'
  794. Pose{
  795. RightShoulder=ang(md'-50',md'-15',md'45');
  796. Root=ang(md'35',0,md'65');
  797. RightHip=ang(md'-35',md'45')*ang(0,md'25');
  798. Hw=C(0,-1.4,.5)*ang(md'90')
  799. }
  800. wait(.25)
  801. Pose{
  802. Root=ang(md'-35',0,md'-65');
  803. RightShoulder=ang(md'-140',md'64');
  804. RightHip=C(0,-.25,0)*ang(md'35',0,md'-45')*ang(md'-25');
  805. Hw=C(0,-1.4,.5)*ang(PI/2)
  806. }
  807. wait(.25)
  808. anim=''
  809. ]]
  810. end
  811. ff_slash=function()anim='None'
  812. slash_snd:Play()
  813. --[[
  814. ]]
  815. local con
  816. con=mid.Touched:connect(function(hit)
  817. local h=hit.Parent:FindFirstChildOfClass'Humanoid'
  818. if h and not h:FindFirstChild'st' then
  819. Spawn(function()local t=tick()
  820. local rp=h.Parent:FindFirstChild('RootJoint',true)
  821. repeat wait()h.PlatformStand=true
  822. if rp then
  823. rp.C1=info.Root.n_c1*ang(mr(-2,2),mr(-2,2),mr(-2,2))
  824. end
  825. until (tick()-t)>1
  826. rp.C1=info.Root.n_c1
  827. h.PlatformStand=false
  828. end)
  829. local s=New"BoolValue"{_P=h;Name='st'}
  830. hit_snd.Pitch=1+((mr()-mr())*.25)
  831. hit_snd:Play()
  832. local w=doWord(texts[mr(#texts)],C(h.Torso,0,5)*ang(PI/2,PI/2),1.5,'New Yeller')
  833. wait'.25'
  834. w:remove('fade')
  835. DEBRIS:AddItem(s,1)
  836. end
  837. end)
  838. Pose{
  839. Root=C(0,0,.15)*ang(md'-5',0,md'-25');
  840. LeftHip=C(0,.15)*ang(md'5');
  841. RightHip=ang(0,0,md'-15');
  842. RightShoulder=ang(md'-140',md'25');
  843. Neck=ang(0,0,md'-15')*ang(md'-25')
  844. }
  845. wait'.15'
  846. Pose{
  847. Root=ang(md'50'+md'35');
  848. RightHip=C(0,0,-.5)*ang(md'-50',md'50');
  849. LeftHip=C(0,0,-.5)*ang(md'-50',md'-50');
  850. RightShoulder=ang(md'-90',md'-25')*ang(md'15');
  851. LeftShoulder=ang(md'35',md'15');
  852. Hw=ang(md'10',md'25');
  853. Neck=ang(md'15');
  854. }
  855.  
  856.  
  857. --[[
  858. ]]
  859. wait'.25'
  860. Pose{
  861. Root=cfn();
  862. RightShoulder=ang(md'-90');
  863. }anim=''con:disconnect()
  864. end
  865.  
  866. lunge_snd = New"Sound"{_P=hdl;SoundId='rbxassetid://134012322';Pitch=.5}
  867. fr_lunge = function()
  868. anim='None'
  869. lunge_snd:Play()
  870. Pose{
  871. Root=ang(0,0,md'-65');
  872. RightShoulder=ang(md'-90',md'65')*ang(md'45');
  873. Neck=ang(0,0,md'65');
  874. LeftShoulder=ang(md'-65',md'35');
  875. LeftHip=ang(0,0,md'15');
  876. RightHip=ang(0,md'25')
  877. }
  878. local con
  879. con=mid.Touched:connect(function(hit)
  880. local h=hit.Parent:FindFirstChildOfClass'Humanoid'
  881. if h and h.Parent~=char then
  882. h.Health=h.Health-3
  883. end
  884. end)
  885. wait(.25)
  886. Edit(Joints){desired=cfn()}
  887. Pose{
  888. Root=ang(md'5',0,md'65');
  889. RightShoulder=ang(md'-95',md'65');
  890. RightHip=ang(0,md'25',md'-5');
  891. Hw=C(0,-1.5,.5)*ang(md'90');
  892. Neck=ang(md'-5',0,md'-45');
  893. LeftShoulder=ang(md'15',0,md'-45');
  894. }wait'.1'
  895. for cnt=0,5 do --effect
  896. root.CFrame=root.CFrame+root.CFrame.lookVector*3
  897. local efp=Part(.1,.1,.1)efp.Anchored=true
  898. efp.CFrame=C(mid,0,mid.Size.y/2,0,PI/2)
  899. local m=Mesh(_1,meshes.ring.id,0,0,0)
  900. Spawn(function()
  901. for i=0,1,.1 do
  902. m.Scale=v3n(10,10,.1)*i
  903. efp.Transparency=i
  904. wait()
  905. end efp:Destroy() end)
  906. wait()
  907. end
  908. wait'.25'anim=''
  909. con:disconnect()
  910. end
  911. siphon_snd=New"Sound"{_P=hdl;SoundId='rbxassetid://154230112'}
  912. fg_siphon = function()
  913. Edit{RightShoulder,Hw}{can_anim=false}
  914. Pose2{
  915. RightShoulder=ang(md'-130');
  916. Hw=C(0,-1,.3)*ang(md'45')
  917. }
  918. hold=true
  919. hums=findHum(torso.Position,20)
  920. if #hums > 0 then
  921. siphon_snd:Play()
  922. end
  923. emps={}
  924. local function check()
  925. hums=findHum(torso.Position,20)
  926. for _,hum in pairs(hums)do
  927. if not emps[hum] and hum.Health > 0 then
  928. local t={}
  929. t.p=Part(.25,.25,.25,'',1)
  930. t.h_c=hum.Torso.CFrame
  931. t.e=New"ParticleEmitter"{_P=t.p;
  932. Size=NumberSequence.new{numkp(0,1),numkp(1,0)};
  933. Transparency=NumberSequence.new{numkp(0,0),numkp(1,1)};
  934. Lifetime=NumberRange.new(.15);
  935. LockedToPart=true;
  936. Speed=NumberRange.new(1*(1/.15));
  937. Texture='rbxassetid://243664672';
  938. Rate=200;
  939. LightEmission=.25;
  940. Color=ColorSequence.new{colkp(0,bcol'Cyan'.Color),colkp(1,bcol'White'.Color)}
  941. }
  942. t.p.Anchored=true
  943. emps[hum]=t
  944. end
  945. end
  946. end
  947. local p_ti=tick()
  948. repeat
  949. check()
  950. for h,v in pairs(emps) do
  951. local st_p=h.Torso.Position
  952. local en_p=di.Position
  953. h.Health=h.Health-1
  954. char_hum.Health=char_hum.Health+1
  955. local mag=(st_p-en_p).magnitude
  956. if mag > 20 or h.Health<=0 then
  957. v.p:Destroy()
  958. emps[h] = nil
  959. end
  960. v.p.CFrame=cfn(st_p,en_p)*ang(-PI/2)
  961. v.e.Speed=NumberRange.new(mag*(1/.15))
  962. end
  963. wait()
  964. until (tick()-p_ti) > 1
  965. for _,v in pairs(emps)do v.p:Destroy()end
  966. -- anim=''
  967. Edit{RightShoulder,Hw}{can_anim=true}
  968. end
  969. head_pt=tick()
  970. dir=1
  971. rc=game:service'RunService'.Stepped:connect(function(t,st)
  972. local sine,cos
  973. local walk_mag=Vector3.new(char.HumanoidRootPart.Velocity.X,0,char.HumanoidRootPart.Velocity.Z).magnitude
  974.  
  975. if anim~='None' and anim~='Sit' and anim~='Dance' then
  976. if walk_mag > 2 then
  977. anim="Walk"
  978. else
  979. anim="Idle"
  980. end
  981. end
  982. -- anim='Walk'
  983. -- Edit(Joints){desired=cfn()}
  984. if anim == 'Walk' then
  985. copter_w.MaxVelocity=.4
  986. else
  987. copter_w.MaxVelocity=.1
  988. end
  989. if anim == "Idle" then
  990.  
  991. Edit(Joints){desired=cfn()}
  992. Pose{
  993. RightShoulder=ang(md'-90')
  994. }
  995. elseif anim == "Walk" then
  996. Pose{
  997. Root=ang(md'15');
  998. RightShoulder=ang(md'-90',-md'45')*ang(md'15');
  999. LeftShoulder=ang(md'-90',md'45')*ang(md'15');
  1000. Hw=ang(md'15',md'45');
  1001. Neck=ang(md'-25');
  1002. RightHip=ang(md'10');
  1003. LeftHip=ang(md'10');
  1004. }
  1005. elseif anim == 'Dance' then
  1006. sine=math.sin(t*4)
  1007. if (tick()-head_pt) > .5 then head_pt=tick() dir=dir*-1 end
  1008. Pose{
  1009. RightShoulder=ang(0,0,md'-90'+(md'15'*math.sin(t*10)));
  1010. LeftShoulder=ang(0,0,md'90'+(md'-15'*math.sin(t*-10)));
  1011. Root=C(sine*.5);
  1012. RightHip=ang(0,0,md'10'*-math.cos(t*8));
  1013. LeftHip=ang(0,0,md'10'*math.cos(t*-8));
  1014. Neck=ang((md'45')*math.cos(dir*t*15),0,(md'45')*math.sin(dir*t*15))
  1015. }
  1016. elseif anim == 'Sit' then
  1017. Pose{
  1018. Neck = ang(md'45');
  1019. Root=cfn(0,0,-1.5)*ang(md'-35');
  1020. RightHip=ang(-PI/2+md'35',md'15')*ang(math.sin(t*5)*md'5'-md'5');
  1021. LeftHip=ang(-PI/2+md'35',md'-15')*ang(math.cos(t*5)*md'5'-md'5');
  1022. RightShoulder = ang(md'10'+md'35',0,md'25');
  1023. LeftShoulder = ang(md'10'+md'35',0,md'-25');
  1024. }
  1025. end
  1026. for i,v in pairs(Joints) do
  1027. if v.can_anim == true then
  1028. v.w.C0=v.w.C0:lerp(v._desired,v.spd)
  1029. end
  1030. end
  1031. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement