Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Created with ttyyuu12345's compiler
- --ttyyuu12345 is not responsible for damages caused to your game
- --This plugin does not remove things
- --ttyyuu12345 cannot be held resonsible for manual deletion for the purpose of testing
- --Keep in mind, any items that cause errors in compilation will be skipped and documented within the last line of the disclaimer comments
- --Thank you for using my plugin and enjoy :)
- --It is free to use
- --If you use this plugin to create your own, please give me credit
- --Z_V edited my plugin to look like his own and published it without giving me credit, and that makes me very angry
- --Errors: TouchTransmitter
- local runDummyScript = function(f,scri)
- local oldenv = getfenv(f)
- local newenv = setmetatable({}, {
- __index = function(_, k)
- if k:lower() == 'script' then
- return scri
- else
- return oldenv[k]
- end
- end
- })
- setfenv(f, newenv)
- ypcall(function() f() end)
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- mas.Name = "CompiledModel"
- o1 = Instance.new("Tool")
- o2 = Instance.new("Script")
- o3 = Instance.new("Part")
- o4 = Instance.new("SpecialMesh")
- o5 = Instance.new("Sound")
- o6 = Instance.new("Sound")
- o7 = Instance.new("Sound")
- o8 = Instance.new("Sound")
- o9 = Instance.new("Sound")
- o10 = Instance.new("Sound")
- o11 = Instance.new("Sound")
- o12 = Instance.new("Sound")
- o13 = Instance.new("Sound")
- o15 = Instance.new("LocalScript")
- o1.Name = "kinter"
- o1.Parent = mas
- o1.TextureId = "http://www.roblox.com/asset/?id=42348471"
- o1.GripForward = Vector3.new(-1, -0, -0)
- o1.GripPos = Vector3.new(0, 0, -1.5)
- o1.GripRight = Vector3.new(0, 1, 0)
- o1.GripUp = Vector3.new(0, 0, 1)
- o2.Name = "SwordScript"
- o2.Parent = o1
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- -------- OMG HAX
- r = game:service("RunService")
- local damage = 5
- local slash_damage = 10
- local lunge_damage = 30
- sword = script.Parent.Handle
- Tool = script.Parent
- local SlashSound = Instance.new("Sound")
- SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav"
- SlashSound.Parent = sword
- SlashSound.Volume = .7
- local LungeSound = Instance.new("Sound")
- LungeSound.SoundId = "rbxasset://sounds\\swordlunge.wav"
- LungeSound.Parent = sword
- LungeSound.Volume = .6
- local UnsheathSound = Instance.new("Sound")
- UnsheathSound.SoundId = "rbxasset://sounds\\unsheath.wav"
- UnsheathSound.Parent = sword
- UnsheathSound.Volume = 1
- function blow(hit)
- if (hit.Parent == nil) then return end -- happens when bullet hits sword
- local humanoid = hit.Parent:findFirstChild("Humanoid")
- local vCharacter = Tool.Parent
- local vPlayer = game.Players:playerFromCharacter(vCharacter)
- local hum = vCharacter:findFirstChild("Humanoid") -- non-nil if tool held by a character
- if humanoid~=nil and humanoid ~= hum and hum ~= nil then
- -- final check, make sure sword is in-hand
- local right_arm = vCharacter:FindFirstChild("Right Arm")
- if (right_arm ~= nil) then
- local joint = right_arm:FindFirstChild("RightGrip")
- if (joint ~= nil and (joint.Part0 == sword or joint.Part1 == sword)) then
- tagHumanoid(humanoid, vPlayer)
- humanoid:TakeDamage(damage)
- humanoid.Parent.Head:BreakJoints()
- humanoid.Parent.Head.BrickColor = BrickColor.new "New Yeller"
- local fired = Instance.new ("Fire")
- fired.Parent = humanoid.Parent.Head
- local smoker = Instance.new ("Smoke")
- smoker = humanoid.Parent.Head
- wait(1)
- untagHumanoid(humanoid)
- end
- end
- end
- end
- function tagHumanoid(humanoid, player)
- local creator_tag = Instance.new("ObjectValue")
- creator_tag.Value = player
- creator_tag.Name = "creator"
- creator_tag.Parent = humanoid
- end
- function untagHumanoid(humanoid)
- if humanoid ~= nil then
- local tag = humanoid:findFirstChild("creator")
- if tag ~= nil then
- tag.Parent = nil
- end
- end
- end
- function attack()
- damage = slash_damage
- SlashSound:play()
- local anim = Instance.new("StringValue")
- anim.Name = "toolanim"
- anim.Value = "Slash"
- anim.Parent = Tool
- end
- function lunge()
- damage = lunge_damage
- LungeSound:play()
- local anim = Instance.new("StringValue")
- anim.Name = "toolanim"
- anim.Value = "Lunge"
- anim.Parent = Tool
- force = Instance.new("BodyVelocity")
- force.velocity = Vector3.new(0,10,0) --Tool.Parent.Torso.CFrame.lookVector * 80
- force.Parent = Tool.Parent.Torso
- wait(.25)
- swordOut()
- wait(.25)
- force.Parent = nil
- wait(.5)
- swordUp()
- damage = slash_damage
- end
- function swordUp()
- Tool.GripForward = Vector3.new(-1,0,0)
- Tool.GripRight = Vector3.new(0,1,0)
- Tool.GripUp = Vector3.new(0,0,1)
- end
- function swordOut()
- Tool.GripForward = Vector3.new(0,0,1)
- Tool.GripRight = Vector3.new(0,-1,0)
- Tool.GripUp = Vector3.new(-1,0,0)
- end
- function swordAcross()
- -- parry
- end
- Tool.Enabled = true
- local last_attack = 0
- function onActivated()
- if not Tool.Enabled then
- return
- end
- Tool.Enabled = false
- local character = Tool.Parent;
- local humanoid = character.Humanoid
- if humanoid == nil then
- print("Humanoid not found")
- return
- end
- t = r.Stepped:wait()
- if (t - last_attack < .2) then
- lunge()
- else
- attack()
- end
- last_attack = t
- --wait(.5)
- Tool.Enabled = true
- end
- function onEquipped()
- UnsheathSound:play()
- end
- script.Parent.Activated:connect(onActivated)
- script.Parent.Equipped:connect(onEquipped)
- connection = sword.Touched:connect(blow)
- end,o2)
- end))
- o3.Name = "Handle"
- o3.Parent = o1
- o3.BrickColor = BrickColor.new("Dark stone grey")
- o3.Reflectance = 0.40000000596046
- o3.Position = Vector3.new(-6, 0.40001601, -11.5)
- o3.Rotation = Vector3.new(3.87531063e-010, -89.9720306, 3.87529814e-010)
- 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)
- o3.FormFactor = Enum.FormFactor.Plate
- o3.Size = Vector3.new(1, 0.800000012, 4)
- o3.BottomSurface = Enum.SurfaceType.Smooth
- o3.TopSurface = Enum.SurfaceType.Smooth
- o3.Color = Color3.new(0.388235, 0.372549, 0.384314)
- o4.Parent = o3
- o4.MeshId = "rbxasset://fonts/sword.mesh"
- o4.TextureId = "http://www.roblox.com/asset/?id=42348471"
- o4.MeshType = Enum.MeshType.FileMesh
- o5.Parent = o3
- o5.SoundId = "rbxasset://sounds/swordslash.wav"
- o5.Volume = 0.69999998807907
- o6.Parent = o3
- o6.SoundId = "rbxasset://sounds/swordlunge.wav"
- o6.Volume = 0.60000002384186
- o7.Parent = o3
- o7.SoundId = "rbxasset://sounds/unsheath.wav"
- o7.Volume = 1
- o8.Parent = o3
- o8.SoundId = "rbxasset://sounds/swordslash.wav"
- o8.Volume = 0.69999998807907
- o9.Parent = o3
- o9.SoundId = "rbxasset://sounds/swordlunge.wav"
- o9.Volume = 0.60000002384186
- o10.Parent = o3
- o10.SoundId = "rbxasset://sounds/unsheath.wav"
- o10.Volume = 1
- o11.Parent = o3
- o11.SoundId = "rbxasset://sounds/swordslash.wav"
- o11.Volume = 0.69999998807907
- o12.Parent = o3
- o12.SoundId = "rbxasset://sounds/swordlunge.wav"
- o12.Volume = 0.60000002384186
- o13.Parent = o3
- o13.SoundId = "rbxasset://sounds/unsheath.wav"
- o13.Volume = 1
- o15.Name = "Local Gui"
- o15.Parent = o1
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- local Tool = script.Parent;
- enabled = true
- function onButton1Down(mouse)
- if not enabled then
- return
- end
- enabled = false
- mouse.Icon = "http://www.roblox.com/asset/?id=42348471"
- wait(.5)
- mouse.Icon = "rbxasset://textures\\GunCursor.png"
- enabled = true
- end
- function onEquippedLocal(mouse)
- if mouse == nil then
- print("Mouse not found")
- return
- end
- mouse.Icon = "rbxasset://textures\\GunCursor.png"
- mouse.Button1Down:connect(function() onButton1Down(mouse) end)
- end
- Tool.Equipped:connect(onEquippedLocal)
- end,o15)
- end))
- mas.Parent = workspace
- mas:MakeJoints()
- local mas1 = mas:GetChildren()
- for i=1,#mas1 do
- mas1[i].Parent = game:GetService("Players").LocalPlayer.Backpack
- ypcall(function() mas1[i]:MakeJoints() end)
- end
- mas:Destroy()
- for i=1,#cors do
- coroutine.resume(cors[i])
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement