|
Hey i need help on a buy button but it needs to summon a boat |
|
|
somemanJoin Date: 2008-03-10 Post Count: 1402 |
You need to build a boat first. |
|
|
somemanJoin Date: 2008-03-10 Post Count: 1402 |
Well.
1. Make an onTouch script.
2. onTouch, clone the boat.
3. MakeJoints()
4. Bring the clone to Workspace
5. Specifiy the Position of the new boat. |
|
|
ooo never thought of that thxs :D but how do i make it where i can buy it? or does that buy it? Lol just to let you know im not a noob im just a noob to scripting |
|
myrco919Join Date: 2009-06-12 Post Count: 13241 |
[ Content Deleted ] |
|
|
myrco919Join Date: 2009-06-12 Post Count: 13241 |
[ Content Deleted ] |
|
|
@Above
Script dont work.... |
|
|
myrco919Join Date: 2009-06-12 Post Count: 13241 |
[ Content Deleted ] |
|
myrco919Join Date: 2009-06-12 Post Count: 13241 |
[ Content Deleted ] |
|
|
Ok thxs above but how do i use the Output sorry if im asking to much |
|
myrco919Join Date: 2009-06-12 Post Count: 13241 |
[ Content Deleted ] |
|
myrco919Join Date: 2009-06-12 Post Count: 13241 |
[ Content Deleted ] |
|
|
I kinda learned how to use it
|
|
myrco919Join Date: 2009-06-12 Post Count: 13241 |
[ Content Deleted ] |
|
|
Lol sorry im just sooo happy thxs Mycro and i think i fixed it
function onTouch() if game.Players:GetPlayerFromCharacter(p.Parent) and game.Players[p.Parent.Name].Cash and game.Players[p.Parent.Name].Cash.Value >= 50 then
game.Players[p.Parent.Name].Cash.Value = game.Players[p.Parent.Name].Cash.Value - 50
b = game.Lightning.Boat:clone()
b.Parent = workspace
b:MoveTo(Vector3.new(pos))
script.Parent.Touched:connect(onTouch)
end
end
|
|