Advertisement
ManOhMan

Untitled

Jul 4th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.86 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("Model")
  29. o2 = Instance.new("Part")
  30. o3 = Instance.new("Snap")
  31. o4 = Instance.new("Part")
  32. o5 = Instance.new("Tool")
  33. o6 = Instance.new("Script")
  34. o7 = Instance.new("Part")
  35. o8 = Instance.new("SpecialMesh")
  36. o9 = Instance.new("Sound")
  37. o10 = Instance.new("Sound")
  38. o11 = Instance.new("Sound")
  39. o13 = Instance.new("LocalScript")
  40. o1.Name = "WindforceStand"
  41. o1.Parent = mas
  42. o1.PrimaryPart = o2
  43. o2.Name = "Smooth Block Model"
  44. o2.Parent = o1
  45. o2.BrickColor = BrickColor.new("Bright blue")
  46. o2.Position = Vector3.new(46.8813477, 35.3766708, -13.0205078)
  47. o2.Rotation = Vector3.new(0, -90, 0)
  48. o2.Size = Vector3.new(46.7556305, 6.23408413, 46.7556305)
  49. o2.CFrame = CFrame.new(46.8813477, 35.3766708, -13.0205078, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  50. o2.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  51. o2.Position = Vector3.new(46.8813477, 35.3766708, -13.0205078)
  52. o3.Parent = o2
  53. o3.C0 = CFrame.new(0, -3.11704206, 0, 1, 0, 0, -0, -0, -1, 0, 1, 0)
  54. o3.C1 = CFrame.new(0, 18.7026348, 0, 1, 0, 0, 0, 0, -1, 0, 1, 0)
  55. o3.Active = true
  56. o3.Part0 = o2
  57. o3.Part1 = o4
  58. o4.Name = "Smooth Block Model"
  59. o4.Parent = o1
  60. o4.BrickColor = BrickColor.new("Light blue")
  61. o4.Position = Vector3.new(46.8813477, 13.5569954, -13.0205078)
  62. o4.Rotation = Vector3.new(0, -90, 0)
  63. o4.Size = Vector3.new(46.7556305, 37.4045067, 46.7556305)
  64. o4.CFrame = CFrame.new(46.8813477, 13.5569954, -13.0205078, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  65. o4.Color = Color3.new(0.705882, 0.823529, 0.894118)
  66. o4.Position = Vector3.new(46.8813477, 13.5569954, -13.0205078)
  67. o5.Name = "Windforce"
  68. o5.Parent = o1
  69. o5.GripForward = Vector3.new(-1, -0, -0)
  70. o5.GripPos = Vector3.new(0, 0, -1.75)
  71. o5.GripRight = Vector3.new(0, 1, 0)
  72. o5.GripUp = Vector3.new(0, 0, 1)
  73. o6.Name = "SwordScript"
  74. o6.Parent = o5
  75. table.insert(cors,coroutine.create(function()
  76. wait()
  77. runDummyScript(function()
  78. -------- OMG HAX
  79.  
  80. r = game:service("RunService")
  81.  
  82.  
  83. local damage = 10
  84.  
  85.  
  86. local slash_damage = 13
  87. local lunge_damage = 26
  88.  
  89. sword = script.Parent.Handle
  90. Tool = script.Parent
  91.  
  92.  
  93. local SlashSound = Instance.new("Sound")
  94. SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav"
  95. SlashSound.Parent = sword
  96. SlashSound.Volume = .7
  97.  
  98. local LungeSound = Instance.new("Sound")
  99. LungeSound.SoundId = "rbxasset://sounds\\swordlunge.wav"
  100. LungeSound.Parent = sword
  101. LungeSound.Volume = .6
  102.  
  103. local UnsheathSound = Instance.new("Sound")
  104. UnsheathSound.SoundId = "rbxasset://sounds\\unsheath.wav"
  105. UnsheathSound.Parent = sword
  106. UnsheathSound.Volume = 1
  107.  
  108.  
  109. function windforce(dir, victimTorso)
  110. if (victimTorso.Parent:FindFirstChild("ForceField") ~= nil) then return end
  111. if victimTorso:FindFirstChild("WindEffect") == nil then
  112. local force = Instance.new("BodyVelocity")
  113. force.Name = "WindEffect"
  114. force.maxForce = Vector3.new(1e7, 1e7, 1e7)
  115. force.P = 125
  116. force.velocity = (dir * 100) + Vector3.new(0, 30,0)
  117. force.Parent = victimTorso
  118.  
  119.  
  120. game.Debris:AddItem(force, .25)
  121.  
  122.  
  123. end
  124. end
  125.  
  126.  
  127.  
  128. function blow(hit)
  129. local humanoid = hit.Parent:findFirstChild("Humanoid")
  130. local vCharacter = Tool.Parent
  131. local vPlayer = game.Players:playerFromCharacter(vCharacter)
  132. local hum = vCharacter:findFirstChild("Humanoid") -- non-nil if tool held by a character
  133. if humanoid~=nil and humanoid ~= hum and hum ~= nil then
  134. -- final check, make sure sword is in-hand
  135.  
  136. local right_arm = vCharacter:FindFirstChild("Right Arm")
  137. if (right_arm ~= nil) then
  138. local joint = right_arm:FindFirstChild("RightGrip")
  139. if (joint ~= nil and (joint.Part0 == sword or joint.Part1 == sword)) then
  140. tagHumanoid(humanoid, vPlayer)
  141. humanoid:TakeDamage(damage)
  142. local d = vCharacter.Torso.CFrame.lookVector
  143. windforce(Vector3.new(d.x, d.y, d.z), hit.Parent.Torso)
  144. wait(1)
  145. untagHumanoid(humanoid)
  146. end
  147. end
  148.  
  149.  
  150. end
  151. end
  152.  
  153.  
  154.  
  155. function tagHumanoid(humanoid, player)
  156. local creator_tag = Instance.new("ObjectValue")
  157. creator_tag.Value = player
  158. creator_tag.Name = "creator"
  159. creator_tag.Parent = humanoid
  160. end
  161.  
  162. function untagHumanoid(humanoid)
  163. if humanoid ~= nil then
  164. local tag = humanoid:findFirstChild("creator")
  165. if tag ~= nil then
  166. tag.Parent = nil
  167. end
  168. end
  169. end
  170.  
  171.  
  172. function attack()
  173. damage = slash_damage
  174. SlashSound:play()
  175. local anim = Instance.new("StringValue")
  176. anim.Name = "toolanim"
  177. anim.Value = "Slash"
  178. anim.Parent = Tool
  179. end
  180.  
  181. function lunge()
  182. damage = lunge_damage
  183.  
  184. LungeSound:play()
  185.  
  186. local anim = Instance.new("StringValue")
  187. anim.Name = "toolanim"
  188. anim.Value = "Lunge"
  189. anim.Parent = Tool
  190.  
  191.  
  192. local force = Instance.new("BodyVelocity")
  193. force.velocity = Vector3.new(0,10,0) --Tool.Parent.Torso.CFrame.lookVector * 80
  194. force.Parent = Tool.Parent.Torso
  195. wait(.25)
  196. swordOut()
  197. wait(.25)
  198. force.Parent = nil
  199. wait(.5)
  200. swordUp()
  201.  
  202. damage = slash_damage
  203. end
  204.  
  205. function swordUp()
  206. Tool.GripForward = Vector3.new(-1,0,0)
  207. Tool.GripRight = Vector3.new(0,1,0)
  208. Tool.GripUp = Vector3.new(0,0,1)
  209. end
  210.  
  211. function swordOut()
  212. Tool.GripForward = Vector3.new(0,0,1)
  213. Tool.GripRight = Vector3.new(0,-1,0)
  214. Tool.GripUp = Vector3.new(-1,0,0)
  215. end
  216.  
  217. function swordAcross()
  218. -- parry
  219. end
  220.  
  221.  
  222. Tool.Enabled = true
  223. local last_attack = 0
  224. function onActivated()
  225.  
  226. if not Tool.Enabled then
  227. return
  228. end
  229.  
  230. Tool.Enabled = false
  231.  
  232. local character = Tool.Parent;
  233. local humanoid = character.Humanoid
  234. if humanoid == nil then
  235. print("Humanoid not found")
  236. return
  237. end
  238.  
  239. t = r.Stepped:wait()
  240.  
  241. if (t - last_attack < .2) then
  242. lunge()
  243. else
  244. attack()
  245. end
  246.  
  247. last_attack = t
  248.  
  249. --wait(.5)
  250.  
  251. Tool.Enabled = true
  252. end
  253.  
  254.  
  255. function onEquipped()
  256. UnsheathSound:play()
  257. end
  258.  
  259.  
  260. script.Parent.Activated:connect(onActivated)
  261. script.Parent.Equipped:connect(onEquipped)
  262.  
  263.  
  264. connection = sword.Touched:connect(blow)
  265.  
  266.  
  267.  
  268. end,o6)
  269. end))
  270. o7.Name = "Handle"
  271. o7.Parent = o5
  272. o7.BrickColor = BrickColor.new("Medium blue")
  273. o7.Reflectance = 0.30000001192093
  274. o7.Position = Vector3.new(46.8813477, 77.3798828, -18.0592422)
  275. o7.Rotation = Vector3.new(89.6299973, 0, 0)
  276. o7.Size = Vector3.new(15.5852098, 12.4681683, 77.9260559)
  277. o7.CFrame = CFrame.new(46.8813477, 77.3798828, -18.0592422, 1, 4.23594808e-18, -4.10145802e-18, -4.12871983e-18, 0.00645608688, -0.999979079, -4.20938069e-18, 0.999979079, 0.00645608688)
  278. o7.BottomSurface = Enum.SurfaceType.Smooth
  279. o7.TopSurface = Enum.SurfaceType.Smooth
  280. o7.Color = Color3.new(0.431373, 0.6, 0.792157)
  281. o7.Position = Vector3.new(46.8813477, 77.3798828, -18.0592422)
  282. o8.Parent = o7
  283. o8.MeshId = "rbxasset://fonts/sword.mesh"
  284. o8.Scale = Vector3.new(18.7022591, 18.7022591, 18.7022591)
  285. o8.VertexColor = Vector3.new(1, 1, 0)
  286. o8.MeshType = Enum.MeshType.FileMesh
  287. o9.Parent = o7
  288. o9.SoundId = "rbxasset://sounds/swordslash.wav"
  289. o9.Volume = 0.69999998807907
  290. o10.Parent = o7
  291. o10.SoundId = "rbxasset://sounds/swordlunge.wav"
  292. o10.Volume = 0.60000002384186
  293. o11.Parent = o7
  294. o11.SoundId = "rbxasset://sounds/unsheath.wav"
  295. o11.Volume = 1
  296. o13.Name = "Local Gui"
  297. o13.Parent = o5
  298. table.insert(cors,coroutine.create(function()
  299. wait()
  300. runDummyScript(function()
  301.  
  302. end,o13)
  303. end))
  304. mas.Parent = workspace
  305. mas:MakeJoints()
  306. local mas1 = mas:GetChildren()
  307. for i=1,#mas1 do
  308. mas1[i].Parent = workspace
  309. ypcall(function() mas1[i]:MakeJoints() end)
  310. end
  311. mas:Destroy()
  312. for i=1,#cors do
  313. coroutine.resume(cors[i])
  314. end
  315.  
  316. game:GetService("Lighting").Ambient = Color3.new(0, 0, 0)
  317. game:GetService("Lighting").Brightness = 2
  318. game:GetService("Lighting").ColorShift_Bottom = Color3.new(0, 0, 0)
  319. game:GetService("Lighting").ColorShift_Top = Color3.new(0, 0, 0)
  320. game:GetService("Lighting").GlobalShadows = true
  321. game:GetService("Lighting").OutdoorAmbient = Color3.new(0.501961, 0.501961, 0.501961)
  322. game:GetService("Lighting").Outlines = false
  323. game:GetService("Lighting").GeographicLatitude = 41.733299255371
  324. game:GetService("Lighting").TimeOfDay = "14:00:00"
  325. game:GetService("Lighting").FogColor = Color3.new(0.752941, 0.752941, 0.752941)
  326. game:GetService("Lighting").FogEnd = 100000
  327. game:GetService("Lighting").FogStart = 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement