generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Look At My SCRIPT Project! :3

Previous Thread :: Next Thread 
murylloyago is not online. murylloyago
Joined: 17 May 2012
Total Posts: 50
12 Aug 2016 10:34 PM
Reposting this Because By SOME Random Reason Replies was Not Allowed e.e

Well Guys , i Want To Show You my Script Project (This Weapon Will Be On My Project "Pirates Island RPG"), Well I Want You Guys to Say if it Is Having A Good Progress... OR NOT!

Im Not Going To Start Updating The Post And All, Because i Dont Want to Have This Becoming a "Free Model" So This is More a "Showcase" , Well This is a Local Script. (NO WHEN I FINISH IT YOU CANT HAVE IT)

IF YOU SAY THAT THIS SCRIPT ISINSPIRED BY Black Magic's SIN CLASS...

You're Right e.e

wait(0.5)

local Player = game.Players.LocalPlayer
local Mouse = Player:GetMouse()
local Character = Player.Character
local Head = Character.Head
local Torso = Character.Torso
local Right_Arm = Character["Right Arm"]
local Right_Leg = Character["Right Leg"]
local Left_Arm = Character["Left Arm"]
local Left_Leg = Character["Left Leg"]
local Root_Part = Character.HumanoidRootPart

Music = Instance.new("Sound",Character)
Music.SoundId = "http://www.roblox.com/asset?id=394234172"
Music.Looped = true
Music:Play()

Gears = Instance.new("Model",Character)
Gears.Name = "Gears"


Gear1 = Instance.new("Part", Gears)
Gear1.Name = "Gear1"
Gear1.Size = Vector3.new(6,3,0.2)
Gear1.CanCollide = false

Gear1Mesh = Instance.new("SpecialMesh", Gear1)
Gear1Mesh.MeshId = "http://www.roblox.com/asset?id=156292343"
Gear1Mesh.TextureId = "http://www.roblox.com/asset?id=156292409"
Gear1Mesh.Scale = Vector3.new(6, 6, 6)

Gear1Weld = Instance.new("Weld", Gear1)
Gear1Weld.Part0 = Gear1
Gear1Weld.Part1 = Torso
Gear1Weld.C0 = CFrame.new(0,-5,-2)*CFrame.Angles(0,0,0)


Gear2 = Instance.new("Part", Gears)
Gear2.Name = "Gear2"
Gear2.Size = Vector3.new(10,3,0.2)
Gear2.CanCollide = false

Gear2Mesh = Instance.new("SpecialMesh", Gear2)
Gear2Mesh.MeshId = "http://www.roblox.com/asset?id=156292343"
Gear2Mesh.TextureId = "http://www.roblox.com/asset?id=156292409"
Gear2Mesh.Scale = Vector3.new(10, 10, 10)

Gear2Weld = Instance.new("Weld", Gear2)
Gear2Weld.Part0 = Gear2
Gear2Weld.Part1 = Torso
Gear2Weld.C0 = CFrame.new(10,-1.6,-0)*CFrame.Angles(0,0,0)


Gear3 = Instance.new("Part", Gears)
Gear3.Name = "Gear3"
Gear3.Size = Vector3.new(10,3,0.2)
Gear3.CanCollide = false

Gear3Mesh = Instance.new("SpecialMesh", Gear3)
Gear3Mesh.MeshId = "http://www.roblox.com/asset?id=156292343"
Gear3Mesh.TextureId = "http://www.roblox.com/asset?id=156292409"
Gear3Mesh.Scale = Vector3.new(10, 10, 10)

Gear3Weld = Instance.new("Weld", Gear3)
Gear3Weld.Part0 = Gear3
Gear3Weld.Part1 = Torso
Gear3Weld.C0 = CFrame.new(-10,-1.6,-0)*CFrame.Angles(0,0,0)

Swoosh1 = Instance.new("Sound",Gear1)
Swoosh2 = Instance.new("Sound",Gear2)
Swoosh3 = Instance.new("Sound",Gear3)

Hit1 = Instance.new("Sound",Gear1)
Hit2 = Instance.new("Sound",Gear2)
Hit3 = Instance.new("Sound",Gear3)

