thanks, ill check it out.
On 2/25/2014 at 2:10 PM, EchoReaper wrote:
I remember LuaLearners having a bunch of good learning content on their website.
On 2/25/2014 at 2:05 PM, Someone wrote:
Its just that im making a lava escape game but i have no idea how to script it.
On 2/25/2014 at 12:55 PM, EchoReaper wrote:
How you start the game is completely up to you. It could be once a certain amount of people have joined the game, once any number of players step on a pad, etc.
Once the game is started, run a humanoid.Died event on everyone’s humanoids, and subtract 1 from a pre-defined player count. When the count reaches 0, run the start function again.
On 2/25/2014 at 10:37 AM, Someone wrote:
do you know the script to start/end a game, like survival but when everyone dies the game resets
On 2/24/2014 at 4:09 PM, EchoReaper wrote:
Oh, it’s because stats, points, and highScore aren’t local.
change to
local stats = Instance.new(“IntValue”)
local points = Instance.new(“IntValue”)
local highScore = Instance.new(“IntValue”)
On 2/24/2014 at 4:02 PM, Someone wrote:
dude sorry to bother you again but i have a problem, when playing alone on the game the score reset works perfectly but when other people join it does not work at all, if you know why this is then please let me know, thanks .
On 2/24/2014 at 2:32 PM, EchoReaper wrote:
Oops – I put in a random “then”
Change “if points.Value > then highScore.Value then” to “if points.Value > highScore.Value then”
On 2/24/2014 at 2:09 PM, Someone wrote:
points.Changed:connect(function()
if points.Value > then highScore.Value then
i think its this thats making it not work
On 2/24/2014 at 2:00 PM, EchoReaper wrote:
You can check their score every time it updates, and if it’s bigger than the high score, update the high score:
function Entered(player)
wait()
if player:findFirstChild(“leaderstats”) ~= nil then
player.leaderstats:remove()
end
stats = Instance.new(“IntValue”)
stats.Parent = player
stats.Name = “leaderstats”
points = Instance.new(“IntValue”)
points.Parent = stats
points.Name = “Points”
points.Value = 0
highScore = Instance.new(“IntValue”)
highScore.Parent = stats
highScore.Name = “High Score”
highScore.Value = 0
points.Changed:connect(function()
if points.Value > then highScore.Value then
highScore.Value = points.Value
end
end)
player.CharacterAdded:connect(function(character)
points.Value = 0
end)
end
game.Players.PlayerAdded:connect(Entered)
c = game.Players:GetChildren()
for i=1, #c do
Entered(c[i])
end
On 2/24/2014 at 1:44 PM, Someone wrote:
reply by the way, would you know how to add highest score next to the score on the leader boards?
carrying on from this script
function Entered(player)
wait()
if player:findFirstChild(“leaderstats”) ~= nil then
player.leaderstats:remove()
end
stats = Instance.new(“IntValue”)
stats.Parent = player
stats.Name = “leaderstats”
money = Instance.new(“IntValue”)
money.Parent = stats
money.Name = “Points”
money.Value = 0
player.CharacterAdded:connect(function(character)
money.Value = 0
end)
end
game.Players.PlayerAdded:connect(Entered)
c = game.Players:GetChildren()
for i=1, #c do
Entered(c[i])
end
On 2/23/2014 at 6:14 PM, EchoReaper wrote:
Sorry, I already have three projects under my belt, and have to study for my A+ exam that’s coming up, so I don’t think I’d have any time to help you with your game.
On 2/23/2014 at 5:16 PM, Someone wrote:
Thanks i figured it out ;p, would you like to help me with the game? ill link a donation tshirt to your account if you wish =], im going to bed now so if you want to then pm me tomorrow
On 2/23/2014 at 5:08 PM, EchoReaper wrote:
No problem, and take a look at the marketplace service:
Documentation - Roblox Creator Hub
In particular, the PromptPurchase method.
On 2/23/2014 at 2:35 PM, Someone wrote:
Hey, you helped me earlier with the spawn scripting, thanks.
i was just wondering if you know anything about shop systems linked to real robux,
thanks.