Advertisement
ttyyuu12345

Kinter

Dec 12th, 2016
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.92 KB | None | 0 0
  1. --Created with ttyyuu12345's compiler
  2. --ttyyuu12345 is not responsible for damages caused to your game
  3. --This plugin does not remove things
  4. --ttyyuu12345 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("Script")
  30. o3 = Instance.new("Part")
  31. o4 = Instance.new("SpecialMesh")
  32. o5 = Instance.new("Sound")
  33. o6 = Instance.new("Sound")
  34. o7 = Instance.new("Sound")
  35. o8 = Instance.new("Sound")
  36. o9 = Instance.new("Sound")
  37. o10 = Instance.new("Sound")
  38. o11 = Instance.new("Sound")
  39. o12 = Instance.new("Sound")
  40. o13 = Instance.new("Sound")
  41. o15 = Instance.new("LocalScript")
  42. o1.Name = "kinter"
  43. o1.Parent = mas
  44. o1.TextureId = "http://www.roblox.com/asset/?id=42348471"
  45. o1.GripForward = Vector3.new(-1, -0, -0)
  46. o1.GripPos = Vector3.new(0, 0, -1.5)
  47. o1.GripRight = Vector3.new(0, 1, 0)
  48. o1.GripUp = Vector3.new(0, 0, 1)
  49. o2.Name = "SwordScript"
  50. o2.Parent = o1
  51. table.insert(cors,coroutine.create(function()
  52. wait()
  53. runDummyScript(function()
  54. -------- OMG HAX
  55.  
  56. r = game:service("RunService")
  57.  
  58.  
  59. local damage = 5
  60.  
  61.  
  62. local slash_damage = 10
  63. local lunge_damage = 30
  64.  
  65. sword = script.Parent.Handle
  66. Tool = script.Parent
  67.  
  68.  
  69. local SlashSound = Instance.new("Sound")
  70. SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav"
  71. SlashSound.Parent = sword
  72. SlashSound.Volume = .7
  73.  
  74. local LungeSound = Instance.new("Sound")
  75. LungeSound.SoundId = "rbxasset://sounds\\swordlunge.wav"
  76. LungeSound.Parent = sword
  77. LungeSound.Volume = .6
  78.  
  79. local UnsheathSound = Instance.new("Sound")
  80. UnsheathSound.SoundId = "rbxasset://sounds\\unsheath.wav"
  81. UnsheathSound.Parent = sword
  82. UnsheathSound.Volume = 1
  83.  
  84.  
  85. function blow(hit)
  86. if (hit.Parent == nil) then return end -- happens when bullet hits sword
  87.  
  88. local humanoid = hit.Parent:findFirstChild("Humanoid")
  89. local vCharacter = Tool.Parent
  90. local vPlayer = game.Players:playerFromCharacter(vCharacter)
  91. local hum = vCharacter:findFirstChild("Humanoid") -- non-nil if tool held by a character
  92. if humanoid~=nil and humanoid ~= hum and hum ~= nil then
  93. -- final check, make sure sword is in-hand
  94.  
  95. local right_arm = vCharacter:FindFirstChild("Right Arm")
  96. if (right_arm ~= nil) then
  97. local joint = right_arm:FindFirstChild("RightGrip")
  98. if (joint ~= nil and (joint.Part0 == sword or joint.Part1 == sword)) then
  99. tagHumanoid(humanoid, vPlayer)
  100. humanoid:TakeDamage(damage)
  101. humanoid.Parent.Head:BreakJoints()
  102. humanoid.Parent.Head.BrickColor = BrickColor.new "New Yeller"
  103. local fired = Instance.new ("Fire")
  104. fired.Parent = humanoid.Parent.Head
  105. local smoker = Instance.new ("Smoke")
  106. smoker = humanoid.Parent.Head
  107. wait(1)
  108. untagHumanoid(humanoid)
  109. end
  110. end
  111.  
  112.  
  113. end
  114. end
  115.  
  116.  
  117. function tagHumanoid(humanoid, player)
  118. local creator_tag = Instance.new("ObjectValue")
  119. creator_tag.Value = player
  120. creator_tag.Name = "creator"
  121. creator_tag.Parent = humanoid
  122. end
  123.  
  124. function untagHumanoid(humanoid)
  125. if humanoid ~= nil then
  126. local tag = humanoid:findFirstChild("creator")
  127. if tag ~= nil then
  128. tag.Parent = nil
  129. end
  130. end
  131. end
  132.  
  133.  
  134. function attack()
  135. damage = slash_damage
  136. SlashSound:play()
  137. local anim = Instance.new("StringValue")
  138. anim.Name = "toolanim"
  139. anim.Value = "Slash"
  140. anim.Parent = Tool
  141. end
  142.  
  143. function lunge()
  144. damage = lunge_damage
  145.  
  146. LungeSound:play()
  147.  
  148. local anim = Instance.new("StringValue")
  149. anim.Name = "toolanim"
  150. anim.Value = "Lunge"
  151. anim.Parent = Tool
  152.  
  153.  
  154. force = Instance.new("BodyVelocity")
  155. force.velocity = Vector3.new(0,10,0) --Tool.Parent.Torso.CFrame.lookVector * 80
  156. force.Parent = Tool.Parent.Torso
  157. wait(.25)
  158. swordOut()
  159. wait(.25)
  160. force.Parent = nil
  161. wait(.5)
  162. swordUp()
  163.  
  164. damage = slash_damage
  165. end
  166.  
  167. function swordUp()
  168. Tool.GripForward = Vector3.new(-1,0,0)
  169. Tool.GripRight = Vector3.new(0,1,0)
  170. Tool.GripUp = Vector3.new(0,0,1)
  171. end
  172.  
  173. function swordOut()
  174. Tool.GripForward = Vector3.new(0,0,1)
  175. Tool.GripRight = Vector3.new(0,-1,0)
  176. Tool.GripUp = Vector3.new(-1,0,0)
  177. end
  178.  
  179. function swordAcross()
  180. -- parry
  181. end
  182.  
  183.  
  184. Tool.Enabled = true
  185. local last_attack = 0
  186. function onActivated()
  187.  
  188. if not Tool.Enabled then
  189. return
  190. end
  191.  
  192. Tool.Enabled = false
  193.  
  194. local character = Tool.Parent;
  195. local humanoid = character.Humanoid
  196. if humanoid == nil then
  197. print("Humanoid not found")
  198. return
  199. end
  200.  
  201. t = r.Stepped:wait()
  202.  
  203. if (t - last_attack < .2) then
  204. lunge()
  205. else
  206. attack()
  207. end
  208.  
  209. last_attack = t
  210.  
  211. --wait(.5)
  212.  
  213. Tool.Enabled = true
  214. end
  215.  
  216.  
  217. function onEquipped()
  218. UnsheathSound:play()
  219. end
  220.  
  221.  
  222. script.Parent.Activated:connect(onActivated)
  223. script.Parent.Equipped:connect(onEquipped)
  224.  
  225.  
  226. connection = sword.Touched:connect(blow)
  227.  
  228.  
  229.  
  230. end,o2)
  231. end))
  232. o3.Name = "Handle"
  233. o3.Parent = o1
  234. o3.BrickColor = BrickColor.new("Dark stone grey")
  235. o3.Reflectance = 0.40000000596046
  236. o3.Position = Vector3.new(-6, 0.40001601, -11.5)
  237. o3.Rotation = Vector3.new(3.87531063e-010, -89.9720306, 3.87529814e-010)
  238. o3.CFrame = CFrame.new(-6, 0.40001601, -11.5, 5.36441803e-007, -3.62831609e-018, -0.999999881, -2.74942957e-017, 1, -3.62832767e-018, 0.999999881, 2.74942957e-017, 5.36441803e-007)
  239. o3.FormFactor = Enum.FormFactor.Plate
  240. o3.Size = Vector3.new(1, 0.800000012, 4)
  241. o3.BottomSurface = Enum.SurfaceType.Smooth
  242. o3.TopSurface = Enum.SurfaceType.Smooth
  243. o3.Color = Color3.new(0.388235, 0.372549, 0.384314)
  244. o4.Parent = o3
  245. o4.MeshId = "rbxasset://fonts/sword.mesh"
  246. o4.TextureId = "http://www.roblox.com/asset/?id=42348471"
  247. o4.MeshType = Enum.MeshType.FileMesh
  248. o5.Parent = o3
  249. o5.SoundId = "rbxasset://sounds/swordslash.wav"
  250. o5.Volume = 0.69999998807907
  251. o6.Parent = o3
  252. o6.SoundId = "rbxasset://sounds/swordlunge.wav"
  253. o6.Volume = 0.60000002384186
  254. o7.Parent = o3
  255. o7.SoundId = "rbxasset://sounds/unsheath.wav"
  256. o7.Volume = 1
  257. o8.Parent = o3
  258. o8.SoundId = "rbxasset://sounds/swordslash.wav"
  259. o8.Volume = 0.69999998807907
  260. o9.Parent = o3
  261. o9.SoundId = "rbxasset://sounds/swordlunge.wav"
  262. o9.Volume = 0.60000002384186
  263. o10.Parent = o3
  264. o10.SoundId = "rbxasset://sounds/unsheath.wav"
  265. o10.Volume = 1
  266. o11.Parent = o3
  267. o11.SoundId = "rbxasset://sounds/swordslash.wav"
  268. o11.Volume = 0.69999998807907
  269. o12.Parent = o3
  270. o12.SoundId = "rbxasset://sounds/swordlunge.wav"
  271. o12.Volume = 0.60000002384186
  272. o13.Parent = o3
  273. o13.SoundId = "rbxasset://sounds/unsheath.wav"
  274. o13.Volume = 1
  275. o15.Name = "Local Gui"
  276. o15.Parent = o1
  277. table.insert(cors,coroutine.create(function()
  278. wait()
  279. runDummyScript(function()
  280. local Tool = script.Parent;
  281.  
  282. enabled = true
  283. function onButton1Down(mouse)
  284. if not enabled then
  285. return
  286. end
  287.  
  288. enabled = false
  289. mouse.Icon = "http://www.roblox.com/asset/?id=42348471"
  290.  
  291. wait(.5)
  292. mouse.Icon = "rbxasset://textures\\GunCursor.png"
  293. enabled = true
  294.  
  295. end
  296.  
  297. function onEquippedLocal(mouse)
  298.  
  299. if mouse == nil then
  300. print("Mouse not found")
  301. return
  302. end
  303.  
  304. mouse.Icon = "rbxasset://textures\\GunCursor.png"
  305. mouse.Button1Down:connect(function() onButton1Down(mouse) end)
  306. end
  307.  
  308.  
  309. Tool.Equipped:connect(onEquippedLocal)
  310.  
  311. end,o15)
  312. end))
  313. mas.Parent = workspace
  314. mas:MakeJoints()
  315. local mas1 = mas:GetChildren()
  316. for i=1,#mas1 do
  317. mas1[i].Parent = game:GetService("Players").LocalPlayer.Backpack
  318. ypcall(function() mas1[i]:MakeJoints() end)
  319. end
  320. mas:Destroy()
  321. for i=1,#cors do
  322. coroutine.resume(cors[i])
  323. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement