#Why is the cloned part not tweening?

27 messages · Page 1 of 1 (latest)

hollow mica
#

Both the clones script and the tween script in the part are SCRIPTS.

hollow mica
#

.

thick river
#

where's the code

hollow mica
#

cuz apparently when it's in workspace it doesnt run

#
local door = workspace:WaitForChild("Teleport door")
local remoteEvent = door:WaitForChild("OpenDoorEvent")
local plr = game.Players.LocalPlayer

-- You can add security checks here, such as ensuring the player has permission


remoteEvent:FireServer(plr)  -- Fire the event for the specific player
#

this isn't running at all

thick river
#

and then in properties set RunContext on Client

hollow mica
#

umm

#

on client right

#

i set it on client?

thick river
#

yh

hollow mica
#

yooo

#

that's so sick

#

it works tyvm

thick river
#

Np

hollow mica
#

do u know how I can make it so when it is enabled

#

it runs the script

#
local door = script.Parent
local remoteEvent = door:WaitForChild("OpenDoorEvent")
local plr = game.Players.LocalPlayer

while true do
    task.wait(1)
    print("hey")
    remoteEvent:FireServer(plr)
end```
#

cuz this isn't running when i enable it

thick river
#

it should run when it's enabled

hollow mica
#

the script runs fine (the one that detects when the remoteevent is fired) but this script using the context thing isnt firing

thick river
hollow mica
#

nvm turns out im just stupid (forgot i put it in a folder so had to add .parent)

#

thanks again