Advertisement
sawgamer1

Untitled

Jul 12th, 2018
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.88 KB | None | 0 0
  1. --Created with PenguinAnonymous's compiler
  2. --PenguinAnonymous is not responsible for damages caused to your game
  3. --This plugin does not remove things
  4. --PenguinAnonymous cannot be held resonsible for manual deletion for the purpose of testing
  5. --Keep in mind, any items that cause errors in compilation will be skipped and documented within the last line of the disclaimer comments
  6. --Thank you for using my plugin and enjoy :)
  7. --It is free to use
  8. --If you use this plugin to create your own, please give me credit
  9. --Z_V edited my plugin to look like his own and published it without giving me credit, and that makes me very angry
  10. --Errors: TouchTransmitter
  11. local runDummyScript = function(f,scri)
  12. local oldenv = getfenv(f)
  13. local newenv = setmetatable({}, {
  14. __index = function(_, k)
  15. if k:lower() == 'script' then
  16. return scri
  17. else
  18. return oldenv[k]
  19. end
  20. end
  21. })
  22. setfenv(f, newenv)
  23. ypcall(function() f() end)
  24. end
  25. cors = {}
  26. mas = Instance.new("Model",game:GetService("Lighting"))
  27. mas.Name = "CompiledModel"
  28. o1 = Instance.new("Tool")
  29. o2 = Instance.new("Part")
  30. o3 = Instance.new("Sound")
  31. o4 = Instance.new("SpecialMesh")
  32. o6 = Instance.new("LocalScript")
  33. o7 = Instance.new("Animation")
  34. o8 = Instance.new("ScreenGui")
  35. o9 = Instance.new("Frame")
  36. o10 = Instance.new("Frame")
  37. o11 = Instance.new("TextBox")
  38. o12 = Instance.new("TextLabel")
  39. o13 = Instance.new("ImageLabel")
  40. o1.Name = "Spray"
  41. o1.Parent = mas
  42. o1.TextureId = "http://www.roblox.com/asset/?id=79155357"
  43. o1.GripForward = Vector3.new(-0.963558197, -0, -0.267498881)
  44. o1.GripPos = Vector3.new(0.200000003, -0.25, -0.200000003)
  45. o1.GripRight = Vector3.new(0.267498881, 0, -0.963558197)
  46. o1.ToolTip = "Spray"
  47. o2.Name = "Handle"
  48. o2.Parent = o1
  49. o2.BrickColor = BrickColor.new("Bright red")
  50. o2.Reflectance = 0.34999999403954
  51. o2.Position = Vector3.new(-18.6200008, 2.85500336, 31.2900009)
  52. o2.Rotation = Vector3.new(-180, 0, -180)
  53. o2.Locked = true
  54. o2.FormFactor = Enum.FormFactor.Custom
  55. o2.Size = Vector3.new(0.759997845, 1.70999885, 0.579999983)
  56. o2.CFrame = CFrame.new(-18.6200008, 2.85500336, 31.2900009, -1, 4.49842456e-17, -9.71401124e-18, 4.49842456e-17, 1, 1.06407753e-16, 9.71401124e-18, 1.06407753e-16, -1)
  57. o2.Color = Color3.new(0.768628, 0.156863, 0.109804)
  58. o2.Position = Vector3.new(-18.6200008, 2.85500336, 31.2900009)
  59. o3.Parent = o2
  60. o3.SoundId = "http://www.roblox.com/asset/?id=78496487"
  61. o3.Volume = 1
  62. o4.Parent = o2
  63. o4.MeshId = "http://www.roblox.com/asset/?id=79146128"
  64. o4.TextureId = "http://www.roblox.com/asset/?id=79146220"
  65. o4.MeshType = Enum.MeshType.FileMesh
  66. o6.Parent = o1
  67. table.insert(cors,coroutine.create(function()
  68. wait()
  69. runDummyScript(function()
  70. --Stickmasterluke
  71.  
  72.  
  73. sp=script.Parent
  74.  
  75.  
  76. cooldown=2.1
  77. spraysize=5
  78. range=10
  79.  
  80. baseid="http://www.roblox.com/asset/?id="
  81. sprayid=80373024
  82. local debris=game:GetService("Debris")
  83. equipped=false
  84. check=true
  85.  
  86. while gui==nil do
  87. wait()
  88. gui=sp:FindFirstChild("SprayGui")
  89. end
  90.  
  91. function updateid()
  92. if gui:FindFirstChild("Frame") and gui.Frame:FindFirstChild("ImageLabel") and gui.Frame:FindFirstChild("Frame") then
  93. sprayid=tonumber(tostring(gui.Frame.Frame.TextBox.Text)) or 0
  94. gui.Frame.ImageLabel.Image=baseid..tostring(sprayid-1)
  95. gui.Frame.Frame.TextBox.Text=tostring(sprayid)
  96. end
  97. end
  98.  
  99. gui.Frame.Frame.TextBox.Changed:connect(updateid)
  100. updateid()
  101.  
  102. function onEquipped(mouse)
  103. equipped=true
  104. local plr=game.Players.LocalPlayer
  105. if mouse~=nil and plr~=nil then
  106. local plrgui=plr.PlayerGui
  107. if plrgui~=nil then
  108. gui.Parent=plrgui
  109. end
  110. mouse.Button1Down:connect(function()
  111. local chr=sp.Parent
  112. if chr and check and mouse.Target~=nil and mouse.TargetSurface~=nil and mouse.Target.Name~="Spray" and mouse.Target.Name~="Effect" and sprayid>0 then
  113. local surface=mouse.TargetSurface
  114. local t=chr:FindFirstChild("Torso")
  115. local h=chr:FindFirstChild("Humanoid")
  116. local animobject=sp:FindFirstChild("SprayPaint")
  117. if t and h and animobject then
  118. if h.Health>0 then
  119. check=false
  120. anim=h:LoadAnimation(animobject)
  121. if anim then
  122. anim:Play()
  123. sp.Handle.Sound:Play()
  124. end
  125. if (t.Position-mouse.Hit.p).magnitude<range then
  126. local canspray=false
  127. if (surface==Enum.NormalId.Front or surface==Enum.NormalId.Back) and mouse.Target.Size.x>=spraysize and mouse.Target.Size.y>=spraysize then
  128. canspray=true
  129. elseif (surface==Enum.NormalId.Left or surface==Enum.NormalId.Right) and mouse.Target.Size.y>=spraysize and mouse.Target.Size.z>=spraysize then
  130. canspray=true
  131. elseif (surface==Enum.NormalId.Top or surface==Enum.NormalId.Bottom) and mouse.Target.Size.x>=spraysize and mouse.Target.Size.z>=spraysize then
  132. canspray=true
  133. end
  134. if canspray then
  135. local p=Instance.new("Part")
  136. local d=Instance.new("Decal")
  137. d.Texture=baseid..tostring(sprayid-1)
  138. d.Face=surface
  139. d.Parent=p
  140. p.Name="Spray"
  141. p.formFactor="Custom"
  142. p.Anchored=false
  143. p.CanCollide=false
  144. p.Transparency=1
  145. if surface==Enum.NormalId.Front or surface==Enum.NormalId.Back then
  146. p.Size=Vector3.new(spraysize,spraysize,.2)
  147. elseif surface==Enum.NormalId.Left or surface==Enum.NormalId.Right then
  148. p.Size=Vector3.new(.2,spraysize,spraysize)
  149. elseif surface==Enum.NormalId.Top or surface==Enum.NormalId.Bottom then
  150. p.Size=Vector3.new(spraysize,.2,spraysize)
  151. end
  152. local w=Instance.new("Weld")
  153. w.Part0=mouse.Target
  154. w.Part1=p
  155. local cf=CFrame.new(mouse.Target.CFrame:pointToObjectSpace(mouse.Hit.p))
  156. w.C0=cf
  157. w.C1=CFrame.new(0,0,0)
  158. w.Parent=mouse.Target
  159. p.CFrame=mouse.Target.CFrame:toWorldSpace(cf) --this is here to position the spray other wise it will be at 0,0,0 if the target is anchored
  160. debris:AddItem(p,60)
  161. p.Parent=game.Workspace
  162. end
  163. end
  164. wait(cooldown)
  165. sp.Handle.Sound:Stop()
  166. check=true
  167. end
  168. end
  169. end
  170. end)
  171. end
  172. end
  173.  
  174. function onUnequipped()
  175. gui.Parent=sp
  176. equipped=false
  177. end
  178.  
  179. sp.Equipped:connect(onEquipped)
  180. sp.Unequipped:connect(onUnequipped)
  181.  
  182.  
  183. end,o6)
  184. end))
  185. o7.Name = "SprayPaint"
  186. o7.Parent = o1
  187. o7.AnimationId = "http://www.roblox.com/Asset?ID=78494810"
  188. o8.Name = "SprayGui"
  189. o8.Parent = o1
  190. o9.Parent = o8
  191. o9.Position = UDim2.new(1,-240,1,-320)
  192. o9.Size = UDim2.new(0,220,0,265)
  193. o9.Style = Enum.FrameStyle.RobloxRound
  194. o9.Position = UDim2.new(1,-240,1,-320)
  195. o9.ClipsDescendants = true
  196. o9.Draggable = true
  197. o10.Parent = o9
  198. o10.Position = UDim2.new(0.5,-100,0,0)
  199. o10.Size = UDim2.new(0,200,0,40)
  200. o10.Style = Enum.FrameStyle.RobloxRound
  201. o10.Position = UDim2.new(0.5,-100,0,0)
  202. o10.ClipsDescendants = true
  203. o11.Parent = o10
  204. o11.Position = UDim2.new(1,-105,0.5,-10)
  205. o11.Size = UDim2.new(0,100,0,20)
  206. o11.Text = "80373024"
  207. o11.Position = UDim2.new(1,-105,0.5,-10)
  208. o11.BackgroundColor3 = Color3.new(1, 1, 1)
  209. o11.BorderSizePixel = 0
  210. o11.ZIndex = 2
  211. o11.ClipsDescendants = true
  212. o11.Font = Enum.Font.ArialBold
  213. o11.FontSize = Enum.FontSize.Size18
  214. o11.TextColor3 = Color3.new(0, 0, 0)
  215. o11.TextWrapped = true
  216. o12.Parent = o10
  217. o12.Size = UDim2.new(1,0,1,0)
  218. o12.Text = "Decal Id:"
  219. o12.BackgroundTransparency = 1
  220. o12.BorderSizePixel = 0
  221. o12.ClipsDescendants = true
  222. o12.Font = Enum.Font.ArialBold
  223. o12.FontSize = Enum.FontSize.Size18
  224. o12.TextColor3 = Color3.new(1, 1, 1)
  225. o12.TextXAlignment = Enum.TextXAlignment.Left
  226. o13.Parent = o9
  227. o13.Position = UDim2.new(0.5,-100,1,-200)
  228. o13.Size = UDim2.new(0,200,0,200)
  229. o13.Position = UDim2.new(0.5,-100,1,-200)
  230. o13.BackgroundColor3 = Color3.new(0.501961, 0.501961, 0.501961)
  231. o13.BackgroundTransparency = 0.5
  232. o13.BorderSizePixel = 0
  233. o13.ClipsDescendants = true
  234. mas.Parent = workspace
  235. mas:MakeJoints()
  236. local mas1 = mas:GetChildren()
  237. for i=1,#mas1 do
  238. mas1[i].Parent = workspace
  239. ypcall(function() mas1[i]:MakeJoints() end)
  240. end
  241. mas:Destroy()
  242. for i=1,#cors do
  243. coroutine.resume(cors[i])
  244. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement