|
Roni123Join Date: 2008-02-22 Post Count: 5712 |
Hmmmm how bout jyst take the satalite and instead of the brick put your models name!!! |
|
|
|
Does it have an Animate script? |
|
|
|
bin = script.Parent
chocobo = ??? However you define the chocobo
function click(mouse)
local hit = mouse.Hit
local zoom = hit.p
chocobo.Humanoid:MoveTo(zoom, game.Workspace.PrimaryPart)
end
function select(mouse)
bin.Button1Down:connect(click)
end
bin.Selected:connect(select) |
|
Dr01d3k4Join Date: 2007-10-11 Post Count: 17916 |
:MoveTo(blah) teleports, doesn't move, if you want it to walk, use motors but that would be hard, I suggest making a part in it called Torso and put a BodyPosition in, try this: (Not whole script, I can't make tools)
chocobo = game.Workspace.Chocobo
function onButton1Down(mouse)
local targ = mouse.Hit
chocobo.Torso.BodyPosition.position = targ.Position --If this doesn't work, try taking out .Position
end |
|
potomac97Join Date: 2007-10-08 Post Count: 16 |
No MoveTo is the command to move Humanoidal Characters. I've been working with AI for quite a while now. I know that if you use MoveTo on a model or part it teleports but for Humanoids it moves the humanoid to that point in a walking manner. Now the walking you need an animate script. |
|
|
|
--add a giver that adds a string value to the player
bin = script.Parent
function click(mouse)
local search = game.Players.LocalPlayer:findFirstChild("ChocoboName")
if search ~= nil then
local beast = game.Workspace:findFirstChild(search.Value)
if beast ~= nil then
local hit = mouse.Hit
local zoom = hit.p
beast.Humanoid:MoveTo(zoom, game.Workspace.PrimaryPart)
end
end
end
function select(mouse)
bin.Button1Down:connect(click)
end
bin.Selected:connect(select) |
|
|
|
Add a giver that adds a string value when a player touches the seat. Make it's name ChocoboName and the value the name of the chocobo being touched |
|
|
|
Add this to the seat
chocobo = script.Parent.Parent --Asuming the seat is directly in the chocobo model
function onTouched(part)
local player = game.Players:findFirstChild(part.Parent.Name)
if player ~= nil then
local string = Instance.new("StringValue")
sring.Name = "ChocoboName"
string.Value = chocobo.Name
string.Parent = player
end
end
script.Parent.Touched:connect(onTouched) |
|
|
|
|
|
|
|
|
Better Tool:
bin = script.Parent
function onButton1Down(mouse)
local search = game.Players.LocalPlayer:findFirstChild("ChocoboName")
if search ~= nil then
local beast = game.Workspace:findFirstChild(search.Value)
if beast ~= nil then
local hit = mouse.Hit
local zoom = hit.p
beast.Humanoid:MoveTo(zoom, game.Workspace.PrimaryPart)
end
end
end
function onSelected(mouse)
mouse.Icon = "rbxasset://textures\\GunCursor.png"
mouse.Button1Down:connect(function() onButton1Down(mouse) end)
end
bin.Selected:connect(onSelected)
|
|
|
|
You can e-mail me a copy:
[email protected] |
|
|
KazeJoin Date: 2007-05-08 Post Count: 9448 |
Well, to make it go slower, just add a "BodyPosition" object to the parts. (All bricks.) Then, change the "MaxForce" piece of the body position lower, something like 300. Then change the script(the move script) to tag all parts like "Get#children for # of children do" to make it move. You'll need to make it so that the parts don't all try to go to one place at the same time ._. *cough* Crash alert*Cough* |
|