I wanted to make like an instant morph script that change your package when you enter is this correct? What wrong with it?
01 | NZ = script.Parent.Parent.Alar Knight of Splintered Skies:clone() --Change Figure to what name of the Clone |
02 | NZp 2 = script.Parent.Parent.Alar Knight of Splintered Skies --Change Figure to what name of the Clone |
03 | NZp 2 :breakJoints() |
04 | NZp 2. Humanoid.Health = 100 --Health you are going to have... I say use 100 because then u will have a red bar if u add more |
05 |
06 |
07 | function onTouched(hit) |
08 | if (hit.Parent:findFirstChild( "IsNZ" )~ = nil ) then return end |
09 | if (game.Players:playerFromCharacter(hit.Parent)~ = nil ) then |
10 | NZp 3 = NZ:clone() |
11 | c = NZp 3 :GetChildren() |
12 | for i = 1 , #c do |
13 | if (c [ i ] .className = = "Part" ) then |
14 | c [ i ] .Anchored = false |
15 | c [ i ] .CanCollide = true |
01 | NZ = script.Parent.Parent.Alar Knight of Splintered Skies:clone() --Change Figure to what name of the Clone |
02 | NZp 2 = script.Parent.Parent.Alar Knight of Splintered Skies --Change Figure to what name of the Clone |
03 | NZp 2 :breakJoints() |
04 | NZp 2. Humanoid.Health = 100 --Health you are going to have... I say use 100 because then u will have a red bar if u add more |
05 |
06 |
07 | function onTouched(hit) |
08 | if (hit.Parent:findFirstChild( "IsNZ" )~ = nil ) then return end |
09 | if (game.Players:playerFromCharacter(hit.Parent)~ = nil ) then |
10 | NZp 3 = NZ:clone() |
11 | c = NZp 3 :GetChildren() |
12 | for i = 1 , #c do |
13 | if (c [ i ] .className = = "Part" ) then |
14 | c [ i ] .Anchored = false |
15 | c [ i ] .CanCollide = true |