|
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|
| |
|
|
| 23 Dec 2014 01:41 AM |
| Anyone know how to fix this?!? |
|
|
| Report Abuse |
|
|