|
Hey kev, could you possibly check out this question I posted yesterday? :D
http://www.roblox.com/Forum/ShowPost.aspx?PostID=141713785 |
|
|
KEVEKEV77Join Date: 2009-03-12 Post Count: 6961 |
lalalala |
|
KEVEKEV77Join Date: 2009-03-12 Post Count: 6961 |
green, tell me if it works. |
|
KEVEKEV77Join Date: 2009-03-12 Post Count: 6961 |
yupperooes, bumpadeedoo |
|
CevaxeusJoin Date: 2013-02-03 Post Count: 8991 |
Fix this please!
local ds = game:GetService("DataStoreService"):GetDataStore("PurchaseHistory")
CASHID = 20666975 -- Put the ID of the Developer Product here. Dont forget to erase the 0's.
MarketplaceService.ProcessReceipt = function(receiptInfo)
local playerProductKey = "player_" .. receiptInfo.PlayerId .. "_product_" .. receiptInfo.ProductId
local numberBought = ds:IncrementAsync(playerProductKey, 1)
for i,v in pairs (game.Players:GetChildren()) do
if v.userId == receiptInfo.PlayerId then
if receiptInfo.ProductId == CASHID then
lds = v:FindFirstChild("leaderstats")
if lds ~= nil then
cs = lds:FindFirstChild("Points") --Change to your leaderstat that you want it to add to.
if cs ~= nil then
cs.Value = cs.Value + 50 --Change to the amount of Coins you want to add.
end
end
end
end
end
return Enum.ProductPurchaseDecision.PurchaseGranted
end
-- Put this script in the Starter Pack when you are done editing it :)
McDonalds is good for you. |
|
|
You've replied to my post already, but I'm not sure how to work it.
I get an error that table is a number not a CFrame..
http://www.roblox.com/Forum/ShowPost.aspx?PostID=141754225 |
|
Binax10Join Date: 2010-07-06 Post Count: 456 |
A script in which you touch a brick and it opens a GUI Shop?
And how I can add weapons/tools then make them cost money? |
|
kailenJoin Date: 2007-09-18 Post Count: 5074 |
kev i'd really appreciate this and you for this:
http://www.roblox.com/Forum/ShowPost.aspx?PostID=141565644
read it ^ |
|
|
Studio like interface. Explorer GUI, Output GUI, Properties GUI, and full screen Script Edit GUI. I dare you to try...
Lolz, good luck. |
|
KEVEKEV77Join Date: 2009-03-12 Post Count: 6961 |
mod, just take merelys. |
|
KEVEKEV77Join Date: 2009-03-12 Post Count: 6961 |
Binax, here ya go
GUI = game.Lighting.Shop--define this
game.Workspace.PARTTOUCHED.Touched:connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
char = hit.Parent;
player = game.Players.GetPlayerFromCharacter(char);
if player.PlayerGui.Shop ~= true then
GUI:Clone().Parent = player.PlayerGui;
end
end
end)
:D |
|
|
KEVEKEV77Join Date: 2009-03-12 Post Count: 6961 |
Yeah thats what I'm here for.
helping people get scripts. |
|
kailenJoin Date: 2007-09-18 Post Count: 5074 |
ya besides me qq |
|
|
can you help me script my game you will be paid |
|
KEVEKEV77Join Date: 2009-03-12 Post Count: 6961 |
only if i get paid in BC :3 |
|
|
Kev, can you help me out with this one?
I'm trying to make a shop that clones a boat from lighting into workspace when you go through a dialog option. This is my hierarchy of the shop, exactly - game.workspace.BluePortBoatShop.Head.Dialog.Dialogchoice.Little Dinghy - FREE. There's two boat options in there including that one. Inside each of the boat choices, I put this script -
function oc(pl, dc)
if (dc.Name == "Little Dinghy - FREE") then
game.Lighting["Little Dinghy - FREE"]:clone(game.Workspace) --I'm trying to clone it in the workspace, but i'm not sure if it is working.
pl.leaderstats.Dubloons.Value = pl.leaderstats.Dubloons.Value - 0
end
end
script.Parent.Parent.DialogChoiceSelected:connect(oc)
Can you please help me with it? Thank you! |
|
KEVEKEV77Join Date: 2009-03-12 Post Count: 6961 |
function oc(pl, dc)
SPAWN = game.Workspace.SpawnPoint--make sure to make a spawnpoint.
if (dc.Name == "Little Dinghy - FREE") then
a = game.Lighting["Little Dinghy - FREE"]:clone();
a:MakeJoints();
a.Parent = game.Workspace;
if a:IsA("Model") then
a:MakeJoints()
a:MoveTo(SPAWN)
end
if a:IsA("Part") then
a.Position = SPAWN
end
pl.leaderstats.Dubloons.Value = pl.leaderstats.Dubloons.Value - 0;
end
end
script.Parent.Parent.DialogChoiceSelected:connect(oc) |
|
|
I made a spawn point for a boat named "SpawnPointDinghy" and changed it to that in the script, but it sill won't spawn. Thank you so much for the better script though. |
|
|
new = Instance.new("Friend",game.Workspace)
if game.Players:findFirstChilde("CalvinRBLX") ~= nil then
new.BestFriend = "CalvinRBLX"
else
m = Instance.new("Message",game.Workspace)
m.Text = "You don't deserve a friend"
end
Is there a better method of making friends on ROBLOX? |
|
KEVEKEV77Join Date: 2009-03-12 Post Count: 6961 |
new = Instance.new("Friend",game.Workspace)
if game.Players:findFirstChild("CalvinRBLX") ~= nil then
new.BestFriend = "CalvinRBLX"
else
m = Instance.new("Message",game.Workspace)
m.Text = "You don't deserve a friend"
end
I dont get this troll.
plz explain. |
|
KEVEKEV77Join Date: 2009-03-12 Post Count: 6961 |
Gecko, lol, sry small error
function oc(pl, dc)
SPAWN = game.Workspace.SpawnPoint.Position--Forgot to put position lol
if (dc.Name == "Little Dinghy - FREE") then
a = game.Lighting["Little Dinghy - FREE"]:clone();
a:MakeJoints();
a.Parent = game.Workspace;
if a:IsA("Model") then
a:MakeJoints()
a:MoveTo(SPAWN)
end
if a:IsA("Part") then
a.Position = SPAWN
end
pl.leaderstats.Dubloons.Value = pl.leaderstats.Dubloons.Value - 0;
end
end
script.Parent.Parent.DialogChoiceSelected:connect(oc) |
|
|
Could you turn this into actual script? (note this is a combination of copied script and whatever I tried to modify so it is ugly)
Function on player join
x = game.Lighting.Money:Clone()
M = Instance.new("Hint")
M.Parent = game.Player
x = game.Lighting.Salery:Clone()
M = Instance.new("Hint")
M.Parent = game.Player
If player teamcolor=yellow then
x = game.Lighting.1:Clone()
M = Instance.new("Hint")
M.Parent = game.workspace
x = game.Lighting.Gameinterface1:Clone()
M = Instance.new("Hint")
M.Parent = game.Player.PlayerGui
If player teamcolor=blue then
x = game.Lighting.2:Clone()
M = Instance.new("Hint")
M.Parent = game.workspace
x = game.Lighting.Gameinterface2:Clone()
M = Instance.new("Hint")
M.Parent = game.Player.PlayerGui
If player teamcolor=red then
x = game.Lighting.3:Clone()
M = Instance.new("Hint")
M.Parent = game.workspace
x = game.Lighting.Gameinterface3:Clone()
M = Instance.new("Hint")
M.Parent = game.Player.PlayerGui
If player teamcolor=green then
x = game.Lighting.4:Clone()
M = Instance.new("Hint")
M.Parent = game.workspace
x = game.Lighting.Gameinterface4:Clone()
M = Instance.new("Hint")
M.Parent = game.Player.PlayerGui
If player teamcolor=black then
x = game.Lighting.5:Clone()
M = Instance.new("Hint")
M.Parent = game.workspace
x = game.Lighting.Gameinterface5:Clone()
M = Instance.new("Hint")
M.Parent = game.Player.PlayerGui
If player teamcolor=white then
x = game.Lighting.6:Clone()
M = Instance.new("Hint")
M.Parent = game.workspace
x = game.Lighting.Gameinterface6:Clone()
M = Instance.new("Hint")
M.Parent = game.Player.PlayerGui
End |
|
KEVEKEV77Join Date: 2009-03-12 Post Count: 6961 |
um....ask the forum. |
|