Advertisement
ManOhMan

Untitled

Jul 3rd, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.72 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,Camera
  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("Model")
  29. o2 = Instance.new("Tool")
  30. o3 = Instance.new("Part")
  31. o4 = Instance.new("SpecialMesh")
  32. o6 = Instance.new("LocalScript")
  33. o7 = Instance.new("LocalScript")
  34. o8 = Instance.new("Animation")
  35. o9 = Instance.new("LocalScript")
  36. o1.Name = "InsertedObject78730532"
  37. o1.Parent = mas
  38. o2.Name = "FreakyFridayPotion"
  39. o2.Parent = o1
  40. o2.TextureId = "http://www.roblox.com/asset/?id=78673347"
  41. o2.GripForward = Vector3.new(-0, 1, -0)
  42. o2.GripPos = Vector3.new(0.150000006, -0.150000006, -0.5)
  43. o2.GripUp = Vector3.new(-0, 0, 1)
  44. o3.Name = "Handle"
  45. o3.Parent = o2
  46. o3.BrickColor = BrickColor.new("Bright bluish green")
  47. o3.Position = Vector3.new(-77.0424118, 3.75701904, -121.504761)
  48. o3.Rotation = Vector3.new(-90, 0, 0)
  49. o3.Locked = true
  50. o3.FormFactor = Enum.FormFactor.Custom
  51. o3.Size = Vector3.new(0.659999907, 0.80000025, 1.62999988)
  52. o3.CFrame = CFrame.new(-77.0424118, 3.75701904, -121.504761, 1, -1.74897666e-16, -6.11525098e-17, 6.1152523e-17, 1.78813934e-07, 0.999999881, -1.74897653e-16, -0.999999881, 1.78813934e-07)
  53. o3.Color = Color3.new(0, 0.560784, 0.611765)
  54. o3.Position = Vector3.new(-77.0424118, 3.75701904, -121.504761)
  55. o4.Parent = o3
  56. o4.MeshId = "http://www.roblox.com/asset/?id=78673311"
  57. o4.TextureId = "http://www.roblox.com/asset/?id=78673334"
  58. o4.MeshType = Enum.MeshType.FileMesh
  59. o6.Name = "Local Gui"
  60. o6.Parent = o2
  61. table.insert(cors,coroutine.create(function()
  62. wait()
  63. runDummyScript(function()
  64. local Tool = script.Parent;
  65.  
  66. local stillEquipped = true
  67. function onEquippedLocal(mouse)
  68. stillEquipped = true
  69. if mouse == nil then
  70. print("Mouse not found")
  71. return
  72. end
  73.  
  74. while stillEquipped do
  75. print("Setting Mouse to Go")
  76. mouse.Icon = "rbxasset://textures\\GunCursor.png"
  77.  
  78. while Tool.Enabled and stillEquipped do
  79. wait(.01)
  80. end
  81.  
  82. print("Setting Mouse To Wait")
  83. mouse.Icon = "rbxasset://textures\\GunWaitCursor.png"
  84.  
  85. while not Tool.Enabled and stillEquipped do
  86. wait(.01)
  87. end
  88. end
  89. end
  90.  
  91. function onUnequippedLocal()
  92. stillEquipped = false
  93. end
  94.  
  95.  
  96. Tool.Equipped:connect(onEquippedLocal)
  97. Tool.Unequipped:connect(onUnequippedLocal)
  98.  
  99. end,o6)
  100. end))
  101. o7.Name = "FridayScript"
  102. o7.Parent = o2
  103. table.insert(cors,coroutine.create(function()
  104. wait()
  105. runDummyScript(function()
  106. --[[
  107.  
  108. // Don't forget to add helper GUI stuff
  109. ]]
  110.  
  111.  
  112. local Tool = script.Parent
  113. local Potion = Tool.Handle
  114.  
  115. Tool.Enabled = true
  116.  
  117. local vCharacter
  118. local vTorso
  119. local vHumanoid
  120. local vPlayer
  121.  
  122. local OtherPlayer = nil
  123. local OtherCharacter = nil
  124. local OtherHumanoid
  125. local OtherTorso
  126.  
  127. local SwapSound = nil
  128. local SwapAnim
  129. local OtherSwapAnim
  130.  
  131. local RBX_Debris = game:GetService("Debris")
  132.  
  133. local Mouse = nil
  134.  
  135. local cloneId = 68452456
  136. local Clone = game:GetService("InsertService"):LoadAsset(cloneId):GetChildren()[1]
  137. local cChildren = Clone:GetChildren()
  138. for i = 1, #cChildren do
  139. if cChildren[i]:IsA("Script") then
  140. cChildren[i]:Destroy()
  141. end
  142. end
  143. local Clone2 = Clone:Clone()
  144.  
  145. local function spawnClone(character, torso, clone)
  146. if character and torso and clone then
  147. local thisClone = clone:Clone()
  148.  
  149. thisClone.Name = character.Name
  150.  
  151. local target = thisClone:FindFirstChild("Target")
  152. if target then
  153. target.Value = character:FindFirstChild("Humanoid")
  154. else
  155. target = Instance.new("ObjectValue")
  156. target.Name = "Target"
  157. target.Parent = thisClone
  158. target.Value = character:FindFirstChild("Humanoid")
  159. end
  160.  
  161. thisClone:MoveTo(torso.Position + Vector3.new(5, 0, 5))
  162.  
  163. return thisClone
  164. end
  165. end
  166.  
  167. local function dressClone(character, clone)
  168. if character then
  169. local children = character:GetChildren()
  170. for i = 1, #children do
  171. if children[i] then
  172. if children[i].ClassName == "Hat" then
  173. -- Special
  174. local hat = Instance.new("Hat")
  175. local Hpart = children[i].Handle:clone()
  176. Hpart.Parent = hat
  177. Hpart.Position = clone.Head.Position
  178. hat.Name = children[i].Name
  179. hat.Parent = clone
  180. hat.AttachmentPos = children[i].AttachmentPos
  181. hat.AttachmentRight = children[i].AttachmentRight
  182. hat.AttachmentUp = children[i].AttachmentUp
  183. hat.AttachmentForward = children[i].AttachmentForward
  184. elseif children[i]:IsA("BasePart") then
  185. if clone:FindFirstChild(children[i].Name) and clone[children[i].Name]:IsA("BasePart") then
  186. clone[children[i].Name].BrickColor = children[i].BrickColor
  187. end
  188. elseif children[i].ClassName == "ForceField" or children[i]:IsA("Humanoid") then
  189. -- Ignore it
  190. else
  191. children[i]:Clone().Parent = clone
  192. end
  193. end
  194. end
  195. return clone
  196. end
  197. end
  198.  
  199. local function onActivated()
  200. if Tool.Enabled == false then
  201. return
  202. end
  203.  
  204. if not vTorso or not vHumanoid then
  205. return
  206. end
  207.  
  208. local target = Mouse.Target
  209. if target and target.Parent then
  210. print(target)
  211. local humanoid = target.Parent:FindFirstChild("Humanoid")
  212. if target.Parent:IsA("Hat") and target.Parent.Parent then
  213. humanoid = target.Parent.Parent:FindFirstChild("Humanoid")
  214. end
  215. if humanoid then
  216. OtherPlayer = game.Players:GetPlayerFromCharacter(humanoid.Parent)
  217. OtherHumanoid = humanoid
  218. OtherTorso = OtherPlayer.Character:FindFirstChild("Torso")
  219. end
  220.  
  221. if OtherPlayer and OtherHumanoid and OtherTorso then
  222. local cf1 = vTorso.CFrame
  223. local cf2 = OtherTorso.CFrame
  224. print(cf1.p, cf2.p)
  225. OtherCharacter = OtherHumanoid.Parent
  226. SwapAnim = vHumanoid:LoadAnimation(Tool.SwapAnim)
  227. if SwapAnim then SwapAnim:Play() end
  228. OtherSwapAnim = OtherHumanoid:LoadAnimation(Tool.SwapAnim)
  229. if OtherSwapAnim then OtherSwapAnim:Play() end
  230. vHumanoid.WalkSpeed = 0.0
  231. OtherHumanoid.WalkSpeed = 0.0
  232. wait(2.0)
  233. SwapSound = Tool:FindFirstChild("SwapSound")
  234. if SwapSound then SwapSound:Play() end
  235. vHumanoid.WalkSpeed = 16.0
  236. OtherHumanoid.WalkSpeed = 16.0
  237.  
  238. local c = spawnClone(vCharacter, vTorso, Clone)
  239. local c1 = spawnClone(OtherCharacter, OtherTorso, Clone)
  240. c1 = dressClone(vCharacter, c1)
  241. c = dressClone(OtherCharacter, c)
  242. vPlayer.Character = c
  243. OtherPlayer.Character = c1
  244. vPlayer.Character.Parent = game.Workspace
  245. vPlayer.Character.Torso.CFrame = cf2
  246. OtherPlayer.Character.Parent = game.Workspace
  247. OtherPlayer.Character.Torso.CFrame = cf1
  248. end
  249. end
  250. end
  251.  
  252. local function onEquipped(mouse)
  253. vCharacter = Tool.Parent
  254. vTorso = vCharacter:FindFirstChild("Torso")
  255. vHumanoid = vCharacter:FindFirstChild("Humanoid")
  256. vPlayer = game.Players:GetPlayerFromCharacter(vCharacter)
  257. Mouse = mouse
  258. end
  259.  
  260. local function onUnequipped()
  261. if SwapSound then SwapSound:Stop() end
  262. if SwapAnim then SwapAnim:Stop() end
  263. if OtherSwapAnim then OtherSwapAnim:Stop() end
  264. if vHumanoid then vHumanoid.WalkSpeed = 16.0 end
  265. if OtherHumanoid then OtherHumanoid.WalkSpeed = 16.0 end
  266. end
  267.  
  268. Tool.Equipped:connect(onEquipped)
  269. Tool.Activated:connect(onActivated)
  270. Tool.Unequipped:connect(onUnequipped)
  271. end,o7)
  272. end))
  273. o8.Name = "SwapAnim"
  274. o8.Parent = o2
  275. o8.AnimationId = "http://www.roblox.com/Asset?ID=78674033"
  276. o9.Name = "GuiScript"
  277. o9.Parent = o2
  278. table.insert(cors,coroutine.create(function()
  279. wait()
  280. runDummyScript(function()
  281. local Tool = script.Parent
  282. local Lantern = Tool.Handle
  283.  
  284. local vCharacter
  285. local vPlayer
  286. local genericTextLabel
  287.  
  288. local sg
  289. local frame
  290.  
  291. function onEquipped()
  292. vCharacter = Tool.Parent
  293. vPlayer = game.Players:GetPlayerFromCharacter(vCharacter)
  294. if vPlayer then
  295. local playerGui = vPlayer:FindFirstChild("PlayerGui")
  296. if playerGui and playerGui:FindFirstChild("LanternGui") == nil then
  297. sg = Instance.new("ScreenGui")
  298. sg.Name = "LanternGui"
  299. sg.Parent = playerGui
  300.  
  301. frame = Instance.new("Frame")
  302. frame.Parent = sg
  303. frame.Size = UDim2.new(0, 240, 0, 30)
  304. frame.Position = UDim2.new(0.5, -120, 1, -130)
  305. frame.Style = Enum.FrameStyle.RobloxRound
  306.  
  307. genericTextLabel = Instance.new("TextLabel")
  308. genericTextLabel.BackgroundTransparency = 1.0
  309. genericTextLabel.Size = UDim2.new(1, 0, 1, 0)
  310. genericTextLabel.Visible = true
  311. genericTextLabel.ZIndex = 10
  312. genericTextLabel.FontSize = Enum.FontSize.Size10
  313. genericTextLabel.Font = Enum.Font.Legacy
  314. genericTextLabel.TextColor3 = Color3.new(1, 127/255, 0)
  315. genericTextLabel.TextXAlignment = Enum.TextXAlignment.Center
  316. genericTextLabel.TextYAlignment = Enum.TextYAlignment.Top
  317. genericTextLabel.Parent = frame
  318. genericTextLabel.Text = "Click on someone to swap bodies!!"
  319. end
  320. end
  321. end
  322.  
  323. function onUnequipped()
  324. if sg then sg:Remove() end
  325. end
  326.  
  327. Tool.Equipped:connect(onEquipped)
  328. Tool.Unequipped:connect(onUnequipped)
  329.  
  330.  
  331. end,o9)
  332. end))
  333. mas.Parent = workspace
  334. mas:MakeJoints()
  335. local mas1 = mas:GetChildren()
  336. for i=1,#mas1 do
  337. mas1[i].Parent = workspace
  338. ypcall(function() mas1[i]:MakeJoints() end)
  339. end
  340. mas:Destroy()
  341. for i=1,#cors do
  342. coroutine.resume(cors[i])
  343. end
  344.  
  345. game:GetService("Lighting").Ambient = Color3.new(0, 0, 0)
  346. game:GetService("Lighting").Brightness = 2
  347. game:GetService("Lighting").ColorShift_Bottom = Color3.new(0, 0, 0)
  348. game:GetService("Lighting").ColorShift_Top = Color3.new(0, 0, 0)
  349. game:GetService("Lighting").GlobalShadows = true
  350. game:GetService("Lighting").OutdoorAmbient = Color3.new(0.501961, 0.501961, 0.501961)
  351. game:GetService("Lighting").Outlines = false
  352. game:GetService("Lighting").GeographicLatitude = 41.733299255371
  353. game:GetService("Lighting").TimeOfDay = "14:00:00"
  354. game:GetService("Lighting").FogColor = Color3.new(0.752941, 0.752941, 0.752941)
  355. game:GetService("Lighting").FogEnd = 100000
  356. game:GetService("Lighting").FogStart = 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement