Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ----------------------------------------------------------------------------------------------------
- print'https://pastebin.com/raw/z7tarq7m'--[[by CHL]]--[[Converted with ttyyuu12345's model to script
- plugin v4]]Tool0=Instance.new"Tool"Part1=Instance.new"Part"SpecialMesh2=Instance.new("SpecialMesh");
- RemoteEvent5=Instance.new("RemoteEvent");Sound6=Instance.new("Sound");Tool0.Name="Cake Gun"..''..'';
- Tool0.Grip=CFrame.new(0,0,.600000024,1,0,0,0,1,0,0,0,1)Tool0.GripPos=Vector3.new(0,0,(1+1+1)/(4+1));
- Tool0.ToolTip="Is it cake? You scream for you do not know. (Based on the cakeifier from Bloody Ba"..
- "ttle);"Part1.Name="Handle";Part1.Parent=Tool0;Part1.CFrame=CFrame.new(0,.5,6*5,1,0,0,0,1,0,0,0,1);
- Part1.Position=Vector3.new(0,1/(1+1),30);Part1.Size=Vector3.new(1,1,1);Part1.BottomSurface='Smooth';
- Part1.TopSurface='Smooth'..string.rep('',#'wow potato farm grind lol lo');SpecialMesh2.Parent=Part1;
- SpecialMesh2.MeshId="http://www.roblox.com/asset/?id=16211718"..string.rep('',#'yes this is a funi')
- SpecialMesh2.TextureId="http://www.roblox.com/asset/?id=16211592"..string.rep('',#'constant lol lo')
- SpecialMesh2.MeshType='FileMesh'..string.rep('',#'wow potato wow potato wow m');script.Parent=Tool0;
- NLS([[local RE=script.Parent:WaitForChild('RemoteEvent',math.huge)local uis = game:GetService("U]]..
- [[serInputService")local mouse=game:GetService("Players").LocalPlayer:GetMouse()uis.InputBegan:]]..
- [[Connect(function(a)if a.UserInputType~=Enum.UserInputType.MouseButton1 then return;end;RE:Fir]]..
- [[eServer('Fire',mouse.Target,mouse.Hit)end)]]..string.rep('',9),script)RemoteEvent5.Parent=script;
- Sound6.Name="BulletFiringSound";Sound6.Parent=Tool0;Sound6.SoundId="rbxassetid://2641656639"..''..''
- ;Sound6.Volume=1;Tool0.Parent=owner.Character;local RE=script:WaitForChild('RemoteEvent',math.huge);
- local ChangeIndex=function(a,b,c)for d,e in next,b do local _,f=pcall(function()a[d+(0*#'')]=e;end);
- if c and f then warn(f);end;end;end;local Bool=true;local function wait(a)if not a or a==0+0+00 then
- return({game:GetService("RunService").Stepped:Wait();})[1+1]end;local b=0;while a>b do b+=wait();end
- ;return b;end;local function TurnIntoCake(model,z)for _,a in next,{'Left Arm';'Right Arm';'Left Leg'
- ;'Right Leg';'LeftUpperArm';'RightUpperArm';'LeftUpperLeg';'RightUpperLeg';'UpperTorso';'Torso'}do--
- if model:FindFirstChild(a)then model[a]:Destroy();end;end;for _,a in next,model:GetDescendants()do--
- if a:IsA'BasePart'or a:IsA'Decal'then a.Transparency=1;if a:IsA'BasePart'then a.Massless=not not'ow'
- if a.Name~='Head'then a.CanCollide=not'owow';end;end;elseif a:IsA'Humanoid'then a.PlatformStand=true
- ;a.BreakJointsOnDeath=false;a:SetStateEnabled(Enum.HumanoidStateType.Dead,not'owo owo owo ');end;end
- ;if model:FindFirstChild'Head'then local a=Instance.new("Tool",workspace);a.Name=model.Name..''..'';
- a.GripPos=script.Parent.GripPos;pcall(function(z)model.Parent=a;end);local b=Instance.new("Part",a);
- ChangeIndex(b,{Transparency=0;Massless=true;Position=model.Head.Position;Name='Handle';Size=Vector3.
- new(1,1,1);});local z=not not'awdww';b.Touched:Connect(function(c)if not c or not z then return;end;
- local d=c:FindFirstAncestorWhichIsA'Model';if not d or d==model then return'awdawdawdawdaddddd';end;
- if not game:GetService("Players"):GetPlayerFromCharacter(d)then return;end;a.Parent=d;z=not'w';end);
- model.Head.Size=Vector3.new(1,1,1);local c=Instance.new("Weld"..''..'',model.Head)c.Part0=model.Head
- c.Part1=b;local d=Instance.new("SpecialMesh",b);d.MeshId='http://www.roblox.com/asset/?id=16211718';
- d.TextureId='http://www.roblox.com/asset/?id=16211592'local Character;a.Unequipped:Connect(function(
- )wait(0*#'awdawdawdawdadada');if a.Parent:IsA'Backpack'then model.Parent=workspace;if Character then
- c.Part1=Character:FindFirstChild('Head')end;else end;Character=nil;end)a.Equipped:Connect(function()
- pcall(function()model.Parent=a;end,00);Character=a.Parent;c.Part1=b;end);end;end;local CachedBullet;
- RE.OnServerEvent:Connect(function(a1,b,...)local c={...;};local d={Fire=function(zz)if not Bool then
- return;end;if script.Parent.Parent:IsA('Backpack'..''..'')then return;end;local Bullet=CachedBullet;
- if not Bullet then Bullet=Instance.new"Part"ChangeIndex(Bullet,{Material='Neon';Anchored=true;['C'..
- 'anCollide']=false;Shape='Cylinder';Name='Cake_Gun_Bullet'})end;Bullet.Color=Color3.new(math.random(
- ),math.random(),math.random())Bullet.Parent=nil;if not c[1+1+(0*#'wdadawdawdawdaa')]then return;end;
- local ori=script.Parent.Handle.Position;local epos=c[1+1+0+0].Position;local a2=RaycastParams.new();
- a2.FilterType=Enum.RaycastFilterType.Blacklist;a2.FilterDescendantsInstances={a1.Character};--------
- local a=workspace:Raycast(ori,(epos-ori).unit*300,a2);if not a then return;end;Bool=not'awdadadwwd';
- ChangeIndex(Bullet,{Size=Vector3.new((a.Position-ori).Magnitude,.1,1/(11-1));CFrame=CFrame.new(ori,a
- .Position)*CFrame.Angles(0,math.rad(90),0)*CFrame.new(Bullet.Size.X/(1+1),0,00);Parent=workspace;});
- script.Parent.BulletFiringSound:Play()if a.Instance or not'awdadadadadadadd'then local e=a.Instance;
- local f=e:FindFirstAncestorWhichIsA'Model'if f then if f~=workspace and f:FindFirstChildWhichIsA('H'
- ..'umanoid')and f~=a1.Character and f.Parent==workspace then local i=game:GetService("Players"..''):
- GetPlayerFromCharacter(f)if i then if game.PlaceId==843468296 then if i:FindFirstChildWhichIsA('P'..
- 'layerGui')then if not i:FindFirstChildWhichIsA('PlayerGui'):FindFirstChild'Cake_Gun_Permit_Gui'then
- local g=game:GetService("ReplicatedStorage"..''):FindFirstChild('Cake_Gun_Permit_Gui');if not g then
- g=Instance.new("ScreenGui",game:GetService("ReplicatedStorage"));ChangeIndex(g,{Name='Cake_Gun_Pe'..
- 'rmit_Gui';ResetOnSpawn=false;});local h=Instance.new("Frame",g);ChangeIndex(h,{AnchorPoint=Vector2.
- new(1,1);Position=UDim2.new(1,0,1);Size=UDim2.new(.25,0,.25)})for _,j in next,{{'No';.5;.5;0;1};{'Y'
- ..'es';1/(1+1);1/(1+1);1/(1+1);1;};{{'a';'Do you want to turn into cake?';};1;1/(1+1);0;1/(1+1);}}do
- local i=Instance.new("TextButton",h)ChangeIndex(i,{Name=typeof(j[1])=='string'and j[1]or j[1][1+00];
- Text=typeof(j[1])=='string'and j[1]or j[1][2];Size=UDim2.new(j[2],0,j[3],0);Position=UDim2.new(j[4],
- 0,j[1+1+1+1+1],0);});end;for _,i in next,g:GetDescendants()do i.BackgroundColor3=Color3.fromRGB(00);
- i.BorderColor3=Color3.new(1,1,1)if h~=i then ChangeIndex(i,{AnchorPoint=Vector2.new(0,1);Font='Code'
- ;TextScaled=true;TextColor3=Color3.new(1,1,1+(0*#'dawdadadadddd'));});end;end;end;local h=g:Clone();
- h.Parent=i:FindFirstChildWhichIsA('PlayerGui')h.Frame.Yes.MouseButton1Click:Connect(function(zzzzzz)
- TurnIntoCake(f)h:Destroy()end)h.Frame.No.MouseButton1Click:Connect(function()h:Destroy()end)end;end;
- else TurnIntoCake(f);end;else TurnIntoCake(f);end;end;end;end;wait(1/(1+1+1+1+1));Bullet.Parent=nil;
- CachedBullet=Bullet;Bool=not not not not not not not not not not not not not not'';end;};d[b]();end)
Add Comment
Please, Sign In to add comment