Swoosh1.SoundId = "http://www.roblox.com/asset?id = 231917758"
Swoosh2.SoundId = "http://www.roblox.com/asset?id = 231917758"
Swoosh3.SoundId = "http://www.roblox.com/asset?id = 231917758"

Hit1.SoundId = "http://www.roblox.com/asset?id = "
Hit2.SoundId = "http://www.roblox.com/asset?id = "
Hit3.SoundId = "http://www.roblox.com/asset?id = "

ClickAttack = 1
Dmg = 0

function Damage1(Hit)

local Humanoid = Hit.Parent:FindFirstChild("Humanoid")

if Humanoid ~= nil then

Humanoid:TakeDamage(Dmg)

end


end

function Damage2(Hit)

local Humanoid = Hit.Parent:FindFirstChild("Humanoid")

if Humanoid ~= nil then

Humanoid:TakeDamage(Dmg)

end


end




function Damage3(Hit)

local Humanoid = Hit.Parent:FindFirstChild("Humanoid")

if Humanoid ~= nil then

Humanoid:TakeDamage(Dmg)

end


end

Gear1.Touched:connect(Damage1)
Gear2.Touched:connect(Damage2)
Gear3.Touched:connect(Damage3)



local RightArm_IdleAnim = {
CFrame.new(-1.5,0.2,0)*CFrame.Angles(0,0,-0.2);
CFrame.new(-1.5,0.3,0)*CFrame.Angles(0,0,-0.3);

}

local LeftArm_IdleAnim = {
CFrame.new(1.5,0.2,0)*CFrame.Angles(0,0,0.2);
CFrame.new(1.5,0.3,0)*CFrame.Angles(0,0,0.3);
}



Movemments = {

Idle = true;


}


local Weld1 = Instance.new("Weld", Right_Arm)
Weld1.Part0 = Right_Arm
Weld1.Part1 = Torso
Weld1.C0 = CFrame.new(-1.5,0,0)

local Weld2 = Instance.new("Weld", Left_Arm)
Weld2.Part0 = Left_Arm
Weld2.Part1 = Torso
Weld2.C0 = CFrame.new(1.5,0,0)


local Target
local Target2

local Anim_Speed = 0.1



function IdleAnimation()

if Movemments.Idle == false then
return
end

Target = RightArm_IdleAnim[1]
Target2 = LeftArm_IdleAnim[1]


for i,v in pairs(RightArm_IdleAnim) do
Target = RightArm_IdleAnim[i]
Target2 = LeftArm_IdleAnim[i]


wait(0.5)
end

Target = RightArm_IdleAnim[1]
Target2 = LeftArm_IdleAnim[1]


end


game:GetService("RunService").RenderStepped:connect(function()
Weld1.C0 = Weld1.C0:lerp(Target,Anim_Speed)
Weld2.C0 = Weld2.C0:lerp(Target2,Anim_Speed)
end)

CanAttack = true


function MouseAttack1()
Dmg = 10

Movemments.Idle = false
CanAttack = false




local RightArm_Attack1Anim = {
CFrame.new(-0.5,2,0)*CFrame.Angles(0,0,-1.6);
CFrame.new(-0.6,1,-1.6)*CFrame.Angles(-2,0,-1.6);
CFrame.new(-0.5,2,0)*CFrame.Angles(0,0,-1.6);

}





Target = RightArm_Attack1Anim[1]

Gear3Weld.Part1 = Right_Arm
Gear3Weld.C0 = CFrame.new(-8,0.5,1)*CFrame.Angles(1.6,0,0.2)
for i,v in pairs(RightArm_Attack1Anim) do
Target = RightArm_Attack1Anim[i]
Gear3Weld.C0 = CFrame.new(-8,0.5,1)*CFrame.Angles(1.6,0,1.6)
Swoosh3:Play()
wait(0.5)
end

Target = RightArm_Attack1Anim[1]

wait(0.5)

Movemments.Idle = true


Gear3Weld.Part1 = Torso
Gear3Weld.C0 = CFrame.new(-10,-1.6,-0)*CFrame.Angles(0,0,0)
Dmg = 0

wait(1)


CanAttack = true

end


function MouseAttack2()

Dmg = 10

Movemments.Idle = false
CanAttack = false



