Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Tool0 = Instance.new("Tool")
- Part1 = Instance.new("Part")
- SpecialMesh2 = Instance.new("SpecialMesh")
- ParticleEmitter3 = Instance.new("ParticleEmitter")
- ParticleEmitter4 = Instance.new("ParticleEmitter")
- Sound5 = Instance.new("Sound")
- Sound6 = Instance.new("Sound")
- Sound7 = Instance.new("Sound")
- Sound8 = Instance.new("Sound")
- Script9 = Instance.new("Script")
- Script10 = Instance.new("Script")
- LocalScript11 = Instance.new("LocalScript")
- RemoteFunction12 = Instance.new("RemoteFunction")
- LocalScript13 = Instance.new("LocalScript")
- Animation14 = Instance.new("Animation")
- Animation15 = Instance.new("Animation")
- Animation16 = Instance.new("Animation")
- Tool0.Name = "OmegaRainbowKatana"
- Tool0.Parent = mas
- Tool0.TextureId = "http://www.roblox.com/asset/?id= 340606193"
- Tool0.GripForward = Vector3.new(-1, -0, -0)
- Tool0.GripPos = Vector3.new(0, 0, -1.70000005)
- Tool0.GripRight = Vector3.new(0, 1, 0)
- Tool0.GripUp = Vector3.new(0, 0, 1)
- Tool0.ToolTip = "Drops from the dank god himself..."
- Part1.Name = "Handle"
- Part1.Parent = Tool0
- Part1.BrickColor = BrickColor.new("Dark stone grey")
- Part1.Rotation = Vector3.new(-45, 0, 90)
- Part1.FormFactor = Enum.FormFactor.Plate
- Part1.Size = Vector3.new(1, 0.800000012, 5)
- Part1.CFrame = CFrame.new(-17.2664642, 2.1213119, 37.3462181, -7.89036335e-07, -0.999995291, -1.01327896e-06, 0.707104445, -2.9670727e-07, 0.707103789, -0.707103252, -4.19789131e-07, 0.707105577)
- Part1.BottomSurface = Enum.SurfaceType.Smooth
- Part1.TopSurface = Enum.SurfaceType.Smooth
- Part1.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part1.Position = Vector3.new(-17.2664642, 2.1213119, 37.3462181)
- Part1.Orientation = Vector3.new(-45, 0, 90)
- Part1.Color = Color3.new(0.388235, 0.372549, 0.384314)
- SpecialMesh2.Parent = Part1
- SpecialMesh2.MeshId = "http://www.roblox.com/asset/?id=11442510"
- SpecialMesh2.Scale = Vector3.new(1.70000005, 1.70000005, 1.70000005)
- SpecialMesh2.TextureId = "http://www.roblox.com/asset/?id=340575861"
- SpecialMesh2.MeshType = Enum.MeshType.FileMesh
- SpecialMesh2.Scale = Vector3.new(1.70000005, 1.70000005, 1.70000005)
- ParticleEmitter3.Parent = Part1
- ParticleEmitter3.Transparency = NumberSequence.new(0,0,1)
- ParticleEmitter3.Size = NumberSequence.new(0.15000000596046,0.15000000596046)
- ParticleEmitter3.Color = ColorSequence.new(Color3.new(0.937255, 0.45098, 0),Color3.new(0.898039, 0.0235294, 0.0392157))
- ParticleEmitter3.Texture = "http://www.roblox.com/asset/?id=173990220"
- ParticleEmitter3.Lifetime = NumberRange.new(0.60000002384186, 0.60000002384186)
- ParticleEmitter3.Rate = 35
- ParticleEmitter3.Speed = NumberRange.new(-0.75, 0.75)
- ParticleEmitter3.Color = ColorSequence.new(Color3.new(0.937255, 0.45098, 0),Color3.new(0.898039, 0.0235294, 0.0392157))
- ParticleEmitter4.Parent = Part1
- ParticleEmitter4.Transparency = NumberSequence.new(0,0,1)
- ParticleEmitter4.Size = NumberSequence.new(0.15000000596046,0.15000000596046)
- ParticleEmitter4.Color = ColorSequence.new(Color3.new(0, 1, 0.968628),Color3.new(0.113725, 0, 0.780392))
- ParticleEmitter4.Texture = "http://www.roblox.com/asset/?id=173990220"
- ParticleEmitter4.Lifetime = NumberRange.new(0.60000002384186, 0.60000002384186)
- ParticleEmitter4.Rate = 35
- ParticleEmitter4.Speed = NumberRange.new(-0.75, 0.75)
- ParticleEmitter4.Color = ColorSequence.new(Color3.new(0, 1, 0.968628),Color3.new(0.113725, 0, 0.780392))
- Sound5.Name = "dash"
- Sound5.Parent = Part1
- Sound5.SoundId = "rbxassetid://25256253"
- Sound6.Name = "lunge"
- Sound6.Parent = Part1
- Sound6.SoundId = "rbxassetid://220833976"
- Sound6.Volume = 1
- Sound7.Name = "overhead"
- Sound7.Parent = Part1
- Sound7.SoundId = "rbxassetid://220834000"
- Sound7.Volume = 1
- Sound8.Name = "slash"
- Sound8.Parent = Part1
- Sound8.SoundId = "rbxassetid://220833967"
- Sound8.Volume = 1
- Script9.Name = "ServerMain"
- Script9.Parent = Tool0
- table.insert(cors,sandbox(Script9,function()
- local tool=script.Parent
- local handle=tool.Handle
- local remotefunction=tool.RemoteFunction
- local debris=game:GetService("Debris")
- function hit(humanoid,damage,player)
- humanoid:TakeDamage(damage)
- for _,instance in pairs(humanoid:GetChildren()) do
- if instance.Name=="creator" then
- instance:Destroy()
- end
- end
- local creator=Instance.new("ObjectValue",humanoid)
- creator.Name="creator"
- creator.Value=player
- end
- function remotefunction.OnServerInvoke(player,command,value)
- if command=="hit" then
- hit(value[1],value[2],player)
- elseif command=="trip" then
- value.CFrame=value.CFrame*CFrame.Angles(0,0,math.rad(180))+Vector3.new(0,3,0)
- elseif command=="meteor" then
- local meteor=Instance.new("Part")
- meteor.Name="meteor"
- meteor.TopSurface="Smooth"
- meteor.BottomSurface="Smooth"
- meteor.Size=Vector3.new(5,7,6)
- meteor.CanCollide=false
- meteor.Shape="Ball"
- meteor.BrickColor=BrickColor.new("Deep orange")
- meteor.Material="Granite"
- meteor.CFrame=CFrame.new(handle.Position+Vector3.new(math.random(-10,10),20,math.random(-10,10)))
- meteor.Parent=workspace
- local rocketpropulsion=Instance.new("RocketPropulsion",meteor)
- rocketpropulsion.TargetRadius=5
- rocketpropulsion.MaxSpeed=150
- rocketpropulsion.MaxTorque=Vector3.new(40,40,0)
- rocketpropulsion.MaxThrust=50000
- rocketpropulsion.ThrustP=100
- rocketpropulsion.ThrustD=5
- rocketpropulsion.Target=value[2]
- rocketpropulsion:Fire()
- rocketpropulsion.ReachedTarget:connect(function(part)
- if value[2].Parent then
- local hum=value[2].Parent:FindFirstChild("Humanoid")
- local hitplayer=game.Players:GetPlayerFromCharacter(value[2].Parent)
- if hum~=nil then
- if hum.Health>0 then
- if hitplayer~=nil then
- if hitplayer.TeamColor~=player.TeamColor and hitplayer:FindFirstChild("nopvp")==nil and player:FindFirstChild("nopvp")==nil then
- hit(hum,value[1],player)
- end
- else
- hit(hum,value[1],player)
- end
- end
- meteor:Destroy()
- end
- end
- end)
- debris:AddItem(meteor,999999999999999999)
- end
- end
- end))
- Script10.Name = "Weld"
- Script10.Parent = Tool0
- table.insert(cors,sandbox(Script10,function()
- -- Weld script used by Immi, I did not made this. Credits to the original maker.
- --[[ Here is how it works:
- 1. Place this script into a model.
- 2. Anchor all parts that you are going to use for this car and build the car!
- 3. Place the parts that are going to be welded into the model. (NOT THE WHEELS OR ANY ROTATING PARTS!)
- 4. That's it, every time the game runs, the parts will all get welded together and then get unanchored. Your car will remain in top quality!
- Additional info:
- - To clear up: You don't have to run the script when you finished your car! It will auto-weld every time a game starts!
- - This script is made so you only have to anchor the parts before building the car (this is to prevent an artifact called 'cracking'), SO DO IT!
- - No other specific things are needed, great for the lazy folks.
- - Welds all parts together in a sequential order.
- - Parts will weld, even when they do not touch.
- - WARNING: if ony parts get deleted, the sequence will get broken and is likely to break your car in two parts.
- - NOTE: This script is not recursive, meaning it will not weld parts in a model placed in this model.
- ]]
- local all,last = {}
- function scan(p)
- for _,v in pairs(p:GetChildren()) do
- if (v:IsA("BasePart")) then
- if (last) then
- local w = Instance.new("Weld")
- w.Part0,w.Part1 = last,v
- w.C0 = v.CFrame:toObjectSpace(last.CFrame):inverse()
- w.Parent = last
- end
- table.insert(all,v)
- last = v
- end
- scan(v)
- end
- end
- scan(script.Parent)
- wait(1)
- for _,v in pairs(all) do v.Anchored = false end
- end))
- LocalScript11.Name = "MouseIcon"
- LocalScript11.Parent = Tool0
- table.insert(cors,sandbox(LocalScript11,function()
- local MOUSE_ICON = 'rbxasset://textures/GunCursor.png'
- local RELOADING_ICON = 'rbxasset://textures/GunWaitCursor.png'
- local Tool = script.Parent
- local Mouse = nil
- local function UpdateIcon()
- if Mouse then
- Mouse.Icon = Tool.Enabled and MOUSE_ICON or RELOADING_ICON
- end
- end
- local function OnEquipped(mouse)
- Mouse = mouse
- UpdateIcon()
- end
- local function OnChanged(property)
- if property == 'Enabled' then
- UpdateIcon()
- end
- end
- Tool.Equipped:connect(OnEquipped)
- Tool.Changed:connect(OnChanged)
- end))
- RemoteFunction12.Parent = Tool0
- LocalScript13.Name = "SwordControl"
- LocalScript13.Parent = Tool0
- table.insert(cors,sandbox(LocalScript13,function()
- wait()
- player = owner
- local character=player.Character
- local mouse=player:GetMouse()
- local myhum=character.Humanoid
- local tool=script.Parent
- local handle=tool.Handle
- local sword=handle:Clone()
- local event=tool:WaitForChild("RemoteFunction")
- local damage=81000 --damage dealt
- local speed=9.5 --how fast the weapon is
- local charge=true --can the weapon charge??
- local auto=true --can the weapon swing automatically?
- local equipped=false
- local clicked=false
- local animations={}
- local sounds={}
- local debris=game:GetService("Debris")
- tool.Equipped:connect(function()
- animations[1]=myhum:LoadAnimation(tool.slashAnim)
- animations[2]=myhum:LoadAnimation(tool.thrustAnim)
- animations[3]=myhum:LoadAnimation(tool.overheadAnim)
- sounds[1]=handle.slash
- sounds[2]=handle.lunge
- sounds[3]=handle.overhead
- equipped=true
- end)
- tool.Unequipped:connect(function()
- for i,animation in pairs(animations) do
- animation:Stop()
- end
- equipped=false
- end)
- handle.Touched:connect(function(part)
- local hum=part.Parent:FindFirstChild("Humanoid")
- local head=part.Parent:FindFirstChild("Head")
- local hitplayer=game.Players:GetPlayerFromCharacter(part.Parent)
- if clicked and hum~=nil and head~=nil then
- if hum.Health>0 then
- if hitplayer~=nil then
- if hitplayer.TeamColor~=player.TeamColor and hitplayer:FindFirstChild("nopvp")==nil and player:FindFirstChild("nopvp")==nil then
- event:InvokeServer("hit",{hum,damage})
- end
- else
- event:InvokeServer("hit",{hum,damage})
- end
- end
- end
- end)
- local soundstage=1
- local animstage=1
- local chargeready=true
- local down=false
- local ready=true
- mouse.Button1Down:connect(function()
- down=true
- while down and tool.Parent.ClassName=="Model" do
- local mytorso=character:FindFirstChild("Torso")
- if mytorso then
- delay(0,function()
- if clicked then
- if chargeready and charge then
- chargeready=false
- --charging
- local chargeforce=Instance.new('BodyVelocity',mytorso)
- chargeforce.Name="ChargeVelocity"
- chargeforce.maxForce=Vector3.new(100000, 100000, 100000)
- chargeforce.velocity=(mouse.Hit.p*Vector3.new(1,0,1)-mytorso.CFrame.p*Vector3.new(1,0,1)).unit*150
- mytorso.CFrame=CFrame.new(mytorso.CFrame.p,mytorso.CFrame.p+chargeforce.velocity)
- debris:AddItem(chargeforce,0.2)
- wait(1/speed)
- chargeready=true
- if clicked then
- handle.dash:Play()
- end
- end
- end
- end)
- wait()
- if clicked==false then
- sounds[soundstage]:Play()
- animations[animstage]:Play()
- animations[animstage]:AdjustSpeed(speed)
- clicked=true
- spawn(function()
- local target
- local closest=120
- for _,instance in pairs(workspace:GetChildren()) do
- local hum=instance:FindFirstChild("Humanoid")
- local head=instance:FindFirstChild("Head")
- if hum and head and instance~=character then
- local dist=(head.Position-handle.Position).magnitude
- if hum.Health>0 and dist<closest then
- local hitplayer=game.Players:GetPlayerFromCharacter(instance)
- if hitplayer~=nil then
- if hitplayer.TeamColor~=player.TeamColor and hitplayer:FindFirstChild("nopvp")==nil and player:FindFirstChild("nopvp")==nil then
- target=head
- closest=dist
- end
- else
- target=head
- closest=dist
- end
- end
- end
- end
- if target then
- for i=10,20 do
- spawn(function() event:InvokeServer("meteor",{damage,target}) end)
- wait(.5/speed)
- end
- end
- end)
- wait(1/speed)
- if soundstage==3 then soundstage=1 else soundstage=soundstage+1 end
- clicked=false
- if animstage==3 then animstage=1 else animstage=animstage+1 end
- else
- break
- end
- end
- if not auto then break end
- end
- end)
- mouse.Button1Up:connect(function()
- down=false
- end)
- end))
- Animation14.Name = "overheadAnim"
- Animation14.Parent = Tool0
- Animation14.AnimationId = "http://www.roblox.com/Asset?ID=94160738"
- Animation15.Name = "slashAnim"
- Animation15.Parent = Tool0
- Animation15.AnimationId = "rbxassetid://94161088"
- Animation16.Name = "thrustAnim"
- Animation16.Parent = Tool0
- Animation16.AnimationId = "rbxassetid://94161333"
- for i,v in pairs(mas:GetChildren()) do
- player = owner
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement