Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Trash script by mugex. 2017.
- -Scripting is boring, dont do it.
- ]]
- PI,TAU=math.pi,math.pi*2
- RS=game:GetService"RunService"
- INPUT = game:GetService"UserInputService"
- md,mr,cfn,v3n,bcol=math.rad,math.random,CFrame.new,Vector3.new,BrickColor.new
- mr2 = function(a)return (mr()-mr())*a end
- ang=function(x,y,z)return CFrame.Angles(x or 0,y or 0,z or 0)end
- player=game:service'Players'.LocalPlayer
- mouse=player:GetMouse()
- char=player.Character
- root = char:FindFirstChild'HumanoidRootPart'
- torso=(char:FindFirstChild'Torso' or char:FindFirstChild'HumanoidRootPart')
- numkp=NumberSequenceKeypoint.new
- colkp=ColorSequenceKeypoint.new
- local found
- repeat
- found=Workspace:FindFirstChild'M_Crystal'
- print(found)
- if found then found:Destroy()end
- wait()
- until not found
- function isIn(what,tab)
- local res=false
- for i,v in next,tab do
- if v==what then
- res = true
- break
- end
- end
- return res
- end
- DEBRIS=game:service'Debris'
- New = function(what)
- local obj,par
- if typeof(what) == 'Instance' then
- obj=what:Clone()
- par = what.Parent
- else
- obj=Instance.new(what)
- end
- if what=='Weld' then obj.Name='mujoint'end
- return function(bar)
- if bar and type(bar)=='table' then
- for arg,val in pairs(bar) do
- if arg=="_PP" then
- obj.Part0=val[1]
- obj.Part1=val[2]
- elseif arg=='_F'then
- val(obj)
- else
- if pcall(function()return obj[arg] end) then
- obj[arg]=val
- end
- end
- end
- obj.Parent = par or (bar._P or nil)
- end
- _4=obj
- return obj
- end
- end
- Edit = function(what)
- return function(args)
- for ind,obj in next,what do
- for arg,val in next,args do
- local child,argu = arg:match"(.+)%.(.+)"
- if child and argu then
- if pcall(function()return obj[child][argu] end) then
- obj[child][argu]=val
- end
- else
- if arg=='_F'then
- val(ind,obj)
- elseif pcall(function()return obj[arg]end) then
- obj[arg]=val
- end
- end
- end
- end
- local t = {}
- for i,v in pairs(what) do
- table.insert(t,v)
- end
- return unpack(t)
- end
- end
- udim=function(a,b,c,d)
- if type(a)=='string'then
- x,y=tostring(a):match('([%+%d%.%-%/%*]+),([%+%d%.%-%/%*]+)')
- return UDim2.new(x or 0,x2 or 0,y or 0,y2 or 0)
- else
- return UDim2.new(a or 0,c or 0,b or 0,d or 0)
- end end
- pcall(function()char.Pat:Destroy()end)
- m=Instance.new("Model",char)m.Name='Pat'
- for i=0,10 do --quickuses
- getfenv(0)['_'..i] = nil
- end
- colors={base=bcol'White'.Color;
- second=bcol'Black'.Color;
- ear=bcol'Pink'.Color;
- tentacle=bcol'New Yeller'.Color}
- Part = setmetatable({
- material = 'Plastic';
- cancollide = false;
- anchored = false;
- parent = nil;
- color = "White"
- },{
- __call = function(prefs,x,y,z,col,tr,an,cc,par)
- local part = Instance.new("Part")
- part.CanCollide = cc or prefs.cancollide
- part.Transparency = tr or 0
- part.Material = prefs.material
- part.Size = Vector3.new(x or 0, y or 0, z or 0)
- part.Anchored = an or prefs.anchored
- if col and typeof(col) == 'Color3' then
- part.Color = col
- else
- part.BrickColor = BrickColor.new(col or prefs.color)
- end
- for i,v in pairs(Enum.NormalId:GetEnumItems())do
- part[v.Name..'Surface'] = 10
- end
- part.Parent = prefs.parent or m
- _1 = part
- return part
- end;
- })
- Mesh = function(parent,mesh_id,scale_x,scale_y,scale_z)
- local instance_name = (mesh_id == 'cyl' and 'CylinderMesh') or (mesh_id == 'bl' and 'BlockMesh') or 'SpecialMesh'
- local mesh = Instance.new(instance_name)
- if instance_name == 'SpecialMesh' then
- if mesh_id:match('//') then
- mesh.MeshId = mesh_id
- else
- if mesh_id == 'sph' then
- mesh.MeshType = 3
- elseif mesh_id == 'wdg' then
- mesh.MeshType = 2
- end
- end
- end
- mesh.Scale = Vector3.new(scale_x or 1,scale_y or 1, scale_z or 1)
- mesh.Parent = parent or nil
- _2 = mesh
- return mesh
- end
- function C(...)
- local a={...}
- 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)
- -- print(typeof(a[1]))
- if typeof(a[1]) == 'Instance' then
- return a[1].CFrame * cf
- elseif typeof(a[1]) == 'CFrame' then
- return a[1] * cf
- elseif typeof(a[1]) == 'number' then
- 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)
- end
- end
- Weld = function(p0,p1,c1,c0)
- if p0.Name~='Torso' then p0.Position=p1.Position end
- local weld=Instance.new("Motor")
- weld.Part0,weld.Part1,weld.C0,weld.C1 = p0,p1,c0 or CFrame.new(),c1 or CFrame.new()
- weld.Parent=p0
- weld.MaxVelocity=.1
- return weld
- end
- meshes={
- spike = {id="rbxassetid://1033714";scale=v3n(0.5, 1.5, 0.5)};
- diamond = {id='rbxassetid://9756362';scale=v3n(0.75, 0.75, 0.75)};
- squid = {id='rbxassetid://118262597';scale=v3n(2, 1, 2.25)};
- ring = {id='rbxassetid://3270017';scale=v3n(1, 1, 6)};
- emerald = {id='rbxassetid://499505913';scale=v3n(0.005, 0.007, 0.005)};
- gear = {id='rbxassetid://156292343';scale=v3n(1.25,1.25,18);}
- }
- pcall(function()char.Pat:Destroy()end)
- m=Instance.new("Model",char)m.Name='Pat'
- Joints={}
- function Pose(tab)
- for i,v in pairs(tab)do
- Joints[i].desired = v
- end
- end
- function Pose2(tab)
- for j,v in pairs(tab)do
- Joints[j].pre=Joints[j].w.C0
- end
- for i=0,1,.1 do
- for j,c in pairs(tab)do
- Joints[j].w.C0=Joints[j].pre:lerp(Joints[j].n_c0*c,i)
- end
- wait()
- end
- end
- Joint={
- new=function(name,weld,c0,c1)
- local joint={
- w=weld;
- part1=weld.Part1;
- n_c0=(c0 or weld.C0);
- n_c1=(c1 or weld.C1);
- name=name;
- pre=0;
- _desired=weld.C0;
- spd=.4;
- lock=false;
- can_anim=true;
- previous=weld.C0;
- }
- function joint:revertToOrig()
- self.w.C0=self.n_c0
- self.w.C1=self.n_c1
- end
- function joint:Tween(a,step)
- local start=self.w.C0
- for i=0,1,step or .1 do
- self.w.C0=start:lerp(self.n_c0*a,i)
- wait()
- end
- end
- setmetatable(joint,{
- __newindex=function(t,i,v)
- if i == 'desired' then
- t._desired = t.n_c0*v
- end
- end;
- })
- Joints[name]=joint
- getfenv(0)[name]=Joints[name]
- return joint
- end
- }
- weld_container=New"Folder"{_P=m}
- info={
- RightShoulder = {n_c0=cfn(1,0.5,0),n_c1=cfn(-.5,0.5,0)};
- LeftShoulder = {n_c0=cfn(-1,0.5,0),n_c1=cfn(0.5,0.5,0)};
- RightHip = {n_c0=cfn(1,-1,0),n_c1=cfn(0.5,1,0)};
- LeftHip = {n_c0=cfn(-1,-1,0),n_c1=cfn(-0.5,1,0)};
- Root = {n_c0=cfn(0,0,0,-1,0,0,0,0,1,0,1,-0);
- n_c1=cfn(0,0,0,-1,-0,-0,0,0,1,0,1,0)};
- 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)};
- }
- Joint.new('RightHip',New"Weld"{_P=m;_PP={char['Right Leg'],char['Torso']};
- C0 = info.RightHip.n_c1; C1 = info.RightHip.n_c0
- })
- Joint.new('LeftHip',New"Weld"{_P=m;_PP={char['Left Leg'],char['Torso']};
- C0 = info.LeftHip.n_c1; C1 = info.LeftHip.n_c0
- })
- Joint.new('RightShoulder',New"Weld"{_P=m;_PP={char['Right Arm'],char['Torso']};
- C0 = info.RightShoulder.n_c1; C1 = info.RightShoulder.n_c0
- })
- Joint.new('LeftShoulder',New"Weld"{_P=m;_PP={char['Left Arm'],char['Torso']};
- C0 = info.LeftShoulder.n_c1; C1 = info.LeftShoulder.n_c0
- })
- Joint.new('Root',New"Weld"{_P=m;_PP={char['HumanoidRootPart'],char['Torso']};
- C0 = info.Root.n_c0; C1 = info.Root.n_c1
- })
- Joint.new('Neck',New"Weld"{_P=m;_PP={char['Torso'],char['Head']};
- C0 = info.Neck.n_c0; C1 = info.Neck.n_c1
- })
- function findHum(pos,rad,hum2)
- local hums={}
- function check(a)
- local res=false
- for i,ho in pairs(hums)do
- if a==ho then res=true end
- end
- return res
- end
- for i,v in pairs(Workspace:children())do
- if v:IsA'Model'and v~=char and v~=(hum2 or char) then
- for i,q in pairs(v:children())do
- if q:IsA'Humanoid' and q.Parent:FindFirstChild'Torso'and(q.Torso.Position-pos).magnitude < rad then
- if not check(q)then
- table.insert(hums,q)
- end
- end
- end
- end
- end
- return hums
- end
- function checkY(p1,p2,range,range2)
- local function l(a1,x,y,z,rx,ry,rz)
- local cf
- if tostring(a1):find(',') == nil then
- cf=a1.CFrame
- else cf=a1 end
- return cf*CFrame.new(x or 0,y or 0,z or 0)*CFrame.Angles(
- rx or 0,ry or 0,yz or 0)
- end
- local function checko()
- 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) )
- end
- if range2 then
- return (l(p1).Y > l(p2).Y-range and l(p2).Y < l(p2).Y+range) and checko()
- else
- return (l(p1).Y > l(p2).Y-range and l(p2).Y < l(p2).Y+range)
- end
- end
- mouse = player:GetMouse()
- function wave()
- Edit(Joints){can_anim=false}
- Pose2{
- RightShoulder=ang(md'-165',md'75')
- }
- end
- function findAllParts(pos,radius)
- local min,max = math.min,math.max
- local list={}
- local pos1,pos2=l(cfn(pos),-radius*3,-radius*3,-radius*3).p,l(cfn(pos),radius*3,radius*3,radius*3).p
- local reg=Region3.new(v3n(min(pos1.x,pos2.x),min(pos1.y,pos2.y),min(pos1.z,pos2.z)),
- v3n(max(pos1.x,pos2.x),max(pos1.y,pos2.y),max(pos1.z,pos2.z)))
- for i,v in pairs(Workspace:FindPartsInRegion3WithIgnoreList(reg,{character})) do
- if (v.Position-pos).magnitude<radius and v.Name~='Base' then
- table.insert(list,v)
- end
- end
- return list
- end
- kanjis={
- 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]}]'
- }
- letters={
- 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]}]';
- 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]}]';
- 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]}]';
- 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]}]';
- 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]}]';
- 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]}]';
- 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]}]';
- 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]}]';
- I='[{"s": [0.1, 0.1, 1.0], "r": [0.0, 0.0, 0.0], "p": [0.01, 0.0, -0.027]}]';
- 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]}]';
- 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]}]';
- 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]}]';
- 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]}]';
- 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]}]';
- 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]}]';
- 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]}]';
- 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]}]';
- 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]}]';
- 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]}]';
- 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]}]';
- 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]}]';
- 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]}]';
- 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]}]';
- 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]}]';
- 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]}]';
- 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]}]';
- }
- function doKanji(letter,pos,scale,color,part)
- local letter_mod = Instance.new("Model", m)
- local list2 = {}
- local list = game:service'HttpService':JSONDecode(kanjis[letter])
- local cnt=0
- for i,v in pairs(list)do
- cnt = cnt+1
- local p=Part(1,1,1,color or 'Royal purple')
- p.Parent=letter_mod
- p.Anchored=true
- p.CFrame=C(pos,v.p[1]*scale/2,v.p[2]*scale/2,v.p[3]*scale/2)*ang(unpack(v.r))
- local msh = Mesh( p,(v.w and 'w' or 'bl'),v.s[1],v.s[2],.1)
- msh.Scale = msh.scale*scale+v3n(0,0.001*cnt,0)
- -- msh.Scale=v3n(msh.Scale.x,msh.Scale.y,.01)
- list2[p] = {Scale=msh.Scale,CFrame=p.CFrame}
- -- p.CFrame=pos
- -- msh.Scale=v3n(0,0,0)
- end
- if part then
- for _,v in pairs(letter_mod:children()) do
- v.Anchored=false
- New"Weld"{_P=v;_PP={part,v};
- C0=cfn();
- C1=v.CFrame:toObjectSpace(part.CFrame);
- }
- end
- end
- return letter_mod
- end
- function doLetter(letter,pos,scale,color)
- local letter_mod = Instance.new("Model", m)
- local list2 = {}
- local list = game:service'HttpService':JSONDecode(letters[letter])
- local cnt=0
- for i,v in pairs(list)do
- cnt = cnt+1
- local p=Part(1,1,1,color or 'Royal purple')
- p.Parent=letter_mod
- p.Anchored=true
- p.CFrame=C(pos,v.p[1]*scale/2,v.p[2]*scale/2,v.p[3]*scale/2)*ang(unpack(v.r))
- local msh = Mesh( p,(v.w and 'w' or 'bl'),unpack(v.s) )
- msh.Scale = msh.Scale*scale+v3n(0,0.001*cnt,0)
- -- msh.Scale=v3n(msh.Scale.x,msh.Scale.y,.01)
- _1.Material='Neon'
- list2[p] = {Scale=msh.Scale,CFrame=p.CFrame}
- -- p.CFrame=pos
- -- msh.Scale=v3n(0,0,0)
- end
- return letter_mod
- end
- list = {
- Root = CFrame.Angles(0.0,0.0,0.0):inverse();
- RightShoulder = CFrame.Angles(-0.8238850235939026,0.3296844959259033,1.862011432647705):inverse();
- RightHip = CFrame.Angles(0.0,0.0,0.0):inverse();
- LeftShoulder = CFrame.Angles(0.0,0.0,0.0):inverse();
- LeftHip = CFrame.Angles(0.0,0.0,0.0):inverse();
- Neck = CFrame.Angles(0.0,0.0,0.0):inverse();
- }
- -- doLetter('Kanji',l(torso,0,0,-5,PI),.25,'Cyan')
- function doWord(word,pos,scale,col,appear_style)
- stpos=pos
- local prev=0
- local modls={}
- for w in word:gmatch('%w') do
- local p=doLetter(string.upper(w),stpos*cfn(prev,0,0),scale,(col=='r' and BrickColor.random().Name or (col or 'Cyan')))
- prev=prev+scale
- table.insert(modls,p)
- -- wait()
- end
- modls.ps={}
- for _,v in pairs(modls) do
- if type(v)~='function' and type(v)~='table' then
- for _,v2 in pairs(v:children())do
- table.insert(modls.ps,v2)
- end
- end
- end
- if appear_style and appear_style == 'fade' then --coolio
- local mshl={}
- for _,v in pairs(modls.ps) do
- local msh=v:FindFirstChildOfClass"BlockMesh"
- if msh then
- mshl[msh] = {msh.Scale,msh.Parent.Transparency}
- end
- end
- for i=0,1,.1 do
- for m,s in pairs(mshl)do
- m.Scale = s[1]*(i)
- m.Parent.Transparency = s[2]*(i)
- end
- wait()
- end
- end
- function modls:weld(part)
- for i,v in pairs(self.ps) do
- v.Anchored=false
- New"Weld"{_P=v;_PP={part,v};
- C0=cfn();
- C1=v.CFrame:toObjectSpace(part.CFrame);
- }
- end
- return self.ps
- end
- function modls:remove(style)
- if style and style == 'fade' then
- local mshl={}
- for _,v in pairs(self.ps) do
- local msh=v:FindFirstChildOfClass"BlockMesh"
- if msh then
- mshl[msh] = {msh.Scale,msh.Parent.Transparency}
- end
- end
- for i=0,1,.1 do
- for m,s in pairs(mshl)do
- m.Scale = s[1]*(1-i)
- m.Parent.Transparency = s[2]*(1-i)
- end
- wait()
- end
- end
- for _,v in pairs(self) do
- if type(v) ~= 'function' and type(v)~='table' then
- v:Destroy()
- end
- end
- end
- return modls
- end
- mouse.KeyDown:connect(function(key)
- for i,v in pairs(getfenv())do
- -- print(i:match'^%w%_')
- if i:match'^f%w%_' then
- local k = i:sub(2,2)
- if k == key then
- v(mouse)
- end
- end
- end
- end)
- holding=true
- Edit(Joints){lock=true}
- anim="Idle"
- char_hum = char.Humanoid
- t_bool=tick()
- rarm=char['Right Arm']
- --Lasta täs tehdään--
- hdl=Part(.25,2,.25)
- Joint.new('Hw',Weld(hdl,rarm,C(0,-1.1,-.5,-PI/2)))
- copter=Part(2,.1,.25)Mesh(_1,'bl',1,.1,.9)
- a=ang(PI/2)
- copter_w = Weld(_1,hdl,C(0,.25)*a,a)
- copter_w.DesiredAngle=9e+009
- bo=Part(1.25,.5,.25)
- Weld(_1,hdl,C(0,hdl.Size.y/2+_1.Size.y/2))
- mid = Part(bo.Size.x,1.5,.25,'Black')
- Weld(_1,bo,C(0,bo.Size.y/2+_1.Size.y/2))
- -- Weld(p2,bo,C(0,-bo.Size.y/2-p2.Size.y/2))
- p3 = Part(.25,.5,(1.25-.25)/2)Mesh(_1,'wdg')
- Weld(_1,bo,C(-.125-.25,-bo.Size.y/2-p3.Size.y/2,0,PI,PI/2))
- p3 = Part(.25,.5,(1.25-.25)/2)Mesh(_1,'wdg')
- Weld(_1,bo,C(-(-.125-.25),-bo.Size.y/2-p3.Size.y/2,0,PI,-PI/2))
- cy=Part(.1,.1,.1)Mesh(_1,'cyl')
- Weld(_1,bo,C(mid.Size.x/5,bo.Size.y/2+.01))
- cy2=Part(.1,.1,.1)Mesh(_1,'cyl')
- Weld(_1,bo,C(-mid.Size.x/5,bo.Size.y/2+.01))
- di=Part(.75,.5,.75,'Cyan')
- Mesh(_1,meshes.diamond.id).Scale=di.Size*meshes.diamond.scale
- Weld(_1,bo,C(0,-.25,0,PI/2))
- --topwedges
- pp3=Part(.25,.25,mid.Size.x/2)Mesh(_1,'wdg')
- Weld(_1,mid,C(-mid.Size.x/2+_1.Size.z/2,mid.Size.y/2+.125,0,0,PI/2))
- pp3=Part(.25,.25,mid.Size.x/2)Mesh(_1,'wdg')
- Weld(_1,mid,C(-(-mid.Size.x/2+_1.Size.z/2),mid.Size.y/2+.125,0,0,-PI/2))
- doKanji('K',C(mid,0,0,-.125),.25,'White',mid)
- doKanji('K',C(mid,0,0,.125),.25,'White',mid)
- --Lasta tehty
- music = New"Sound"{_P=hdl;SoundId='rbxassetid://149690685';Volume=.1;Looped=true}
- function ft_hail()
- if anim~='Dance' then
- anim='Dance' music:Play()
- elseif anim=='Dance' then anim=''music:Stop()
- end
- end
- pem = Part(1,1,1,'',1)Weld(_1,torso,C(0,-3,0,PI/2))
- em = New"ParticleEmitter"{
- _P=pem;
- Texture = 'rbxassetid://448015838';
- Color = ColorSequence.new(bcol'Nougat'.Color);
- Lifetime = NumberRange.new(1,1.5);
- Transparency = NumberSequence.new{numkp(0,0),numkp(1,1)};
- Size = NumberSequence.new{numkp(0,.01),numkp(1,0)};
- Rotation = NumberRange.new(-45,45);
- Acceleration = v3n(0,2,0);
- Enabled=false;
- }
- music2=New"Sound"{_P=hdl;SoundId='rbxassetid://441487035';Looped=true}
- fq_sit=function()
- local shoo=Part(1,1,1,'Cyan',.75)_1.Anchored=true local sm= Mesh(_1,'cyl')
- shoo.Material='Neon'
- local t={}
- local b=false
- for i=0,1,.1 do
- b=not b
- local kp=numkp(i,(i*2)/(b and 1 or 2))
- table.insert(t,kp)
- end
- local emitter = New"ParticleEmitter"{_P=shoo;
- Rate = 0;
- Transparency = NumberSequence.new{numkp(0,0),numkp(1,1)};
- Lifetime = NumberRange.new(1);
- Size = NumberSequence.new(t);
- VelocitySpread = 180;
- }
- Spawn(function()
- local num = nil
- while wait()do
- shoo.CFrame=C(root,0,-3)
- local pbs=music2.PlaybackLoudness/115
- -- print(pbs)
- if num then
- if pbs < num and (num-pbs) > .1 then
- num = nil
- end
- end
- if not num and pbs > .3 then
- num = pbs
- emitter:Emit(16)
- end
- sm.Scale=v3n(pbs*50,.1,pbs*50):lerp(sm.Scale,.5)
- end
- end)
- if anim~='Sit' then
- music2:Play()
- anim ='Sit'
- else
- music2:Stop()
- anim =''
- end
- end
- hit_snd=New"Sound"{_P=hdl;SoundId='rbxassetid://247985461'}
- slash_snd=New"Sound"{_P=hdl;SoundId='rbxassetid://134012322'}
- texts={
- 'Dork','Noob','Baka';
- }
- raindrop_e=New"ParticleEmitter"{_P=nil;
- Texture='rbxassetid://282305485';
- Speed=NumberRange.new(4);
- Lifetime=NumberRange.new(.5);
- Color=ColorSequence.new(bcol'Cyan'.Color);
- VelocitySpread=180;
- Size=NumberSequence.new{numkp(0,.1),numkp(.5,.3),numkp(1,0)};
- Transparency=NumberSequence.new{numkp(0,.25),numkp(1,1)};
- LightEmission=.1;
- Rate=100;
- Acceleration=v3n(0,40,0);
- Rotation=NumberRange.new(-90,90);
- -- Enabled=false;
- }
- raindrop2_e=New(raindrop_e){
- Size=NumberSequence.new{numkp(0,1),numkp(1,0)};
- Lifetime=NumberRange.new(.75);
- Transparency=NumberSequence.new{numkp(0,.5),numkp(1,1)};
- Rate=40;
- Acceleration=v3n(0,0,0);
- }
- function fc_venus()
- hold=true
- local con
- con=INPUT.InputEnded:connect(function(input)
- if input.KeyCode == Enum.KeyCode.C then hold=false con:disconnect() end
- end)
- anim='None'
- Pose{
- RightHip=C(0,.15)*ang(0,md'25');
- Root=C(0,0,.15);
- RightShoulder=ang(md'-175')*C(0,-.1);
- LeftShoulder=ang(md'35',0,md'45');
- Hw=C(0,0,1);
- }
- local t=0
- local orig = Hw.w.C1
- local mef=Part(10,.1,10,nil,1)_1.Anchored=true
- New"Decal"{
- _P=mef;
- Face='Top';
- Texture='rbxassetid://121088228';
- Color3=bcol'Cyan'.Color;
- Transparency=.6;
- }
- while hold do
- Hw.w.C1 = orig*ang(0,0,t*12)
- mef.CFrame=C(cfn(mouse.hit.p))*ang(0,t*7.5)
- local ppp=Part(.4,.4,.4,'Cyan',.8)_1.Material='Neon'_1.Anchored=true
- _1.CFrame=C(di)
- DEBRIS:AddItem(ppp,.25)
- --afafafaf
- local rd=Part(.1,.1,.1)rd.CanCollide=true rd.Anchored=true
- rd.Touched:connect(function(hit)
- local h=hit.Parent:FindFirstChildOfClass'Humanoid'
- if h then h:TakeDamage(-6)end
- end)
- -- rd.CustomPhysicalProperties=PhysicalProperties.new(1,0,0)
- rd.CFrame=C(cfn(mouse.hit.p),mr(-5,5),20,mr(-5,5))
- local cl=raindrop_e:clone()
- cl.Parent=rd
- local obj,pos=Workspace:FindPartOnRay(Ray.new(rd.Position,v3n(0,-25,0),char))
- if obj and pos then
- Spawn(function()
- local rd_o=rd.CFrame
- for i=0,1,.1 do
- rd.CFrame=rd_o:lerp(cfn(pos),i)
- wait()
- end
- cl:destroy()
- local cl2=raindrop2_e:Clone()
- cl2.Parent=rd
- end)
- end
- DEBRIS:AddItem(rd,1)
- _,t=wait()
- end
- music2:Stop()
- mef:Destroy()
- anim=''
- Pose{
- Hw=cfn();
- }
- Hw.w.C1=orig
- end
- Animations = {}
- function fe_coffee()
- local angle=ang(0)
- --[[
- local bullet_model=New"Model"{_P=m}
- Part.parent=bullet_model
- local bullet=Part(1.5,1.5,1.5,'Cyan',.25)_1.Material='Neon'Mesh(_1,'sph')_1.Anchored=true
- _1.CFrame=C(torso,0,0,-3)
- local mp=Part(.1,.1,.1,'',1)Weld(_1,bullet,angle,angle).DesiredAngle=9e+009
- for i=0,1 do
- local p=Part(1,1,1,'',1)Weld(_1,mp,ang(0,0,md'45'*i))
- for _,face in pairs{'Top','Bottom','Left','Right'} do
- New"ParticleEmitter"{
- _P = p;
- Lifetime = NumberRange.new(.75,1);
- Size = NumberSequence.new{numkp(0,.5),numkp(.5,.75),numkp(1,0)};
- Transparency = NumberSequence.new{numkp(0,1),numkp(.25,0),numkp(1,1)};
- EmissionDirection = Enum.NormalId[face];
- Color = ColorSequence.new{colkp(0,bcol'New Yeller'.Color),colkp(1,bcol'Lime green'.Color)};
- Texture = 'rbxassetid://243664672';
- }
- end
- end
- Part.parent=nil
- Spawn(function()
- local finish = false
- local st_t=tick()
- local obj,pos
- while finish == false do
- obj,pos = Workspace:FindPartOnRay(Ray.new(C(bullet).p,C(bullet).lookVector*3),char)
- if ( ((tick()-st_t) > 2) or (obj ~= nil and pos ~= nil) ) then
- finish = true
- else
- bullet.CFrame=bullet.CFrame+bullet.CFrame.lookVector*2
- end
- wait()
- end
- if obj and pos then
- local h=obj.Parent:FindFirstChildOfClass"Humanoid"
- if h then h:TakeDamage(20) end
- end
- bullet_model:Destroy()
- end)
- end
- function fv_spin()
- anim='None'
- Pose{
- RightShoulder=ang(md'-50',md'-15',md'45');
- Root=ang(md'35',0,md'65');
- RightHip=ang(md'-35',md'45')*ang(0,md'25');
- Hw=C(0,-1.4,.5)*ang(md'90')
- }
- wait(.25)
- Pose{
- Root=ang(md'-35',0,md'-65');
- RightShoulder=ang(md'-140',md'64');
- RightHip=C(0,-.25,0)*ang(md'35',0,md'-45')*ang(md'-25');
- Hw=C(0,-1.4,.5)*ang(PI/2)
- }
- wait(.25)
- anim=''
- ]]
- end
- ff_slash=function()anim='None'
- slash_snd:Play()
- --[[
- ]]
- local con
- con=mid.Touched:connect(function(hit)
- local h=hit.Parent:FindFirstChildOfClass'Humanoid'
- if h and not h:FindFirstChild'st' then
- Spawn(function()local t=tick()
- local rp=h.Parent:FindFirstChild('RootJoint',true)
- repeat wait()h.PlatformStand=true
- if rp then
- rp.C1=info.Root.n_c1*ang(mr(-2,2),mr(-2,2),mr(-2,2))
- end
- until (tick()-t)>1
- rp.C1=info.Root.n_c1
- h.PlatformStand=false
- end)
- local s=New"BoolValue"{_P=h;Name='st'}
- hit_snd.Pitch=1+((mr()-mr())*.25)
- hit_snd:Play()
- local w=doWord(texts[mr(#texts)],C(h.Torso,0,5)*ang(PI/2,PI/2),1.5,'New Yeller')
- wait'.25'
- w:remove('fade')
- DEBRIS:AddItem(s,1)
- end
- end)
- Pose{
- Root=C(0,0,.15)*ang(md'-5',0,md'-25');
- LeftHip=C(0,.15)*ang(md'5');
- RightHip=ang(0,0,md'-15');
- RightShoulder=ang(md'-140',md'25');
- Neck=ang(0,0,md'-15')*ang(md'-25')
- }
- wait'.15'
- Pose{
- Root=ang(md'50'+md'35');
- RightHip=C(0,0,-.5)*ang(md'-50',md'50');
- LeftHip=C(0,0,-.5)*ang(md'-50',md'-50');
- RightShoulder=ang(md'-90',md'-25')*ang(md'15');
- LeftShoulder=ang(md'35',md'15');
- Hw=ang(md'10',md'25');
- Neck=ang(md'15');
- }
- --[[
- ]]
- wait'.25'
- Pose{
- Root=cfn();
- RightShoulder=ang(md'-90');
- }anim=''con:disconnect()
- end
- lunge_snd = New"Sound"{_P=hdl;SoundId='rbxassetid://134012322';Pitch=.5}
- fr_lunge = function()
- anim='None'
- lunge_snd:Play()
- Pose{
- Root=ang(0,0,md'-65');
- RightShoulder=ang(md'-90',md'65')*ang(md'45');
- Neck=ang(0,0,md'65');
- LeftShoulder=ang(md'-65',md'35');
- LeftHip=ang(0,0,md'15');
- RightHip=ang(0,md'25')
- }
- local con
- con=mid.Touched:connect(function(hit)
- local h=hit.Parent:FindFirstChildOfClass'Humanoid'
- if h and h.Parent~=char then
- h.Health=h.Health-3
- end
- end)
- wait(.25)
- Edit(Joints){desired=cfn()}
- Pose{
- Root=ang(md'5',0,md'65');
- RightShoulder=ang(md'-95',md'65');
- RightHip=ang(0,md'25',md'-5');
- Hw=C(0,-1.5,.5)*ang(md'90');
- Neck=ang(md'-5',0,md'-45');
- LeftShoulder=ang(md'15',0,md'-45');
- }wait'.1'
- for cnt=0,5 do --effect
- root.CFrame=root.CFrame+root.CFrame.lookVector*3
- local efp=Part(.1,.1,.1)efp.Anchored=true
- efp.CFrame=C(mid,0,mid.Size.y/2,0,PI/2)
- local m=Mesh(_1,meshes.ring.id,0,0,0)
- Spawn(function()
- for i=0,1,.1 do
- m.Scale=v3n(10,10,.1)*i
- efp.Transparency=i
- wait()
- end efp:Destroy() end)
- wait()
- end
- wait'.25'anim=''
- con:disconnect()
- end
- siphon_snd=New"Sound"{_P=hdl;SoundId='rbxassetid://154230112'}
- fg_siphon = function()
- Edit{RightShoulder,Hw}{can_anim=false}
- Pose2{
- RightShoulder=ang(md'-130');
- Hw=C(0,-1,.3)*ang(md'45')
- }
- hold=true
- hums=findHum(torso.Position,20)
- if #hums > 0 then
- siphon_snd:Play()
- end
- emps={}
- local function check()
- hums=findHum(torso.Position,20)
- for _,hum in pairs(hums)do
- if not emps[hum] and hum.Health > 0 then
- local t={}
- t.p=Part(.25,.25,.25,'',1)
- t.h_c=hum.Torso.CFrame
- t.e=New"ParticleEmitter"{_P=t.p;
- Size=NumberSequence.new{numkp(0,1),numkp(1,0)};
- Transparency=NumberSequence.new{numkp(0,0),numkp(1,1)};
- Lifetime=NumberRange.new(.15);
- LockedToPart=true;
- Speed=NumberRange.new(1*(1/.15));
- Texture='rbxassetid://243664672';
- Rate=200;
- LightEmission=.25;
- Color=ColorSequence.new{colkp(0,bcol'Cyan'.Color),colkp(1,bcol'White'.Color)}
- }
- t.p.Anchored=true
- emps[hum]=t
- end
- end
- end
- local p_ti=tick()
- repeat
- check()
- for h,v in pairs(emps) do
- local st_p=h.Torso.Position
- local en_p=di.Position
- h.Health=h.Health-1
- char_hum.Health=char_hum.Health+1
- local mag=(st_p-en_p).magnitude
- if mag > 20 or h.Health<=0 then
- v.p:Destroy()
- emps[h] = nil
- end
- v.p.CFrame=cfn(st_p,en_p)*ang(-PI/2)
- v.e.Speed=NumberRange.new(mag*(1/.15))
- end
- wait()
- until (tick()-p_ti) > 1
- for _,v in pairs(emps)do v.p:Destroy()end
- -- anim=''
- Edit{RightShoulder,Hw}{can_anim=true}
- end
- head_pt=tick()
- dir=1
- rc=game:service'RunService'.Stepped:connect(function(t,st)
- local sine,cos
- local walk_mag=Vector3.new(char.HumanoidRootPart.Velocity.X,0,char.HumanoidRootPart.Velocity.Z).magnitude
- if anim~='None' and anim~='Sit' and anim~='Dance' then
- if walk_mag > 2 then
- anim="Walk"
- else
- anim="Idle"
- end
- end
- -- anim='Walk'
- -- Edit(Joints){desired=cfn()}
- if anim == 'Walk' then
- copter_w.MaxVelocity=.4
- else
- copter_w.MaxVelocity=.1
- end
- if anim == "Idle" then
- Edit(Joints){desired=cfn()}
- Pose{
- RightShoulder=ang(md'-90')
- }
- elseif anim == "Walk" then
- Pose{
- Root=ang(md'15');
- RightShoulder=ang(md'-90',-md'45')*ang(md'15');
- LeftShoulder=ang(md'-90',md'45')*ang(md'15');
- Hw=ang(md'15',md'45');
- Neck=ang(md'-25');
- RightHip=ang(md'10');
- LeftHip=ang(md'10');
- }
- elseif anim == 'Dance' then
- sine=math.sin(t*4)
- if (tick()-head_pt) > .5 then head_pt=tick() dir=dir*-1 end
- Pose{
- RightShoulder=ang(0,0,md'-90'+(md'15'*math.sin(t*10)));
- LeftShoulder=ang(0,0,md'90'+(md'-15'*math.sin(t*-10)));
- Root=C(sine*.5);
- RightHip=ang(0,0,md'10'*-math.cos(t*8));
- LeftHip=ang(0,0,md'10'*math.cos(t*-8));
- Neck=ang((md'45')*math.cos(dir*t*15),0,(md'45')*math.sin(dir*t*15))
- }
- elseif anim == 'Sit' then
- Pose{
- Neck = ang(md'45');
- Root=cfn(0,0,-1.5)*ang(md'-35');
- RightHip=ang(-PI/2+md'35',md'15')*ang(math.sin(t*5)*md'5'-md'5');
- LeftHip=ang(-PI/2+md'35',md'-15')*ang(math.cos(t*5)*md'5'-md'5');
- RightShoulder = ang(md'10'+md'35',0,md'25');
- LeftShoulder = ang(md'10'+md'35',0,md'-25');
- }
- end
- for i,v in pairs(Joints) do
- if v.can_anim == true then
- v.w.C0=v.w.C0:lerp(v._desired,v.spd)
- end
- end
- end)
Add Comment
Please, Sign In to add comment