|
| 23 Sep 2012 09:13 AM |
| I really need help! I posted this in like 10 other messages and no one replied! So the problem is that I need to change my Bows (A.K.A Ki Blasts) cooldown! But I cant get it to work, the cooldown is long as hell I need to wait alot to shoot the blast from it again! Reply me if you can fix it! I cant post the code here because Roblox tells me its against rules. But I made a model of it its called: Ki Blast for Awas3, take it and please fix it if you can! I appreciate! |
|
|
| Report Abuse |
|
|
|
| 23 Sep 2012 09:15 AM |
Just add a wait()....
-GD987: LuaLearners Writer, Teacher, Scripter, Forumer, Game Developer- |
|
|
| Report Abuse |
|
|
|
| 23 Sep 2012 09:17 AM |
| Please! Get the model and fix it please! |
|
|
| Report Abuse |
|
|
|
| 23 Sep 2012 09:18 AM |
Just post the script? Easier.
-GD987: LuaLearners Writer, Teacher, Scripter, Forumer, Game Developer- |
|
|
| Report Abuse |
|
|
|
| 23 Sep 2012 09:19 AM |
| I already told you, Roblox tells me its against the rules when I try to! |
|
|
| Report Abuse |
|
|
| |
|
|
| 24 Sep 2012 06:19 AM |
| Hello? BUMPPPPPPPPPPPPPPPPPPP |
|
|
| Report Abuse |
|
|
Truste135
|
  |
| Joined: 26 Oct 2010 |
| Total Posts: 741 |
|
|
| 24 Sep 2012 06:32 AM |
| HELLO? ADD A wait() AND IT WILL WORK. |
|
|
| Report Abuse |
|
|
|
| 24 Sep 2012 08:07 AM |
Lol.
lrn2scrptpl0x
------------------------- ~thedestroyer115, nice and helpful posts- sometimes~ |
|
|
| Report Abuse |
|
|
| |
|
vlekje513
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 9057 |
|
|
| 24 Sep 2012 12:57 PM |
| You could change the subject like i did... |
|
|
| Report Abuse |
|
|
|
| 25 Sep 2012 07:08 AM |
| I cant post ittt!!!!!!!!!!!!!!!!!!!!!!!!!!! Roblox tells me its against rules! Cant you just take the model and help me! Some dude told me that it doesnt even have a reload script! Please take it and fixxxx I need ittt! |
|
|
| Report Abuse |
|
|
|
| 25 Sep 2012 09:11 AM |
| Guys, when a person post for help like this. It's best not to help it AT ALL. |
|
|
| Report Abuse |
|
|
nairod7
|
  |
| Joined: 26 Mar 2010 |
| Total Posts: 869 |
|
|
| 25 Sep 2012 09:26 AM |
| Why it is against rules to post a script ? I don't understand... |
|
|
| Report Abuse |
|
|
|
| 25 Sep 2012 09:33 AM |
| When I try to post the script. Roblox tells me I cant post it because its against rules! |
|
|
| Report Abuse |
|
|
|
| 25 Sep 2012 01:18 PM |
Then there is obviosly something dirty in the script...look through it.
------------------------- ~thedestroyer115, nice and helpful posts- sometimes~ |
|
|
| Report Abuse |
|
|
|
| 21 Feb 2014 03:39 PM |
Ok well this is what it looks like...
bin = script.Parent Backpack = bin.Parent Me = Backpack.Parent PlayerGui = Me.PlayerGui Ki = PlayerGui.Bars.Ki Data = Me.Data
Activated = Me.Character.Occupied
local COOLDOWN = 0.5
r = game:service("RunService")
MAX_VELOCITY = 180 MIN_VELOCITY = 20
PULLBACK_TIME = 0
wait(0.1)
local Arrow = Instance.new("Part") Arrow.Locked = true Arrow.BackSurface = 0 Arrow.BottomSurface = 0 Arrow.FrontSurface = 0 Arrow.LeftSurface = 0 Arrow.RightSurface = 0 Arrow.Name = "Blast" Arrow.TopSurface = 0 Arrow.formFactor = "Symmetric" Arrow.Shape = "Ball" Arrow.Size = Vector3.new(2,2,2) if Data.Ki.Value == 1 then Arrow.BrickColor = BrickColor.new(23) elseif Data.Ki.Value == 2 then Arrow.BrickColor = BrickColor.new(21) elseif Data.Ki.Value == 3 then Arrow.BrickColor = BrickColor.new(1023) elseif Data.Ki.Value == 4 then Arrow.BrickColor = BrickColor.new(106) elseif Data.Ki.Value == 5 then Arrow.BrickColor = BrickColor.new(37) elseif Data.Ki.Value == 6 then Arrow.BrickColor = BrickColor.new(26) elseif Data.Ki.Value == 7 then Arrow.BrickColor = BrickColor.new(1) end Arrow.Transparency = 0.25 Arrow.Reflectance = 0.075 Arrow.CanCollide = false Arrow.Anchored = false Owner = Instance.new("ObjectValue") Owner.Parent = Arrow Owner.Name = "Owner" Owner.Value = Me script.Parent.ArrowScript:clone().Parent = Arrow
local force = Instance.new("BodyForce") force.force = Vector3.new(0,313,0) force.Parent = Arrow
function fire(target) if Ki.Value >= 50 and Activated.Value == false then local head = game.Players.LocalPlayer.Character:findFirstChild("Head") if head == nil then return end
local dir = target - head.Position dir = computeDirection(dir)
print("DIR X:", dir.x, "Y:", dir.y, "z:", dir.z)
local missile = Arrow:clone()
local spawnPos = game.Players.LocalPlayer.Character.PrimaryPart.Position
local pos = spawnPos + (dir * 5) missile.CFrame = CFrame.new(pos, pos + dir)
missile.ArrowScript.Disabled = false
local creator_tag = Instance.new("ObjectValue") creator_tag.Value = game.Players.LocalPlayer creator_tag.Name = "creator" creator_tag.Parent = missile missile.Parent = game.Workspace Chance = math.random(1, 3) if Chance == 1 then Data.KiControl.KiXP.Value = Data.KiControl.KiXP.Value+50 else Data.KiControl.KiXP.Value = Data.KiControl.KiXP.Value+15 end Ki.Value = Ki.Value - 50 end end
function computeDirection(vec) local lenSquared = vec.magnitude * vec.magnitude local invSqrt = 1 / math.sqrt(lenSquared) return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt) end
enabled = true function onButton1Down(mouse) if not enabled then return end
local player = game.Players.LocalPlayer if player == nil then return end
enabled = false mouse.Icon = "http://www.roblox.com/asset/?id=41672909"
local pos = mouse.Hit.p
fire(pos, MAX_VELOCITY)
wait(COOLDOWN) mouse.Icon = "http://www.roblox.com/asset/?id=11624732" enabled = true
end
function onSelected(mouse) mouse.Icon = "http://www.roblox.com/asset/?id=11624732" mouse.Button1Down:connect(function() onButton1Down(mouse) end) end
script.Parent.Selected:connect(onSelected) -------------------------------------------------------------
Can someone help me fix this also?
|
|
|
| Report Abuse |
|
|