|
| 21 May 2015 10:29 AM |
Hi marioman2111 here, i am trying to contact stickmasterluke as i have a problem with one of my scripts. It is for: Mad Bloxxer: Scripting the sword Pt. 2. I cant find the modulate key on my keyboard. I was wondering if you could add it in for me and proofread it for me. THANKS! ill copy and paste it below!
--marioman2111's Mad Murder Script
tool = script.parent
local speedboost = 1.25
local combowindow = .5
local handle = tool :WaitForChild("Handle")
local event = tool :WaitForChild ("RemoteEvent")
local damage = 100
local swingtime = 1
local lastclick = tick ()
local combo = 0
handle.Touched:connect(function(hit)() if equipped and character and humanoid.health > 0 and hit and not hit:isDescendantOf(character) then local targethumanoid = hit.Parent:FindFirstChild ("Humanoid") if tragethumanoid and targethumanoid.health > 0 and not hithumanoid [targethumanoid] then hithumanoids[targethumanoid] = true targethumanoid:TakeDamage (damage) end end end)
tool.activated:connect(function) local clickdelta = tick () - lastclick if clickdelta > swingtime then lastclick = tick () hithumanoid = () if clickdelta < slashtime + combowindow then combo = (combo + 1) if player then end end end
tool.Equipped:connect (function() equipped = true lastclick = tick combo = 0 character = tool.Parent player = game.Players:GetPlayerFromCharacter(character) humanoid = character:FindFirstChild("Humanoid") if humanoid then Humanoid.WalkSpeed = humanoid.WalkSpeed * speedboost else character = nil end end)
tool.unequipped:connect(function() equipped = false if humanoid then humanoid.WalkSpeed = humanoid.WalkSpeed / speedboost character = nil humanoid = nil end
end)
Please note it is not finished. it is at the 2nd part of scripting the sword :D
(my map is finally done! Yay!
|
|
|
| Report Abuse |
|
|
|
| 21 May 2015 12:17 PM |
Post this on Script helpers. They can help with this. Stickmasterluke is a busy guy so there is no way he can proof it for you.
If I helped you please let me know :) |
|
|
| Report Abuse |
|
|
|
| 21 May 2015 02:33 PM |
| thanks for the assistance! |
|
|
| Report Abuse |
|
|