generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

[ Content Deleted ]

Previous Thread :: Next Thread 
donut222 is not online. donut222
Joined: 09 Jun 2009
Total Posts: 1837
11 Aug 2011 04:53 PM
[ Content Deleted ]
Report Abuse
donut222 is not online. donut222
Joined: 09 Jun 2009
Total Posts: 1837
11 Aug 2011 08:09 PM
[ Content Deleted ]
Report Abuse
swmaniac is not online. swmaniac
Joined: 28 Jun 2008
Total Posts: 15773
11 Aug 2011 08:12 PM
Yes, the data persistence feature permits things to cross servers.

What did you have in mind?
Report Abuse
RealPerson is not online. RealPerson
Joined: 16 Jun 2009
Total Posts: 2295
11 Aug 2011 08:21 PM
This seems interesting... Are you saying something like
If someone is a raider in 1 server, they're a raider in all?
Report Abuse
donut222 is not online. donut222
Joined: 09 Jun 2009
Total Posts: 1837
11 Aug 2011 09:14 PM
[ Content Deleted ]
Report Abuse
ElectricBlaze is not online. ElectricBlaze
Joined: 18 Jul 2011
Total Posts: 22930
11 Aug 2011 09:16 PM
No, this is impossible. You can't create players, and I don't think you can control other servers, can only save/load data into a server.
Report Abuse
donut222 is not online. donut222
Joined: 09 Jun 2009
Total Posts: 1837
11 Aug 2011 09:49 PM
[ Content Deleted ]
Report Abuse
ElectricBlaze is not online. ElectricBlaze
Joined: 18 Jul 2011
Total Posts: 22930
11 Aug 2011 09:50 PM
Oh. Tell me the name of the raider team.
Report Abuse
ElectricBlaze is not online. ElectricBlaze
Joined: 18 Jul 2011
Total Posts: 22930
11 Aug 2011 09:54 PM
oh, and the group team name.
Report Abuse
ggfunny1234 is not online. ggfunny1234
Joined: 09 Jul 2010
Total Posts: 3432
11 Aug 2011 10:00 PM
ELECTRICBLAZE.

GET YOUR FAT REAR BACK TO TYPEWITH >:O
Report Abuse
ElectricBlaze is not online. ElectricBlaze
Joined: 18 Jul 2011
Total Posts: 22930
11 Aug 2011 10:02 PM
Sorry, gg... O_o

Sorry, I gotta go I'll be back at around 12:30 AM EST. I'll help you then. :)
Report Abuse
donut222 is not online. donut222
Joined: 09 Jun 2009
Total Posts: 1837
12 Aug 2011 08:28 AM
[ Content Deleted ]
Report Abuse
GrandAwsome is not online. GrandAwsome
Joined: 12 Jul 2011
Total Posts: 326
12 Aug 2011 08:38 AM
game.Players[Bannedplayer]:SaveString("Message", "true")

if game.Players["Player"]:LoadString("Message") ~= nil then
if game.Players["Player"]:LoadString("Message") == true then
end
end

something like this?
Report Abuse
donut222 is not online. donut222
Joined: 09 Jun 2009
Total Posts: 1837
12 Aug 2011 09:58 AM
[ Content Deleted ]
Report Abuse
ElectricBlaze is not online. ElectricBlaze
Joined: 18 Jul 2011
Total Posts: 22930
12 Aug 2011 10:00 AM
Okay, I'll go work on it....
Report Abuse
ElectricBlaze is not online. ElectricBlaze
Joined: 18 Jul 2011
Total Posts: 22930
12 Aug 2011 10:18 AM
I'm not sure if this will work, I didn't test (because I can't), but you can try this:

function seeTeam()
for i,v in pairs(game:service("Teams"):GetTeams()) do
if v.Name == "Team One" then
return v
end
end
end

function seeTeam2()
for i,v in pairs(game:service("Teams"):GetTeams()) do
if v.Name == "Team Two" then
return v
end
end
end

game.Players.PlayerAdded:connect(function(p)
local r = Instance.new("BoolValue", p)
r.Value = false
r.Name = "raider"
p:WaitForDataReady()
local data = p:LoadBoolean("raider")
if data == false then return end
p.CharacterAdded:connect(function(c)
c.Humanoid.Died:connect(function()
local killer = game.Players[c.Humanoid.creator.Value]
local team = seeTeam()
if killer.TeamColor == team.TeamColor then
if p.TeamColor == team.TeamColor then
local team2 = SeeTeam2()
killer.TeamColor = team2.TeamColor
raidervar = true
killer:WaitForDataReady()
killer:SaveBoolean("raider", killer.raider.Value)
end
end
end)
end)
end)
Report Abuse
ElectricBlaze is not online. ElectricBlaze
Joined: 18 Jul 2011
Total Posts: 22930
12 Aug 2011 10:18 AM
Oops, gotta edit one thing:

function seeTeam()
for i,v in pairs(game:service("Teams"):GetTeams()) do
if v.Name == "Team One" then
return v
end
end
end

function seeTeam2()
for i,v in pairs(game:service("Teams"):GetTeams()) do
if v.Name == "Team Two" then
return v
end
end
end

game.Players.PlayerAdded:connect(function(p)
local r = Instance.new("BoolValue", p)
r.Value = false
r.Name = "raider"
p:WaitForDataReady()
local data = p:LoadBoolean("raider")
if data == false then return end
p.CharacterAdded:connect(function(c)
c.Humanoid.Died:connect(function()
local killer = game.Players[c.Humanoid.creator.Value]
local team = seeTeam()
if killer.TeamColor == team.TeamColor then
if p.TeamColor == team.TeamColor then
local team2 = SeeTeam2()
killer.TeamColor = team2.TeamColor
killer.raider.Value = true
killer:WaitForDataReady()
killer:SaveBoolean("raider", killer.raider.Value)
end
end
end)
end)
end)
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image