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: Scripting a sword;

Previous Thread :: Next Thread 
LightRaid is not online. LightRaid
Joined: 08 Oct 2012
Total Posts: 4414
19 Aug 2015 04:26 PM
--# Sword Management

--# Variable Declaration

local Sword = script.Parent -- these are variables

local Handle = Sword:WaitForChild("Handle")

local Damage = {
13;
19;
29;
}

local Animations = {
Equip = {Animation = Sword:WaitForChild("Equip Animation")};
Slash = {Animation = Sword:WaitForChild("Slash Animation")};
Overhead = {Animation = Sword:WaitForChild("Overhead Animation")};
}

--# Function Declaration

function TagHumanoid(Creator, Humanoid)
local CreatorTag = Instance.new("ObjectValue", Humanoid)
end

function UntagHumanoid(Humanoid)

end

function Damage(Part)
Part.Touched:connect(function(Hit)
if Hit and Hit.Parent and Hit.Parent:FindFirstChild("Humanoid") then

end
end)
end

function Attack()

end

function Equipped()

end

function Unequipped()

end

Sword.Activated:connect(Attack)
Sword.Equipped:connect(Equipped)
Sword.Unequipped:connect(Unequipped)

How is it thus far?
Report Abuse
DeathsLASTwords is not online. DeathsLASTwords
Joined: 28 Jan 2012
Total Posts: 2701
19 Aug 2015 04:28 PM
i guess its a pretty decent script so far
Report Abuse
LightRaid is not online. LightRaid
Joined: 08 Oct 2012
Total Posts: 4414
19 Aug 2015 04:41 PM
A'ight
Report Abuse
71428 is not online. 71428
Joined: 06 Aug 2015
Total Posts: 339
19 Aug 2015 04:46 PM
Who cares how it is so far? No one will ever look at it and be like "Yeah this looks beautiful". If it works it's fine.
Report Abuse
DeathsLASTwords is not online. DeathsLASTwords
Joined: 28 Jan 2012
Total Posts: 2701
19 Aug 2015 04:47 PM
@71428

Hes probably referring to efficiency.
Report Abuse
LiveWhilstYouCan is not online. LiveWhilstYouCan
Joined: 02 Aug 2015
Total Posts: 339
19 Aug 2015 05:02 PM
if u can make them weell do you think you could try do these for me?
/86m316
/224255993f6e4f06dcd9659941a67b87

prntscr and gyazo
i made these today for no reason lol but i might make a game out of them
Report Abuse
LightRaid is not online. LightRaid
Joined: 08 Oct 2012
Total Posts: 4414
20 Aug 2015 06:44 AM
Sure, I'm confident I can script any sword<3
Report Abuse
LiveWhilstYouCan is not online. LiveWhilstYouCan
Joined: 02 Aug 2015
Total Posts: 339
20 Aug 2015 07:56 AM
go ahead <3
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