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 |
|
|
|
| 19 Aug 2015 04:28 PM |
| i guess its a pretty decent script so far |
|
|
| Report Abuse |
|
|
LightRaid
|
  |
| Joined: 08 Oct 2012 |
| Total Posts: 4414 |
|
| |
|
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 |
|
|
|
| 19 Aug 2015 04:47 PM |
@71428
Hes probably referring to efficiency. |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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 |
|
|
| |
|