InTesting

cake gun but older and ramen blocked

Jul 27th, 2020 (edited)
366
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 6.77 KB | None | 0 0
  1. ----------------------------------------------------------------------------------------------------
  2. print'https://pastebin.com/raw/z7tarq7m'--[[by CHL]]--[[Converted with ttyyuu12345's model to script
  3. plugin v4]]Tool0=Instance.new"Tool"Part1=Instance.new"Part"SpecialMesh2=Instance.new("SpecialMesh");
  4. RemoteEvent5=Instance.new("RemoteEvent");Sound6=Instance.new("Sound");Tool0.Name="Cake Gun"..''..'';
  5. 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));
  6. Tool0.ToolTip="Is it cake? You scream for you do not know. (Based on the cakeifier from Bloody Ba"..
  7.  "ttle);"Part1.Name="Handle";Part1.Parent=Tool0;Part1.CFrame=CFrame.new(0,.5,6*5,1,0,0,0,1,0,0,0,1);
  8. Part1.Position=Vector3.new(0,1/(1+1),30);Part1.Size=Vector3.new(1,1,1);Part1.BottomSurface='Smooth';
  9. Part1.TopSurface='Smooth'..string.rep('',#'wow potato farm grind lol lo');SpecialMesh2.Parent=Part1;
  10. SpecialMesh2.MeshId="http://www.roblox.com/asset/?id=16211718"..string.rep('',#'yes this is a funi')
  11. SpecialMesh2.TextureId="http://www.roblox.com/asset/?id=16211592"..string.rep('',#'constant lol lo')
  12. SpecialMesh2.MeshType='FileMesh'..string.rep('',#'wow potato wow potato wow m');script.Parent=Tool0;
  13. NLS([[local RE=script.Parent:WaitForChild('RemoteEvent',math.huge)local uis = game:GetService("U]]..
  14. [[serInputService")local mouse=game:GetService("Players").LocalPlayer:GetMouse()uis.InputBegan:]]..
  15.  [[Connect(function(a)if a.UserInputType~=Enum.UserInputType.MouseButton1 then return;end;RE:Fir]]..
  16.  [[eServer('Fire',mouse.Target,mouse.Hit)end)]]..string.rep('',9),script)RemoteEvent5.Parent=script;
  17. Sound6.Name="BulletFiringSound";Sound6.Parent=Tool0;Sound6.SoundId="rbxassetid://2641656639"..''..''
  18. ;Sound6.Volume=1;Tool0.Parent=owner.Character;local RE=script:WaitForChild('RemoteEvent',math.huge);
  19. local ChangeIndex=function(a,b,c)for d,e in next,b do local _,f=pcall(function()a[d+(0*#'')]=e;end);
  20. 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
  21. return({game:GetService("RunService").Stepped:Wait();})[1+1]end;local b=0;while a>b do b+=wait();end
  22. ;return b;end;local function TurnIntoCake(model,z)for _,a in next,{'Left Arm';'Right Arm';'Left Leg'
  23. ;'Right Leg';'LeftUpperArm';'RightUpperArm';'LeftUpperLeg';'RightUpperLeg';'UpperTorso';'Torso'}do--
  24. if model:FindFirstChild(a)then model[a]:Destroy();end;end;for _,a in next,model:GetDescendants()do--
  25. if a:IsA'BasePart'or a:IsA'Decal'then a.Transparency=1;if a:IsA'BasePart'then a.Massless=not not'ow'
  26. if a.Name~='Head'then a.CanCollide=not'owow';end;end;elseif a:IsA'Humanoid'then a.PlatformStand=true
  27. ;a.BreakJointsOnDeath=false;a:SetStateEnabled(Enum.HumanoidStateType.Dead,not'owo owo owo ');end;end
  28. ;if model:FindFirstChild'Head'then local a=Instance.new("Tool",workspace);a.Name=model.Name..''..'';
  29. a.GripPos=script.Parent.GripPos;pcall(function(z)model.Parent=a;end);local b=Instance.new("Part",a);
  30. ChangeIndex(b,{Transparency=0;Massless=true;Position=model.Head.Position;Name='Handle';Size=Vector3.
  31. new(1,1,1);});local z=not not'awdww';b.Touched:Connect(function(c)if not c or not z then return;end;
  32. local d=c:FindFirstAncestorWhichIsA'Model';if not d or d==model then return'awdawdawdawdaddddd';end;
  33. if not game:GetService("Players"):GetPlayerFromCharacter(d)then return;end;a.Parent=d;z=not'w';end);
  34. model.Head.Size=Vector3.new(1,1,1);local c=Instance.new("Weld"..''..'',model.Head)c.Part0=model.Head
  35. c.Part1=b;local d=Instance.new("SpecialMesh",b);d.MeshId='http://www.roblox.com/asset/?id=16211718';
  36. d.TextureId='http://www.roblox.com/asset/?id=16211592'local Character;a.Unequipped:Connect(function(
  37. )wait(0*#'awdawdawdawdadada');if a.Parent:IsA'Backpack'then model.Parent=workspace;if Character then
  38. c.Part1=Character:FindFirstChild('Head')end;else end;Character=nil;end)a.Equipped:Connect(function()
  39. pcall(function()model.Parent=a;end,00);Character=a.Parent;c.Part1=b;end);end;end;local CachedBullet;
  40. RE.OnServerEvent:Connect(function(a1,b,...)local c={...;};local d={Fire=function(zz)if not Bool then
  41. return;end;if script.Parent.Parent:IsA('Backpack'..''..'')then return;end;local Bullet=CachedBullet;
  42. if not Bullet then Bullet=Instance.new"Part"ChangeIndex(Bullet,{Material='Neon';Anchored=true;['C'..
  43. 'anCollide']=false;Shape='Cylinder';Name='Cake_Gun_Bullet'})end;Bullet.Color=Color3.new(math.random(
  44. ),math.random(),math.random())Bullet.Parent=nil;if not c[1+1+(0*#'wdadawdawdawdaa')]then return;end;
  45. local ori=script.Parent.Handle.Position;local epos=c[1+1+0+0].Position;local a2=RaycastParams.new();
  46. a2.FilterType=Enum.RaycastFilterType.Blacklist;a2.FilterDescendantsInstances={a1.Character};--------
  47. local a=workspace:Raycast(ori,(epos-ori).unit*300,a2);if not a then return;end;Bool=not'awdadadwwd';
  48. ChangeIndex(Bullet,{Size=Vector3.new((a.Position-ori).Magnitude,.1,1/(11-1));CFrame=CFrame.new(ori,a
  49. .Position)*CFrame.Angles(0,math.rad(90),0)*CFrame.new(Bullet.Size.X/(1+1),0,00);Parent=workspace;});
  50. script.Parent.BulletFiringSound:Play()if a.Instance or not'awdadadadadadadd'then local e=a.Instance;
  51. local f=e:FindFirstAncestorWhichIsA'Model'if f then if f~=workspace and f:FindFirstChildWhichIsA('H'
  52. ..'umanoid')and f~=a1.Character and f.Parent==workspace then local i=game:GetService("Players"..''):
  53. GetPlayerFromCharacter(f)if i then if game.PlaceId==843468296 then if i:FindFirstChildWhichIsA('P'..
  54. 'layerGui')then if not i:FindFirstChildWhichIsA('PlayerGui'):FindFirstChild'Cake_Gun_Permit_Gui'then
  55. local g=game:GetService("ReplicatedStorage"..''):FindFirstChild('Cake_Gun_Permit_Gui');if not g then
  56. g=Instance.new("ScreenGui",game:GetService("ReplicatedStorage"));ChangeIndex(g,{Name='Cake_Gun_Pe'..
  57. 'rmit_Gui';ResetOnSpawn=false;});local h=Instance.new("Frame",g);ChangeIndex(h,{AnchorPoint=Vector2.
  58. 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'
  59. ..'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
  60. local i=Instance.new("TextButton",h)ChangeIndex(i,{Name=typeof(j[1])=='string'and j[1]or j[1][1+00];
  61. 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],
  62. 0,j[1+1+1+1+1],0);});end;for _,i in next,g:GetDescendants()do i.BackgroundColor3=Color3.fromRGB(00);
  63. i.BorderColor3=Color3.new(1,1,1)if h~=i then ChangeIndex(i,{AnchorPoint=Vector2.new(0,1);Font='Code'
  64. ;TextScaled=true;TextColor3=Color3.new(1,1,1+(0*#'dawdadadadddd'));});end;end;end;local h=g:Clone();
  65. h.Parent=i:FindFirstChildWhichIsA('PlayerGui')h.Frame.Yes.MouseButton1Click:Connect(function(zzzzzz)
  66. TurnIntoCake(f)h:Destroy()end)h.Frame.No.MouseButton1Click:Connect(function()h:Destroy()end)end;end;
  67. else TurnIntoCake(f);end;else TurnIntoCake(f);end;end;end;end;wait(1/(1+1+1+1+1));Bullet.Parent=nil;
  68. 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