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: Cutscene Script Problem!

Previous Thread :: Next Thread 
ColdUndermined is not online. ColdUndermined
Joined: 25 Jan 2010
Total Posts: 1819
22 Dec 2014 11:40 PM
Hey, so I have this script:

for _,player in pairs(game.Players:GetPlayers()) do
local new_script = script.CutsceneB1:clone()
new_script.Parent = player.Backpack
new_script.Disabled = false

What it does is gets the cutscene and puts it in the players backpack, The problem is its a 8 player server. If there is more than one person in the server the cutscenes only play for the first player, Not the others, Like this. I need the fix to be on its own, not in a new function as this is in a function in a game-script. Here is an example of how it works:

Player 1 = Cutscene works
Player 2 - 8= Cutscene won't work

Ive been trying to fix this problem, could someone please help. Thanks :)
Report Abuse
dekkonot is not online. dekkonot
Joined: 22 Dec 2010
Total Posts: 6685
22 Dec 2014 11:44 PM
Point of interest: functions can be defined within another function as long as they're local. Ie:

function test(b, a)
local function add()
return b+a
end
return add()
end

But as to the actual script, I don't know what's going wrong.
Report Abuse
ColdUndermined is not online. ColdUndermined
Joined: 25 Jan 2010
Total Posts: 1819
22 Dec 2014 11:52 PM
Ok, Thanks. I had someone help me with this problem, But when it came to the game-script it caused it to not work and break the whole script, Thats why I don't want it to be linking/using another function to fix it
Report Abuse
ColdUndermined is not online. ColdUndermined
Joined: 25 Jan 2010
Total Posts: 1819
23 Dec 2014 12:55 AM
~Bump~
Report Abuse
ColdUndermined is not online. ColdUndermined
Joined: 25 Jan 2010
Total Posts: 1819
23 Dec 2014 01:41 AM
Anyone know how to fix this?!?
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