|
| 09 Aug 2012 05:17 PM |
here is the first: r = game:service("RunService")
arrow = script.Parent Owner = arrow.Owner damage = 3 position = arrow.Position
function fly() direction = arrow.CFrame.lookVector position = position + (direction*6) error = position - arrow.Position arrow.Velocity = error * 50 end
function onTouched(hit)
if hit.Parent.Name ~= Owner.Value.Name then humanoid = hit.Parent:findFirstChild("Humanoid") if humanoid~=nil then humanoid.Health = humanoid.Health - damage end explosion = game.Lighting.Bewm:clone() explosion.Position = arrow.Position explosion.Parent = workspace wait() arrow:Remove() end end
arrow.Touched:connect(onTouched)
t, s = r.Stepped:wait()
d = t + 7.0 - s
while t < d do fly() t = r.Stepped:wait() end
arrow:Remove()
here is the second: 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 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)
o and if there is not any bytecode is there anything wrong with either of these? thx |
|
|
| Report Abuse |
|
|
| |
|
|
| 09 Aug 2012 06:02 PM |
| You check if there is bytecode, we have no idea what is the problem, why you want us to help, and where EXACTLY to look. I am not rummaging through hundreds of words looking for certain characters. |
|
|
| Report Abuse |
|
|
moryo7
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 5028 |
|
|
| 09 Aug 2012 06:08 PM |
Bytecode goes hand in hand with StringValues. That's all I need to say. If you're smart enough, you'll determine the answer.
-> This Siggy is My Little Pony based. <- |
|
|
| Report Abuse |
|
|
djdjdj
|
  |
| Joined: 21 Mar 2008 |
| Total Posts: 10 |
|
|
| 09 Aug 2012 06:36 PM |
--im not familiar how to use it-- i dont think this is bytecode at all but this is somewhat what it looks like loadstring("27/101/382/23940/21213/12354/2") |
|
|
| Report Abuse |
|
|
|
| 10 Aug 2012 10:17 AM |
| thank you but is there anything wrong with these scripts that would make them not work rite? and p.s. it is NOT a free model |
|
|
| Report Abuse |
|
|
|
| 10 Aug 2012 10:20 AM |
If it wasn't a free model; you wouldn't be asking that question... |
|
|
| Report Abuse |
|
|
Dr01d3k4
|
  |
| Joined: 11 Oct 2007 |
| Total Posts: 17916 |
|
|
| 10 Aug 2012 10:22 AM |
1) Don't bump old stupid threads. 2) It obviously is a free model, because if you wrote it, then 2) a) You'd know what byte code is 2) b) You'd know that it isn't used in this script |
|
|
| Report Abuse |
|
|
|
| 10 Aug 2012 02:57 PM |
| well i forget stuff and i made it 2 years ago so i dont remeber |
|
|
| Report Abuse |
|
|