#Why is the cloned part not tweening?
27 messages · Page 1 of 1 (latest)
.
where's the code
do u just how can I make local script work in workspace
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
create a normal script
and then in properties set RunContext on Client
yh
Np
wait rq if ur still here
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
it should run when it's enabled
the script runs fine (the one that detects when the remoteevent is fired) but this script using the context thing isnt firing
Are you sure it isn't the :WaitForChild?