This spawn in effect works perfectly however whenever i test it, it creates a small box around the player here is the code keep in mind the part is parented to the script
> local tween = function(itemtotween,property,value,tweentime,easingstyle,easingdirection)
> local info = TweenInfo.new(tweentime,Enum.EasingStyle[easingstyle],Enum.EasingDirection[easingdirection],0,false,0)
> local goal = {}
> goal[property] = value
> return game:GetService("TweenService"):Create(itemtotween,info,goal)
> end
>
> game.Players.PlayerAdded:Connect(function(player)
> player.CharacterAdded:Connect(function(character)
>
> if character:FindFirstChild("UpperTorso") then --R15
> spawn(function()
> local particles = script.Part.Attachment:Clone()
> local bodyparts = character:GetDescendants()
> local sound = Instance.new("Sound",character.UpperTorso)
> sound.SoundId = "rbxassetid://1202657035"
> sound.PlaybackSpeed = 1.5
> particles.Parent = character.UpperTorso
> for i = 1,#bodyparts do
> if bodyparts[i].ClassName == "Part" or bodyparts[i].ClassName == "MeshPart" or bodyparts[i].ClassName == "Union" then
> if bodyparts[i].Name ~= "HumanoidRootPart" then
> bodyparts[i].Transparency = 1
> bodyparts[i].Anchored = true
> end
> end
> end
> if character.Head:FindFirstChild("face") ~= nil then
> character.Head.face.Transparency = 1
> end
> particles.Sparkle:Emit(1)
> particles.Sparkles2:Emit(35)
> wait(0.65)
> sound:Play()
> wait(0.35)
> particles.Flare:Emit(1)
> particles.Wave:Emit(1)
> particles.Vacuum.Enabled = true
> particles.Sparkles.Enabled = true
> for i = 1,#bodyparts do
> if bodyparts[i].ClassName == "Part" or bodyparts[i].ClassName == "MeshPart" or bodyparts[i].ClassName == "Union" then
> if bodyparts[i].Name ~= "HumanoidRootPart" then
> bodyparts[i].Transparency = 0
> bodyparts[i].Anchored = false
> end
> end
> end
> if character.Head:FindFirstChild("face") ~= nil then
> character.Head.face.Transparency = 0
> end
> tween(particles.Vacuum,"Rate",0,4,"Quad","Out"):Play()
> tween(particles.Sparkles,"Rate",0,8,"Quad","Out"):Play()
> wait(13)
> particles:Destroy()
> end)
> elseif character:FindFirstChild("Torso") then --R6
> spawn(function()
> local particles = script.Part.Attachment:Clone()
> local bodyparts = character:GetDescendants()
> local sound = Instance.new("Sound",character.Torso)
> sound.SoundId = "rbxassetid://1202657035"
> sound.PlaybackSpeed = 1.5
> particles.Parent = character.Torso
> for i = 1,#bodyparts do
> if bodyparts[i].ClassName == "Part" or bodyparts[i].ClassName == "MeshPart" or bodyparts[i].ClassName == "Union" then
> if bodyparts[i].Name ~= "HumanoidRootPart" then
> bodyparts[i].Transparency = 1
> bodyparts[i].Anchored = true
> end
> end
> end
> if character.Head:FindFirstChild("face") ~= nil then
> character.Head.face.Transparency = 1
> end
> particles.Sparkle:Emit(1)
> particles.Sparkles2:Emit(35)
> wait(0.65)
> sound:Play()
> wait(0.35)
> particles.Flare:Emit(1)
> particles.Wave:Emit(1)
> particles.Vacuum.Enabled = true
> particles.Sparkles.Enabled = true
> for i = 1,#bodyparts do
> if bodyparts[i].ClassName == "Part" or bodyparts[i].ClassName == "MeshPart" or bodyparts[i].ClassName == "Union" then
> if bodyparts[i].Name ~= "HumanoidRootPart" then
> bodyparts[i].Transparency = 0
> bodyparts[i].Anchored = false
> end
> end
> end
> if character.Head:FindFirstChild("face") ~= nil then
> character.Head.face.Transparency = 0
> end
> tween(particles.Vacuum,"Rate",0,4,"Quad","Out"):Play()
> tween(particles.Sparkles,"Rate",0,8,"Quad","Out"):Play()
> wait(13)
> particles:Destroy()
> end)
> end
> end)
> end)