I’m trying to make a custom forcefield instead of the normal roblox forcefield for when a player spawns. I’ve seen some games like “Town” have it so your entire avatar including your accessories change into the forcefield material.
(Image may be bad but hats are also a forcefield)
How can I make this?
3 Likes
u can probably make a script that when a player spawns it makes all player parts into forcefields material
1 Like
You might want to use CharacterAdded
function.
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
wait(1) -- This is for the parts to load
for _, v in pairs(character:GetDescendants()) do
if v:IsA("MeshPart") or v:IsA("Part") then
v.Material = Enum.Material.ForceField
end
if v:IsA("Shirt") or v:IsA("Pants") then
v:Destroy()
end
end
end)
end)
4 Likes
but after a while u gotta make the character back to normal
Then we can add a debounce to check if the player needs to revert back. Probably using A remote event and a bindable event.
1 Like
How do I make it so it has the same properties as a normal forcefield like the player is unable to be killed
1 Like
Do you wan’t the forcefield to be invisible? ForceField.Visible = false
should help