|
| 25 Sep 2012 07:35 PM |
zeta = game.Players.zethal -- This is just letting the script know who owns it tool = Instance.new("Tool") -- Abra Shazam, We have a Tool tool.Parent = zeta.Backpack -- And now it has a home! tool.Name = "Nineza's Whim" -- Oh look, now it has a name! h = Instance.new("Part") -- Abra Shazam, I need a part to hold! h.Parent = tool -- And now it has a home in our new tool! h.Name = "Handle" -- And now we have something to call it! h.Size = Vector3.new(1,4,1) -- What Size Shall you be oh mighty Brick! h.BrickColor = BrickColor.new("Really black") -- I now say you are black! hmsh = Instance.new("CylinderMesh") -- Abra Shazam, I desire fancy looks! hmsh.Parent = h -- Now yet it has a home! h.Touched:connnect( -- This is telling it if our brick is touched please perform this action function(hit) --- This just tells us we now have a variable for the object touching the brick h = hit.Parent:findFirstChild("Humanoid") -- If our hitting object has a humanoid if h ~= nil then --- and it is thereh.Health = h.Health - math.random(80,100) -- Perform this amount of damage to it's health end -- This ends our If it is there end) -- this ends the function for being touched as well as the ) for it ending >) |
|
|
| Report Abuse |
|
|
| |
|
|
| 25 Sep 2012 07:44 PM |
| Is this helpful? Say "support" if it is... |
|
|
| Report Abuse |
|
|
| |
|
|
| 25 Sep 2012 07:46 PM |
This is the code you enter...when u make a fresh script
|
|
|
| Report Abuse |
|
|