Why the tween still triggers if i did not touch it?
Asked by
2 years ago Edited 2 years ago
So i have this unusual incident today, i made a sphere with a tween that must become 0.5 transparent, 16,16,16 sized, cannot be collided with, and in order to activate it, a player with a humanoid must touch it
But, even when i moved it from the baseplate, it still continued to tween without the permission
The output reports no exceptions tho
01 | local TweenService = game:GetService( "TweenService" ) |
03 | local sphere = script.Parent |
06 | sphere.Transparency = 0.5 |
07 | sphere.Size = Vector 3. new( 16 , 16 , 16 ) |
08 | sphere.Color = Color 3. new( 0.203922 , 0.8 , 0.854902 ) |
09 | sphere.CanCollide = false |
11 | local info = TweenInfo.new( |
13 | Enum.EasingStyle.Cubic, |
14 | Enum.EasingDirection.Out, |
21 | local sphereTween = TweenService:Create(sphere, info, goal) |
23 | sphere.Touched:Connect( function (otherPart) |
24 | local humanoid = otherPart.Parent:FindFirstChildWhichIsA( "Humanoid" ) |