Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

A Morph Script?

Asked by 10 years ago

I wanted to make like an instant morph script that change your package when you enter is this correct? What wrong with it?

NZ = script.Parent.Parent.Alar Knight of Splintered Skies:clone() --Change Figure to what name of the Clone
NZp2 = script.Parent.Parent.Alar Knight of Splintered Skies --Change Figure to what name of the Clone
NZp2:breakJoints()
NZp2.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


function onTouched(hit)
if (hit.Parent:findFirstChild("IsNZ")~= nil) then return end
if (game.Players:playerFromCharacter(hit.Parent)~= nil) then
NZp3 = NZ:clone()
c = NZp3:GetChildren()
for i = 1, #c do
if (c[i].className == "Part") then
c[i].Anchored = false
c[i].CanCollide = true
end
end
NZp3.Parent = game.Workspace
NZp3:makeJoints()
NZp3.Name = "Alar Knight of Splintered Skies" --Change Figure to anyname you want. (it will be the name everyone can see)
NZp3.Controller = 7
game.Players:findFirstChild(hit.Parent.Name).Character = NZp3
NZp2:breakJoints()
NZp2.Humanoid.Health = 100
end
end

connection = script.Parent.Touched:connect(onTouched)

1 answer

Log in to vote
0
Answered by 10 years ago
NZ = script.Parent.Parent.Alar Knight of Splintered Skies:clone() --Change Figure to what name of the Clone
NZp2 = script.Parent.Parent.Alar Knight of Splintered Skies --Change Figure to what name of the Clone
NZp2:breakJoints()
NZp2.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


function onTouched(hit)
if (hit.Parent:findFirstChild("IsNZ")~= nil) then return end
if (game.Players:playerFromCharacter(hit.Parent)~= nil) then
NZp3 = NZ:clone()
c = NZp3:GetChildren()
for i = 1, #c do
if (c[i].className == "Part") then
c[i].Anchored = false
c[i].CanCollide = true
end
end
NZp3.Parent = game.Workspace
NZp3:makeJoints()
NZp3.Name = "Fighter" --Change Figure to anyname you want. (it will be the name everyone can see)
NZp3.Controller = 7
game.Players:findFirstChild(hit.Parent.Name).Character = NZp3
NZp2:breakJoints()
NZp2.Humanoid.Health = 100
end
end

connection = script.Parent.Touched:connect(onTouched)

Ad

Answer this question