#[solved] client tracer won't fade

1 messages · Page 1 of 1 (latest)

halcyon gull
#

the tracers that fade are server sided. the tracers that won't fade are client sided. both the client and server sided scripts are cloning and relocating the exact same part from replicatedStorage that fades and deletes itself when it sees that it's in the proper folder.

rare current
halcyon gull
#

mb

#

this is the client code for setting up the tracer

#

this is the server code for setting up the tracer

rare current
#

i dont see anything that actually uses fadetime in either of those snippets

halcyon gull
#

and this is the tracer

#

ignore the bindable event its not important

#

the script is what activates the fading

rare current
#

your tracers are not fading because you appear to have no code which does this

halcyon gull
#

the script in the tracer part does though

#

both the client and server create tracer scripts use that same tracer

rare current
#

show it

halcyon gull
#

rather inefficient but ill optimize it once ive figured this out

rare current
#

you can tween the transparency directly

#

and tween.completed:connect( part:destroy()

halcyon gull
#

ok well how would i put this into its own thread

rare current
#

make sure to check your output window for errors

halcyon gull
#

thats why i have the scripts cloning objects and whatnot

#

no errors

rare current
#

ye your code is working

rare current
halcyon gull
#

i have 2 tracers

#

one that appears only on the client

#

and one that appears on the server (for everyone)

#

the one that is on the server is fading

#

the one that is on the client isnt

rare current
# halcyon gull

what's not working is the one that's supposed to remove the client tracers. a few reasons for that. first, since these clones only exist on the client and they have a server script which handles the fading, the fade will never happen. that's the first part. the second part is even if you did have a localscript, those dont run in workspace so you'd need to do something different there. and looking at the script you do have, it's checking workspace.game.effects.tracers but your client ones are in workspace.game.clientEffects.tracers, so that's another thing

#

tbh you dont even need that script in the clone

rare current
halcyon gull
#

oh yeah youre right

#

anyway putting them in effects doesnt work

#

i see

#

ill find the solution

rare current
# rare current and tween.completed:connect( part:destroy()

tween:create(tracer, {transparency=1}).completed:connect(tracer:destroy()) etc it's like 2 lines, you don't need to muck around with numbervalues and tweening the numbervalue and a bunch of while loops and waits and cloning scripts and that whole disaster. can be done much simpler.

halcyon gull
#

damn

#

new to all this tweening stuff, probably shouldnt have followed the first tutorial i saw

rare current
#

dont expect to copy+paste that and it work, i deliberately wrote it incorrect so you can't blindly copy it.

#

up to you to figure out correct spellings and whatnot

#

but the shape of it is how you would do it. that's psuedocode for you fingerguns

halcyon gull
#

i wasnt gonna

#

just started looking at forums

#

thanks gang

#

IT WORKED!!!!!!

#

FOR 2 WHOLE DAYS

#

ITS BEEN STOPPING ME