#(SHORT SCRIPT) How to activate an OOP method without remote events?
22 messages · Page 1 of 1 (latest)
You can't do that.
show everything, from here it looks like u dont know what ur doing
wdym door OOP has a method called action
where is it
show
@snow orbit its in a module script in replicated storage
meanwhile this script is in starter gui
im just testing things and well i want to know how i can trigger that method by doing something like this
thanks
i realized from the 4 errors
but that reassured me
btw ashton
well if its in a module script in replicated storage....
want me to show the full script?
ye
or no need
function Door:Action(SpawnRoom)
if not self.Debounce then return end --Checks if debounce is false. If it is, the function/method is ended. Else, continues
self.Debounce = false
if self.State == "Opened" then
self.State = "Closed"
self.DoorClose:Play()
elseif self.State == "Closed" then
self.State = "Opened"
self.DoorOpen:Play()
if not self.HasSpawnedRoom then --Checks if the door spawned a room yet. If it did, the function/method is ended. Else, continues
self.HasSpawnedRoom = true
if SpawnRoom then SpawnRoom() end
end
end
self.Debounce = true
end
but ur prob is that ur tryoing to call the method on the door object in workspace and not the door object u made in module