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 » Scripters
Home Search
 

Re: Whenever the seeker wins, it says the hiders win

Previous Thread :: Next Thread 
SAGETHEGAMER is not online. SAGETHEGAMER
Joined: 03 Aug 2014
Total Posts: 199
18 Jan 2015 03:16 PM
Umm... I can't script it right to make the hiders lose when it says the hiders win. I experimented a lot since yesterday, hours of experimenting, and I still can't script it.

Here is the script:

local hiders = contestants ~= seeker and contestants ~= assistant
local gameresult = "HidersWin"
if seekeractive then
if #hiders < 1 then
event:FireAllClients("Result", "HidersWin")
else
gameresult = "Seeker and Assistant Win"
event:FireAllClients("Result", "Seeker and Assistant Win")
end
else
event:FireAllClients("Result", "HidersWin")
end
for _, v in pairs(game.Workspace:GetChildren()) do
if v then
if v.Name == v.className == "Hat" then
v:remove()
end
end
end
for _, player in pairs(contestants) do
if player then
if gameresult == "Seeker and Assistant Win" and player == seeker and assistant then
awardpoints(player, 25)
elseif gameresult ~= "Seeker and Assistant Win" and player ~= seeker and assistant then
awardpoints(player, 10)
end
end
end




Can anyone help me fix my mistake?
Report Abuse
SAGETHEGAMER is not online. SAGETHEGAMER
Joined: 03 Aug 2014
Total Posts: 199
18 Jan 2015 03:48 PM
Maybe this will help you understand better?

local hiders = contestants ~= seeker and contestants ~= assistant
local gameresult = "HidersWin"
if seekeractive then
if #hiders < 1 then
event:FireAllClients("Result", "HidersWin")
else
gameresult = "Seeker and Assistant Win"
event:FireAllClients("Result", "Seeker and Assistant Win")
end
else
event:FireAllClients("Result", "HidersWin")
end
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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