#(2d game) Trigger problem

1 messages · Page 1 of 1 (latest)

plush cobalt
#

So basically I have a trigger in a cave that makes the wall that covers it fade away when you go inside
It works, but for some reason the code spews out this weird error about a "TouchInterest" that floods the terminal every time the player is in the trigger and its annoying
I cant figure out why
The error:
https://imgur.com/a/t7En4tz
The code:
https://pastebin.com/2zuM8R3j

rain marlin
plush cobalt
#

idk what a touchinterest is

kind rain
#

In your tweenTransparency function add a validation for the object.

Example:


if object:IsA("className") then
  -- tween here
end

In this case, you would want to check for a BasePart i'd assume, so className would be "BasePart".

kind rain
#

np

plush cobalt
#

ooo that makes so much sense

latent ospreyBOT
#

studio** You are now Level 1! **studio

plush cobalt
#

theres a touchinterest object that gets added on play

#

for some reason