My script breaks after a certain period of time. What do?
Hi. I've scripted an unbevel character script with help of many Redditors, but after a certain ammount of player join (I think that's the problem) the script just breaks. Any solutions?
03 | local function trueWeld(a,b) |
04 | local weld = Instance.new( "ManualWeld" , a) |
07 | weld.C 0 = CFrame.new() |
11 | local function dressCharacter(character) |
12 | character:WaitForChild( "Left Arm" ).Transparency = 1 |
13 | local fakeLeftArm = game.Workspace.Player:WaitForChild( "lArm" ):Clone() |
14 | fakeLeftArm.Parent = character |
15 | trueWeld(character:WaitForChild( "Left Arm" ),fakeLeftArm) |
16 | character:WaitForChild( "lArm" ).CanCollide = false |
19 | game.Players.PlayerAdded:connect( function (player) |
20 | player.CharacterAdded:connect(dressCharacter) |
21 | if player.Character then |
22 | dressCharacter(player.Character) |
That's part of my script. It's basically that, copypasted for every part of the player model. Any clue?