u/Expert-Bed-5016

Cannot set body parts in characters to CanCollide = false

when i try to set the CanCollide setting in body parts in a character to false, both through the settings window and in scripts, when i run the game they reset back to CanCollide = true. and it isnt even consistent, on some characters it affects the limbs (arms and legs) on others it just affects the torso, and when i delete the Humanoid the effect goes away

How do i keep the CanCollide off without deleting the humanoid?

reddit.com
u/Expert-Bed-5016 — 2 hours ago

so i'm trying to make a time stop script and there are a lot of problems with the particles. firstly when i try to use :Emit on particle emitters 1 and 2, they don't appear at all and when i play the tween that sets all the emitter's TimeScale properties to 0, it doesn't do anything either

here's the script (note: i haven't made the time resume mechanic or the part where it actually stops anything, there's just visuals for now)

local rem = game.ReplicatedStorage:WaitForChild("StopEvent")

local bool = game.ReplicatedStorage:WaitForChild("Stopped")

local stopped = bool.Value

local ts = game:GetService("TweenService")

local part = game.ReplicatedStorage:WaitForChild("TsSphere")

local part2 = game.ReplicatedStorage:WaitForChild("TsParticles")

rem.OnServerEvent:Connect(function(plr)

local char = plr.Character



if stopped == false then

	stopped = true

	

	local fx = Instance.new("Folder")

	[fx.Name](http://fx.Name) = "effect"

	fx.Parent = workspace

	game.Debris:AddItem(fx,3)

	

	local color = Instance.new("ColorCorrectionEffect")

	color.Parent = [game.Lighting](http://game.Lighting)

	color.Contrast = -2.5

	

	local pC1 = part:Clone()

	local pC2 = part:Clone()

	local pC3 = part:Clone()

	local pC4 = part:Clone()

	pC1.Parent = fx

	pC1.CFrame = char.HumanoidRootPart.CFrame

	pC2.Parent = fx

	pC2.CFrame = char.HumanoidRootPart.CFrame

	pC3.Parent = fx

	pC3.CFrame = char.HumanoidRootPart.CFrame

	pC4.Parent = fx

	pC4.CFrame = char.HumanoidRootPart.CFrame

	

	local eC1 = part2:Clone()

	eC1.Parent = fx

	eC1.CFrame = char.HumanoidRootPart.CFrame

	

	eC1.ParticleEmitter1:Emit(20)  **here is where problem 1 lies**

	eC1.ParticleEmitter2:Emit(20)  **and here too**

	eC1.ParticleEmitter3.Enabled = true



	local info = TweenInfo.new(1.5,Enum.EasingStyle.Exponential,Enum.EasingDirection.Out)

	local info2 = TweenInfo.new(3,Enum.EasingStyle.Exponential,Enum.EasingDirection.In)

	

	local ct1 = ts:Create(color, info2, {Contrast = 0.5, Saturation = -0.9, Brightness = -0.2, TintColor = Color3.fromRGB(220, 220, 255)})

	

	local pt1 = ts:Create(pC1, info, {Size = Vector3.new(2048, 2048, 2048)})

	local pt2 = ts:Create(pC2, info, {Size = Vector3.new(1536, 1536, 1536)})

	local pt3 = ts:Create(pC3, info, {Size = Vector3.new(1024, 1024, 1024)})

	local pt4 = ts:Create(pC4, info, {Size = Vector3.new(512, 512, 512)})

	

	local et1 = ts:Create(eC1.ParticleEmitter1, info2, {TimeScale = 0})

	local et2 = ts:Create(eC1.ParticleEmitter2, info2, {TimeScale = 0})

	local et3 = ts:Create(eC1.ParticleEmitter3, info2, {TimeScale = 0}) **this is problem 2. They wont even tween**

	

	et1:Play()

	et2:Play()

	et3:Play() **the tweens play right here**

	

	ct1:Play()

	

	pt1:Play()

	pt2:Play()

	pt3:Play()

	pt4:Play()

	

	wait(1.5)

	

	eC1.ParticleEmitter1.Enabled = false

	eC1.ParticleEmitter2.Enabled = false

	eC1.ParticleEmitter3.Enabled = false

	

	local info3 = TweenInfo.new(1.5,Enum.EasingStyle.Exponential,Enum.EasingDirection.In)

	

	local pt12 = ts:Create(pC1, info3, {Size = Vector3.new(1,1,1)})

	local pt22 = ts:Create(pC2, info3, {Size = Vector3.new(1,1,1)})

	local pt32 = ts:Create(pC3, info3, {Size = Vector3.new(1,1,1)})

	local pt42 = ts:Create(pC4, info3, {Size = Vector3.new(1,1,1)})



	pt12:Play()

	pt22:Play()

	pt32:Play()

	pt42:Play()

elseif stopped == true then

	stopped = false

end

end)

also if the problem is something stupidly simple or something please be nice.

reddit.com
u/Expert-Bed-5016 — 21 days ago