|
| 01 Dec 2011 06:32 PM |
| im making a game and i need something interesting to do its called a pirates life i mean how would i make something where like you can acuually move the ship and get gold on it to buy stuff will you help me come up with an ideas go there if you want to(FREE ADMIN FOR NOW). |
|
|
| Report Abuse |
|
|
|
| 01 Dec 2011 06:40 PM |
Imagination.
Use a free model ship gyro script Add a gold leaderboard, make treasure chest that increase the Gold Leaderstat value |
|
|
| Report Abuse |
|
|
| |
|
|
| 01 Dec 2011 06:55 PM |
insert this into your ''treasure'' brick
local ting = 0 --debouncer
function onTouched(hit)
if ting == 0 then --debounce check ting = 1 --activate debounce check = hit.Parent:FindFirstChild("Humanoid") --Find the human that touched the button
if check ~= nil then --If a human is found, then
local user = game.Players:GetPlayerFromCharacter(hit.Parent) --get player from touching human local stats = user:findFirstChild("leaderstats") --Find moneyholder
if stats ~= nil then --If moneyholder exists then local Gold = stats:findFirstChild("Money") --Get money Gold.Value = Gold.Value +100 --increase amount of money by the number displayed here (100) wait(3) --wait-time before button works again end
end
ting = 0 --remove debounce end
end
script.Parent.Touched:connect(onTouched)
|
|
|
| Report Abuse |
|
|
|
| 01 Dec 2011 06:55 PM |
oops change
local Gold = stats:findFirstChild("Money") --Get money
to
local Gold = stats:findFirstChild("Gold") --Get money
|
|
|
| Report Abuse |
|
|