|
props to pauljkl to getting in blog
also, mem, make sf:dg k |
|
|
smkii: no
would take too much effort on my part to recreate it
will be inspired by it, yes
not a clone though. |
|
|
@mem: rip the particle cannon's sound at least. |
|
|
smkii: at least at first everything will have the same sound because i'm too poor to upload sounds and too lazy to find them |
|
AotrouJoin Date: 2008-04-26 Post Count: 11936 |
Anyone know anything about the Maker Faires? There's one coming to Toronto on the 22nd, and I'm considering volunteering. Anyone know what I should expect or prepare for, if anything? |
|
|
@Ninja: Send a message to ReeseMcBlox. She can answer any questions you have. |
|
AotrouJoin Date: 2008-04-26 Post Count: 11936 |
Well actually I received an email from a staff member named Becky (Which I think to be Reese?) about confirming my attendance. I sent the confirmation and additional info but haven't heard back since Oct 21. |
|
PoseidasJoin Date: 2008-11-23 Post Count: 2659 |
Yeah, Becky is ReeseMcBlox. |
|
|
Reese is Becky, Ninja. So yes. |
|
kilkil912Join Date: 2011-08-27 Post Count: 1288 |
I'm back from my short hiatus. So how's everyone doing?
Believe you can and you're halfway there. - Theodore Roosevelt |
|
|
Animations are free to upload now. |
|
kilkil912Join Date: 2011-08-27 Post Count: 1288 |
Yo Scar I have a quick Question so I made a follow script
local larm = script.Parent:FindFirstChild("Left Arm")
local rarm = script.Parent:FindFirstChild("Right Arm")
function findNearestTorso(pos)
local list = game.Workspace:children()
local torso = nil
local dist = 1000
local temp = nil
local human = nil
local temp2 = nil
for x = 1, #list do
temp2 = list[x]
if (temp2.className == "Model") and (temp2 ~= script.Parent) then
temp = temp2:findFirstChild("Torso")
human = temp2:findFirstChild("Humanoid")
if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
if (temp.Position - pos).magnitude < dist then
torso = temp
dist = (temp.Position - pos).magnitude
end
end
end
end
return torso
end
while true do
wait(math.random(1,5))
local target = findNearestTorso(script.Parent.Torso.Position)
if target ~= nil then
script.Parent.Humanoid:MoveTo(target.Position, target)
end
end
My dilemma is I have four of these script running with 4 torsos they attack each other
how can I modify it so they don't attack each other but still attack the nearest player?
Believe you can and you're halfway there. - Theodore Roosevelt |
|
|
Replace the findNearestTorso function.
Try this:
function findNearestTorso(pos)
local Distance, ClosestTorso = math.huge;
for _,Player in pairs(Game.Players:GetPlayers()) do
if Player and Player.Character then
local Torso = Player.Character:FindFirstChild("Torso")
local Humanoid = Player.Character:FindFirstChild("Torso")
local DistanceFromPos = (Torso.Position-pos).magnitude
if Torso and (Humanoid and Humanoid.Health > 0) and DistanceFromPos < Distance then
ClosestTorso = Torso
Distance = DistanceFromPos
end
end
end
return ClosestTorso
end |
|
|
Whoops, change the line that declares the humanoid to this:
local Humanoid = Player.Character:FindFirstChild("Humanoid")
That's what I get for copy/pasting and not paying attention. |
|
kilkil912Join Date: 2011-08-27 Post Count: 1288 |
Sweet Scar, thanks I am getting into Scripting but i'm for sure not very good.
Believe you can and you're halfway there. - Theodore Roosevelt |
|
kilkil912Join Date: 2011-08-27 Post Count: 1288 |
One more question so how can I make a script execute another after a set amount of time?
Believe you can and you're halfway there. - Theodore Roosevelt |
|
|
The best way is to use a BindableEvent (or RemoteEvent if it's crossing the server/client boundary). Just listen for it's event to be fired from the second script, and fire it from the first. |
|
|
I can't understand BindableEvents and RemoteEvents no matter how much I try.
Would make crossing server-client on FilteringEnabled servers a little easier. |
|
|
kilkil912Join Date: 2011-08-27 Post Count: 1288 |
Ok so I have to add a BindAble Event to the script. I didn't know that even existed o.o
Believe you can and you're halfway there. - Theodore Roosevelt |
|
|
as someone who exclusively scripts filteringenabled compatible stuff
all
hail
remote
events |
|
kilkil912Join Date: 2011-08-27 Post Count: 1288 |
I'm assuming that's some of the more advanced scripting stuff there?
Believe you can and you're halfway there. - Theodore Roosevelt |
|
|
ish
'advanced' is relative |
|
|
:D Less bosses and challenges to others in CFrame. |
|
|
that's not what this thread is about anymore
also you're cursed have fun |
|