I'm going for a more cartoony look in my game, and the player's shadow sort of messes up the whole look. Is there any way to just turn off the player's shadows? Thanks!
This should stop your avatars shadows. Put a script in a serverscriptservice and put this in there.
game:GetService("Players").PlayerAdded:Connect(function(Player) Player.CharacterAppearanceLoaded:Connect(function(Character) for _, v in pairs(Character:GetChildren()) do if v:IsA("BasePart") or v:IsA("UnionOperation") or v:IsA ("Accessory") then v.CastShadow = false end end end) end)
Baseparts have a parameter that says whether or not they cast shadows, called CastShadows. It seems like what you want.
Well if you're looking to disable shadows entirely apparently inserting a Humanoid into the workspace gets rid of shadows. It's pretty strange but it works.
This is easy to do if you have a local script inside of StarterCharacterScripts. You can put into the localscript:
local plr = script.Parent -- Makes a variable plr which is the visible character. for _,limb in pairs(plr:GetChildren()) do -- "limb" is the limb inside of the plr variable. if limb:IsA("BasePart") then -- Checks if limb is a basepart limb.CastShadow = false -- Disables shadow casting. end end
And you are good to go, a player without shadows.
~ Dan_PanMan, advanced scripter.