Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print'https://pastebin.com/YK9gGQuZ'
- local function Set_Up_Function(player)
- local Set_Up_1={
- Name='Cup_Of_Tea';
- Movement_Range=1;
- Motor6d_Enabled={
- Left_Arm=true;
- Right_Arm=true;
- Left_Leg=true;
- Right_Leg=true;
- };
- Shirt_Asset=true;
- Pants_Asset=true;
- Health=nil;
- WalkSpeed=nil;
- JumpPower=nil;
- Customized_Face_Ids={};
- Destroy_Accessories={
- HatAttachment=false;
- };
- Destroy_Character_Meshes=false;
- Global_CLerp_Animation_Decimal_Alpha=nil;
- };
- local Players,cwrap,Wait_For_Child_2,Storage,RE,RF,clerp,Asset_Prefix=
- game:GetService("Players"),function(a)local b=coroutine.wrap(a);b();return b;end,
- function(p,c,wt)wt=wt or 1/60;local a;if not p or not c then return;end;
- if typeof(p)~='Instance'or typeof(c)~='string'then return;end;repeat
- a=p:FindFirstChild(c);wait(wt);until a;return a;end,{},nil,nil,function(cf,goal,al)
- return cf:Lerp(goal,al);end,'rbxassetid://';
- player=(player=='FindPlayer'and(loadstring('return owner')()or Players:
- GetPlayerFromCharacter(script.Parent)))or player;
- script.Name=Set_Up_1.Name;if not player or not Players then return;end;
- if loadstring('return owner')()then pcall(function()local NLS;NLS=loadstring('return NLS')();
- NLS([[local lp,re,rf=game:GetService'Players'.LocalPlayer,script:WaitForChild'RE_Client',
- script:WaitForChild'RF_Client';local mouse=lp:GetMouse();mouse.KeyDown:Connect(function(k)
- re:FireServer('KD',k,mouse.Hit,mouse.Target);end);mouse.Button1Down:Connect(function()re:
- FireServer('MB_Down',mouse.Hit,mouse.Target);end);rf.OnClientInvoke=function(...)local args={...};
- if args[1]=='Get_Mouse_CF'then return mouse.Hit;elseif args[1]=='Get_Mouse_Target'then
- return mouse.Target;end;end;]],script);script.Parent=workspace;
- end);end;
- local pchar,Instance_2,Remove=player.Character or(function()repeat wait(1);player:LoadCharacter();
- until player.Character;return player.Character;end)(),function(c,p)
- local a=(function()for a,b in pairs(Storage)do if b.ClassName==c then
- table.remove(Storage,a);return b;end;end;end)()or Instance.new(c);if not a then
- print'No classname';return;end;for b,c in pairs(p)do local _,d= pcall(function()a[b]=c;end);
- if d then print(d);end;end;return a;end,function(a)a.Parent=nil;table.insert(Storage,a);end;
- if not pchar then return;end;local a=(function()if loadstring('return owner')()then return{
- Instance_2('RemoteEvent',{Name='RE_Client';Parent=script:GetChildren()[1];});
- Instance_2('RemoteFunction',{Name='RF_Client';Parent=script:GetChildren()[1];})};end;
- wait(2);return{script:FindFirstChildWhichIsA('RemoteEvent',true);script:
- FindFirstChildWhichIsA('RemoteFunction',true);}end)();RE,RF=unpack(a);if not RE or not RF then
- return;end;
- local Head,HRootPart,Torso,Humanoid,Left_Arm,Right_Arm,Left_Leg,Right_Leg,Damage,Container,
- Get_Union=(function()local a;repeat a=pchar:FindFirstChild'Head';if a then break;end;wait(1);
- until nil;return a;end)(),(function()local a;repeat a=pchar:FindFirstChild'HumanoidRootPart';
- if a then break;end;wait(1);until nil;return a;end)(),(function()local a;repeat
- a=pchar:FindFirstChild'Torso';if a then break;end;wait(1);until nil;return a;end)(),
- (function()local a;repeat a=pchar:FindFirstChildWhichIsA'Humanoid';if a then break;end;wait(1);
- until nil;return a;end)(),(function()local a;repeat a=pchar:FindFirstChild'Left Arm';if a then
- break;end;wait(1);until nil;return a;end)(),(function()local a;repeat
- a=pchar:FindFirstChild'Right Arm';if a then break;end;wait(1);until nil;return a;end)(),
- (function()local a;repeat a=pchar:FindFirstChild'Left Leg';if a then break;end;wait(1);until
- nil;return a;end)(),(function()local a;repeat a=pchar:FindFirstChild'Right Leg';if a then
- break;end;wait(1);until nil;return a;end)(),function(h,d,f)if not h then return;end;d=d or 10;
- f=f or function()end;local a=h:FindFirstAncestorWhichIsA'Model';
- if not a or a==workspace or a==pchar then return;end;
- local b,c=a:FindFirstChildWhichIsA'Humanoid',a:FindFirstChild'Head'or a:FindFirstChild'Torso'
- or a:FindFirstChild'UpperTorso'or a:FindFirstChild'HumanoidRootPart';
- if b then if b.Health>150 then b.Health=0;else b:TakeDamage(d);end;elseif c then
- Remove(c);else pcall(function()a:BreakJoints();end);end;end,Instance_2('Folder',{Parent=
- pchar}),function(Primary_Part,table_of_obj,is_negated)
- local parts={Primary_Part};Primary_Part.Parent=workspace;for _,v in pairs(table_of_obj)do
- table.insert(parts,v);v.Anchored=true;v.CanCollide=false;v.Color=Primary_Part.Color;
- v.Transparency=Primary_Part.Transparency;v.Material=Primary_Part.Material;end;
- local union=(not is_negated and Primary_Part:UnionAsync(table_of_obj))or
- Primary_Part:SubtractAsync(table_of_obj);for _,v in pairs(parts)do Remove(v);end;
- union.Parent=workspace;union.CanCollide=false;return union;end;
- local Left_Hip,Left_Shoulder,Neck,Right_Hip,Right_Shoulder,RootJoint,Bevelify=
- (not Set_Up_1.Motor6d_Enabled.Left_Leg and(function()local a=Torso:FindFirstChild'Left Hip';
- if a then Remove(a)end;local b=Instance_2('Weld',{Part0=Torso;Part1=Left_Leg;Parent=Torso;});
- return b;end)())or Torso:FindFirstChild'Left Hip',(not Set_Up_1.Motor6d_Enabled.Left_Arm
- and(function()local a=Torso:FindFirstChild'Left Shoulder';if a then Remove(a)end;
- local b=Instance_2('Weld',{Part0=Torso;Part1=Left_Arm;Parent=Torso;});return b;end)())or
- Torso:FindFirstChild'Left Shoulder',Torso:FindFirstChild'Neck',(not Set_Up_1.Motor6d_Enabled.
- Right_Leg and(function()local a=Torso:FindFirstChild'Right Hip';if a then Remove(a)end;
- local b=Instance_2('Weld',{Part0=Torso;Part1=Right_Leg;Parent=Torso;});return b;end)())or
- Torso:FindFirstChild'Right Hip',(not Set_Up_1.Motor6d_Enabled.Right_Arm and(function()
- local a=Torso:FindFirstChild'Right Shoulder';if a then Remove(a)end;local b=Instance_2('Weld'
- ,{Part0=Torso;Part1=Right_Arm;Parent=Torso;});return b;end)())or Torso:FindFirstChild
- 'Right Shoulder',HRootPart:FindFirstChild'RootJoint',function(Part_A,Depth)
- local Appearence_Properties={'Color';'Material';'Reflectance';'Transparency';}if not Part_A then
- return;end;Depth=Depth or.02;local PA_Size,Negates,mr=Part_A.Size,{},math.rad;
- local function Corner(a,b,c)local d=Instance_2('Part',{Anchored=true;CanCollide=false;});
- for _,e in pairs(Appearence_Properties)do pcall(function()d[e]=Part_A[e];end);end;
- d.Size=Vector3.new(Depth*2,PA_Size.Y,PA_Size.Y);
- d.CFrame=Part_A.CFrame*CFrame.new((PA_Size.X/2)*a,(PA_Size.Y/2)*b,(PA_Size.Z/2)*c)*CFrame.
- Angles(0,mr((a==b and((c==a and-45)or 45))or(c==a and 135)or-135),mr(45))table.insert(Negates,d)
- end;local function Edge(wrap_axis,side_1,side_2)local Edge_Part=Instance_2('Part',{Anchored=
- true;CanCollide=false;});for _,a in pairs(Appearence_Properties)do pcall(function()
- Edge_Part[a]=Part_A[a];end);end;side_1=-1+(2*side_1);side_2=-1+(2*side_2);
- Edge_Part.Size=Vector3.new((wrap_axis==0 and PA_Size.X)or Depth*2,(wrap_axis==1 and PA_Size.Y)
- or Depth*2,(wrap_axis==2 and PA_Size.Z)or Depth*2);
- Edge_Part.CFrame=Part_A.CFrame*CFrame.new((wrap_axis==0 and 0)or PA_Size.X/2*side_1,(wrap_axis
- ==1 and 0)or PA_Size.Y/2*((wrap_axis==0 and side_1)or(wrap_axis==2 and side_2)),(wrap_axis
- ==2 and 0)or PA_Size.Z/2*side_2)*CFrame.Angles((wrap_axis==0 and mr(45))or 0,(wrap_axis==1
- and mr(45))or 0,(wrap_axis==2 and mr(45))or 0);table.insert(Negates,Edge_Part);end;
- local Edge_Data={{0;0;0;};{0;0;1;};{0;1;0;};{0;1;1;};{1;0;0;};{1;0;1;};{1;1;0;};{1;1;1;};{2;0;
- 0;};{2;0;1;};{2;1;0;};{2;1;1;};};local CornerData={{1;1;1;};{1;1;-1;};{1;-1;1;};{-1;1;1;};{-1;
- -1;1;};{-1;1;-1;};{1;-1;-1;};{-1;-1;-1;};};for _,a in pairs(Edge_Data)do Edge(a[1],a[2],a[3]);
- end;for _,a in pairs(CornerData)do Corner(a[1],a[2],a[3]);end;
- local a=Get_Union(Part_A,Negates,true);a.Anchored=true;a.Parent=workspace;return a;end;
- if not Left_Hip or not Left_Shoulder or not Neck or not Right_Hip or not Right_Shoulder or
- not RootJoint then return;end;local Joints={Left_Hip;Left_Shoulder;Right_Hip;Neck;RootJoint;
- Right_Shoulder}; local CFrames,CFrame_Mode={['Right Arm']={};['Left Arm']={};['Right Leg']={};
- ['Left Leg']={};Head={};Torso={};},{['Right Arm']='Sample';['Left Arm']='Sample';['Right Leg']='Sample';
- ['Left Leg']='Sample';Head='Sample';Torso='Sample';};
- local Change_Mode=function(t_1,mode)for _,a in pairs(t_1)do CFrame_Mode[a]=mode;end;end;
- (function()--[[Appearence]]local a=pchar:FindFirstChildWhichIsA'Shirt'or Instance_2('Shirt',{
- Parent=pchar;});if Set_Up_1.Shirt_Asset==true then elseif Set_Up_1.Shirt_Asset then
- a.ShirtTemplate=Asset_Prefix..Set_Up_1.Shirt_Asset;else Remove(a);end;
- local a=pchar:FindFirstChildWhichIsA'Pants'or Instance_2('Pants',{Parent=pchar;});
- if Set_Up_1.Pants_Asset==true then elseif Set_Up_1.Pants_Asset then
- a.Pants=Asset_Prefix..Set_Up_1.Pants_Asset;else Remove(a);end;
- if #Set_Up_1.Customized_Face_Ids~=0 then for _,a in pairs(Head:GetChildren())do
- if a:IsA'Decal'then Remove(a);end;end;for _,a in pairs(Set_Up_1.Customized_Face_Ids)do
- local b=(typeof(a)=='table'and a)or{Color3=Color3.fromRGB(255,255,255);Transparency=0;Texture=
- Asset_Prefix..tostring(a)};b.Parent=Head;b.Face='Front';Instance_2('Decal',b);end;end;
- for a,b in pairs(Set_Up_1.Destroy_Accessories)do if b then for _,c in pairs(pchar:GetChildren())
- do(function()if not c:IsA'Accessory'then return;end;
- local d=c:FindFirstChildWhichIsA('Attachment',true);if not d then return;end;if a~=d.Name then
- return;end;c:Destroy();end)();end;end;end;if Set_Up_1.Destroy_Character_Meshes then
- for _,a in pairs(pchar:GetChildren())do if a:IsA'CharacterMesh'then Remove(a);end;end;end;
- local function Instance_2(a,b)local c=Instance.new(a);for d,e in pairs(b)do
- pcall(function()c[d]=e;end);end;return c;end;
- local function Union(a,b,c)if not a or not b then return;end;if typeof(b)=='Instance'then
- b={b};end;local d={a};table.foreach(b,function(_,e)table.insert(d,e);end);for _,e in pairs(d)do
- (function()if type(e)=='boolean'then return;end;
- for _,f in pairs({'Material';'Color';'Reflectance';'Transparency'})do e[f]=a[f];end;
- d.Anchored=true;d.CanCollide=false;d.Massless=true;end)();end;
- local e=(c and a:SubtractAsync(b))or a:UnionAsync(b);for _,f in pairs(d)do
- if typeof(f)=='Instance'then f:Destroy();end;end;return e;end;
- local Object_0=Instance_2("Model",{Parent=workspace;});local Object_1=Instance_2("Model",{Parent=
- Object_0;});local Object_1_1=Instance_2("Part",{Color=Color3.new(.972549,.972549,.972549);CFrame=
- CFrame.new(-4.35000038,2.60000968,-6.9000001,.707106829,0,.707106829,0,1,0,-.707106829,0,.707106829);
- Parent=Object_1;Anchored=true;Size=Vector3.new(.699999928,.599999905,.599999905);});
- Object_1_1.Name='a'
- local Object_1_2=Instance_2("Part",{Color=Color3.new(.972549,.972549,.972549);CFrame=CFrame.new(-
- 4.95000172,2.60000968,-7.49999905,.707106829,0,-.707106829,0,1,0,.707106829,0,.707106829);Parent=
- Object_1;Anchored=true;Size=Vector3.new(.699999928,.599999905,.599999905);});
- local Object_1_3=Instance_2("Part",{Color=Color3.new(.972549,.972549,.972549);CFrame=CFrame.new(-
- 4.25,2.60000968,-8.59999847,.707106829,0,-.707106829,0,1,0,.707106829,0,.707106829);Parent=Object_1;
- Anchored=true;Size=Vector3.new(.699999928,.599999905,.599999905);});local Object_2=Instance_2("Model"
- ,{Parent=Object_0;});local Object_9=Instance_2("Part",{CanCollide=false;CFrame=CFrame.new(-5,
- 2.95000863,-5,0,1,0,-1,0,0,0,0,1);Parent=Object_0;Transparency=1;Anchored=true;Size=Vector3.new(
- 1.00000012,1.60000002,1.60000002);});local Object_9_1=Instance_2("SurfaceGui",{Adornee=nil;Face='Top';
- Parent=Object_9;});local Object_9_2=Instance_2("ClickDetector",{Parent=Object_9;});
- local Object_10=Instance_2("Part",{Color=Color3.new(1,1,0);CFrame=CFrame.new(-5,2.95002007,-5,0,0
- ,-1,0,1,0,1,0,0);Parent=Object_0;Anchored=true;Material='Foil';Size=Vector3.new(2,1,2);});
- local Object_11=Instance_2("Part",{CanCollide=false;CFrame=CFrame.new(-4.6999979,2.95000863,-
- 7.5999999,0,1,0,-1,0,0,0,0,1);Parent=Object_0;Transparency=1;Anchored=true;Size=Vector3.new(
- 1.00000012,1.60000002,2.79999971);});local Object_11_1=Instance_2("SurfaceGui",{Adornee=nil;Face=
- 'Top';Parent=Object_11;});local Object_11_2=Instance_2("ClickDetector",{Parent=Object_11;});
- local Object_12=Instance_2("Part",{CanCollide=false;CFrame=CFrame.new(-4.99999428,2.95000863,-
- 10.9999962,0,1,0,-1,0,0,0,0,1);Parent=Object_0;Transparency=1;Anchored=true;Size=Vector3.new(
- 1.20000017,2.19999981,2.20000052);});local Object_12_1=Instance_2("SurfaceGui",{Adornee=nil;Face=
- 'Top';Parent=Object_12;});local Object_12_2=Instance_2("ClickDetector",{Parent=Object_12;});
- Instance_2("SpecialMesh",{MeshType='FileMesh';Parent=Object_1_1;MeshId=[==[rbxassetid://887550595]==];
- Scale=Vector3.new(.25,.25,.25);});Instance_2("SpecialMesh",{MeshType='FileMesh';Parent=Object_1_2;
- MeshId=[==[rbxassetid://887550595]==];Scale=Vector3.new(.25,.25,.25);});Instance_2("SpecialMesh",{
- MeshType='FileMesh';Parent=Object_1_3;MeshId=[==[rbxassetid://887550595]==];Scale=Vector3.new(.25,
- .25,.25);});Instance_2("Part",{Color=Color3.new(1,.666667,0);CFrame=CFrame.new(-5.00002766,
- 3.40000749,-11.0000019,1,0,0,0,1,0,0,0,1);Parent=Object_2;Anchored=true;Material='Sand';Size=
- Vector3.new(2,.099999927,2.00000024);});Instance_2("Part",{Color=Color3.new(1,.666667,0);CFrame=
- CFrame.new(-5.00002766,2.85000968,-11.9499979,1,0,0,0,1,0,0,0,1);Parent=Object_2;Anchored=true;
- Material='Sand';Size=Vector3.new(1.79999995,1,.0999999717);});Instance_2("Part",{Color=Color3.new(1,
- .666667,0);CFrame=CFrame.new(-4.05000591,2.85000968,-11,1,0,0,0,1,0,0,0,1);Parent=Object_2;Anchored=
- true;Material='Sand';Size=Vector3.new(.0999998078,1,2);});Instance_2("Part",{Color=Color3.new(1,
- .666667,0);CFrame=CFrame.new(-5.00002766,2.40000892,-11.0000019,1,0,0,0,1,0,0,0,1);Parent=Object_2;
- Anchored=true;Material='Sand';Size=Vector3.new(1.79999995,.099999927,1.80000019);});
- Instance_2("Part",{Color=Color3.new(1,.666667,0);CFrame=CFrame.new(-5.00002766,2.85000968,-10.0499992,
- 1,0,0,0,1,0,0,0,1);Parent=Object_2;Anchored=true;Material='Sand';Size=Vector3.new(1.79999995,1,
- .0999999717);});Instance_2("Part",{Color=Color3.new(1,.666667,0);CFrame=CFrame.new(-5.95001411,
- 2.85000968,-10.9999962,1,0,0,0,1,0,0,0,1);Parent=Object_2;Anchored=true;Material='Sand';Size=
- Vector3.new(.0999998078,1,2.00000024);});Instance_2("Part",{Color=Color3.new(1,0,0);CFrame=CFrame.new(
- 0,.0500099994,-9,1,0,0,0,1,0,0,0,1);Parent=Object_0;Anchored=true;Material='Fabric';Size=Vector3.new(
- 8,.0999999717,10);});Instance_2("Part",{CFrame=CFrame.new(-5,1.10000968,-9,0,0,1,0,1,0,-1,0,0);
- Parent=Object_0;Anchored=true;Material='Pebble';Size=Vector3.new(10,2,2);});Instance_2("Part",{Color=
- Color3.new(.388235,.372549,.384314);CFrame=CFrame.new(-1,2.23000884,-14.8800001,0,0,1,0,1,0,-1,0,0);
- Parent=Object_0;Anchored=true;Material='Marble';Size=Vector3.new(2.25,.25,10);});Instance_2("Part",{
- CFrame=CFrame.new(-1,1.10000968,-15,0,0,1,0,1,0,-1,0,0);Parent=Object_0;Anchored=true;Material=
- 'Pebble';Size=Vector3.new(2,2,10);});Instance_2("Part",{Color=Color3.new(.388235,.372549,.384314);
- CFrame=CFrame.new(-4.875,2.22500968,-8.875,0,0,1,0,1,0,-1,0,0);Parent=Object_0;Anchored=true;
- Material='Marble';Size=Vector3.new(9.75,.25,2.25);});Instance_2("Part",{Color=
- Color3.new(.929412,.917647,.917647);CFrame=CFrame.new(-5,2.40000892,-5,0,1,0,-1,0,0,0,0,1);
- Parent=Object_0;Anchored=true;Shape='Cylinder';Size=Vector3.new(.100000001,1.75,1.75);});
- Instance_2("TextLabel",{TextWrapped=true;Parent=Object_9_1;TextStrokeTransparency=0;Size=UDim2.new(1,
- 0,1,0);BorderColor3=Color3.new(.105882,.164706,.207843);Text=[==[Hot water]==];TextColor3=Color3.new(
- 1,1,1);Font='Code';BackgroundTransparency=2;TextScaled=true;});Instance_2("SpecialMesh",{
- MeshType='FileMesh';Parent=Object_10;MeshId=[==[rbxassetid://430920848]==];Scale=Vector3.new(
- .0500000007,.0500000007,.0500000007);});Instance_2("TextLabel",{TextWrapped=true;Parent=Object_11_1;
- TextStrokeTransparency=0;Size=UDim2.new(1,0,1,0);BorderColor3=Color3.new(.105882,.164706,.207843);
- Text=[==[Cups]==];TextColor3=Color3.new(1,1,1);Font='Code';BackgroundTransparency=2;TextScaled=
- true;});Instance_2("TextLabel",{TextWrapped=true;Parent=Object_12_1;TextStrokeTransparency=0;Size=
- UDim2.new(1,0,1,0);BorderColor3=Color3.new(.105882,.164706,.207843);Text=[==[Tea]==];TextColor3=
- Color3.new(1,1,1);Font='Code';BackgroundTransparency=2;TextScaled=true;});
- Object_10.Size=Vector3.new(1,1,1);
- Object_9_1.SizingMode="PixelsPerStud";Object_9_1.PixelsPerStud=100;
- Object_11_1.SizingMode="PixelsPerStud";
- Object_11_1.PixelsPerStud=100;Object_12_1.SizingMode="PixelsPerStud";Object_12_1.PixelsPerStud=100;
- -- Tea
- local Drinking_CFrame=CFrame.new(-.0495868921,-.932538748,-1.5064466,0,-.707106829,.707106829,
- 0,.707106829,.707106829,-1,0,0);
- Object_11_2.MouseClick:Connect(function(a)
- local function Instance_2(a,b)local c=Instance.new(a);for d,e in pairs(b)do pcall(function()
- c[d]=e;end);end;return c;end;local function Union(a,b,c)if not a or not b then return;end;
- if typeof(b)=='Instance'then b={b};end;local d={a};table.foreach(b,function(_,e)table.insert(d,e);end);
- for _,e in pairs(d)do(function()if type(e)=='boolean'then return;end;for _,f in pairs({'Material';
- 'Color';'Reflectance';'Transparency'})do e[f]=a[f];end;d.Anchored=true;d.CanCollide=false;
- d.Massless=true;end)();end;local e=(c and a:SubtractAsync(b))or a:UnionAsync(b);for _,f in pairs(d)do
- if typeof(f)=='Instance'then f:Destroy();end;end;return e;end;
- local Object_0=Instance_2("Tool",{Parent=workspace;Grip=CFrame.new(.273552775,0,-.00644657016,0,0,1,0,
- 1,0,-1,0,0);Name=[==[Empty Cup]==];});local Object_1=Instance_2("Part",{Color=Color3.new(.972549,.972549,
- .972549);CFrame=CFrame.new(-4.35000038,2.60000968,4.29999924,1,0,0,0,1,0,0,0,1);Parent=Object_0;
- Anchored=true;Name='Handle';Size=Vector3.new(.699999928,.599999905,.599999905);});
- Instance_2("SpecialMesh",{MeshType='FileMesh';Parent=Object_1;MeshId=[==[rbxassetid://887550595]==];
- Scale=Vector3.new(.25,.25,.25);});Object_0.Parent=a:FindFirstChildWhichIsA'Backpack';
- Object_1.Anchored=false;end);
- Object_9_2.MouseClick:Connect(function(a)local bp=a:FindFirstChildWhichIsA'Backpack';
- local char=a.Character;if not bp or not char then return;end;
- local b=bp:FindFirstChild'Empty Cup'or char:FindFirstChild'Empty Cup'if not b then return;end;Remove(b);
- local function Instance_2(a,b)local c=Instance.new(a);for d,e in pairs(b)do pcall(function()c[d]=e;end);
- end;return c;end;local function Union(a,b,c)if not a or not b then
- return;end;if typeof(b)=='Instance'then b={b};end;local d={a};table.foreach(b,function(_,e)
- table.insert(d,e);end);for _,e in pairs(d)do(function()if type(e)=='boolean'then return;end;
- for _,f in pairs({'Material';'Color';'Reflectance';'Transparency'})do e[f]=a[f];end;d.Anchored=true;
- d.CanCollide=false;d.Massless=true;end)();end;local e=(c and a:SubtractAsync(b))or a:UnionAsync(b);
- for _,f in pairs(d)do if typeof(f)=='Instance'then f:Destroy();end;end;return e;end;
- local Object_0=Instance_2("Tool",{Parent=workspace;Grip=CFrame.new(.273552775,0,-.00644657016,0,0,1,
- 0,1,0,-1,0,0);Name=[==[Cup of Hot Water]==];});local Object_1=Instance_2("Part",{Color=Color3.new(
- .972549,.972549,.972549);CFrame=CFrame.new(-4.35000038,2.60000968,6.79999828,1,0,0,0,1,0,0,0,1);
- Parent=Object_0;Anchored=false;Size=Vector3.new(.699999928,.599999905,.599999905);Name='Handle';});
- local Object_2=Instance_2("Part",{Color=Color3.fromRGB(175,221,255);CFrame=CFrame.new(-4.42500114,
- 2.70001817,6.79999924,0,-1,0,1,0,0,0,0,1);Parent=Object_0;Transparency=.5;Shape='Cylinder';Material=
- 'Glass';Size=Vector3.new(.0500000045,.450000018,.499999911);});Instance_2("SpecialMesh",{MeshType=
- 'FileMesh';Parent=Object_1;MeshId=[==[rbxassetid://887550595]==];Scale=Vector3.new(.25,.25,.25);});
- Instance_2("ParticleEmitter",{Color=ColorSequence.new({ColorSequenceKeypoint.new(0,Color3.new(1,1,1));
- ColorSequenceKeypoint.new(1,Color3.new(1,1,1));});Speed=NumberRange.new(.10000000149012,.10000000149012
- );Size=NumberSequence.new({NumberSequenceKeypoint.new(0,.10000000149012,0);NumberSequenceKeypoint.new(1,
- .10000000149012,0);});RotSpeed=NumberRange.new(0,0);Rate=4;Rotation=NumberRange.new(0,0);
- EmissionDirection='Right';Parent=Object_2;Texture=[==[http://www.roblox.com/asset/?id=512537486]==];});
- local Object_3=Instance_2("WeldConstraint",{Parent=Object_0;});Object_3.Part1=Object_2;
- Object_3.Part0=Object_1;Object_0.Parent=bp;end);Object_12_2.MouseClick:Connect(function(a)
- local bp=a:FindFirstChildWhichIsA'Backpack';local char=a.Character;if not(bp and char)then return;end;
- local b=bp:FindFirstChild'Cup of Hot Water'or char:FindFirstChild'Cup of Hot Water';if not b then
- return;end;Remove(b);local function Instance_2(a,b)local c=Instance.new(a);for d,e in pairs(b)do
- pcall(function()c[d]=e;end);end;return c;end;local function Union(a,b,c)if not a or not b then
- return;end;if typeof(b)=='Instance'then b={b};end;local d={a};table.foreach(b,function(_,e)
- table.insert(d,e);end);for _,e in pairs(d)do(function()if type(e)=='boolean'then return;end;
- for _,f in pairs({'Material';'Color';'Reflectance';'Transparency'})do e[f]=a[f];end;
- d.Anchored=true;d.CanCollide=false;d.Massless=true;end)();end;
- local e=(c and a:SubtractAsync(b))or a:UnionAsync(b);for _,f in pairs(d)do
- if typeof(f)=='Instance'then f:Destroy();end;end;return e;end;local Object_0=Instance_2("Tool",{
- Parent=workspace;Grip=CFrame.new(.273552775,0,-.00644657016,0,0,1,0,1,0,-1,0,0);Name=
- [==[Cup of Tea]==];});local Object_1=Instance_2("Part",{Name='Handle';Color=Color3.new(.972549,.972549
- ,.972549);CFrame=CFrame.new(-4.35000038,2.60000968,5.54999924,1,0,0,0,1,0,0,0,1);Parent=Object_0;Size=
- Vector3.new(.699999928,.599999905,.599999905);});local Object_2=Instance_2("Part",{Color=Color3.new(
- .666667,.333333,0);CFrame=CFrame.new(-4.42500114,2.70001817,5.55000019,0,-1,0,1,0,0,0,0,1);Parent=
- Object_0;Transparency=.5;Shape='Cylinder';Material='Glass';Size=Vector3.new(.0500000045,.450000018,
- .499999911);});Instance_2("SpecialMesh",{MeshType='FileMesh';Parent=Object_1;MeshId=
- [==[rbxassetid://887550595]==];Scale=Vector3.new(.25,.25,.25);});Instance_2("ParticleEmitter",{Color=
- ColorSequence.new({ColorSequenceKeypoint.new(0,Color3.new(1,1,1));ColorSequenceKeypoint.new(1,Color3.
- new(1,1,1));});Speed=NumberRange.new(.10000000149012,.10000000149012);Size=NumberSequence.new({
- NumberSequenceKeypoint.new(0,.10000000149012,0);NumberSequenceKeypoint.new(1,.10000000149012,0);});
- RotSpeed=NumberRange.new(0,0);Rate=4;Rotation=NumberRange.new(0,0);EmissionDirection='Right';Parent
- =Object_2;Texture=[==[http://www.roblox.com/asset/?id=512537486]==];});
- local Object_3=Instance_2("WeldConstraint",{Parent=Object_0;});Object_3.Part1=Object_2;
- Object_3.Part0=Object_1;Object_0.Parent=bp;local Tea=Object_0;local bool=true;
- Tea.Activated:Connect(function()if not bool then return;end;bool=false;local a=Tea.Grip;
- Tea.Grip=Drinking_CFrame;local sound=Instance_2('Sound',{Parent=Object_1;SoundId=
- 'rbxassetid://10722059';Playing=false;Looped=false;Volume=1;});sound:Play();wait(3);Tea.Grip=a;
- Remove(Object_2);wait(1);local Char=Tea.Parent;Object_1.Parent=workspace;Remove(Tea);Remove(sound);
- local hrp=Char:FindFirstChild'HumanoidRootPart';local hum=Char:FindFirstChildWhichIsA'Humanoid';
- local RA=Char:FindFirstChild'Right Arm'or Char:FindFirstChild'Right Hand';if hum then
- local a1=(hum.MaxHealth-hum.Health<25 and hum.MaxHealth-hum.Health)or 25;hum:TakeDamage(-a1);end;
- if not hrp or not RA then return;end;local b=math.huge;local a=Instance_2('BodyVelocity',{Parent=
- Object_1;MaxForce=Vector3.new(b,b,b);Velocity=(Object_1.Position-RA.Position).unit*30;});wait();
- Remove(a);local e=true;Object_1.Touched:Connect(function(d)if not e then return;end;e=false;
- Object_1.Anchored=true;if d.Name=='Right Arm'or d.Name=='Right Hand'then return;end;local b={};
- for _=1,4 do local f=math.huge;local c=Instance_2('Part',{Size=Vector3.new(.25,.25,.25);Parent=
- workspace;CanCollide=false;Anchored=false;Shape='Block';Color=Object_1.Color;Transparency=0;Position=
- Object_1.Position+Vector3.new((math.random(1,10)/10)-.5,.05,(math.random(1,10)/10)-.5);});
- table.insert(b,Instance_2('BodyVelocity',{Parent=c;MaxForce=Vector3.new(f,f,f);Velocity=(c.Position-
- Object_1.Position).unit*30;}));end;Remove(Object_1);wait();for _,c in pairs(b)do Remove(c);end;end);
- end);end);
- end)();
- local function Animation(cfs,In_Action)for _,c in pairs(Joints)do for a,b in pairs(cfs)do
- if c.Part1.Name==a then for d,e in pairs(b)do if In_Action[a]==d then
- c.C0,c.C1=clerp(c.C0,e.C0,e[3]or.5),clerp(c.C1,e.C1,e[3]or.5);end;end;break;end;end;end;end;
- local function ServerHandler(pl,...)local args={...};
- end;
- local function Movement_Mode(arg1)
- end;
- Humanoid.MaxHealth=Set_Up_1.Health or 100;Humanoid.WalkSpeed=Set_Up_1.WalkSpeed or 16;
- Humanoid.JumpPower=Set_Up_1.JumpPower or 50;Humanoid.Health=Humanoid.MaxHealth;cwrap(function()
- while true do wait();Animation(CFrames,CFrame_Mode);end;end);
- RE.OnServerEvent:Connect(ServerHandler);RF.OnServerInvoke=ServerHandler;
- end;
- Set_Up_Function'FindPlayer';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement