I want to make a feature where if you're colliding with a part (in this case a tornado), your character has a blur effect. Is there anyway to do this with a Touched function in a local script?
I suppose that you should be able to insert a block inside the tornado, turn CanCollide Off, and the use the Touched Event on the block. However i am pretty new to roblox, but thats the way i would try to solve this problem.
if you wanted to make the player "blurry", you would use a script, not a local script: a local script is only client-sided, which means the blur effect would apply to only your side of the game, instead of the server. To make a blur effect, I would make each child of the character that is a part transparent. Script for the tornado:
Tornado.Touched:Connect(function(part) if game.Playerst:GetPlayerFromCharacter(part.Parent) then --if player recognized from part touched for _,v in pairs(part.Parent:GetChildren) do --fetches all children of player if v:IsA("Part") then --makes sure "v" is a part before making it transparent v.Transparency = 0.5 --or whatever you'd like end end end
this should work :)