local LeftArm_Attack1Anim = {
CFrame.new(0.5,2,0)*CFrame.Angles(0,0,1.6);
CFrame.new(0.6,1,-1.6)*CFrame.Angles(-2,0,1.6);
CFrame.new(0.5,2,0)*CFrame.Angles(0,0,1.6);

}





Target2 = LeftArm_Attack1Anim[1]

Gear2Weld.Part1 = Left_Arm
Gear2Weld.C0 = CFrame.new(10,0.5,1)*CFrame.Angles(1.6,0,0.2)
for i,v in pairs(LeftArm_Attack1Anim) do
Target2 = LeftArm_Attack1Anim[i]
Gear2Weld.C0 = CFrame.new(10,0.5,1)*CFrame.Angles(1.6,0,-1.6)
Swoosh2:Play()
wait(0.5)
end

Target2 = LeftArm_Attack1Anim[1]

wait(0.5)

Movemments.Idle = true



Gear2Weld.Part1 = Torso
Gear2Weld.C0 = CFrame.new(10,-1.6,-0)*CFrame.Angles(0,0,0)
Dmg = 0


wait(1)

CanAttack = true
end

function MouseAttack3()


CanAttack = false

local BallBullet = Instance.new("Part",Character)
BallBullet.Size = Vector3.new(2, 2, 2)
BallBullet.BrickColor = BrickColor.new("Cyan")
BallBullet.Material = "Neon"
BallBullet.Transparency = 0.5
BallBullet.Shape = "Ball"
BallBullet.CanCollide = false

local BallBulletWeld = Instance.new("Weld",Gear1)
BallBulletWeld.Part1 = Gear1
BallBulletWeld.Part0 = BallBullet
BallBulletWeld.C0 = CFrame.new(0,0,0)

local mH = Mouse.Hit

Instance.new("BodyVelocity", BallBullet)

BallBullet.CFrame = CFrame.new(BallBullet.Position, mH.p)
BallBullet.BodyVelocity.Velocity = BallBullet.CFrame.lookVector * 500
BallBulletWeld:Remove()

wait(0.1)

BallBullet.Touched:connect(function(Part)


BallBullet:Remove()

wait(0.1)
local Explosion = Instance.new("Explosion")
Explosion.Parent = Character
Explosion.BlastRadius = 15
Explosion.Position = BallBullet.Position
Explosion.BlastPressure = 10
Explosion.Name = "Boom!"
Explosion.DestroyJointRadiusPercent = 0
Explosion.ExplosionType = "NoCraters"


Explosion.Hit:connect(function(Hit)

local Humanoid = Hit.Parent:FindFirstChild("Humanoid")
if Humanoid ~= nil then

Dmg = 5

if Humanoid.Parent.Name == ""..Character.Name.."" then
Dmg = 0

end

Humanoid:TakeDamage(Dmg)
end
end)
end)

Dmg = 0

wait(1)

ClickAttack = 1
CanAttack = true

end



function MouseClickAttack()
if not CanAttack then
return
end

if CanAttack == true and ClickAttack == 1 then
ClickAttack = 2
MouseAttack1()


elseif CanAttack == true and ClickAttack == 2 then
ClickAttack = 3
MouseAttack2()

elseif CanAttack == true and ClickAttack == 3 then
ClickAttack = 3
MouseAttack3()


end
end



Mouse.Button1Down:connect(MouseClickAttack)

while wait(1) do

IdleAnimation()

end

Report Abuse
LunaScripter is not online. LunaScripter
Joined: 27 Nov 2008
Total Posts: 813
12 Aug 2016 11:09 PM
function Damage1(Hit)

local Humanoid = Hit.Parent:FindFirstChild("Humanoid")

if Humanoid ~= nil then

Humanoid:TakeDamage(Dmg)

end


end

function Damage2(Hit)

local Humanoid = Hit.Parent:FindFirstChild("Humanoid")

if Humanoid ~= nil then

Humanoid:TakeDamage(Dmg)

end


end




function Damage3(Hit)

local Humanoid = Hit.Parent:FindFirstChild("Humanoid")

if Humanoid ~= nil then

Humanoid:TakeDamage(Dmg)

end



laughing af
Report Abuse
murylloyago is not online. murylloyago
Joined: 17 May 2012
Total Posts: 50
13 Aug 2016 11:12 AM
Theres 3 Hit Boxes and i Needed to Separate it e.e
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image