Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local c = owner.Character
- local s = false
- local t = c.Torso
- function onTouched(fire)
- if s == false then
- local h = fire.Parent:FindFirstChildOfClass("Humanoid")
- if h then
- s = true
- wait(1)
- local q1 = c
- local q2 = fire.Parent
- local f1 = q1.Head:FindFirstChildOfClass("Decal")
- local f2 = q2.Head:FindFirstChildOfClass("Decal")
- local t1 = f1.Texture
- local t2 = f2.Texture
- f1.Texture = t2
- f2.Texture = t1
- local m1 = Instance.new("Model")
- local m2 = Instance.new("Model")
- for i,v in pairs(q1:GetChildren()) do
- if v.ClassName == "Humanoid" then
- v.Parent = m2
- end
- end
- for i,v in pairs(q2:GetChildren()) do
- if v.ClassName == "Humanoid" then
- v.Parent = m1
- end
- end
- for i,v in pairs(q1:GetChildren()) do
- if v.ClassName == "Humanoid" then
- v:Destroy()
- end
- end
- wait(0.00000001)
- for i,v in pairs(q1:GetChildren()) do
- if not(v.ClassName == "Part" or v.ClassName == "MeshPart" or v.ClassName == "Script" or v.ClassName == "LocalScript") then
- v.Parent = m1
- m1:MakeJoints()
- end
- end
- for i,v in pairs(q2:GetChildren()) do
- if not(v.ClassName == "Part" or v.ClassName == "MeshPart" or v.ClassName == "Script" or v.ClassName == "LocalScript") then
- v.Parent = m2
- m2:MakeJoints()
- end
- end
- wait(0.00000000001)
- for i,v in pairs(m1:GetChildren()) do
- if not(v.ClassName == "Decal") then
- v.Parent = q2
- end
- q2:MakeJoints()
- if v.ClassName == "Humanoid" then
- v.PlatformStand = false
- end
- end
- for i,v in pairs(m2:GetChildren()) do
- if not(v.ClassName == "Decal") then
- v.Parent = q1
- end
- q1:MakeJoints()
- if v.ClassName == "Humanoid" then
- v.PlatformStand = false
- end
- end
- wait(0.00000001)
- m1:Destroy()
- m2:Destroy()
- end
- end
- end
- t.Touched:connect(onTouched)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement