Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Created with PenguinAnonymous's compiler
- --PenguinAnonymous is not responsible for damages caused to your game
- --This plugin does not remove things
- --PenguinAnonymous 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("Model")
- o2 = Instance.new("Part")
- o3 = Instance.new("Snap")
- o4 = Instance.new("Part")
- o5 = Instance.new("Tool")
- o6 = Instance.new("Script")
- o7 = Instance.new("Part")
- o8 = Instance.new("SpecialMesh")
- o9 = Instance.new("Sound")
- o10 = Instance.new("Sound")
- o11 = Instance.new("Sound")
- o13 = Instance.new("LocalScript")
- o1.Name = "WindforceStand"
- o1.Parent = mas
- o1.PrimaryPart = o2
- o2.Name = "Smooth Block Model"
- o2.Parent = o1
- o2.BrickColor = BrickColor.new("Bright blue")
- o2.Position = Vector3.new(46.8813477, 35.3766708, -13.0205078)
- o2.Rotation = Vector3.new(0, -90, 0)
- o2.Size = Vector3.new(46.7556305, 6.23408413, 46.7556305)
- o2.CFrame = CFrame.new(46.8813477, 35.3766708, -13.0205078, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- o2.Color = Color3.new(0.0509804, 0.411765, 0.67451)
- o2.Position = Vector3.new(46.8813477, 35.3766708, -13.0205078)
- o3.Parent = o2
- o3.C0 = CFrame.new(0, -3.11704206, 0, 1, 0, 0, -0, -0, -1, 0, 1, 0)
- o3.C1 = CFrame.new(0, 18.7026348, 0, 1, 0, 0, 0, 0, -1, 0, 1, 0)
- o3.Active = true
- o3.Part0 = o2
- o3.Part1 = o4
- o4.Name = "Smooth Block Model"
- o4.Parent = o1
- o4.BrickColor = BrickColor.new("Light blue")
- o4.Position = Vector3.new(46.8813477, 13.5569954, -13.0205078)
- o4.Rotation = Vector3.new(0, -90, 0)
- o4.Size = Vector3.new(46.7556305, 37.4045067, 46.7556305)
- o4.CFrame = CFrame.new(46.8813477, 13.5569954, -13.0205078, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- o4.Color = Color3.new(0.705882, 0.823529, 0.894118)
- o4.Position = Vector3.new(46.8813477, 13.5569954, -13.0205078)
- o5.Name = "Windforce"
- o5.Parent = o1
- o5.GripForward = Vector3.new(-1, -0, -0)
- o5.GripPos = Vector3.new(0, 0, -1.75)
- o5.GripRight = Vector3.new(0, 1, 0)
- o5.GripUp = Vector3.new(0, 0, 1)
- o6.Name = "SwordScript"
- o6.Parent = o5
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- -------- OMG HAX
- r = game:service("RunService")
- local damage = 10
- local slash_damage = 13
- local lunge_damage = 26
- 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 windforce(dir, victimTorso)
- if (victimTorso.Parent:FindFirstChild("ForceField") ~= nil) then return end
- if victimTorso:FindFirstChild("WindEffect") == nil then
- local force = Instance.new("BodyVelocity")
- force.Name = "WindEffect"
- force.maxForce = Vector3.new(1e7, 1e7, 1e7)
- force.P = 125
- force.velocity = (dir * 100) + Vector3.new(0, 30,0)
- force.Parent = victimTorso
- game.Debris:AddItem(force, .25)
- end
- end
- function blow(hit)
- 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)
- local d = vCharacter.Torso.CFrame.lookVector
- windforce(Vector3.new(d.x, d.y, d.z), hit.Parent.Torso)
- 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
- local 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,o6)
- end))
- o7.Name = "Handle"
- o7.Parent = o5
- o7.BrickColor = BrickColor.new("Medium blue")
- o7.Reflectance = 0.30000001192093
- o7.Position = Vector3.new(46.8813477, 77.3798828, -18.0592422)
- o7.Rotation = Vector3.new(89.6299973, 0, 0)
- o7.Size = Vector3.new(15.5852098, 12.4681683, 77.9260559)
- 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)
- o7.BottomSurface = Enum.SurfaceType.Smooth
- o7.TopSurface = Enum.SurfaceType.Smooth
- o7.Color = Color3.new(0.431373, 0.6, 0.792157)
- o7.Position = Vector3.new(46.8813477, 77.3798828, -18.0592422)
- o8.Parent = o7
- o8.MeshId = "rbxasset://fonts/sword.mesh"
- o8.Scale = Vector3.new(18.7022591, 18.7022591, 18.7022591)
- o8.VertexColor = Vector3.new(1, 1, 0)
- o8.MeshType = Enum.MeshType.FileMesh
- o9.Parent = o7
- o9.SoundId = "rbxasset://sounds/swordslash.wav"
- o9.Volume = 0.69999998807907
- o10.Parent = o7
- o10.SoundId = "rbxasset://sounds/swordlunge.wav"
- o10.Volume = 0.60000002384186
- o11.Parent = o7
- o11.SoundId = "rbxasset://sounds/unsheath.wav"
- o11.Volume = 1
- o13.Name = "Local Gui"
- o13.Parent = o5
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- end,o13)
- end))
- mas.Parent = workspace
- mas:MakeJoints()
- local mas1 = mas:GetChildren()
- for i=1,#mas1 do
- mas1[i].Parent = workspace
- ypcall(function() mas1[i]:MakeJoints() end)
- end
- mas:Destroy()
- for i=1,#cors do
- coroutine.resume(cors[i])
- end
- game:GetService("Lighting").Ambient = Color3.new(0, 0, 0)
- game:GetService("Lighting").Brightness = 2
- game:GetService("Lighting").ColorShift_Bottom = Color3.new(0, 0, 0)
- game:GetService("Lighting").ColorShift_Top = Color3.new(0, 0, 0)
- game:GetService("Lighting").GlobalShadows = true
- game:GetService("Lighting").OutdoorAmbient = Color3.new(0.501961, 0.501961, 0.501961)
- game:GetService("Lighting").Outlines = false
- game:GetService("Lighting").GeographicLatitude = 41.733299255371
- game:GetService("Lighting").TimeOfDay = "14:00:00"
- game:GetService("Lighting").FogColor = Color3.new(0.752941, 0.752941, 0.752941)
- game:GetService("Lighting").FogEnd = 100000
- game:GetService("Lighting").FogStart = 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement